public static final class ProjectionEntityQuery.Builder extends StructuredQuery.BuilderImpl<ProjectionEntity,ProjectionEntityQuery.Builder>
A ProjectionEntityQuery
builder for queries that return ProjectionEntity
results.
Inheritance
java.lang.Object >
com.google.cloud.datastore.StructuredQuery.BuilderImpl >
ProjectionEntityQuery.Builder
Inherited Members
com.google.cloud.datastore.StructuredQuery.BuilderImpl.addOrderBy(com.google.cloud.datastore.StructuredQuery.OrderBy,com.google.cloud.datastore.StructuredQuery.OrderBy...)
com.google.cloud.datastore.StructuredQuery.BuilderImpl.clearOrderBy()
com.google.cloud.datastore.StructuredQuery.BuilderImpl.setEndCursor(com.google.cloud.datastore.Cursor)
com.google.cloud.datastore.StructuredQuery.BuilderImpl.setFilter(com.google.cloud.datastore.StructuredQuery.Filter)
com.google.cloud.datastore.StructuredQuery.BuilderImpl.setKind(java.lang.String)
com.google.cloud.datastore.StructuredQuery.BuilderImpl.setLimit(java.lang.Integer)
com.google.cloud.datastore.StructuredQuery.BuilderImpl.setNamespace(java.lang.String)
com.google.cloud.datastore.StructuredQuery.BuilderImpl.setOffset(int)
com.google.cloud.datastore.StructuredQuery.BuilderImpl.setOrderBy(com.google.cloud.datastore.StructuredQuery.OrderBy,com.google.cloud.datastore.StructuredQuery.OrderBy...)
com.google.cloud.datastore.StructuredQuery.BuilderImpl.setStartCursor(com.google.cloud.datastore.Cursor)
Methods
addDistinctOn(String property, String[] others)
public ProjectionEntityQuery.Builder addDistinctOn(String property, String[] others)
Adds one or more properties to the existing group by clause.
addProjection(String projection, String[] others)
public ProjectionEntityQuery.Builder addProjection(String projection, String[] others)
Adds one or more projections to the existing projection clause.
Parameters |
Name |
Description |
projection |
String
|
others |
String[]
|
build()
public ProjectionEntityQuery build()
clearDistinctOn()
public ProjectionEntityQuery.Builder clearDistinctOn()
Clears the group by clause.
clearProjection()
public ProjectionEntityQuery.Builder clearProjection()
Clears the projection clause.
setDistinctOn(String property, String[] others)
public ProjectionEntityQuery.Builder setDistinctOn(String property, String[] others)
Sets the query's distinct on clause (clearing any previously specified distinct on settings).
setProjection(String projection, String[] others)
public ProjectionEntityQuery.Builder setProjection(String projection, String[] others)
Sets the query's projection clause (clearing any previously specified Projection settings).
Parameters |
Name |
Description |
projection |
String
|
others |
String[]
|