org.apache.hadoop.hbase.regionserver.wal
Interface HLog.Reader
- All Known Implementing Classes:
- ProtobufLogReader, ReaderBase, SecureProtobufLogReader, SequenceFileLogReader
- Enclosing interface:
- HLog
public static interface HLog.Reader
init
void init(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.Configuration c,
org.apache.hadoop.fs.FSDataInputStream s)
throws IOException
- Parameters:
fs
- File system.path
- Path.c
- Configuration.s
- Input stream that may have been pre-opened by the caller; may be null.
- Throws:
IOException
close
void close()
throws IOException
- Throws:
IOException
next
HLog.Entry next()
throws IOException
- Throws:
IOException
next
HLog.Entry next(HLog.Entry reuse)
throws IOException
- Throws:
IOException
seek
void seek(long pos)
throws IOException
- Throws:
IOException
getPosition
long getPosition()
throws IOException
- Throws:
IOException
reset
void reset()
throws IOException
- Throws:
IOException
getWALTrailer
WALProtos.WALTrailer getWALTrailer()
- Returns:
- the WALTrailer of the current HLog. It may be null in case of legacy or corrupt WAL
files.
Copyright © 2015 The Apache Software Foundation. All rights reserved.