org.apache.hadoop.hbase.regionserver.wal
Class SequenceFileLogReader

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.wal.SequenceFileLogReader
All Implemented Interfaces:
HLog.Reader

public class SequenceFileLogReader
extends java.lang.Object
implements HLog.Reader


Field Summary
protected  java.lang.Class<? extends HLogKey> keyClass
           
 
Constructor Summary
SequenceFileLogReader()
          Default constructor.
SequenceFileLogReader(java.lang.Class<? extends HLogKey> keyClass)
          This constructor allows a specific HLogKey implementation to override that which would otherwise be chosen via configuration property.
 
Method Summary
protected  java.io.IOException addFileInfoToException(java.io.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 seek(long pos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyClass

protected java.lang.Class<? extends HLogKey> keyClass
Constructor Detail

SequenceFileLogReader

public SequenceFileLogReader()
Default constructor.


SequenceFileLogReader

public SequenceFileLogReader(java.lang.Class<? extends HLogKey> keyClass)
This constructor allows a specific HLogKey implementation to override that which would otherwise be chosen via configuration property.

Parameters:
keyClass -
Method Detail

init

public void init(org.apache.hadoop.fs.FileSystem fs,
                 org.apache.hadoop.fs.Path path,
                 org.apache.hadoop.conf.Configuration conf)
          throws java.io.IOException
Specified by:
init in interface HLog.Reader
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface HLog.Reader
Throws:
java.io.IOException

next

public HLog.Entry next()
                throws java.io.IOException
Specified by:
next in interface HLog.Reader
Throws:
java.io.IOException

next

public HLog.Entry next(HLog.Entry reuse)
                throws java.io.IOException
Specified by:
next in interface HLog.Reader
Throws:
java.io.IOException

seek

public void seek(long pos)
          throws java.io.IOException
Specified by:
seek in interface HLog.Reader
Throws:
java.io.IOException

getPosition

public long getPosition()
                 throws java.io.IOException
Specified by:
getPosition in interface HLog.Reader
Throws:
java.io.IOException

addFileInfoToException

protected java.io.IOException addFileInfoToException(java.io.IOException ioe)
                                              throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.