/** * Create a new GroupByBuilder for the given key expression * * @param key key for aggregation * @return builder for further specification */ public static <K> GroupByBuilder<K> groupBy(Expression<K> key) { return new GroupByBuilder<K>(key); }
/** * Create a new GroupByBuilder for the given key expressions * * @param keys keys for aggregation * @return builder for further specification */ public static GroupByBuilder<List<?>> groupBy(Expression<?>... keys) { return new GroupByBuilder<List<?>>(Projections.list(keys)); }
/** * Create a new GroupByBuilder for the given key expression * * @param key key for aggregation * @return builder for further specification */ public static <K> GroupByBuilder<K> groupBy(Expression<K> key) { return new GroupByBuilder<K>(key); }
/** * Create a new GroupByBuilder for the given key expressions * * @param keys keys for aggregation * @return builder for further specification */ public static GroupByBuilder<List<?>> groupBy(Expression<?>... keys) { return new GroupByBuilder<List<?>>(Projections.list(keys)); }