org.apache.hadoop.hbase
Class HLogEdit

java.lang.Object
  extended by org.apache.hadoop.hbase.HLogEdit
All Implemented Interfaces:
Writable

public class HLogEdit
extends Object
implements Writable

A log value. These aren't sortable; you need to sort by the matching HLogKey. The table and row are already identified in HLogKey. This just indicates the column and value.


Constructor Summary
HLogEdit()
           
HLogEdit(Text column, byte[] bval, long timestamp)
           
 
Method Summary
 Text getColumn()
           
 long getTimestamp()
           
 byte[] getVal()
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 String toString()
           
 void write(DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HLogEdit

public HLogEdit()

HLogEdit

public HLogEdit(Text column,
                byte[] bval,
                long timestamp)
Method Detail

getColumn

public Text getColumn()

getVal

public byte[] getVal()

getTimestamp

public long getTimestamp()

toString

public String toString()
Overrides:
toString in class Object

write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Throws:
IOException


Copyright © 2006 The Apache Software Foundation