|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.replication.regionserver.ReplicationHLogReaderManager
@InterfaceAudience.Private public class ReplicationHLogReaderManager
Wrapper class around HLog to help manage the implementation details such as compression.
Constructor Summary | |
---|---|
ReplicationHLogReaderManager(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.conf.Configuration conf)
Creates the helper but doesn't open any file Use setInitialPosition after using the constructor if some content needs to be skipped |
Method Summary | |
---|---|
void |
closeReader()
Close the current reader |
long |
getPosition()
Get the position that we stopped reading at |
HLog.Reader |
openReader(org.apache.hadoop.fs.Path path)
Opens the file at the current position |
HLog.Entry |
readNextAndSetPosition()
Get the next entry, returned and also added in the array |
void |
seek()
Advance the reader to the current position |
void |
setPosition(long pos)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReplicationHLogReaderManager(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.conf.Configuration conf)
fs
- conf
- Method Detail |
---|
public HLog.Reader openReader(org.apache.hadoop.fs.Path path) throws IOException
path
-
IOException
public HLog.Entry readNextAndSetPosition() throws IOException
IOException
public void seek() throws IOException
IOException
public long getPosition()
public void setPosition(long pos)
public void closeReader() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |