Package org.apache.calcite.linq4j
Interface Lookup<K,V>
-
- Type Parameters:
K
- Key typeV
- Value type
- All Superinterfaces:
Enumerable<Grouping<K,V>>
,ExtendedEnumerable<Grouping<K,V>>
,java.lang.Iterable<Grouping<K,V>>
,java.util.Map<K,Enumerable<V>>
,RawEnumerable<Grouping<K,V>>
- All Known Implementing Classes:
LookupImpl
public interface Lookup<K,V> extends java.util.Map<K,Enumerable<V>>, Enumerable<Grouping<K,V>>
Represents a collection of keys each mapped to one or more values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <TResult> Enumerable<TResult>
applyResultSelector(Function2<K,Enumerable<V>,TResult> resultSelector)
Applies a transform function to each key and its associated values and returns the results.-
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.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from interface org.apache.calcite.linq4j.RawEnumerable
enumerator
-
-
-
-
Method Detail
-
applyResultSelector
<TResult> Enumerable<TResult> applyResultSelector(Function2<K,Enumerable<V>,TResult> resultSelector)
Applies a transform function to each key and its associated values and returns the results.- Type Parameters:
TResult
- Result type- Parameters:
resultSelector
- Result selector- Returns:
- Enumerable over results
-
-