org.apache.hadoop.hbase.regionserver.wal
Interface HLog.Reader

All Known Implementing Classes:
ProtobufLogReader, ReaderBase, SequenceFileLogReader
Enclosing interface:
HLog

public static interface HLog.Reader


Method Summary
 void close()
           
 long getPosition()
           
 WALProtos.WALTrailer getWALTrailer()
           
 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)
           
 HLog.Entry next()
           
 HLog.Entry next(HLog.Entry reuse)
           
 void reset()
           
 void seek(long pos)
           
 

Method Detail

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 - Config.
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 © 2013 The Apache Software Foundation. All Rights Reserved.