Interface QueryableDefaults.Replayable<T>
- Type Parameters:
- T- element type
- All Superinterfaces:
- Enumerable<T>,- ExtendedEnumerable<T>,- Iterable<T>,- Queryable<T>,- RawEnumerable<T>,- RawQueryable<T>
- All Known Implementing Classes:
- QueryableDefaults.NonLeafReplayableQueryable,- QueryableDefaults.ReplayableQueryable
- Enclosing class:
- QueryableDefaults
- 
Method SummaryModifier and TypeMethodDescriptionApplies an accumulator function over a sequence.<TAccumulate>
 TAccumulateaggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate, T, TAccumulate>> selector) Applies an accumulator function over a sequence.<TAccumulate,TResult> 
 TResultaggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate, T, TAccumulate>> func, FunctionExpression<Function1<TAccumulate, TResult>> selector) Applies an accumulator function over a sequence.booleanall(FunctionExpression<Predicate1<T>> predicate) Determines whether all the elements of a sequence satisfy a condition.booleanany(FunctionExpression<Predicate1<T>> predicate) Determines whether any element of a sequence satisfies a condition.averageBigDecimal(FunctionExpression<BigDecimalFunction1<T>> selector) Computes the average of a sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.doubleaverageDouble(FunctionExpression<DoubleFunction1<T>> selector) Computes the average of a sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.floataverageFloat(FunctionExpression<FloatFunction1<T>> selector) Computes the average of a sequence of Float values that is obtained by invoking a projection function on each element of the input sequence.intaverageInteger(FunctionExpression<IntegerFunction1<T>> selector) Computes the average of a sequence of int values that is obtained by invoking a projection function on each element of the input sequence.longaverageLong(FunctionExpression<LongFunction1<T>> selector) Computes the average of a sequence of long values that is obtained by invoking a projection function on each element of the input sequence.Computes the average of a sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.Computes the average of a sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.Computes the average of a sequence of nullable Float values that is obtained by invoking a projection function on each element of the input sequence.Computes the average of a sequence of nullable int values that is obtained by invoking a projection function on each element of the input sequence.averageNullableLong(FunctionExpression<NullableLongFunction1<T>> selector) Computes the average of a sequence of nullable long values that is obtained by invoking a projection function on each element of the input sequence.<T2> Queryable<T2>Converts the elements of this Enumerable to the specified type.concat(Enumerable<T> source2) Concatenates two sequences.intcount(FunctionExpression<Predicate1<T>> predicate) Returns the number of elements in the specified sequence that satisfies a condition.Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.distinct()Returns distinct elements from a sequence by using the default equality comparer to compare values.distinct(EqualityComparer<T> comparer) Returns distinct elements from a sequence by using a specified EqualityComparer<TSource> to compare values.except(Enumerable<T> enumerable) Produces the set difference of two sequences by using the default equality comparer to compare values, eliminate duplicates.except(Enumerable<T> enumerable, boolean all) Produces the set difference of two sequences by using the default equality comparer to compare values, usingallto indicate whether to eliminate duplicates.except(Enumerable<T> enumerable, EqualityComparer<T> comparer) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values, eliminate duplicates.except(Enumerable<T> enumerable, EqualityComparer<T> comparer, boolean all) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values, usingallto indicate whether to eliminate duplicates.first(FunctionExpression<Predicate1<T>> predicate) Returns the first element of a sequence that satisfies a specified condition.firstOrDefault(FunctionExpression<Predicate1<T>> predicate) Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.groupBy(FunctionExpression<Function1<T, TKey>> keySelector) Groups the elements of a sequence according to a specified key selector function.groupBy(FunctionExpression<Function1<T, TKey>> keySelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.groupBy(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function1<T, TElement>> elementSelector) Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.groupBy(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function1<T, TElement>> elementSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence and projects the elements for each group by using a specified function.<TKey,TElement, TResult> 
 Queryable<TResult>groupBy(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function1<T, TElement>> elementSelector, FunctionExpression<Function2<TKey, Enumerable<TElement>, TResult>> resultSelector) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.<TKey,TElement, TResult> 
 Queryable<TResult>groupBy(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function1<T, TElement>> elementSelector, FunctionExpression<Function2<TKey, Enumerable<TElement>, TResult>> resultSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.<TKey,TResult> 
 Queryable<TResult>groupByK(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<T>, TResult>> resultSelector) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.<TKey,TResult> 
 Queryable<TResult>groupByK(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<T>, TResult>> resultSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.<TInner,TKey, TResult> 
 Queryable<TResult>groupJoin(Enumerable<TInner> inner, FunctionExpression<Function1<T, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<T, Enumerable<TInner>, TResult>> resultSelector) Correlates the elements of two sequences based on key equality and groups the results.<TInner,TKey, TResult> 
 Queryable<TResult>groupJoin(Enumerable<TInner> inner, FunctionExpression<Function1<T, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<T, Enumerable<TInner>, TResult>> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on key equality and groups the results.intersect(Enumerable<T> enumerable) Produces the set intersection of two sequences by using the default equality comparer to compare values, eliminate duplicates.(Defined by Queryable.)intersect(Enumerable<T> enumerable, boolean all) Produces the set intersection of two sequences by using the default equality comparer to compare values, usingallto indicate whether to eliminate duplicates.intersect(Enumerable<T> enumerable, EqualityComparer<T> comparer) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values, eliminate duplicates.intersect(Enumerable<T> enumerable, EqualityComparer<T> comparer, boolean all) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values, usingallto indicate whether to eliminate duplicates.<TInner,TKey, TResult> 
 Queryable<TResult>join(Enumerable<TInner> inner, FunctionExpression<Function1<T, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<T, TInner, TResult>> resultSelector) Correlates the elements of two sequences based on matching keys.<TInner,TKey, TResult> 
 Queryable<TResult>join(Enumerable<TInner> inner, FunctionExpression<Function1<T, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<T, TInner, TResult>> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on matching keys.last(FunctionExpression<Predicate1<T>> predicate) Returns the last element of a sequence that satisfies a specified condition.lastOrDefault(FunctionExpression<Predicate1<T>> predicate) Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.longlongCount(FunctionExpression<Predicate1<T>> predicate) Returns an long that represents the number of elements in a sequence that satisfy a condition.<TResult extends Comparable<TResult>>
 @Nullable TResultmax(FunctionExpression<Function1<T, TResult>> selector) Invokes a projection function on each element of a genericIQueryable<TSource>and returns the maximum resulting value.<TResult extends Comparable<TResult>>
 @Nullable TResultmin(FunctionExpression<Function1<T, TResult>> selector) Invokes a projection function on each element of a genericIQueryable<TSource>and returns the minimum resulting value.<TResult> Queryable<TResult>Filters the elements of an IQueryable based on a specified type.<TKey extends Comparable>
 OrderedQueryable<T>orderBy(FunctionExpression<Function1<T, TKey>> keySelector) Sorts the elements of a sequence in ascending order according to a key.<TKey> OrderedQueryable<T>orderBy(FunctionExpression<Function1<T, TKey>> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in ascending order by using a specified comparer.<TKey extends Comparable>
 OrderedQueryable<T>orderByDescending(FunctionExpression<Function1<T, TKey>> keySelector) Sorts the elements of a sequence in descending order according to a key.<TKey> OrderedQueryable<T>orderByDescending(FunctionExpression<Function1<T, TKey>> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in descending order by using a specified comparer.voidreplay(QueryableFactory<T> factory) reverse()Inverts the order of the elements in a sequence.<TResult> Queryable<TResult>select(FunctionExpression<Function1<T, TResult>> selector) Projects each element of a sequence into a new form.<TResult> Queryable<TResult>selectMany(FunctionExpression<Function1<T, Enumerable<TResult>>> selector) Projects each element of a sequence to anEnumerable<TSource>and combines the resulting sequences into one sequence.<TCollection,TResult> 
 Queryable<TResult>selectMany(FunctionExpression<Function2<T, Integer, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<T, TCollection, TResult>> resultSelector) Projects each element of a sequence to anEnumerable<TSource>that incorporates the index of the source element that produced it.<TCollection,TResult> 
 Queryable<TResult>selectManyN(FunctionExpression<Function1<T, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<T, TCollection, TResult>> resultSelector) Projects each element of a sequence to anEnumerable<TSource>and invokes a result selector function on each element therein.<TResult> Queryable<TResult>selectManyN(FunctionExpression<Function2<T, Integer, Enumerable<TResult>>> selector) Projects each element of a sequence to anEnumerable<TSource>and combines the resulting sequences into one sequence.<TResult> Queryable<TResult>selectN(FunctionExpression<Function2<T, Integer, TResult>> selector) Projects each element of a sequence into a new form by incorporating the element's index.single(FunctionExpression<Predicate1<T>> predicate) Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.singleOrDefault(FunctionExpression<Predicate1<T>> predicate) Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.skip(int count) Bypasses a specified number of elements in a sequence and then returns the remaining elements.skipWhile(FunctionExpression<Predicate1<T>> predicate) Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.skipWhileN(FunctionExpression<Predicate2<T, Integer>> predicate) Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.sumBigDecimal(FunctionExpression<BigDecimalFunction1<T>> selector) Computes the sum of the sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.doublesumDouble(FunctionExpression<DoubleFunction1<T>> selector) Computes the sum of the sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.floatsumFloat(FunctionExpression<FloatFunction1<T>> selector) Computes the sum of the sequence of Float values that is obtained by invoking a projection function on each element of the input sequence.intsumInteger(FunctionExpression<IntegerFunction1<T>> selector) Computes the sum of the sequence of int values that is obtained by invoking a projection function on each element of the input sequence.longsumLong(FunctionExpression<LongFunction1<T>> selector) Computes the sum of the sequence of long values that is obtained by invoking a projection function on each element of the input sequence.Computes the sum of the sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.sumNullableDouble(FunctionExpression<NullableDoubleFunction1<T>> selector) Computes the sum of the sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.sumNullableFloat(FunctionExpression<NullableFloatFunction1<T>> selector) Computes the sum of the sequence of nullable Float values that is obtained by invoking a projection function on each element of the input sequence.Computes the sum of the sequence of nullable int values that is obtained by invoking a projection function on each element of the input sequence.sumNullableLong(FunctionExpression<NullableLongFunction1<T>> selector) Computes the sum of the sequence of nullable long values that is obtained by invoking a projection function on each element of the input sequence.take(int count) Returns a specified number of contiguous elements from the start of a sequence.takeWhile(FunctionExpression<Predicate1<T>> predicate) Returns elements from a sequence as long as a specified condition is true.takeWhileN(FunctionExpression<Predicate2<T, Integer>> predicate) Returns elements from a sequence as long as a specified condition is true.union(Enumerable<T> source1) Produces the set union of two sequences by using the default equality comparer.union(Enumerable<T> source1, EqualityComparer<T> comparer) Produces the set union of two sequences by using a specifiedEqualityComparer<TSource>.where(FunctionExpression<? extends Predicate1<T>> predicate) Filters a sequence of values based on a predicate.whereN(FunctionExpression<? extends Predicate2<T, Integer>> predicate) Filters a sequence of values based on a predicate.<T1,TResult> 
 Queryable<TResult>zip(Enumerable<T1> source1, FunctionExpression<Function2<T, T1, TResult>> resultSelector) Merges two sequences by using the specified predicate function.Methods inherited from interface org.apache.calcite.linq4j.EnumerableasQueryableMethods inherited from interface org.apache.calcite.linq4j.ExtendedEnumerableaggregate, aggregate, aggregate, all, any, any, asEnumerable, asofJoin, average, average, average, average, average, average, average, average, average, average, contains, contains, correlateJoin, count, count, defaultIfEmpty, elementAt, elementAtOrDefault, first, first, firstOrDefault, firstOrDefault, foreach, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupJoin, groupJoin, hashJoin, hashJoin, hashJoin, hashJoin, into, 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, orderBy, orderBy, orderByDescending, orderByDescending, removeAll, select, select, selectMany, selectMany, selectMany, selectMany, sequenceEqual, sequenceEqual, single, single, singleOrDefault, skipWhile, skipWhile, sortedGroupBy, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, takeWhile, takeWhile, toList, toLookup, toLookup, toLookup, toLookup, toMap, toMap, toMap, toMap, where, where, zipMethods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface org.apache.calcite.linq4j.RawEnumerableenumeratorMethods inherited from interface org.apache.calcite.linq4j.RawQueryablegetElementType, getExpression, getProvider
- 
Method Details- 
replay
- 
aggregateApplies an accumulator function over a sequence.
- 
aggregate<TAccumulate> TAccumulate aggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate, T, TAccumulate>> selector) Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
- 
aggregate<TAccumulate,TResult> TResult aggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate, T, TAccumulate>> func, FunctionExpression<Function1<TAccumulate, TResult>> selector) Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
- 
allDetermines whether all the elements of a sequence satisfy a condition.
- 
anyDetermines whether any element of a sequence satisfies a condition.
- 
averageBigDecimalComputes the average of a sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageNullableBigDecimalComputes the average of a sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageDoubleComputes the average of a sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageNullableDoubleComputes the average of a sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageIntegerComputes the average of a sequence of int values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageNullableIntegerComputes the average of a sequence of nullable int values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageFloatComputes the average of a sequence of Float values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageNullableFloatComputes the average of a sequence of nullable Float values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageLongComputes the average of a sequence of long values that is obtained by invoking a projection function on each element of the input sequence.
- 
averageNullableLongComputes the average of a sequence of nullable long values that is obtained by invoking a projection function on each element of the input sequence.
- 
concatConcatenates two sequences.- Specified by:
- concatin interface- ExtendedEnumerable<TSource>
 
- 
countReturns the number of elements in the specified sequence that satisfies a condition.
- 
defaultIfEmptyReturns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.- Specified by:
- defaultIfEmptyin interface- ExtendedEnumerable<TSource>
 
- 
distinctReturns distinct elements from a sequence by using the default equality comparer to compare values.- Specified by:
- distinctin interface- ExtendedEnumerable<TSource>
 
- 
distinctReturns distinct elements from a sequence by using a specified EqualityComparer<TSource> to compare values.- Specified by:
- distinctin interface- ExtendedEnumerable<TSource>
 
- 
exceptProduces the set difference of two sequences by using the default equality comparer to compare values, eliminate duplicates. (Defined by Enumerable.)- Specified by:
- exceptin interface- ExtendedEnumerable<TSource>
 
- 
exceptProduces the set difference of two sequences by using the default equality comparer to compare values, usingallto indicate whether to eliminate duplicates. (Defined by Enumerable.)- Specified by:
- exceptin interface- ExtendedEnumerable<TSource>
 
- 
exceptProduces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values, eliminate duplicates.- Specified by:
- exceptin interface- ExtendedEnumerable<TSource>
 
- 
exceptProduces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values, usingallto indicate whether to eliminate duplicates.- Specified by:
- exceptin interface- ExtendedEnumerable<TSource>
 
- 
firstReturns the first element of a sequence that satisfies a specified condition.
- 
firstOrDefaultReturns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.
- 
groupByGroups the elements of a sequence according to a specified key selector function.
- 
groupBy<TKey> Queryable<Grouping<TKey,T>> groupBy(FunctionExpression<Function1<T, TKey>> keySelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.
- 
groupBy<TKey,TElement> Queryable<Grouping<TKey,TElement>> groupBy(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function1<T, TElement>> elementSelector) Groups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.
- 
groupBy<TKey,TElement> Queryable<Grouping<TKey,TElement>> groupBy(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function1<T, TElement>> elementSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence and projects the elements for each group by using a specified function. Key values are compared by using a specified comparer.
- 
groupByK<TKey,TResult> Queryable<TResult> groupByK(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<T>, TResult>> resultSelector) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key.NOTE: Renamed from groupByto distinguish fromgroupBy(org.apache.calcite.linq4j.tree.FunctionExpression, org.apache.calcite.linq4j.tree.FunctionExpression), which has the same erasure.
- 
groupByK<TKey,TResult> Queryable<TResult> groupByK(FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<T>, TResult>> resultSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Keys are compared by using a specified comparer.
- 
groupBy<TKey,TElement, Queryable<TResult> groupByTResult> (FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function1<T, TElement>> elementSelector, FunctionExpression<Function2<TKey, Enumerable<TElement>, TResult>> resultSelector) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. The elements of each group are projected by using a specified function.
- 
groupBy<TKey,TElement, Queryable<TResult> groupByTResult> (FunctionExpression<Function1<T, TKey>> keySelector, FunctionExpression<Function1<T, TElement>> elementSelector, FunctionExpression<Function2<TKey, Enumerable<TElement>, TResult>> resultSelector, EqualityComparer<TKey> comparer) Groups the elements of a sequence according to a specified key selector function and creates a result value from each group and its key. Keys are compared by using a specified comparer and the elements of each group are projected by using a specified function.
- 
groupJoin<TInner,TKey, Queryable<TResult> groupJoinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<T, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<T, Enumerable<TInner>, TResult>> resultSelector) Correlates the elements of two sequences based on key equality and groups the results. The default equality comparer is used to compare keys.
- 
groupJoin<TInner,TKey, Queryable<TResult> groupJoinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<T, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<T, Enumerable<TInner>, TResult>> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on key equality and groups the results. A specifiedEqualityComparer<TSource>is used to compare keys.
- 
intersectProduces the set intersection of two sequences by using the default equality comparer to compare values, eliminate duplicates.(Defined by Queryable.)- Specified by:
- intersectin interface- ExtendedEnumerable<TSource>
 
- 
intersectProduces the set intersection of two sequences by using the default equality comparer to compare values, usingallto indicate whether to eliminate duplicates. (Defined by Queryable.)- Specified by:
- intersectin interface- ExtendedEnumerable<TSource>
 
- 
intersectProduces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values, eliminate duplicates.- Specified by:
- intersectin interface- ExtendedEnumerable<TSource>
 
- 
intersectProduces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values, usingallto indicate whether to eliminate duplicates.- Specified by:
- intersectin interface- ExtendedEnumerable<TSource>
 
- 
join<TInner,TKey, Queryable<TResult> joinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<T, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<T, TInner, TResult>> resultSelector) Correlates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.
- 
join<TInner,TKey, Queryable<TResult> joinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<T, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<T, TInner, TResult>> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on matching keys. A specifiedEqualityComparer<TSource>is used to compare keys.
- 
lastReturns the last element of a sequence that satisfies a specified condition.
- 
lastOrDefaultReturns the last element of a sequence that satisfies a condition or a default value if no such element is found.
- 
longCountReturns an long that represents the number of elements in a sequence that satisfy a condition.
- 
max<TResult extends Comparable<TResult>> @Nullable TResult max(FunctionExpression<Function1<T, TResult>> selector) Invokes a projection function on each element of a genericIQueryable<TSource>and returns the maximum resulting value.
- 
min<TResult extends Comparable<TResult>> @Nullable TResult min(FunctionExpression<Function1<T, TResult>> selector) Invokes a projection function on each element of a genericIQueryable<TSource>and returns the minimum resulting value.
- 
ofTypeFilters the elements of an IQueryable based on a specified type.The OfType method generates a MethodCallExpressionthat represents calling OfType itself as a constructed generic method. It then passes the MethodCallExpression to the CreateQuery(Expression) method of theQueryProviderrepresented by the Provider property of the source parameter.The query behavior that occurs as a result of executing an expression tree that represents calling OfType depends on the implementation of the type of the source parameter. The expected behavior is that it filters out any elements in source that are not of type TResult. NOTE: clazz parameter not present in C# LINQ; necessary because of Java type erasure. - Specified by:
- ofTypein interface- ExtendedEnumerable<TSource>
- Type Parameters:
- TResult- Target type
- Parameters:
- clazz- Target type
- Returns:
- Collection of T2
 
- 
castDescription copied from interface:ExtendedEnumerableConverts the elements of this Enumerable to the specified type.This method is implemented by using deferred execution. The immediate return value is an object that stores all the information that is required to perform the action. The query represented by this method is not executed until the object is enumerated either by calling its RawEnumerable.enumerator()method directly or by usingfor (... in ...).If an element cannot be cast to type TResult, the Enumerator.current()method will throw aClassCastExceptiona exception when the element it accessed. To obtain only those elements that can be cast to type TResult, use theExtendedEnumerable.ofType(Class)method instead.- Specified by:
- castin interface- ExtendedEnumerable<TSource>
- See Also:
 
- 
orderBy<TKey extends Comparable> OrderedQueryable<T> orderBy(FunctionExpression<Function1<T, TKey>> keySelector) Sorts the elements of a sequence in ascending order according to a key.
- 
orderBy<TKey> OrderedQueryable<T> orderBy(FunctionExpression<Function1<T, TKey>> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in ascending order by using a specified comparer.
- 
orderByDescending<TKey extends Comparable> OrderedQueryable<T> orderByDescending(FunctionExpression<Function1<T, TKey>> keySelector) Sorts the elements of a sequence in descending order according to a key.
- 
orderByDescending<TKey> OrderedQueryable<T> orderByDescending(FunctionExpression<Function1<T, TKey>> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in descending order by using a specified comparer.
- 
reverseInverts the order of the elements in a sequence.- Specified by:
- reversein interface- ExtendedEnumerable<TSource>
 
- 
selectProjects each element of a sequence into a new form.
- 
selectNProjects each element of a sequence into a new form by incorporating the element's index.NOTE: Renamed from selectbecause had same erasure asselect(org.apache.calcite.linq4j.tree.FunctionExpression).
- 
selectMany<TResult> Queryable<TResult> selectMany(FunctionExpression<Function1<T, Enumerable<TResult>>> selector) Projects each element of a sequence to anEnumerable<TSource>and combines the resulting sequences into one sequence.
- 
selectManyN<TResult> Queryable<TResult> selectManyN(FunctionExpression<Function2<T, Integer, Enumerable<TResult>>> selector) Projects each element of a sequence to anEnumerable<TSource>and combines the resulting sequences into one sequence. The index of each source element is used in the projected form of that element.NOTE: Renamed from selectManybecause had same erasure asselectMany(org.apache.calcite.linq4j.tree.FunctionExpression).
- 
selectMany<TCollection,TResult> Queryable<TResult> selectMany(FunctionExpression<Function2<T, Integer, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<T, TCollection, TResult>> resultSelector) Projects each element of a sequence to anEnumerable<TSource>that incorporates the index of the source element that produced it. A result selector function is invoked on each element of each intermediate sequence, and the resulting values are combined into a single, one-dimensional sequence and returned.
- 
selectManyN<TCollection,TResult> Queryable<TResult> selectManyN(FunctionExpression<Function1<T, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<T, TCollection, TResult>> resultSelector) Projects each element of a sequence to anEnumerable<TSource>and invokes a result selector function on each element therein. The resulting values from each intermediate sequence are combined into a single, one-dimensional sequence and returned.NOTE: Renamed from selectManybecause had same erasure asselectMany(org.apache.calcite.linq4j.tree.FunctionExpression, org.apache.calcite.linq4j.tree.FunctionExpression)
- 
singleReturns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
- 
singleOrDefaultT singleOrDefault()Returns the only element of a sequence, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.- Specified by:
- singleOrDefaultin interface- ExtendedEnumerable<TSource>
 
- 
singleOrDefaultReturns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
- 
skipBypasses a specified number of elements in a sequence and then returns the remaining elements.- Specified by:
- skipin interface- ExtendedEnumerable<TSource>
 
- 
skipWhileBypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
- 
skipWhileNBypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. The element's index is used in the logic of the predicate function.
- 
sumBigDecimalComputes the sum of the sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumNullableBigDecimalComputes the sum of the sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumDoubleComputes the sum of the sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumNullableDoubleComputes the sum of the sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumIntegerComputes the sum of the sequence of int values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumNullableIntegerComputes the sum of the sequence of nullable int values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumLongComputes the sum of the sequence of long values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumNullableLongComputes the sum of the sequence of nullable long values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumFloatComputes the sum of the sequence of Float values that is obtained by invoking a projection function on each element of the input sequence.
- 
sumNullableFloatComputes the sum of the sequence of nullable Float values that is obtained by invoking a projection function on each element of the input sequence.
- 
takeReturns a specified number of contiguous elements from the start of a sequence.- Specified by:
- takein interface- ExtendedEnumerable<TSource>
 
- 
takeWhileReturns elements from a sequence as long as a specified condition is true.
- 
takeWhileNReturns elements from a sequence as long as a specified condition is true. The element's index is used in the logic of the predicate function.
- 
unionProduces the set union of two sequences by using the default equality comparer.- Specified by:
- unionin interface- ExtendedEnumerable<TSource>
 
- 
unionProduces the set union of two sequences by using a specifiedEqualityComparer<TSource>.- Specified by:
- unionin interface- ExtendedEnumerable<TSource>
 
- 
whereFilters a sequence of values based on a predicate.
- 
whereNFilters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
- 
zip<T1,TResult> Queryable<TResult> zip(Enumerable<T1> source1, FunctionExpression<Function2<T, T1, TResult>> resultSelector) Merges two sequences by using the specified predicate function.
 
-