Class ProjectionEntityQuery.Builder (2.24.3)

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
Name Description
property String
others String[]
Returns
Type Description
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
Name Description
projection String
others String[]
Returns
Type Description
ProjectionEntityQuery.Builder

build()

public ProjectionEntityQuery build()
Returns
Type Description
ProjectionEntityQuery

clearDistinctOn()

public ProjectionEntityQuery.Builder clearDistinctOn()

Clears the group by clause.

Returns
Type Description
ProjectionEntityQuery.Builder

clearProjection()

public ProjectionEntityQuery.Builder clearProjection()

Clears the projection clause.

Returns
Type Description
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
Name Description
property String
others String[]
Returns
Type Description
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
Name Description
projection String
others String[]
Returns
Type Description
ProjectionEntityQuery.Builder