Class PaxosKeyState
- java.lang.Object
-
- org.apache.cassandra.service.paxos.uncommitted.PaxosKeyState
-
- All Implemented Interfaces:
UncommittedPaxosKey
public class PaxosKeyState extends java.lang.Object implements UncommittedPaxosKey
-
-
Constructor Summary
Constructors Constructor Description PaxosKeyState(TableId tableId, DecoratedKey key, Ballot ballot, boolean committed)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Ballotballot()booleanequals(java.lang.Object o)ConsistencyLevelgetConsistencyLevel()DecoratedKeygetKey()inthashCode()static CloseableIterator<PaxosKeyState>mergeUncommitted(CloseableIterator<PaxosKeyState>... iterators)java.lang.StringtoString()static CloseableIterator<UncommittedPaxosKey>toUncommittedInfo(CloseableIterator<PaxosKeyState> iter)
-
-
-
Constructor Detail
-
PaxosKeyState
public PaxosKeyState(TableId tableId, DecoratedKey key, Ballot ballot, boolean committed)
-
-
Method Detail
-
getKey
public DecoratedKey getKey()
- Specified by:
getKeyin interfaceUncommittedPaxosKey
-
getConsistencyLevel
public ConsistencyLevel getConsistencyLevel()
- Specified by:
getConsistencyLevelin interfaceUncommittedPaxosKey
-
ballot
public Ballot ballot()
- Specified by:
ballotin interfaceUncommittedPaxosKey
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
mergeUncommitted
public static CloseableIterator<PaxosKeyState> mergeUncommitted(CloseableIterator<PaxosKeyState>... iterators)
-
toUncommittedInfo
public static CloseableIterator<UncommittedPaxosKey> toUncommittedInfo(CloseableIterator<PaxosKeyState> iter)
-
-