Projections used to customize the results of a query
Modifiers | Name | Description |
---|---|---|
static CountProjection |
COUNT_PROJECTION |
|
static IdProjection |
ID_PROJECTION |
Type Params | Return Type | Name and description |
---|---|---|
|
static AvgProjection |
avg(java.lang.String name) Computes the average value of a property |
|
static CountProjection |
count() Projection that returns the number of records from the query instead of the results themselves |
|
static CountDistinctProjection |
countDistinct(java.lang.String property) Projection that signifies to return only distinct results |
|
static DistinctProjection |
distinct() Projection that signifies to return only distinct results |
|
static DistinctPropertyProjection |
distinct(java.lang.String property) Projection that signifies to return only distinct results |
|
static GroupPropertyProjection |
groupProperty(java.lang.String property) Defines a group by projection for datastores that support it |
|
static IdProjection |
id() Projection used to obtain the id of an object |
|
static MaxProjection |
max(java.lang.String name) Computes the max value of a property |
|
static MinProjection |
min(java.lang.String name) Computes the min value of a property |
|
static PropertyProjection |
property(java.lang.String name) A projection that obtains the value of a property of an entity |
|
static SumProjection |
sum(java.lang.String name) Computes the sum of a property |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Computes the average value of a property
name
- The name of the propertyProjection that returns the number of records from the query instead of the results themselves
Projection that signifies to return only distinct results
property
- The name of the propertyProjection that signifies to return only distinct results
Projection that signifies to return only distinct results
property
- The name of the propertyDefines a group by projection for datastores that support it
property
- The property nameProjection used to obtain the id of an object
Computes the max value of a property
name
- The name of the propertyComputes the min value of a property
name
- The name of the propertyA projection that obtains the value of a property of an entity
name
- The name of the propertyComputes the sum of a property
name
- The name of the property