public class Projections extends java.lang.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(java.lang.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(java.lang.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(java.lang.String property) Projection that signifies to return only distinct results |
|
public static GroupPropertyProjection |
groupProperty(java.lang.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(java.lang.String name) Computes the max value of a property |
|
public static MinProjection |
min(java.lang.String name) Computes the min value of a property |
|
public static PropertyProjection |
property(java.lang.String name) A projection that obtains the value of a property of an entity |
|
public 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(), java.lang.Object#wait(long), 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