Class GetRequest


  • public class GetRequest
    extends Object
    A request to list objects in an index. You can specify a number of restrictions, such as the number of objects to return, the id of the first object to return, whether to only return keys, etc.
    
       GetRequest request = GetRequest.newBuilder()
           .setLimit(500)
           .setStartId("some-id")
           .setReturningIdsOnly(true)
           .build();
     
    • Method Detail

      • getStartId

        public String getStartId()
        Returns:
        the Id of the first object to return
      • isIncludeStart

        public boolean isIncludeStart()
        Returns:
        whether or not the object with the start Id is returned
      • getLimit

        public int getLimit()
        Returns:
        the maximum number of objects returned by this request
      • isReturningIdsOnly

        public Boolean isReturningIdsOnly()
        Returns:
        whether or not index schema is returned with each index
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object