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 Ballot
ballot()
boolean
equals(java.lang.Object o)
ConsistencyLevel
getConsistencyLevel()
DecoratedKey
getKey()
int
hashCode()
static CloseableIterator<PaxosKeyState>
mergeUncommitted(CloseableIterator<PaxosKeyState>... iterators)
java.lang.String
toString()
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:
getKey
in interfaceUncommittedPaxosKey
-
getConsistencyLevel
public ConsistencyLevel getConsistencyLevel()
- Specified by:
getConsistencyLevel
in interfaceUncommittedPaxosKey
-
ballot
public Ballot ballot()
- Specified by:
ballot
in interfaceUncommittedPaxosKey
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
mergeUncommitted
public static CloseableIterator<PaxosKeyState> mergeUncommitted(CloseableIterator<PaxosKeyState>... iterators)
-
toUncommittedInfo
public static CloseableIterator<UncommittedPaxosKey> toUncommittedInfo(CloseableIterator<PaxosKeyState> iter)
-
-