public class PaxosKeyState extends java.lang.Object implements UncommittedPaxosKey
Constructor and Description |
---|
PaxosKeyState(TableId tableId,
DecoratedKey key,
Ballot ballot,
boolean committed) |
Modifier and Type | Method and 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) |
public PaxosKeyState(TableId tableId, DecoratedKey key, Ballot ballot, boolean committed)
public DecoratedKey getKey()
getKey
in interface UncommittedPaxosKey
public ConsistencyLevel getConsistencyLevel()
getConsistencyLevel
in interface UncommittedPaxosKey
public Ballot ballot()
ballot
in interface UncommittedPaxosKey
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public static CloseableIterator<PaxosKeyState> mergeUncommitted(CloseableIterator<PaxosKeyState>... iterators)
public static CloseableIterator<UncommittedPaxosKey> toUncommittedInfo(CloseableIterator<PaxosKeyState> iter)
Copyright © 2009- The Apache Software Foundation