public final class GuavaGroupBy extends GroupBy
GuavaGroupBy
extends GroupBy
with factory methods for creating ResultTransformer
and GroupExpression
instances for Guava Collection types.Modifier and Type | Method and Description |
---|---|
static <K> GuavaGroupByBuilder<K> |
groupBy(Expression<K> key)
Create a new GroupByBuilder for the given key expression
|
static <K,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.Multimap<K,V>> |
multimap(Expression<K> key,
Expression<V> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <K,V,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.Multimap<K,U>> |
multimap(Expression<K> key,
GroupExpression<V,U> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <K,V,T> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.Multimap<T,V>> |
multimap(GroupExpression<K,T> key,
Expression<V> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <K,V,T,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.Multimap<T,U>> |
multimap(GroupExpression<K,T> key,
GroupExpression<V,U> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <K extends java.lang.Comparable<? super K>,V extends java.lang.Comparable<? super V>> |
sortedSetMultimap(Expression<K> key,
Expression<V> value)
Create a new aggregating map expression using a backing TreeMap
|
static <K,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<K,V>> |
sortedSetMultimap(Expression<K> key,
Expression<V> value,
java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super V> valueComparator)
Create a new aggregating map expression using a backing TreeMap using the given comparator
|
static <K extends java.lang.Comparable<? super K>,V,U> |
sortedSetMultimap(Expression<K> key,
GroupExpression<V,U> value)
Create a new aggregating map expression using a backing TreeMap
|
static <K,V,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<K,U>> |
sortedSetMultimap(Expression<K> key,
GroupExpression<V,U> value,
java.util.Comparator<? super K> keyComparator,
java.util.Comparator<? super U> valueComparator)
Create a new aggregating map expression using a backing TreeMap using the given comparator
|
static <K,V,T extends java.lang.Comparable<? super T>> |
sortedSetMultimap(GroupExpression<K,T> key,
Expression<V> value)
Create a new aggregating map expression using a backing TreeMap
|
static <K,V,T> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<T,V>> |
sortedSetMultimap(GroupExpression<K,T> key,
Expression<V> value,
java.util.Comparator<? super T> comparator,
java.util.Comparator<? super V> valueComparator)
Create a new aggregating map expression using a backing TreeMap using the given comparator
|
static <K,V,T extends java.lang.Comparable<? super T>,U extends java.lang.Comparable<? super U>> |
sortedSetMultimap(GroupExpression<K,T> key,
GroupExpression<V,U> value)
Create a new aggregating map expression using a backing TreeMap
|
static <K,V,T,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<T,U>> |
sortedSetMultimap(GroupExpression<K,T> key,
GroupExpression<V,U> value,
java.util.Comparator<? super T> keyComparator,
java.util.Comparator<? super U> valueComparator)
Create a new aggregating map expression using a backing TreeMap using the given comparator
|
static <R,C,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<R,C,V>> |
sortedTable(Expression<R> row,
Expression<C> column,
Expression<V> value,
java.util.Comparator<? super R> rowComparator,
java.util.Comparator<? super C> columnComparator)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<R,C,W>> |
sortedTable(Expression<R> row,
Expression<C> column,
GroupExpression<V,W> value,
java.util.Comparator<? super R> rowComparator,
java.util.Comparator<? super C> columnComparator)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<R,W,V>> |
sortedTable(Expression<R> row,
GroupExpression<C,W> column,
Expression<V> value,
java.util.Comparator<? super R> rowComparator,
java.util.Comparator<? super W> columnComparator)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W,X> |
sortedTable(Expression<R> row,
GroupExpression<C,X> column,
GroupExpression<V,W> value,
java.util.Comparator<? super R> rowComparator,
java.util.Comparator<? super X> columnComparator)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,T,U,W> |
sortedTable(GroupExpression<R,T> row,
GroupExpression<C,U> column,
GroupExpression<V,W> value,
java.util.Comparator<? super T> rowComparator,
java.util.Comparator<? super U> columnComparator)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<W,C,V>> |
sortedTable(GroupExpression<R,W> row,
Expression<C> column,
Expression<V> value,
java.util.Comparator<? super W> rowComparator,
java.util.Comparator<? super C> columnComparator)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W,X> |
sortedTable(GroupExpression<R,W> row,
GroupExpression<C,X> column,
Expression<V> value,
java.util.Comparator<? super W> rowComparator,
java.util.Comparator<? super X> columnComparator)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W,X> |
sortedTable(GroupExpression<R,X> row,
Expression<C> column,
GroupExpression<V,W> value,
java.util.Comparator<? super X> rowComparator,
java.util.Comparator<? super C> columnComparator)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<R,C,V>> |
table(Expression<R> row,
Expression<C> column,
Expression<V> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<R,C,W>> |
table(Expression<R> row,
Expression<C> column,
GroupExpression<V,W> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<R,W,V>> |
table(Expression<R> row,
GroupExpression<C,W> column,
Expression<V> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W,X> |
table(Expression<R> row,
GroupExpression<C,X> column,
GroupExpression<V,W> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,T,U,W> |
table(GroupExpression<R,T> row,
GroupExpression<C,U> column,
GroupExpression<V,W> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<W,C,V>> |
table(GroupExpression<R,W> row,
Expression<C> column,
Expression<V> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W,X> |
table(GroupExpression<R,W> row,
GroupExpression<C,X> column,
Expression<V> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
static <R,C,V,W,X> |
table(GroupExpression<R,X> row,
Expression<C> column,
GroupExpression<V,W> value)
Create a new aggregating map expression using a backing LinkedHashMap
|
public static <K> GuavaGroupByBuilder<K> groupBy(Expression<K> key)
key
- key for aggregationpublic static <K,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.Multimap<K,V>> multimap(Expression<K> key, Expression<V> value)
key
- key for the map entriesvalue
- value for the map entriespublic static <K,V,T> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.Multimap<T,V>> multimap(GroupExpression<K,T> key, Expression<V> value)
key
- key for the map entriesvalue
- value for the map entriespublic static <K,V,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.Multimap<K,U>> multimap(Expression<K> key, GroupExpression<V,U> value)
key
- key for the map entriesvalue
- value for the map entriespublic static <K,V,T,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.Multimap<T,U>> multimap(GroupExpression<K,T> key, GroupExpression<V,U> value)
key
- key for the map entriesvalue
- value for the map entriespublic static <K extends java.lang.Comparable<? super K>,V extends java.lang.Comparable<? super V>> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<K,V>> sortedSetMultimap(Expression<K> key, Expression<V> value)
key
- key for the map entriesvalue
- value for the map entriespublic static <K,V,T extends java.lang.Comparable<? super T>> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<T,V>> sortedSetMultimap(GroupExpression<K,T> key, Expression<V> value)
key
- key for the map entriesvalue
- value for the map entriespublic static <K extends java.lang.Comparable<? super K>,V,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<K,U>> sortedSetMultimap(Expression<K> key, GroupExpression<V,U> value)
key
- key for the map entriesvalue
- value for the map entriespublic static <K,V,T extends java.lang.Comparable<? super T>,U extends java.lang.Comparable<? super U>> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<T,U>> sortedSetMultimap(GroupExpression<K,T> key, GroupExpression<V,U> value)
key
- key for the map entriesvalue
- value for the map entriespublic static <K,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<K,V>> sortedSetMultimap(Expression<K> key, Expression<V> value, java.util.Comparator<? super K> keyComparator, java.util.Comparator<? super V> valueComparator)
key
- key for the map entriesvalue
- value for the map entrieskeyComparator
- comparator for the created TreeMap instancesvalueComparator
- comparator for the created TreeMap instancespublic static <K,V,T> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<T,V>> sortedSetMultimap(GroupExpression<K,T> key, Expression<V> value, java.util.Comparator<? super T> comparator, java.util.Comparator<? super V> valueComparator)
key
- key for the map entriesvalue
- value for the map entriescomparator
- comparator for the created TreeMap instancesvalueComparator
- comparator for the created TreeMap instancespublic static <K,V,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<K,U>> sortedSetMultimap(Expression<K> key, GroupExpression<V,U> value, java.util.Comparator<? super K> keyComparator, java.util.Comparator<? super U> valueComparator)
key
- key for the map entriesvalue
- value for the map entrieskeyComparator
- comparator for the created TreeMap instancesvalueComparator
- comparator for the created TreeMap instancespublic static <K,V,T,U> AbstractGroupExpression<com.mysema.commons.lang.Pair<K,V>,com.google.common.collect.SortedSetMultimap<T,U>> sortedSetMultimap(GroupExpression<K,T> key, GroupExpression<V,U> value, java.util.Comparator<? super T> keyComparator, java.util.Comparator<? super U> valueComparator)
key
- key for the map entriesvalue
- value for the map entrieskeyComparator
- comparator for the created TreeMap instancesvalueComparator
- comparator for the created TreeMap instancespublic static <R,C,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<R,C,V>> table(Expression<R> row, Expression<C> column, Expression<V> value)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<W,C,V>> table(GroupExpression<R,W> row, Expression<C> column, Expression<V> value)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W,X> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<W,X,V>> table(GroupExpression<R,W> row, GroupExpression<C,X> column, Expression<V> value)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<R,W,V>> table(Expression<R> row, GroupExpression<C,W> column, Expression<V> value)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W,X> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<R,X,W>> table(Expression<R> row, GroupExpression<C,X> column, GroupExpression<V,W> value)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W,X> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<X,C,W>> table(GroupExpression<R,X> row, Expression<C> column, GroupExpression<V,W> value)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<R,C,W>> table(Expression<R> row, Expression<C> column, GroupExpression<V,W> value)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,T,U,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.Table<T,U,W>> table(GroupExpression<R,T> row, GroupExpression<C,U> column, GroupExpression<V,W> value)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<R,C,V>> sortedTable(Expression<R> row, Expression<C> column, Expression<V> value, java.util.Comparator<? super R> rowComparator, java.util.Comparator<? super C> columnComparator)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<W,C,V>> sortedTable(GroupExpression<R,W> row, Expression<C> column, Expression<V> value, java.util.Comparator<? super W> rowComparator, java.util.Comparator<? super C> columnComparator)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W,X> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<W,X,V>> sortedTable(GroupExpression<R,W> row, GroupExpression<C,X> column, Expression<V> value, java.util.Comparator<? super W> rowComparator, java.util.Comparator<? super X> columnComparator)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<R,W,V>> sortedTable(Expression<R> row, GroupExpression<C,W> column, Expression<V> value, java.util.Comparator<? super R> rowComparator, java.util.Comparator<? super W> columnComparator)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W,X> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<R,X,W>> sortedTable(Expression<R> row, GroupExpression<C,X> column, GroupExpression<V,W> value, java.util.Comparator<? super R> rowComparator, java.util.Comparator<? super X> columnComparator)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W,X> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<X,C,W>> sortedTable(GroupExpression<R,X> row, Expression<C> column, GroupExpression<V,W> value, java.util.Comparator<? super X> rowComparator, java.util.Comparator<? super C> columnComparator)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<R,C,W>> sortedTable(Expression<R> row, Expression<C> column, GroupExpression<V,W> value, java.util.Comparator<? super R> rowComparator, java.util.Comparator<? super C> columnComparator)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriespublic static <R,C,V,T,U,W> AbstractGroupExpression<com.mysema.commons.lang.Pair<com.mysema.commons.lang.Pair<R,C>,V>,com.google.common.collect.TreeBasedTable<T,U,W>> sortedTable(GroupExpression<R,T> row, GroupExpression<C,U> column, GroupExpression<V,W> value, java.util.Comparator<? super T> rowComparator, java.util.Comparator<? super U> columnComparator)
row
- row for the table entriescolumn
- column for the table entriesvalue
- value for the table entriesCopyright © 2007–2021 Querydsl. All rights reserved.