Class ProjectionEntityQuery.Builder (2.32.2)
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[]
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-11 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-11 UTC."],[],[]]