Package com.google.cloud.datastore
Class EntityQuery.Builder
java.lang.Object
com.google.cloud.datastore.EntityQuery.Builder
- All Implemented Interfaces:
StructuredQuery.Builder<Entity>
- Enclosing class:
- EntityQuery
A
EntityQuery builder for queries that return Entity results.-
Method Summary
Modifier and TypeMethodDescriptionaddOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others) Adds settings to the existing order by clause.build()Clears any previously specified order by settings.setEndCursor(Cursor endCursor) Sets the end cursor for the query.setFilter(StructuredQuery.Filter filter) Sets the kind for the query.Sets the limit for the query.setNamespace(String namespace) Sets the namespace for the query.setOffset(int offset) Sets the offset for the query.setOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others) Sets the query's order by clause (clearing any previously specified order by settings).setStartCursor(Cursor startCursor) Sets the start cursor for the query.
-
Method Details
-
build
-
setNamespace
Description copied from interface:StructuredQuery.BuilderSets the namespace for the query.- Specified by:
setNamespacein interfaceStructuredQuery.Builder<V>
-
setKind
Description copied from interface:StructuredQuery.BuilderSets the kind for the query.- Specified by:
setKindin interfaceStructuredQuery.Builder<V>
-
setStartCursor
Description copied from interface:StructuredQuery.BuilderSets the start cursor for the query.- Specified by:
setStartCursorin interfaceStructuredQuery.Builder<V>
-
setEndCursor
Description copied from interface:StructuredQuery.BuilderSets the end cursor for the query.- Specified by:
setEndCursorin interfaceStructuredQuery.Builder<V>
-
setOffset
Description copied from interface:StructuredQuery.BuilderSets the offset for the query.- Specified by:
setOffsetin interfaceStructuredQuery.Builder<V>
-
setLimit
Description copied from interface:StructuredQuery.BuilderSets the limit for the query.- Specified by:
setLimitin interfaceStructuredQuery.Builder<V>
-
setFilter
- Specified by:
setFilterin interfaceStructuredQuery.Builder<V>
-
clearOrderBy
Description copied from interface:StructuredQuery.BuilderClears any previously specified order by settings.- Specified by:
clearOrderByin interfaceStructuredQuery.Builder<V>
-
setOrderBy
public EntityQuery.Builder setOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others) Description copied from interface:StructuredQuery.BuilderSets the query's order by clause (clearing any previously specified order by settings).- Specified by:
setOrderByin interfaceStructuredQuery.Builder<V>
-
addOrderBy
public EntityQuery.Builder addOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others) Description copied from interface:StructuredQuery.BuilderAdds settings to the existing order by clause.- Specified by:
addOrderByin interfaceStructuredQuery.Builder<V>
-