public class SequenceFileLogReader extends Object implements HLog.Reader
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.hbase.regionserver.wal.CompressionContext |
compressionContext
Compression context to use reading.
|
protected Class<? extends HLogKey> |
keyClass |
Constructor and Description |
---|
SequenceFileLogReader()
Default constructor.
|
SequenceFileLogReader(Class<? extends HLogKey> keyClass)
This constructor allows a specific HLogKey implementation to override that
which would otherwise be chosen via configuration property.
|
Modifier and Type | Method and Description |
---|---|
protected IOException |
addFileInfoToException(IOException ioe) |
void |
close() |
long |
getPosition() |
void |
init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration conf) |
HLog.Entry |
next() |
HLog.Entry |
next(HLog.Entry reuse) |
void |
reset() |
void |
seek(long pos) |
protected org.apache.hadoop.hbase.regionserver.wal.CompressionContext compressionContext
public void init(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf) throws IOException
init
in interface HLog.Reader
IOException
public void close() throws IOException
close
in interface HLog.Reader
IOException
public HLog.Entry next() throws IOException
next
in interface HLog.Reader
IOException
public HLog.Entry next(HLog.Entry reuse) throws IOException
next
in interface HLog.Reader
IOException
public void seek(long pos) throws IOException
seek
in interface HLog.Reader
IOException
public long getPosition() throws IOException
getPosition
in interface HLog.Reader
IOException
protected IOException addFileInfoToException(IOException ioe) throws IOException
IOException
public void reset() throws IOException
reset
in interface HLog.Reader
IOException
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.