Class PagingState
java.lang.Object
org.apache.cassandra.service.pager.PagingState
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMarks the last row returned by paging, the one from which paging should continue. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPagingState(ByteBuffer partitionKey, PagingState.RowMark rowMark, int remaining, int remainingInPartition) -
Method Summary
Modifier and TypeMethodDescriptionstatic PagingStatedeserialize(ByteBuffer bytes, ProtocolVersion protocolVersion) It's possible to receive a V3 paging state on a V4 client session, and vice versa - so we cannot blindly rely on the protocol version provided.final booleanfinal inthashCode()serialize(ProtocolVersion protocolVersion) intserializedSize(ProtocolVersion protocolVersion) toString()
-
Field Details
-
partitionKey
-
rowMark
-
remaining
public final int remaining -
remainingInPartition
public final int remainingInPartition
-
-
Constructor Details
-
PagingState
public PagingState(ByteBuffer partitionKey, PagingState.RowMark rowMark, int remaining, int remainingInPartition)
-
-
Method Details
-
serialize
-
serializedSize
-
deserialize
It's possible to receive a V3 paging state on a V4 client session, and vice versa - so we cannot blindly rely on the protocol version provided. We must verify first that the buffer indeed contains a paging state that adheres to the protocol version provided, or, if not - see if it is in a different version, in which case we try the other format. -
hashCode
public final int hashCode() -
equals
-
toString
-