Class ProjectionEntityQuery.Builder (2.14.1)

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

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.

Parameters
NameDescription
propertyString
othersString[]
Returns
TypeDescription
ProjectionEntityQuery.Builder

addProjection(String projection, String[] others)

public ProjectionEntityQuery.Builder addProjection(String projection, String[] others)

Adds one or more projections to the existing projection clause.

Parameters
NameDescription
projectionString
othersString[]
Returns
TypeDescription
ProjectionEntityQuery.Builder

build()

public ProjectionEntityQuery build()
Returns
TypeDescription
ProjectionEntityQuery

clearDistinctOn()

public ProjectionEntityQuery.Builder clearDistinctOn()

Clears the group by clause.

Returns
TypeDescription
ProjectionEntityQuery.Builder

clearProjection()

public ProjectionEntityQuery.Builder clearProjection()

Clears the projection clause.

Returns
TypeDescription
ProjectionEntityQuery.Builder

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).

Parameters
NameDescription
propertyString
othersString[]
Returns
TypeDescription
ProjectionEntityQuery.Builder

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
NameDescription
projectionString
othersString[]
Returns
TypeDescription
ProjectionEntityQuery.Builder