public class PagingState extends Object
This object represents the next page to be fetched if the query is multi page. It can be saved and reused later on the same statement.
The PagingState can be serialized and deserialized either as a String or as a byte array.
Statement.setPagingState(PagingState)
Modifier and Type | Method and Description |
---|---|
static PagingState |
fromBytes(byte[] pagingState)
Create a PagingState object from a byte array previously generated with
toBytes() . |
static PagingState |
fromString(String string)
Create a PagingState object from a string previously generated with
toString() . |
byte[] |
toBytes()
Return a representation of the paging state object as a byte array.
|
String |
toString() |
public static PagingState fromString(String string)
toString()
.string
- the string value.PagingStateException
- if the string does not have the correct format.public byte[] toBytes()
public static PagingState fromBytes(byte[] pagingState)
toBytes()
.pagingState
- The byte array representation.PagingStateException
- if the byte array does not have the correct format.Copyright © 2012–2019. All rights reserved.