Package org.apache.calcite.linq4j
Class GroupingImpl<K,V>
- java.lang.Object
-
- org.apache.calcite.linq4j.DefaultEnumerable<T>
-
- org.apache.calcite.linq4j.AbstractEnumerable<V>
-
- org.apache.calcite.linq4j.GroupingImpl<K,V>
-
- Type Parameters:
K- Key typeV- Value type
- All Implemented Interfaces:
Iterable<K>,Map.Entry<K,Enumerable<V>>,Enumerable<K>,ExtendedEnumerable<K>,ExtendedOrderedEnumerable<K>,Grouping<K,V>,OrderedEnumerable<K>,RawEnumerable<K>
class GroupingImpl<K,V> extends AbstractEnumerable<V> implements Grouping<K,V>, Map.Entry<K,Enumerable<V>>
Implementation ofGrouping.
-
-
Field Summary
Fields Modifier and Type Field Description private Kkeyprivate Collection<V>values
-
Constructor Summary
Constructors Constructor Description GroupingImpl(K key, Collection<V> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Enumerator<V>enumerator()Returns an enumerator that iterates through a collection.booleanequals(Object obj)KgetKey()Gets the key of this Grouping.Enumerable<V>getValue()inthashCode()Enumerable<V>setValue(Enumerable<V> value)StringtoString()-
Methods inherited from class org.apache.calcite.linq4j.AbstractEnumerable
iterator
-
Methods inherited from class org.apache.calcite.linq4j.DefaultEnumerable
aggregate, aggregate, aggregate, all, any, any, asEnumerable, asOrderedQueryable, asQueryable, average, average, average, average, average, average, average, average, average, average, cast, concat, contains, contains, correlateJoin, count, count, createOrderedEnumerable, defaultIfEmpty, defaultIfEmpty, distinct, distinct, elementAt, elementAtOrDefault, except, except, first, first, firstOrDefault, firstOrDefault, foreach, getThis, getThisOrdered, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupJoin, groupJoin, intersect, intersect, into, join, join, join, last, last, lastOrDefault, lastOrDefault, longCount, longCount, max, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, min, ofType, orderBy, orderBy, orderByDescending, orderByDescending, removeAll, reverse, select, select, selectMany, selectMany, selectMany, selectMany, sequenceEqual, sequenceEqual, single, single, singleOrDefault, singleOrDefault, skip, skipWhile, skipWhile, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, take, takeWhile, takeWhile, thenBy, thenBy, thenByDescending, thenByDescending, toList, toLookup, toLookup, toLookup, toLookup, toMap, toMap, toMap, toMap, union, union, where, where, zip
-
Methods inherited from interface org.apache.calcite.linq4j.Enumerable
asQueryable
-
Methods inherited from interface org.apache.calcite.linq4j.ExtendedEnumerable
aggregate, aggregate, aggregate, all, any, any, asEnumerable, average, average, average, average, average, average, average, average, average, average, cast, concat, contains, contains, correlateJoin, count, count, defaultIfEmpty, defaultIfEmpty, distinct, distinct, elementAt, elementAtOrDefault, except, except, first, first, firstOrDefault, firstOrDefault, foreach, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupJoin, groupJoin, intersect, intersect, into, join, join, join, last, last, lastOrDefault, lastOrDefault, longCount, longCount, max, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, min, ofType, orderBy, orderBy, orderByDescending, orderByDescending, removeAll, reverse, select, select, selectMany, selectMany, selectMany, selectMany, sequenceEqual, sequenceEqual, single, single, singleOrDefault, singleOrDefault, skip, skipWhile, skipWhile, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, take, takeWhile, takeWhile, toList, toLookup, toLookup, toLookup, toLookup, toMap, toMap, toMap, toMap, union, union, where, where, zip
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface java.util.Map.Entry
comparingByKey, comparingByKey, comparingByValue, comparingByValue
-
-
-
-
Field Detail
-
key
private final K key
-
values
private final Collection<V> values
-
-
Constructor Detail
-
GroupingImpl
GroupingImpl(K key, Collection<V> values)
-
-
Method Detail
-
hashCode
public int hashCode()
Computes hash code consistent with
Map.Entry.hashCode().
-
equals
public boolean equals(Object obj)
-
setValue
public Enumerable<V> setValue(Enumerable<V> value)
-
getKey
public K getKey()
Description copied from interface:GroupingGets the key of this Grouping.
-
enumerator
public Enumerator<V> enumerator()
Description copied from interface:RawEnumerableReturns an enumerator that iterates through a collection.- Specified by:
enumeratorin interfaceRawEnumerable<K>
-
-