org.apache.hadoop.hbase.regionserver.wal
Class HLogFactory
java.lang.Object
org.apache.hadoop.hbase.regionserver.wal.HLogFactory
public class HLogFactory
- extends Object
Method Summary |
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 |
createWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
Create a writer for the WAL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HLogFactory
public HLogFactory()
createHLog
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
- Throws:
IOException
createHLog
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
- Throws:
IOException
createHLog
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
- Throws:
IOException
createMetaHLog
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
- Throws:
IOException
createReader
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
- Throws:
IOException
createReader
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
- Create a reader for the WAL. If you are reading from a file that's being written to
and need to reopen it multiple times, use
HLog.Reader.reset()
instead of this method
then just seek back to the last known good position.
- Returns:
- A WAL reader. Close when done with it.
- Throws:
IOException
createReader
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
- Throws:
IOException
createWriter
public static HLog.Writer createWriter(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Create a writer for the WAL.
- Returns:
- A WAL writer. Close when done with it.
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.