org.apache.hadoop.hbase.regionserver.wal
Class HLog.Entry

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.wal.HLog.Entry
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Enclosing class:
HLog

public static class HLog.Entry
extends Object
implements org.apache.hadoop.io.Writable

Utility class that lets us keep track of the edit with it's key Only used when splitting logs


Constructor Summary
HLog.Entry()
           
HLog.Entry(HLogKey key, WALEdit edit)
          Constructor for both params
 
Method Summary
 WALEdit getEdit()
          Gets the edit
 HLogKey getKey()
          Gets the key
 void readFields(DataInput dataInput)
           
 String toString()
           
 void write(DataOutput dataOutput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HLog.Entry

public HLog.Entry()

HLog.Entry

public HLog.Entry(HLogKey key,
                  WALEdit edit)
Constructor for both params

Parameters:
edit - log's edit
key - log's key
Method Detail

getEdit

public WALEdit getEdit()
Gets the edit

Returns:
edit

getKey

public HLogKey getKey()
Gets the key

Returns:
key

toString

public String toString()
Overrides:
toString in class Object

write

public void write(DataOutput dataOutput)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

readFields

public void readFields(DataInput dataInput)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException


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