com.nhncorp.neptune.tabletserver
Class TxId

java.lang.Object
  extended by com.nhncorp.neptune.tabletserver.TxId
All Implemented Interfaces:
NWritable

public class TxId
extends java.lang.Object
implements NWritable


Constructor Summary
TxId()
           
TxId(java.lang.String txId)
           
TxId(java.lang.String txId, boolean systemTimestamp)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static TxId generate(java.lang.String tabletName, Row.Key rowKey, boolean systemTimestamp)
           
 java.lang.String getTxId()
           
 int hashCode()
           
 boolean isSystemTimestamp()
           
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 void setSystemTimestamp(boolean systemTimestamp)
           
 void setTxId(java.lang.String txId)
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
          Writes the fields of this object to out.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TxId

public TxId()

TxId

public TxId(java.lang.String txId)

TxId

public TxId(java.lang.String txId,
            boolean systemTimestamp)
Method Detail

isSystemTimestamp

public boolean isSystemTimestamp()

setSystemTimestamp

public void setSystemTimestamp(boolean systemTimestamp)

getTxId

public java.lang.String getTxId()

setTxId

public void setTxId(java.lang.String txId)

readFields

public void readFields(java.io.DataInput in)
                throws java.io.IOException
Description copied from interface: NWritable
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 NWritable
Throws:
java.io.IOException

write

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

Specified by:
write in interface NWritable
Throws:
java.io.IOException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

generate

public static TxId generate(java.lang.String tabletName,
                            Row.Key rowKey,
                            boolean systemTimestamp)