Package com.oracle.coherence.grpc.proxy
Class PagedQueryHelper
- java.lang.Object
-
- com.oracle.coherence.grpc.proxy.PagedQueryHelper
-
public final class PagedQueryHelper extends Object
A helper class for cache key set and entry set paged queries.- Since:
- 20.06
- Author:
- Jonathan Knight 2019.11.28
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object[]decodeCookie(Service service, com.google.protobuf.ByteString cookie)Decode the binary cookie used in a paged request.static com.google.protobuf.ByteStringencodeCookie(PartitionSet parts, int page)Encode the opaque cookie used in a paged request.
-
-
-
Method Detail
-
decodeCookie
public static Object[] decodeCookie(Service service, com.google.protobuf.ByteString cookie)
Decode the binary cookie used in a paged request.- Parameters:
service- the cacheServiceto use to deserialize the cookiecookie- the cookie- Returns:
- the decoded cookie
-
encodeCookie
public static com.google.protobuf.ByteString encodeCookie(PartitionSet parts, int page)
Encode the opaque cookie used in a paged request.- Parameters:
parts- the partition set to encodepage- the current page- Returns:
- an encoded page request cookie
-
-