Class PagingState

java.lang.Object
org.apache.cassandra.service.pager.PagingState

public class PagingState extends Object
  • Field Details

    • partitionKey

      public final ByteBuffer partitionKey
    • rowMark

      public final PagingState.RowMark rowMark
    • remaining

      public final int remaining
    • remainingInPartition

      public final int remainingInPartition
  • Constructor Details

  • Method Details

    • serialize

      public ByteBuffer serialize(ProtocolVersion protocolVersion)
    • serializedSize

      public int serializedSize(ProtocolVersion protocolVersion)
    • deserialize

      public static PagingState deserialize(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. 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()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object