public class TransactionID extends java.lang.Object implements FastSerializable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
int |
depth
The nesting depth of this transaction.
|
TransactionID |
parent |
long |
tid
The tid for this nested transaction.
|
long |
topTid
The tid for the top-level transaction.
|
Constructor and Description |
---|
TransactionID() |
TransactionID(java.io.DataInput in)
Deserialization constructor.
|
TransactionID(long tid)
Creates a new top-level transaction id with the given id.
|
TransactionID(TransactionID parent)
Creates a new transaction ID that is a child of the given tid.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
boolean |
equals(TransactionID tid) |
TransactionID |
getLowestCommonAncestor(TransactionID tid) |
boolean |
isDescendantOf(TransactionID tid) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
public final TransactionID parent
public final long tid
public final long topTid
public final int depth
public TransactionID()
public TransactionID(long tid)
public TransactionID(TransactionID parent)
parent
- public TransactionID(java.io.DataInput in) throws java.io.IOException
java.io.IOException
public void write(java.io.DataOutput out) throws java.io.IOException
write
in interface FastSerializable
java.io.IOException
public boolean isDescendantOf(TransactionID tid)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(TransactionID tid)
public TransactionID getLowestCommonAncestor(TransactionID tid)
public java.lang.String toString()
toString
in class java.lang.Object