Class BaseQueryable<TSource>
- Type Parameters:
TSource
- Element type
- All Implemented Interfaces:
Iterable<TSource>
,Enumerable<TSource>
,ExtendedEnumerable<TSource>
,ExtendedOrderedEnumerable<TSource>
,ExtendedOrderedQueryable<TSource>
,OrderedEnumerable<TSource>
,OrderedQueryable<TSource>
,Queryable<TSource>
,RawEnumerable<TSource>
,RawQueryable<TSource>
- Direct Known Subclasses:
QueryProviderImpl.QueryableImpl
Queryable
.
The default implementation of enumerator()
calls the provider's
QueryProvider.executeQuery(Queryable)
method, but the derived class
can override.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Type
protected final @Nullable Expression
protected final QueryProvider
-
Constructor Summary
ModifierConstructorDescriptionprotected
BaseQueryable
(QueryProvider provider, Type elementType, @Nullable Expression expression) -
Method Summary
Modifier and TypeMethodDescriptionApplies an accumulator function over a sequence.<TAccumulate>
TAccumulateaggregate
(TAccumulate seed, FunctionExpression<Function2<TAccumulate, TSource, TAccumulate>> selector) <TAccumulate,
TResult>
TResultaggregate
(TAccumulate seed, FunctionExpression<Function2<TAccumulate, TSource, TAccumulate>> func, FunctionExpression<Function1<TAccumulate, TResult>> selector) <TAccumulate>
TAccumulateaggregate
(TAccumulate seed, FunctionExpression<Function2<TAccumulate, TSource, TAccumulate>> selector) Applies an accumulator function over a sequence.<TAccumulate,
TResult>
TResultaggregate
(TAccumulate seed, FunctionExpression<Function2<TAccumulate, TSource, TAccumulate>> func, FunctionExpression<Function1<TAccumulate, TResult>> selector) Applies an accumulator function over a sequence.boolean
all
(FunctionExpression<Predicate1<TSource>> predicate) boolean
all
(FunctionExpression<Predicate1<TSource>> predicate) Determines whether all the elements of a sequence satisfy a condition.boolean
any
(FunctionExpression<Predicate1<TSource>> predicate) boolean
any
(FunctionExpression<Predicate1<TSource>> predicate) Determines whether any element of a sequence satisfies a condition.Returns the input typed asEnumerable<TSource>
.Converts this Enumerable to a Queryable.Computes the average of a sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.double
averageDouble
(FunctionExpression<DoubleFunction1<TSource>> selector) double
averageDouble
(FunctionExpression<DoubleFunction1<TSource>> 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.float
averageFloat
(FunctionExpression<FloatFunction1<TSource>> selector) float
averageFloat
(FunctionExpression<FloatFunction1<TSource>> 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.int
averageInteger
(FunctionExpression<IntegerFunction1<TSource>> selector) int
averageInteger
(FunctionExpression<IntegerFunction1<TSource>> 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.long
averageLong
(FunctionExpression<LongFunction1<TSource>> selector) long
averageLong
(FunctionExpression<LongFunction1<TSource>> 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.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.<T2> Queryable<T2>
Converts the elements of this Enumerable to the specified type.concat
(Enumerable<TSource> source2) Concatenates two sequences.concat
(Enumerable<TSource> source2) Concatenates two sequences.int
count
(FunctionExpression<Predicate1<TSource>> func) int
count
(FunctionExpression<Predicate1<TSource>> 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.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()
Returns distinct elements from a sequence by using the default equality comparer to compare values.distinct
(EqualityComparer<TSource> comparer) Returns distinct elements from a sequence by using a specifiedEqualityComparer<TSource>
to compare values.distinct
(EqualityComparer<TSource> comparer) Returns distinct elements from a sequence by using a specified EqualityComparer<TSource> to compare values.Returns an enumerator that iterates through a collection.except
(Enumerable<TSource> enumerable1) Produces the set difference of two sequences by using the default equality comparer to compare values, eliminate duplicates.except
(Enumerable<TSource> enumerable1, boolean all) Produces the set difference of two sequences by using the default equality comparer to compare values, usingall
to indicate whether to eliminate duplicates.except
(Enumerable<TSource> enumerable1, EqualityComparer<TSource> comparer) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, eliminate duplicates.except
(Enumerable<TSource> enumerable1, EqualityComparer<TSource> comparer, boolean all) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, usingall
to indicate whether to eliminate duplicates.except
(Enumerable<TSource> enumerable) Produces the set difference of two sequences by using the default equality comparer to compare values, eliminate duplicates.except
(Enumerable<TSource> enumerable, boolean all) Produces the set difference of two sequences by using the default equality comparer to compare values, usingall
to indicate whether to eliminate duplicates.except
(Enumerable<TSource> enumerable, EqualityComparer<TSource> comparer) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, eliminate duplicates.except
(Enumerable<TSource> enumerable, EqualityComparer<TSource> comparer, boolean all) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, usingall
to indicate whether to eliminate duplicates.first
(FunctionExpression<Predicate1<TSource>> predicate) first
(FunctionExpression<Predicate1<TSource>> predicate) Returns the first element of a sequence that satisfies a specified condition.firstOrDefault
(FunctionExpression<Predicate1<TSource>> predicate) firstOrDefault
(FunctionExpression<Predicate1<TSource>> predicate) Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.Gets the type of the element(s) that are returned when the expression tree associated with this Queryable is executed.@Nullable Expression
Gets the expression tree that is associated with this Queryable.Gets the query provider that is associated with this data source.getThis()
Derived classes might wish to override this method to return the "outer" enumerable.protected OrderedQueryable<TSource>
groupBy
(FunctionExpression<Function1<TSource, TKey>> keySelector) groupBy
(FunctionExpression<Function1<TSource, TKey>> keySelector, EqualityComparer<TKey> comparer) groupBy
(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, TElement>> elementSelector) groupBy
(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, TElement>> elementSelector, EqualityComparer<TKey> comparer) <TKey,
TElement, TResult>
Queryable<TResult>groupBy
(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, TElement>> elementSelector, FunctionExpression<Function2<TKey, Enumerable<TElement>, TResult>> resultSelector) <TKey,
TElement, TResult>
Queryable<TResult>groupBy
(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, TElement>> elementSelector, FunctionExpression<Function2<TKey, Enumerable<TElement>, TResult>> resultSelector, EqualityComparer<TKey> comparer) groupBy
(FunctionExpression<Function1<TSource, TKey>> keySelector) Groups the elements of a sequence according to a specified key selector function.groupBy
(FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<TSource>, TResult>> resultSelector) <TKey,
TResult>
Queryable<TResult>groupByK
(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<TSource>, TResult>> resultSelector, EqualityComparer<TKey> comparer) <TKey,
TResult>
Queryable<TResult>groupByK
(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<TSource>, 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<TSource, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<TSource>, 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<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, Enumerable<TInner>, TResult>> resultSelector) <TInner,
TKey, TResult>
Queryable<TResult>groupJoin
(Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, Enumerable<TInner>, TResult>> resultSelector, EqualityComparer<TKey> comparer) <TInner,
TKey, TResult>
Queryable<TResult>groupJoin
(Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, 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<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, Enumerable<TInner>, TResult>> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on key equality and groups the results.intersect
(Enumerable<TSource> source1) Produces the set intersection of two sequences by using the default equality comparer to compare values, eliminate duplicates.intersect
(Enumerable<TSource> source1, boolean all) Produces the set intersection of two sequences by using the default equality comparer to compare values, usingall
to indicate whether to eliminate duplicates.intersect
(Enumerable<TSource> source1, EqualityComparer<TSource> comparer) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, eliminate duplicates.intersect
(Enumerable<TSource> source1, EqualityComparer<TSource> comparer, boolean all) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, usingall
to indicate whether to eliminate duplicates.intersect
(Enumerable<TSource> enumerable) Produces the set intersection of two sequences by using the default equality comparer to compare values, eliminate duplicates.(Defined by Queryable.)intersect
(Enumerable<TSource> enumerable, boolean all) Produces the set intersection of two sequences by using the default equality comparer to compare values, usingall
to indicate whether to eliminate duplicates.intersect
(Enumerable<TSource> enumerable, EqualityComparer<TSource> comparer) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, eliminate duplicates.intersect
(Enumerable<TSource> enumerable, EqualityComparer<TSource> comparer, boolean all) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, usingall
to indicate whether to eliminate duplicates.iterator()
<TInner,
TKey, TResult>
Queryable<TResult>join
(Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, TInner, TResult>> resultSelector) <TInner,
TKey, TResult>
Queryable<TResult>join
(Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, TInner, TResult>> resultSelector, EqualityComparer<TKey> comparer) <TInner,
TKey, TResult>
Queryable<TResult>join
(Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, TInner, TResult>> resultSelector) Correlates the elements of two sequences based on matching keys.<TInner,
TKey, TResult>
Queryable<TResult>join
(Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, TInner, TResult>> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on matching keys.last
(FunctionExpression<Predicate1<TSource>> predicate) last
(FunctionExpression<Predicate1<TSource>> predicate) Returns the last element of a sequence that satisfies a specified condition.lastOrDefault
(FunctionExpression<Predicate1<TSource>> predicate) lastOrDefault
(FunctionExpression<Predicate1<TSource>> predicate) Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.long
longCount
(FunctionExpression<Predicate1<TSource>> predicate) long
longCount
(FunctionExpression<Predicate1<TSource>> predicate) Returns an long that represents the number of elements in a sequence that satisfy a condition.<TResult extends Comparable<TResult>>
TResultmax
(FunctionExpression<Function1<TSource, TResult>> selector) <TResult extends Comparable<TResult>>
@Nullable TResultmax
(FunctionExpression<Function1<TSource, TResult>> selector) Invokes a projection function on each element of a genericIQueryable<TSource>
and returns the maximum resulting value.<TResult extends Comparable<TResult>>
TResultmin
(FunctionExpression<Function1<TSource, TResult>> selector) <TResult extends Comparable<TResult>>
@Nullable TResultmin
(FunctionExpression<Function1<TSource, 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 Enumerable based on a specified type.<TResult> Queryable<TResult>
Filters the elements of an IQueryable based on a specified type.<TKey extends Comparable>
OrderedQueryable<TSource>orderBy
(FunctionExpression<Function1<TSource, TKey>> keySelector) <TKey> OrderedQueryable<TSource>
orderBy
(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) <TKey extends Comparable>
OrderedQueryable<TSource>orderBy
(FunctionExpression<Function1<TSource, TKey>> keySelector) Sorts the elements of a sequence in ascending order according to a key.<TKey> OrderedQueryable<TSource>
orderBy
(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in ascending order by using a specified comparer.<TKey extends Comparable>
OrderedQueryable<TSource>orderByDescending
(FunctionExpression<Function1<TSource, TKey>> keySelector) <TKey> OrderedQueryable<TSource>
orderByDescending
(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) <TKey extends Comparable>
OrderedQueryable<TSource>orderByDescending
(FunctionExpression<Function1<TSource, TKey>> keySelector) Sorts the elements of a sequence in descending order according to a key.<TKey> OrderedQueryable<TSource>
orderByDescending
(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in descending order by using a specified comparer.reverse()
Inverts the order of the elements in a sequence.reverse()
Inverts the order of the elements in a sequence.<TResult> Queryable<TResult>
select
(FunctionExpression<Function1<TSource, TResult>> selector) <TResult> Queryable<TResult>
select
(FunctionExpression<Function1<TSource, TResult>> selector) Projects each element of a sequence into a new form.<TResult> Queryable<TResult>
selectMany
(FunctionExpression<Function1<TSource, Enumerable<TResult>>> selector) <TResult> Queryable<TResult>
selectMany
(FunctionExpression<Function1<TSource, 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<TSource, Integer, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<TSource, TCollection, TResult>> resultSelector) <TCollection,
TResult>
Queryable<TResult>selectMany
(FunctionExpression<Function2<TSource, Integer, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<TSource, 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<TSource, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<TSource, TCollection, TResult>> resultSelector) <TCollection,
TResult>
Queryable<TResult>selectManyN
(FunctionExpression<Function1<TSource, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<TSource, 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<TSource, Integer, Enumerable<TResult>>> selector) <TResult> Queryable<TResult>
selectManyN
(FunctionExpression<Function2<TSource, 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<TSource, Integer, TResult>> selector) <TResult> Queryable<TResult>
selectN
(FunctionExpression<Function2<TSource, Integer, TResult>> selector) Projects each element of a sequence into a new form by incorporating the element's index.single
(FunctionExpression<Predicate1<TSource>> predicate) single
(FunctionExpression<Predicate1<TSource>> 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<TSource>> predicate) singleOrDefault
(FunctionExpression<Predicate1<TSource>> 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.skip
(int count) Bypasses a specified number of elements in a sequence and then returns the remaining elements.skipWhile
(FunctionExpression<Predicate1<TSource>> predicate) skipWhile
(FunctionExpression<Predicate1<TSource>> predicate) Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.skipWhileN
(FunctionExpression<Predicate2<TSource, Integer>> predicate) skipWhileN
(FunctionExpression<Predicate2<TSource, Integer>> predicate) Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.sumBigDecimal
(FunctionExpression<BigDecimalFunction1<TSource>> selector) sumBigDecimal
(FunctionExpression<BigDecimalFunction1<TSource>> 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.double
sumDouble
(FunctionExpression<DoubleFunction1<TSource>> selector) double
sumDouble
(FunctionExpression<DoubleFunction1<TSource>> 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.float
sumFloat
(FunctionExpression<FloatFunction1<TSource>> selector) float
sumFloat
(FunctionExpression<FloatFunction1<TSource>> 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.int
sumInteger
(FunctionExpression<IntegerFunction1<TSource>> selector) int
sumInteger
(FunctionExpression<IntegerFunction1<TSource>> 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.long
sumLong
(FunctionExpression<LongFunction1<TSource>> selector) long
sumLong
(FunctionExpression<LongFunction1<TSource>> 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.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.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.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.take
(int count) Returns a specified number of contiguous elements from the start of a sequence.takeWhile
(FunctionExpression<Predicate1<TSource>> predicate) takeWhile
(FunctionExpression<Predicate1<TSource>> predicate) Returns elements from a sequence as long as a specified condition is true.takeWhileN
(FunctionExpression<Predicate2<TSource, Integer>> predicate) takeWhileN
(FunctionExpression<Predicate2<TSource, Integer>> predicate) Returns elements from a sequence as long as a specified condition is true.<TKey extends Comparable<TKey>>
OrderedQueryable<TSource>thenBy
(FunctionExpression<Function1<TSource, TKey>> keySelector) Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.<TKey> OrderedQueryable<TSource>
thenBy
(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) Performs a subsequent ordering of the elements in a sequence in ascending order according to a key, using a specified comparator.<TKey extends Comparable<TKey>>
OrderedQueryable<TSource>thenByDescending
(FunctionExpression<Function1<TSource, TKey>> keySelector) Performs a subsequent ordering of the elements in a sequence in descending order according to a key.<TKey> OrderedQueryable<TSource>
thenByDescending
(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) Performs a subsequent ordering of the elements in a sequence in descending order according to a key, using a specified comparator.union
(Enumerable<TSource> source1) Produces the set union of two sequences by using the default equality comparer.union
(Enumerable<TSource> source1, EqualityComparer<TSource> comparer) Produces the set union of two sequences by using a specifiedEqualityComparer<TSource>
.union
(Enumerable<TSource> source1) Produces the set union of two sequences by using the default equality comparer.union
(Enumerable<TSource> source1, EqualityComparer<TSource> comparer) Produces the set union of two sequences by using a specifiedEqualityComparer<TSource>
.where
(FunctionExpression<? extends Predicate1<TSource>> predicate) where
(FunctionExpression<? extends Predicate1<TSource>> predicate) Filters a sequence of values based on a predicate.whereN
(FunctionExpression<? extends Predicate2<TSource, Integer>> predicate) whereN
(FunctionExpression<? extends Predicate2<TSource, Integer>> predicate) Filters a sequence of values based on a predicate.<T1,
TResult>
Queryable<TResult>zip
(Enumerable<T1> source1, FunctionExpression<Function2<TSource, T1, TResult>> resultSelector) <T1,
TResult>
Queryable<TResult>zip
(Enumerable<T1> source1, FunctionExpression<Function2<TSource, T1, TResult>> resultSelector) Merges two sequences by using the specified predicate function.Methods inherited from class org.apache.calcite.linq4j.DefaultEnumerable
aggregate, aggregate, aggregate, all, any, any, asofJoin, asOrderedQueryable, average, average, average, average, average, average, average, average, average, average, contains, contains, correlateJoin, count, count, createOrderedEnumerable, defaultIfEmpty, elementAt, elementAtOrDefault, first, first, firstOrDefault, firstOrDefault, foreach, getThisOrdered, 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, singleOrDefault, skipWhile, skipWhile, sortedGroupBy, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, takeWhile, takeWhile, thenBy, thenBy, thenByDescending, thenByDescending, toList, toLookup, toLookup, toLookup, toLookup, toMap, toMap, toMap, toMap, where, where, zip
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, 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, zip
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
provider
-
elementType
-
expression
-
-
Constructor Details
-
BaseQueryable
-
-
Method Details
-
getProvider
Description copied from interface:RawQueryable
Gets the query provider that is associated with this data source. -
getElementType
Description copied from interface:RawQueryable
Gets the type of the element(s) that are returned when the expression tree associated with this Queryable is executed. -
getExpression
Description copied from interface:RawQueryable
Gets the expression tree that is associated with this Queryable.- Returns:
- null if the expression is not available
-
iterator
-
enumerator
Description copied from interface:RawEnumerable
Returns an enumerator that iterates through a collection. -
aggregate
Applies an accumulator function over a sequence. -
aggregate
<TAccumulate> TAccumulate aggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate, TSource, 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, TSource, 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. -
all
Determines whether all the elements of a sequence satisfy a condition. -
any
Determines whether any element of a sequence satisfies a condition. -
averageBigDecimal
Computes the average of a sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence. -
averageNullableBigDecimal
BigDecimal averageNullableBigDecimal(FunctionExpression<NullableBigDecimalFunction1<TSource>> selector) 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. -
averageDouble
Computes the average of a sequence of Double values that is obtained by invoking a projection function on each element of the input sequence. -
averageNullableDouble
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. -
averageInteger
Computes the average of a sequence of int values that is obtained by invoking a projection function on each element of the input sequence. -
averageNullableInteger
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. -
averageFloat
Computes the average of a sequence of Float values that is obtained by invoking a projection function on each element of the input sequence. -
averageNullableFloat
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. -
averageLong
Computes the average of a sequence of long values that is obtained by invoking a projection function on each element of the input sequence. -
averageNullableLong
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. -
concat
Concatenates two sequences.- Specified by:
concat
in interfaceExtendedEnumerable<TSource>
-
count
Returns the number of elements in the specified sequence that satisfies a condition. -
defaultIfEmpty
Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.- Specified by:
defaultIfEmpty
in interfaceExtendedEnumerable<TSource>
-
distinct
Returns distinct elements from a sequence by using the default equality comparer to compare values.- Specified by:
distinct
in interfaceExtendedEnumerable<TSource>
-
distinct
Returns distinct elements from a sequence by using a specified EqualityComparer<TSource> to compare values.- Specified by:
distinct
in interfaceExtendedEnumerable<TSource>
-
except
Produces the set difference of two sequences by using the default equality comparer to compare values, eliminate duplicates. (Defined by Enumerable.)- Specified by:
except
in interfaceExtendedEnumerable<TSource>
-
except
Produces the set difference of two sequences by using the default equality comparer to compare values, usingall
to indicate whether to eliminate duplicates. (Defined by Enumerable.)- Specified by:
except
in interfaceExtendedEnumerable<TSource>
-
except
Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, eliminate duplicates.- Specified by:
except
in interfaceExtendedEnumerable<TSource>
-
except
Queryable<TSource> except(Enumerable<TSource> enumerable, EqualityComparer<TSource> comparer, boolean all) Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, usingall
to indicate whether to eliminate duplicates.- Specified by:
except
in interfaceExtendedEnumerable<TSource>
-
first
Returns the first element of a sequence that satisfies a specified condition. -
firstOrDefault
Returns the first element of a sequence that satisfies a specified condition or a default value if no such element is found. -
groupBy
<TKey> Queryable<Grouping<TKey,TSource>> groupBy(FunctionExpression<Function1<TSource, TKey>> keySelector) Groups the elements of a sequence according to a specified key selector function. -
groupBy
<TKey> Queryable<Grouping<TKey,TSource>> groupBy(FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<TSource>, 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
groupBy
to 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<TSource, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<TSource>, 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<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, 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<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, 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<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, 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<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, 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. -
intersect
Produces the set intersection of two sequences by using the default equality comparer to compare values, eliminate duplicates.(Defined by Queryable.)- Specified by:
intersect
in interfaceExtendedEnumerable<TSource>
-
intersect
Produces the set intersection of two sequences by using the default equality comparer to compare values, usingall
to indicate whether to eliminate duplicates. (Defined by Queryable.)- Specified by:
intersect
in interfaceExtendedEnumerable<TSource>
-
intersect
Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, eliminate duplicates.- Specified by:
intersect
in interfaceExtendedEnumerable<TSource>
-
intersect
Queryable<TSource> intersect(Enumerable<TSource> enumerable, EqualityComparer<TSource> comparer, boolean all) Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, usingall
to indicate whether to eliminate duplicates.- Specified by:
intersect
in interfaceExtendedEnumerable<TSource>
-
join
<TInner,TKey, Queryable<TResult> joinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, 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<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, TInner, TResult>> resultSelector, EqualityComparer<TKey> comparer) Correlates the elements of two sequences based on matching keys. A specifiedEqualityComparer<TSource>
is used to compare keys. -
last
Returns the last element of a sequence that satisfies a specified condition. -
lastOrDefault
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found. -
longCount
Returns 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<TSource, 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<TSource, TResult>> selector) Invokes a projection function on each element of a genericIQueryable<TSource>
and returns the minimum resulting value. -
ofType
Filters the elements of an IQueryable based on a specified type.The OfType method generates a
MethodCallExpression
that represents calling OfType itself as a constructed generic method. It then passes the MethodCallExpression to the CreateQuery(Expression) method of theQueryProvider
represented 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:
ofType
in interfaceExtendedEnumerable<TSource>
- Type Parameters:
TResult
- Target type- Parameters:
clazz
- Target type- Returns:
- Collection of T2
-
cast
Description copied from interface:ExtendedEnumerable
Converts 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 aClassCastException
a 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:
cast
in interfaceExtendedEnumerable<TSource>
- See Also:
-
orderBy
<TKey extends Comparable> OrderedQueryable<TSource> orderBy(FunctionExpression<Function1<TSource, TKey>> keySelector) Sorts the elements of a sequence in ascending order according to a key. -
orderBy
<TKey> OrderedQueryable<TSource> orderBy(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in ascending order by using a specified comparer. -
orderByDescending
<TKey extends Comparable> OrderedQueryable<TSource> orderByDescending(FunctionExpression<Function1<TSource, TKey>> keySelector) Sorts the elements of a sequence in descending order according to a key. -
orderByDescending
<TKey> OrderedQueryable<TSource> orderByDescending(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) Sorts the elements of a sequence in descending order by using a specified comparer. -
reverse
Inverts the order of the elements in a sequence.- Specified by:
reverse
in interfaceExtendedEnumerable<TSource>
-
select
Projects each element of a sequence into a new form. -
selectN
<TResult> Queryable<TResult> selectN(FunctionExpression<Function2<TSource, Integer, TResult>> selector) Projects each element of a sequence into a new form by incorporating the element's index.NOTE: Renamed from
select
because had same erasure asselect(org.apache.calcite.linq4j.tree.FunctionExpression)
. -
selectMany
<TResult> Queryable<TResult> selectMany(FunctionExpression<Function1<TSource, 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<TSource, 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
selectMany
because had same erasure asselectMany(org.apache.calcite.linq4j.tree.FunctionExpression)
. -
selectMany
<TCollection,TResult> Queryable<TResult> selectMany(FunctionExpression<Function2<TSource, Integer, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<TSource, 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<TSource, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<TSource, 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
selectMany
because had same erasure asselectMany(org.apache.calcite.linq4j.tree.FunctionExpression, org.apache.calcite.linq4j.tree.FunctionExpression)
-
single
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists. -
singleOrDefault
TSource 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:
singleOrDefault
in interfaceExtendedEnumerable<TSource>
-
singleOrDefault
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
Bypasses a specified number of elements in a sequence and then returns the remaining elements.- Specified by:
skip
in interfaceExtendedEnumerable<TSource>
-
skipWhile
Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements. -
skipWhileN
Bypasses 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. -
sumBigDecimal
Computes the sum of the sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence. -
sumNullableBigDecimal
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. -
sumDouble
Computes the sum of the sequence of Double values that is obtained by invoking a projection function on each element of the input sequence. -
sumNullableDouble
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. -
sumInteger
Computes the sum of the sequence of int values that is obtained by invoking a projection function on each element of the input sequence. -
sumNullableInteger
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. -
sumLong
Computes the sum of the sequence of long values that is obtained by invoking a projection function on each element of the input sequence. -
sumNullableLong
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. -
sumFloat
Computes the sum of the sequence of Float values that is obtained by invoking a projection function on each element of the input sequence. -
sumNullableFloat
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. -
take
Returns a specified number of contiguous elements from the start of a sequence.- Specified by:
take
in interfaceExtendedEnumerable<TSource>
-
takeWhile
Returns elements from a sequence as long as a specified condition is true. -
takeWhileN
Returns 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. -
union
Produces the set union of two sequences by using the default equality comparer.- Specified by:
union
in interfaceExtendedEnumerable<TSource>
-
union
Produces the set union of two sequences by using a specifiedEqualityComparer<TSource>
.- Specified by:
union
in interfaceExtendedEnumerable<TSource>
-
where
Filters a sequence of values based on a predicate. -
whereN
Filters 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<TSource, T1, TResult>> resultSelector) Merges two sequences by using the specified predicate function. -
getThis
Description copied from class:DefaultEnumerable
Derived classes might wish to override this method to return the "outer" enumerable.- Overrides:
getThis
in classDefaultEnumerable<T>
-
getThisOrderedQueryable
-
asEnumerable
Description copied from interface:ExtendedEnumerable
Returns the input typed asEnumerable<TSource>
.This method has no effect other than to change the compile-time type of source from a type that implements
Enumerable<TSource>
toEnumerable<TSource>
itself.asEnumerable<TSource>(Enumerable<TSource>)
can be used to choose between query implementations when a sequence implementsEnumerable<TSource>
but also has a different set of public query methods available. For example, given a generic class Table that implementsEnumerable<TSource>
and has its own methods such aswhere
,select
, andselectMany
, a call towhere
would invoke the publicwhere
method ofTable
. ATable
type that represents a database table could have awhere
method that takes the predicate argument as an expression tree and converts the tree to SQL for remote execution. If remote execution is not desired, for example because the predicate invokes a local method, theasEnumerable<TSource>
method can be used to hide the custom methods and instead make the standard query operators available.- Specified by:
asEnumerable
in interfaceExtendedEnumerable<T>
- Overrides:
asEnumerable
in classDefaultEnumerable<T>
-
union
Description copied from interface:ExtendedEnumerable
Produces the set union of two sequences by using the default equality comparer.- Specified by:
union
in interfaceExtendedEnumerable<T>
- Overrides:
union
in classDefaultEnumerable<T>
-
union
Description copied from interface:ExtendedEnumerable
Produces the set union of two sequences by using a specifiedEqualityComparer<TSource>
.- Specified by:
union
in interfaceExtendedEnumerable<T>
- Overrides:
union
in classDefaultEnumerable<T>
-
intersect
Description copied from interface:ExtendedEnumerable
Produces the set intersection of two sequences by using the default equality comparer to compare values, eliminate duplicates. (Defined by Enumerable.)- Specified by:
intersect
in interfaceExtendedEnumerable<T>
- Overrides:
intersect
in classDefaultEnumerable<T>
-
intersect
Description copied from interface:ExtendedEnumerable
Produces the set intersection of two sequences by using the default equality comparer to compare values, usingall
to indicate whether to eliminate duplicates. (Defined by Enumerable.)- Specified by:
intersect
in interfaceExtendedEnumerable<T>
- Overrides:
intersect
in classDefaultEnumerable<T>
-
intersect
public Queryable<TSource> intersect(Enumerable<TSource> source1, EqualityComparer<TSource> comparer) Description copied from interface:ExtendedEnumerable
Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, eliminate duplicates.- Specified by:
intersect
in interfaceExtendedEnumerable<T>
- Overrides:
intersect
in classDefaultEnumerable<T>
-
intersect
public Queryable<TSource> intersect(Enumerable<TSource> source1, EqualityComparer<TSource> comparer, boolean all) Description copied from interface:ExtendedEnumerable
Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, usingall
to indicate whether to eliminate duplicates.- Specified by:
intersect
in interfaceExtendedEnumerable<T>
- Overrides:
intersect
in classDefaultEnumerable<T>
-
except
public Queryable<TSource> except(Enumerable<TSource> enumerable1, EqualityComparer<TSource> comparer) Description copied from interface:ExtendedEnumerable
Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, eliminate duplicates.- Specified by:
except
in interfaceExtendedEnumerable<T>
- Overrides:
except
in classDefaultEnumerable<T>
-
except
public Queryable<TSource> except(Enumerable<TSource> enumerable1, EqualityComparer<TSource> comparer, boolean all) Description copied from interface:ExtendedEnumerable
Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>
to compare values, usingall
to indicate whether to eliminate duplicates.- Specified by:
except
in interfaceExtendedEnumerable<T>
- Overrides:
except
in classDefaultEnumerable<T>
-
except
Description copied from interface:ExtendedEnumerable
Produces the set difference of two sequences by using the default equality comparer to compare values, eliminate duplicates. (Defined by Enumerable.)- Specified by:
except
in interfaceExtendedEnumerable<T>
- Overrides:
except
in classDefaultEnumerable<T>
-
except
Description copied from interface:ExtendedEnumerable
Produces the set difference of two sequences by using the default equality comparer to compare values, usingall
to indicate whether to eliminate duplicates. (Defined by Enumerable.)- Specified by:
except
in interfaceExtendedEnumerable<T>
- Overrides:
except
in classDefaultEnumerable<T>
-
take
Description copied from interface:ExtendedEnumerable
Returns a specified number of contiguous elements from the start of a sequence.- Specified by:
take
in interfaceExtendedEnumerable<T>
- Overrides:
take
in classDefaultEnumerable<T>
-
skip
Description copied from interface:ExtendedEnumerable
Bypasses a specified number of elements in a sequence and then returns the remaining elements.- Specified by:
skip
in interfaceExtendedEnumerable<T>
- Overrides:
skip
in classDefaultEnumerable<T>
-
reverse
Description copied from interface:ExtendedEnumerable
Inverts the order of the elements in a sequence.- Specified by:
reverse
in interfaceExtendedEnumerable<T>
- Overrides:
reverse
in classDefaultEnumerable<T>
-
distinct
Description copied from interface:ExtendedEnumerable
Returns distinct elements from a sequence by using the default equality comparer to compare values.- Specified by:
distinct
in interfaceExtendedEnumerable<T>
- Overrides:
distinct
in classDefaultEnumerable<T>
-
distinct
Description copied from interface:ExtendedEnumerable
Returns distinct elements from a sequence by using a specifiedEqualityComparer<TSource>
to compare values.- Specified by:
distinct
in interfaceExtendedEnumerable<T>
- Overrides:
distinct
in classDefaultEnumerable<T>
-
ofType
Description copied from interface:ExtendedEnumerable
Filters the elements of an Enumerable based on a specified type.Analogous to LINQ's Enumerable.OfType extension method.
- Specified by:
ofType
in interfaceExtendedEnumerable<T>
- Overrides:
ofType
in classDefaultEnumerable<T>
- Type Parameters:
TResult
- Target type- Parameters:
clazz
- Target type- Returns:
- Collection of T2
-
defaultIfEmpty
Description copied from interface:ExtendedEnumerable
Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.- Specified by:
defaultIfEmpty
in interfaceExtendedEnumerable<T>
- Overrides:
defaultIfEmpty
in classDefaultEnumerable<T>
-
asQueryable
Description copied from interface:Enumerable
Converts this Enumerable to a Queryable.- Specified by:
asQueryable
in interfaceEnumerable<T>
- Specified by:
asQueryable
in interfaceExtendedEnumerable<T>
- Overrides:
asQueryable
in classDefaultEnumerable<T>
- Returns:
- A queryable
- See Also:
-
cast
Description copied from interface:ExtendedEnumerable
Converts 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 aClassCastException
a 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:
cast
in interfaceExtendedEnumerable<T>
- Overrides:
cast
in classDefaultEnumerable<T>
- See Also:
-
aggregate
-
aggregate
public <TAccumulate> TAccumulate aggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate, TSource, TAccumulate>> selector) -
aggregate
public <TAccumulate,TResult> TResult aggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate, TSource, TAccumulate>> func, FunctionExpression<Function1<TAccumulate, TResult>> selector) -
all
-
any
-
averageBigDecimal
-
averageNullableBigDecimal
public BigDecimal averageNullableBigDecimal(FunctionExpression<NullableBigDecimalFunction1<TSource>> selector) -
averageDouble
-
averageNullableDouble
-
averageInteger
-
averageNullableInteger
public Integer averageNullableInteger(FunctionExpression<NullableIntegerFunction1<TSource>> selector) -
averageFloat
-
averageNullableFloat
-
averageLong
-
averageNullableLong
-
concat
Description copied from interface:ExtendedEnumerable
Concatenates two sequences.- Specified by:
concat
in interfaceExtendedEnumerable<T>
- Overrides:
concat
in classDefaultEnumerable<T>
-
count
-
first
-
firstOrDefault
-
groupBy
-
groupBy
public <TKey> Queryable<Grouping<TKey,TSource>> groupBy(FunctionExpression<Function1<TSource, TKey>> keySelector, EqualityComparer<TKey> comparer) -
groupBy
public <TKey,TElement> Queryable<Grouping<TKey,TElement>> groupBy(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, TElement>> elementSelector) -
groupBy
public <TKey,TElement> Queryable<Grouping<TKey,TElement>> groupBy(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, TElement>> elementSelector, EqualityComparer<TKey> comparer) -
groupByK
public <TKey,TResult> Queryable<TResult> groupByK(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<TSource>, TResult>> resultSelector) -
groupByK
public <TKey,TResult> Queryable<TResult> groupByK(FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function2<TKey, Enumerable<TSource>, TResult>> resultSelector, EqualityComparer<TKey> comparer) -
groupBy
public <TKey,TElement, Queryable<TResult> groupByTResult> (FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, TElement>> elementSelector, FunctionExpression<Function2<TKey, Enumerable<TElement>, TResult>> resultSelector) -
groupBy
public <TKey,TElement, Queryable<TResult> groupByTResult> (FunctionExpression<Function1<TSource, TKey>> keySelector, FunctionExpression<Function1<TSource, TElement>> elementSelector, FunctionExpression<Function2<TKey, Enumerable<TElement>, TResult>> resultSelector, EqualityComparer<TKey> comparer) -
groupJoin
public <TInner,TKey, Queryable<TResult> groupJoinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, Enumerable<TInner>, TResult>> resultSelector) -
groupJoin
public <TInner,TKey, Queryable<TResult> groupJoinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, Enumerable<TInner>, TResult>> resultSelector, EqualityComparer<TKey> comparer) -
join
public <TInner,TKey, Queryable<TResult> joinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, TInner, TResult>> resultSelector) -
join
public <TInner,TKey, Queryable<TResult> joinTResult> (Enumerable<TInner> inner, FunctionExpression<Function1<TSource, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TSource, TInner, TResult>> resultSelector, EqualityComparer<TKey> comparer) -
last
-
lastOrDefault
-
longCount
-
max
public <TResult extends Comparable<TResult>> TResult max(FunctionExpression<Function1<TSource, TResult>> selector) -
min
public <TResult extends Comparable<TResult>> TResult min(FunctionExpression<Function1<TSource, TResult>> selector) -
orderBy
public <TKey extends Comparable> OrderedQueryable<TSource> orderBy(FunctionExpression<Function1<TSource, TKey>> keySelector) -
orderBy
public <TKey> OrderedQueryable<TSource> orderBy(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) -
orderByDescending
public <TKey extends Comparable> OrderedQueryable<TSource> orderByDescending(FunctionExpression<Function1<TSource, TKey>> keySelector) -
orderByDescending
public <TKey> OrderedQueryable<TSource> orderByDescending(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) -
select
-
selectN
public <TResult> Queryable<TResult> selectN(FunctionExpression<Function2<TSource, Integer, TResult>> selector) -
selectMany
public <TResult> Queryable<TResult> selectMany(FunctionExpression<Function1<TSource, Enumerable<TResult>>> selector) -
selectManyN
public <TResult> Queryable<TResult> selectManyN(FunctionExpression<Function2<TSource, Integer, Enumerable<TResult>>> selector) -
selectMany
public <TCollection,TResult> Queryable<TResult> selectMany(FunctionExpression<Function2<TSource, Integer, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<TSource, TCollection, TResult>> resultSelector) -
selectManyN
public <TCollection,TResult> Queryable<TResult> selectManyN(FunctionExpression<Function1<TSource, Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<TSource, TCollection, TResult>> resultSelector) -
single
-
singleOrDefault
-
skipWhile
-
skipWhileN
-
sumBigDecimal
-
sumNullableBigDecimal
public BigDecimal sumNullableBigDecimal(FunctionExpression<NullableBigDecimalFunction1<TSource>> selector) -
sumDouble
-
sumNullableDouble
-
sumInteger
-
sumNullableInteger
-
sumLong
-
sumNullableLong
-
sumFloat
-
sumNullableFloat
-
takeWhile
-
takeWhileN
-
thenBy
public <TKey extends Comparable<TKey>> OrderedQueryable<TSource> thenBy(FunctionExpression<Function1<TSource, TKey>> keySelector) Description copied from interface:ExtendedOrderedQueryable
Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.- Specified by:
thenBy
in interfaceExtendedOrderedQueryable<T>
-
thenBy
public <TKey> OrderedQueryable<TSource> thenBy(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) Description copied from interface:ExtendedOrderedQueryable
Performs a subsequent ordering of the elements in a sequence in ascending order according to a key, using a specified comparator.- Specified by:
thenBy
in interfaceExtendedOrderedQueryable<T>
-
thenByDescending
public <TKey extends Comparable<TKey>> OrderedQueryable<TSource> thenByDescending(FunctionExpression<Function1<TSource, TKey>> keySelector) Description copied from interface:ExtendedOrderedQueryable
Performs a subsequent ordering of the elements in a sequence in descending order according to a key.- Specified by:
thenByDescending
in interfaceExtendedOrderedQueryable<T>
-
thenByDescending
public <TKey> OrderedQueryable<TSource> thenByDescending(FunctionExpression<Function1<TSource, TKey>> keySelector, Comparator<TKey> comparator) Description copied from interface:ExtendedOrderedQueryable
Performs a subsequent ordering of the elements in a sequence in descending order according to a key, using a specified comparator.- Specified by:
thenByDescending
in interfaceExtendedOrderedQueryable<T>
-
where
-
whereN
public Queryable<TSource> whereN(FunctionExpression<? extends Predicate2<TSource, Integer>> predicate) -
zip
public <T1,TResult> Queryable<TResult> zip(Enumerable<T1> source1, FunctionExpression<Function2<TSource, T1, TResult>> resultSelector)
-