Package com.google.appengine.api.search
Class GetRequest
- java.lang.Object
-
- com.google.appengine.api.search.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();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetRequest.BuilderThe builder ofGetRequests.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetLimit()StringgetStartId()inthashCode()booleanisIncludeStart()BooleanisReturningIdsOnly()static GetRequest.BuildernewBuilder()static GetRequest.BuildernewBuilder(GetRequest request)StringtoString()
-
-
-
Method Detail
-
newBuilder
public static GetRequest.Builder newBuilder()
-
newBuilder
public static final GetRequest.Builder newBuilder(GetRequest request)
-
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
-
-