Package com.clickhouse.client
Class ClickHouseTransaction.XID
java.lang.Object
com.clickhouse.client.ClickHouseTransaction.XID
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ClickHouseTransaction
This class encapsulates transaction ID, which is defined as
Tuple(snapshotVersion UInt64, localTxCounter UInt64, hostId UUID).- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonglonginthashCode()static ClickHouseTransaction.XIDCreates transaction ID from the given tuple.toString()
-
Field Details
-
EMPTY
-
-
Constructor Details
-
XID
-
-
Method Details
-
of
Creates transaction ID from the given tuple.- Parameters:
list- non-null tuple with 3 elements- Returns:
- non-null transaction ID
-
getSnapshotVersion
public long getSnapshotVersion() -
getLocalTransactionCounter
public long getLocalTransactionCounter() -
getHostId
-
asTupleString
-
hashCode
public int hashCode() -
equals
-
toString
-