org.apache.hadoop.hbase.thrift.generated
Class TCell

java.lang.Object
  extended by org.apache.hadoop.hbase.thrift.generated.TCell
All Implemented Interfaces:
com.facebook.thrift.TBase, Serializable

public class TCell
extends Object
implements com.facebook.thrift.TBase, Serializable

TCell - Used to transport a cell value (byte[]) and the timestamp it was stored with together as a result for get and getRow methods. This promotes the timestamp of a cell to a first-class value, making it easy to take note of temporal data. Cell is used all the way from HStore up to HTable.

See Also:
Serialized Form

Nested Class Summary
static class TCell.Isset
           
 
Field Summary
 TCell.Isset __isset
           
 long timestamp
           
 byte[] value
           
 
Constructor Summary
TCell()
           
TCell(byte[] value, long timestamp)
           
 
Method Summary
 boolean equals(Object that)
           
 boolean equals(TCell that)
           
 int hashCode()
           
 void read(com.facebook.thrift.protocol.TProtocol iprot)
           
 String toString()
           
 void write(com.facebook.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

public byte[] value

timestamp

public long timestamp

__isset

public final TCell.Isset __isset
Constructor Detail

TCell

public TCell()

TCell

public TCell(byte[] value,
             long timestamp)
Method Detail

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TCell that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

read

public void read(com.facebook.thrift.protocol.TProtocol iprot)
          throws com.facebook.thrift.TException
Specified by:
read in interface com.facebook.thrift.TBase
Throws:
com.facebook.thrift.TException

write

public void write(com.facebook.thrift.protocol.TProtocol oprot)
           throws com.facebook.thrift.TException
Specified by:
write in interface com.facebook.thrift.TBase
Throws:
com.facebook.thrift.TException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 The Apache Software Foundation