@InterfaceAudience.Private public class HLogFactory extends Object
Constructor and Description |
---|
HLogFactory() |
Modifier and Type | Method and Description |
---|---|
static HLog |
createHLog(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path root,
String logName,
org.apache.hadoop.conf.Configuration conf) |
static HLog |
createHLog(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path root,
String logName,
org.apache.hadoop.conf.Configuration conf,
List<WALActionsListener> listeners,
String prefix) |
static HLog |
createHLog(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path root,
String logName,
String oldLogName,
org.apache.hadoop.conf.Configuration conf) |
static HLog |
createMetaHLog(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path root,
String logName,
org.apache.hadoop.conf.Configuration conf,
List<WALActionsListener> listeners,
String prefix) |
static HLog.Reader |
createReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
static HLog.Reader |
createReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
CancelableProgressable reporter)
Create a reader for the WAL.
|
static HLog.Reader |
createReader(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf,
CancelableProgressable reporter,
boolean allowCustom) |
static HLog.Writer |
createRecoveredEditsWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
static HLog.Writer |
createWALWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
Create a writer for the WAL.
|
public static HLog createHLog(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path root, String logName, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static HLog createHLog(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path root, String logName, String oldLogName, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static HLog createHLog(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path root, String logName, org.apache.hadoop.conf.Configuration conf, List<WALActionsListener> listeners, String prefix) throws IOException
IOException
public static HLog createMetaHLog(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path root, String logName, org.apache.hadoop.conf.Configuration conf, List<WALActionsListener> listeners, String prefix) throws IOException
IOException
public static HLog.Reader createReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static HLog.Reader createReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, CancelableProgressable reporter) throws IOException
HLog.Reader.reset()
instead of this method
then just seek back to the last known good position.IOException
public static HLog.Reader createReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, CancelableProgressable reporter, boolean allowCustom) throws IOException
IOException
public static HLog.Writer createWALWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static HLog.Writer createRecoveredEditsWriter(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
Copyright © 2014 The Apache Software Foundation. All rights reserved.