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() |
ProjectionEntityQuery.Builder |
clearProjection()
Clears the projection clause.
|
ProjectionEntityQuery.Builder |
distinctOn(String property,
String... others)
Sets the query's group by clause (clearing any previously specified GroupBy settings).
|
B |
endCursor(Cursor endCursor) |
B |
filter(StructuredQuery.Filter filter) |
B |
kind(String kind) |
B |
limit(Integer limit) |
B |
namespace(String namespace) |
B |
offset(int offset) |
B |
orderBy(StructuredQuery.OrderBy orderBy,
StructuredQuery.OrderBy... others)
Sets the query's order by clause (clearing any previously specified OrderBy settings).
|
ProjectionEntityQuery.Builder |
projection(String projection,
String... others)
Sets the query's projection clause (clearing any previously specified Projection settings).
|
B |
startCursor(Cursor startCursor) |
public ProjectionEntityQuery.Builder clearProjection()
public ProjectionEntityQuery.Builder projection(String projection, String... others)
public ProjectionEntityQuery.Builder addProjection(String projection, String... others)
public ProjectionEntityQuery.Builder clearDistinctOn()
public ProjectionEntityQuery.Builder distinctOn(String property, String... others)
public ProjectionEntityQuery.Builder addDistinctOn(String property, String... others)
public ProjectionEntityQuery build()
public B namespace(String namespace)
namespace in interface StructuredQuery.Builder<V>public B kind(String kind)
kind in interface StructuredQuery.Builder<V>public B startCursor(Cursor startCursor)
startCursor in interface StructuredQuery.Builder<V>public B endCursor(Cursor endCursor)
endCursor in interface StructuredQuery.Builder<V>public B offset(int offset)
offset in interface StructuredQuery.Builder<V>public B limit(Integer limit)
limit in interface StructuredQuery.Builder<V>public B filter(StructuredQuery.Filter filter)
filter in interface StructuredQuery.Builder<V>public B clearOrderBy()
clearOrderBy in interface StructuredQuery.Builder<V>public B orderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others)
StructuredQuery.BuilderorderBy in interface StructuredQuery.Builder<V>public B addOrderBy(StructuredQuery.OrderBy orderBy, StructuredQuery.OrderBy... others)
StructuredQuery.BuilderaddOrderBy in interface StructuredQuery.Builder<V>Copyright © 2016 Google. All rights reserved.