public static final class ProjectionEntityQuery.Builder extends Object
ProjectionEntityQuery
builder for queries that return ProjectionEntity
results.Modifier and Type | Method and Description |
---|---|
ProjectionEntityQuery.Builder |
addDistinctOn(String property,
String... others)
Adds one or more properties to the existing group by clause.
|
B |
addOrderBy(StructuredQuery.OrderBy orderBy,
StructuredQuery.OrderBy... others)
Adds settings to the existing order by clause.
|
ProjectionEntityQuery.Builder |
addProjection(String projection,
String... others)
Adds one or more projections to the existing projection clause.
|
ProjectionEntityQuery |
build() |
ProjectionEntityQuery.Builder |
clearDistinctOn()
Clears the group by clause.
|
B |
clearOrderBy()
Clears any previously specified order by settings.
|
ProjectionEntityQuery.Builder |
clearProjection()
Clears the projection clause.
|
ProjectionEntityQuery.Builder |
setDistinctOn(String property,
String... others)
Sets the query's distinct on clause (clearing any previously specified distinct on settings).
|
B |
setEndCursor(Cursor endCursor)
Sets the end cursor for the query.
|
B |
setFilter(StructuredQuery.Filter filter) |
B |
setKind(String kind)
Sets the kind for the query.
|
B |
setLimit(Integer limit)
Sets the limit for the query.
|
B |
setNamespace(String namespace)
Sets the namespace for the query.
|
B |
setOffset(int offset)
Sets the offset for the query.
|
B |
setOrderBy(StructuredQuery.OrderBy orderBy,
StructuredQuery.OrderBy... others)
Sets the query's order by clause (clearing any previously specified order by settings).
|
ProjectionEntityQuery.Builder |
setProjection(String projection,
String... others)
Sets the query's projection clause (clearing any previously specified Projection settings).
|
B |
setStartCursor(Cursor startCursor)
Sets the start cursor for the query.
|
public ProjectionEntityQuery.Builder clearProjection()
public ProjectionEntityQuery.Builder setProjection(String projection, String... others)
public ProjectionEntityQuery.Builder addProjection(String projection, String... others)
public ProjectionEntityQuery.Builder clearDistinctOn()
public ProjectionEntityQuery.Builder setDistinctOn(String property, String... others)
public ProjectionEntityQuery.Builder addDistinctOn(String property, String... others)
public ProjectionEntityQuery build()
public B setNamespace(String namespace)
StructuredQuery.Builder
setNamespace
in interface StructuredQuery.Builder<V>
public B setKind(String kind)
StructuredQuery.Builder
setKind
in interface StructuredQuery.Builder<V>
public B setStartCursor(Cursor startCursor)
StructuredQuery.Builder
setStartCursor
in interface StructuredQuery.Builder<V>
public B setEndCursor(Cursor endCursor)
StructuredQuery.Builder
setEndCursor
in interface StructuredQuery.Builder<V>
public B setOffset(int offset)
StructuredQuery.Builder
setOffset
in interface StructuredQuery.Builder<V>
public B setLimit(Integer limit)
StructuredQuery.Builder
setLimit
in interface StructuredQuery.Builder<V>
public B setFilter(StructuredQuery.Filter filter)
setFilter
in interface StructuredQuery.Builder<V>
public B clearOrderBy()
StructuredQuery.Builder
clearOrderBy
in interface StructuredQuery.Builder<V>
public B setOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others)
StructuredQuery.Builder
setOrderBy
in interface StructuredQuery.Builder<V>
public B addOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others)
StructuredQuery.Builder
addOrderBy
in interface StructuredQuery.Builder<V>
Copyright © 2023 Google LLC. All rights reserved.