public class Projections extends Object
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 |
|---|---|---|
|
public static AvgProjection |
avg(String name)Computes the average value of a property |
|
public static CountProjection |
count()Projection that returns the number of records from the query instead of the results themselves |
|
public static CountDistinctProjection |
countDistinct(String property)Projection that signifies to return only distinct results |
|
public static DistinctProjection |
distinct()Projection that signifies to return only distinct results |
|
public static DistinctPropertyProjection |
distinct(String property)Projection that signifies to return only distinct results |
|
public static GroupPropertyProjection |
groupProperty(String property)Defines a group by projection for datastores that support it |
|
public static IdProjection |
id()Projection used to obtain the id of an object |
|
public static MaxProjection |
max(String name)Computes the max value of a property |
|
public static MinProjection |
min(String name)Computes the min value of a property |
|
public static PropertyProjection |
property(String name)A projection that obtains the value of a property of an entity |
|
public static SumProjection |
sum(String name)Computes the sum of a property |
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