public final class GroupBy extends Object
Modifier and Type | Method and Description |
---|---|
static <E extends Number & Comparable<E>> |
avg(Expression<E> expression)
Create a new aggregating avg expression
|
static GroupByBuilder<List<?>> |
groupBy(Expression<?>... keys)
Create a new GroupByBuilder for the given key expressions
|
static <K> GroupByBuilder<K> |
groupBy(Expression<K> key)
Create a new GroupByBuilder for the given key expression
|
static <E> AbstractGroupExpression<E,List<E>> |
list(Expression<E> expression)
Create a new aggregating list expression
|
static <E,F> AbstractGroupExpression<E,List<F>> |
list(GroupExpression<E,F> groupExpression) |
static <K,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,Map<K,V>> |
map(Expression<K> key,
Expression<V> value)
Create a new aggregating map expression
|
static <K,V,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,Map<K,U>> |
map(Expression<K> key,
GroupExpression<V,U> value) |
static <K,V,T> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,Map<T,V>> |
map(GroupExpression<K,T> key,
Expression<V> value) |
static <K,V,T,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,Map<T,U>> |
map(GroupExpression<K,T> key,
GroupExpression<V,U> value) |
static <E extends Comparable<E>> |
max(Expression<E> expression)
Create a new aggregating max expression
|
static <E extends Comparable<E>> |
min(Expression<E> expression)
Create a new aggregating min expression
|
static <E> AbstractGroupExpression<E,Set<E>> |
set(Expression<E> expression)
Create a new aggregating set expression
|
static <E,F> GroupExpression<E,Set<F>> |
set(GroupExpression<E,F> groupExpression) |
static <E extends Number & Comparable<E>> |
sum(Expression<E> expression)
Create a new aggregating sum expression
|
public static <K> GroupByBuilder<K> groupBy(Expression<K> key)
key
- public static GroupByBuilder<List<?>> groupBy(Expression<?>... keys)
keys
- public static <E extends Comparable<E>> AbstractGroupExpression<E,E> min(Expression<E> expression)
expression
- public static <E extends Number & Comparable<E>> AbstractGroupExpression<E,E> sum(Expression<E> expression)
expression
- public static <E extends Number & Comparable<E>> AbstractGroupExpression<E,E> avg(Expression<E> expression)
expression
- public static <E extends Comparable<E>> AbstractGroupExpression<E,E> max(Expression<E> expression)
expression
- public static <E> AbstractGroupExpression<E,List<E>> list(Expression<E> expression)
expression
- public static <E,F> AbstractGroupExpression<E,List<F>> list(GroupExpression<E,F> groupExpression)
public static <E> AbstractGroupExpression<E,Set<E>> set(Expression<E> expression)
expression
- public static <E,F> GroupExpression<E,Set<F>> set(GroupExpression<E,F> groupExpression)
@WithBridgeMethods(value=Expression.class, castRequired=true) public static <K,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,Map<K,V>> map(Expression<K> key, Expression<V> value)
key
- value
- public static <K,V,T> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,Map<T,V>> map(GroupExpression<K,T> key, Expression<V> value)
public static <K,V,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,Map<K,U>> map(Expression<K> key, GroupExpression<V,U> value)
public static <K,V,T,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,Map<T,U>> map(GroupExpression<K,T> key, GroupExpression<V,U> value)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.