Package com.google.cloud.datastore
Interface StructuredQuery.Builder<V>
- Type Parameters:
V
- the type of result the query returns.
- All Known Implementing Classes:
EntityQuery.Builder
,KeyQuery.Builder
,ProjectionEntityQuery.Builder
- Enclosing class:
- StructuredQuery<V>
public static interface StructuredQuery.Builder<V>
Interface for StructuredQuery builders.
-
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
-
setNamespace
Sets the namespace for the query. -
setKind
Sets the kind for the query. -
setStartCursor
Sets the start cursor for the query. -
setEndCursor
Sets the end cursor for the query. -
setOffset
Sets the offset for the query. -
setLimit
Sets the limit for the query. -
setFilter
-
clearOrderBy
StructuredQuery.Builder<V> clearOrderBy()Clears any previously specified order by settings. -
setOrderBy
StructuredQuery.Builder<V> setOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others) Sets the query's order by clause (clearing any previously specified order by settings). -
addOrderBy
StructuredQuery.Builder<V> addOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others) Adds settings to the existing order by clause. -
build
StructuredQuery<V> build()
-