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 Details

    • decodeCookie

      public static Object[] decodeCookie(Service service, com.google.protobuf.ByteString cookie)
      Decode the binary cookie used in a paged request.
      Parameters:
      service - the cache Service to use to deserialize the cookie
      cookie - 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 encode
      page - the current page
      Returns:
      an encoded page request cookie