Class DefaultQueryable<T>
- java.lang.Object
-
- org.apache.calcite.linq4j.DefaultEnumerable<T>
-
- org.apache.calcite.linq4j.DefaultQueryable<T>
-
- Type Parameters:
T- Element type
- All Implemented Interfaces:
Iterable<T>,Enumerable<T>,ExtendedEnumerable<T>,ExtendedOrderedEnumerable<T>,ExtendedOrderedQueryable<T>,ExtendedQueryable<T>,OrderedEnumerable<T>,OrderedQueryable<T>,Queryable<T>,RawEnumerable<T>,RawQueryable<T>
- Direct Known Subclasses:
AbstractQueryable,QueryableDefaults.ReplayableQueryable
abstract class DefaultQueryable<T> extends DefaultEnumerable<T> implements Queryable<T>, OrderedQueryable<T>
Implementation of theQueryableinterface that implements the extension methods by calling into theExtensionsclass.
-
-
Field Summary
Fields Modifier and Type Field Description private QueryableFactory<T>factory
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefaultQueryable()Creates a DefaultQueryable using a factory that records events.protectedDefaultQueryable(QueryableFactory<T> factory)Creates a DefaultQueryable using a particular factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Taggregate(FunctionExpression<Function2<T,T,T>> selector)Applies 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.Enumerable<T>asEnumerable()Returns the input typed asEnumerable<TSource>.Queryable<T>asQueryable()Converts this Enumerable to a Queryable.BigDecimalaverageBigDecimal(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.BigDecimalaverageNullableBigDecimal(FunctionExpression<NullableBigDecimalFunction1<T>> 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.DoubleaverageNullableDouble(FunctionExpression<NullableDoubleFunction1<T>> selector)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.FloataverageNullableFloat(FunctionExpression<NullableFloatFunction1<T>> selector)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.IntegeraverageNullableInteger(FunctionExpression<NullableIntegerFunction1<T>> selector)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.LongaverageNullableLong(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>cast(Class<T2> clazz)Converts the elements of this Enumerable to the specified type.Queryable<T>concat(Enumerable<T> source2)Concatenates two sequences.intcount(FunctionExpression<Predicate1<T>> func)Returns the number of elements in the specified sequence that satisfies a condition.Queryable<T>defaultIfEmpty()Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the sequence is empty.Queryable<T>distinct()Returns distinct elements from a sequence by using the default equality comparer to compare values.Queryable<T>distinct(EqualityComparer<T> comparer)Returns distinct elements from a sequence by using a specifiedEqualityComparer<TSource>to compare values.Queryable<T>except(Enumerable<T> enumerable1)Produces the set difference of two sequences by using the default equality comparer to compare values.Queryable<T>except(Enumerable<T> enumerable1, EqualityComparer<T> comparer)Produces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values.Tfirst(FunctionExpression<Predicate1<T>> predicate)Returns the first element of a sequence that satisfies a specified condition.TfirstOrDefault(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.protected Queryable<T>getThis()Derived classes might wish to override this method to return the "outer" enumerable.protected OrderedQueryable<T>getThisOrderedQueryable()<TKey> Queryable<Grouping<TKey,T>>groupBy(FunctionExpression<Function1<T,TKey>> keySelector)Groups the elements of a sequence according to a specified key selector function.<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.<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.<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.<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.Queryable<T>intersect(Enumerable<T> source1)Produces the set intersection of two sequences by using the default equality comparer to compare values.Queryable<T>intersect(Enumerable<T> source1, EqualityComparer<T> comparer)Produces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values.<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.Tlast(FunctionExpression<Predicate1<T>> predicate)Returns the last element of a sequence that satisfies a specified condition.TlastOrDefault(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>>
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>>
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>ofType(Class<TResult> clazz)Filters the elements of an Enumerable 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.Queryable<T>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.Tsingle(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.TsingleOrDefault(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.Queryable<T>skip(int count)Bypasses a specified number of elements in a sequence and then returns the remaining elements.Queryable<T>skipWhile(FunctionExpression<Predicate1<T>> predicate)Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.Queryable<T>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.BigDecimalsumBigDecimal(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.BigDecimalsumNullableBigDecimal(FunctionExpression<NullableBigDecimalFunction1<T>> selector)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.DoublesumNullableDouble(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.FloatsumNullableFloat(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.IntegersumNullableInteger(FunctionExpression<NullableIntegerFunction1<T>> selector)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.LongsumNullableLong(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.Queryable<T>take(int count)Returns a specified number of contiguous elements from the start of a sequence.Queryable<T>takeWhile(FunctionExpression<Predicate1<T>> predicate)Returns elements from a sequence as long as a specified condition is true.Queryable<T>takeWhileN(FunctionExpression<Predicate2<T,Integer>> predicate)Returns elements from a sequence as long as a specified condition is true.<TKey extends Comparable<TKey>>
OrderedQueryable<T>thenBy(FunctionExpression<Function1<T,TKey>> keySelector)Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.<TKey> OrderedQueryable<T>thenBy(FunctionExpression<Function1<T,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<T>thenByDescending(FunctionExpression<Function1<T,TKey>> keySelector)Performs a subsequent ordering of the elements in a sequence in descending order according to a key.<TKey> OrderedQueryable<T>thenByDescending(FunctionExpression<Function1<T,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.Queryable<T>union(Enumerable<T> source1)Produces the set union of two sequences by using the default equality comparer.Queryable<T>union(Enumerable<T> source1, EqualityComparer<T> comparer)Produces the set union of two sequences by using a specifiedEqualityComparer<TSource>.Queryable<T>where(FunctionExpression<? extends Predicate1<T>> predicate)Filters a sequence of values based on a predicate.Queryable<T>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 class org.apache.calcite.linq4j.DefaultEnumerable
aggregate, aggregate, aggregate, all, any, any, 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, into, join, join, join, last, last, lastOrDefault, lastOrDefault, longCount, longCount, max, max, max, max, max, max, max, max, max, max, max, max, min, min, min, min, min, min, min, min, min, min, min, min, orderBy, orderBy, orderByDescending, orderByDescending, removeAll, select, select, selectMany, selectMany, selectMany, selectMany, sequenceEqual, sequenceEqual, single, single, singleOrDefault, singleOrDefault, skipWhile, skipWhile, 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 interface org.apache.calcite.linq4j.ExtendedQueryable
singleOrDefault
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
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.RawEnumerable
enumerator
-
Methods inherited from interface org.apache.calcite.linq4j.RawQueryable
getElementType, getExpression, getProvider
-
-
-
-
Field Detail
-
factory
private final QueryableFactory<T> factory
-
-
Constructor Detail
-
DefaultQueryable
protected DefaultQueryable()
Creates a DefaultQueryable using a factory that records events.
-
DefaultQueryable
protected DefaultQueryable(QueryableFactory<T> factory)
Creates a DefaultQueryable using a particular factory.
-
-
Method Detail
-
getThis
protected Queryable<T> getThis()
Description copied from class:DefaultEnumerableDerived classes might wish to override this method to return the "outer" enumerable.- Overrides:
getThisin classDefaultEnumerable<T>
-
getThisOrderedQueryable
protected OrderedQueryable<T> getThisOrderedQueryable()
-
asEnumerable
public Enumerable<T> asEnumerable()
Description copied from interface:ExtendedEnumerableReturns 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 towherewould invoke the publicwheremethod ofTable. ATabletype that represents a database table could have awheremethod 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:
asEnumerablein interfaceExtendedEnumerable<T>- Overrides:
asEnumerablein classDefaultEnumerable<T>
-
union
public Queryable<T> union(Enumerable<T> source1)
Description copied from interface:ExtendedEnumerableProduces the set union of two sequences by using the default equality comparer.- Specified by:
unionin interfaceExtendedEnumerable<T>- Specified by:
unionin interfaceExtendedQueryable<T>- Overrides:
unionin classDefaultEnumerable<T>
-
union
public Queryable<T> union(Enumerable<T> source1, EqualityComparer<T> comparer)
Description copied from interface:ExtendedEnumerableProduces the set union of two sequences by using a specifiedEqualityComparer<TSource>.- Specified by:
unionin interfaceExtendedEnumerable<T>- Specified by:
unionin interfaceExtendedQueryable<T>- Overrides:
unionin classDefaultEnumerable<T>
-
intersect
public Queryable<T> intersect(Enumerable<T> source1)
Description copied from interface:ExtendedEnumerableProduces the set intersection of two sequences by using the default equality comparer to compare values. (Defined by Enumerable.)- Specified by:
intersectin interfaceExtendedEnumerable<T>- Specified by:
intersectin interfaceExtendedQueryable<T>- Overrides:
intersectin classDefaultEnumerable<T>
-
intersect
public Queryable<T> intersect(Enumerable<T> source1, EqualityComparer<T> comparer)
Description copied from interface:ExtendedEnumerableProduces the set intersection of two sequences by using the specifiedEqualityComparer<TSource>to compare values.- Specified by:
intersectin interfaceExtendedEnumerable<T>- Specified by:
intersectin interfaceExtendedQueryable<T>- Overrides:
intersectin classDefaultEnumerable<T>
-
except
public Queryable<T> except(Enumerable<T> enumerable1, EqualityComparer<T> comparer)
Description copied from interface:ExtendedEnumerableProduces the set difference of two sequences by using the specifiedEqualityComparer<TSource>to compare values.- Specified by:
exceptin interfaceExtendedEnumerable<T>- Specified by:
exceptin interfaceExtendedQueryable<T>- Overrides:
exceptin classDefaultEnumerable<T>
-
except
public Queryable<T> except(Enumerable<T> enumerable1)
Description copied from interface:ExtendedEnumerableProduces the set difference of two sequences by using the default equality comparer to compare values. (Defined by Enumerable.)- Specified by:
exceptin interfaceExtendedEnumerable<T>- Specified by:
exceptin interfaceExtendedQueryable<T>- Overrides:
exceptin classDefaultEnumerable<T>
-
take
public Queryable<T> take(int count)
Description copied from interface:ExtendedEnumerableReturns a specified number of contiguous elements from the start of a sequence.- Specified by:
takein interfaceExtendedEnumerable<T>- Specified by:
takein interfaceExtendedQueryable<T>- Overrides:
takein classDefaultEnumerable<T>
-
skip
public Queryable<T> skip(int count)
Description copied from interface:ExtendedEnumerableBypasses a specified number of elements in a sequence and then returns the remaining elements.- Specified by:
skipin interfaceExtendedEnumerable<T>- Specified by:
skipin interfaceExtendedQueryable<T>- Overrides:
skipin classDefaultEnumerable<T>
-
reverse
public Queryable<T> reverse()
Description copied from interface:ExtendedEnumerableInverts the order of the elements in a sequence.- Specified by:
reversein interfaceExtendedEnumerable<T>- Specified by:
reversein interfaceExtendedQueryable<T>- Overrides:
reversein classDefaultEnumerable<T>
-
distinct
public Queryable<T> distinct()
Description copied from interface:ExtendedEnumerableReturns distinct elements from a sequence by using the default equality comparer to compare values.- Specified by:
distinctin interfaceExtendedEnumerable<T>- Specified by:
distinctin interfaceExtendedQueryable<T>- Overrides:
distinctin classDefaultEnumerable<T>
-
distinct
public Queryable<T> distinct(EqualityComparer<T> comparer)
Description copied from interface:ExtendedEnumerableReturns distinct elements from a sequence by using a specifiedEqualityComparer<TSource>to compare values.- Specified by:
distinctin interfaceExtendedEnumerable<T>- Specified by:
distinctin interfaceExtendedQueryable<T>- Overrides:
distinctin classDefaultEnumerable<T>
-
ofType
public <TResult> Queryable<TResult> ofType(Class<TResult> clazz)
Description copied from interface:ExtendedEnumerableFilters the elements of an Enumerable based on a specified type.Analogous to LINQ's Enumerable.OfType extension method.
- Specified by:
ofTypein interfaceExtendedEnumerable<T>- Specified by:
ofTypein interfaceExtendedQueryable<T>- Overrides:
ofTypein classDefaultEnumerable<T>- Type Parameters:
TResult- Target type- Parameters:
clazz- Target type- Returns:
- Collection of T2
-
defaultIfEmpty
public Queryable<T> defaultIfEmpty()
Description copied from interface:ExtendedEnumerableReturns 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 interfaceExtendedEnumerable<T>- Specified by:
defaultIfEmptyin interfaceExtendedQueryable<T>- Overrides:
defaultIfEmptyin classDefaultEnumerable<T>
-
asQueryable
public Queryable<T> asQueryable()
Description copied from interface:EnumerableConverts this Enumerable to a Queryable.- Specified by:
asQueryablein interfaceEnumerable<T>- Specified by:
asQueryablein interfaceExtendedEnumerable<T>- Overrides:
asQueryablein classDefaultEnumerable<T>- Returns:
- A queryable
- See Also:
EnumerableDefaults.asQueryable(Enumerable)
-
cast
public <T2> Queryable<T2> cast(Class<T2> clazz)
Description 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 interfaceExtendedEnumerable<T>- Specified by:
castin interfaceExtendedQueryable<T>- Overrides:
castin classDefaultEnumerable<T>- See Also:
EnumerableDefaults.cast(org.apache.calcite.linq4j.Enumerable<TSource>, java.lang.Class<T2>),ExtendedEnumerable.ofType(Class)
-
aggregate
public T aggregate(FunctionExpression<Function2<T,T,T>> selector)
Description copied from interface:ExtendedQueryableApplies an accumulator function over a sequence.- Specified by:
aggregatein interfaceExtendedQueryable<T>
-
aggregate
public <TAccumulate> TAccumulate aggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate,T,TAccumulate>> selector)Description copied from interface:ExtendedQueryableApplies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.- Specified by:
aggregatein interfaceExtendedQueryable<T>
-
aggregate
public <TAccumulate,TResult> TResult aggregate(TAccumulate seed, FunctionExpression<Function2<TAccumulate,T,TAccumulate>> func, FunctionExpression<Function1<TAccumulate,TResult>> selector)Description copied from interface:ExtendedQueryableApplies 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.- Specified by:
aggregatein interfaceExtendedQueryable<T>
-
all
public boolean all(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableDetermines whether all the elements of a sequence satisfy a condition.- Specified by:
allin interfaceExtendedQueryable<T>
-
any
public boolean any(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableDetermines whether any element of a sequence satisfies a condition.- Specified by:
anyin interfaceExtendedQueryable<T>
-
averageBigDecimal
public BigDecimal averageBigDecimal(FunctionExpression<BigDecimalFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageBigDecimalin interfaceExtendedQueryable<T>
-
averageNullableBigDecimal
public BigDecimal averageNullableBigDecimal(FunctionExpression<NullableBigDecimalFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageNullableBigDecimalin interfaceExtendedQueryable<T>
-
averageDouble
public double averageDouble(FunctionExpression<DoubleFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageDoublein interfaceExtendedQueryable<T>
-
averageNullableDouble
public Double averageNullableDouble(FunctionExpression<NullableDoubleFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageNullableDoublein interfaceExtendedQueryable<T>
-
averageInteger
public int averageInteger(FunctionExpression<IntegerFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of int values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageIntegerin interfaceExtendedQueryable<T>
-
averageNullableInteger
public Integer averageNullableInteger(FunctionExpression<NullableIntegerFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of nullable int values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageNullableIntegerin interfaceExtendedQueryable<T>
-
averageFloat
public float averageFloat(FunctionExpression<FloatFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of Float values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageFloatin interfaceExtendedQueryable<T>
-
averageNullableFloat
public Float averageNullableFloat(FunctionExpression<NullableFloatFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of nullable Float values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageNullableFloatin interfaceExtendedQueryable<T>
-
averageLong
public long averageLong(FunctionExpression<LongFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of long values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageLongin interfaceExtendedQueryable<T>
-
averageNullableLong
public Long averageNullableLong(FunctionExpression<NullableLongFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the average of a sequence of nullable long values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
averageNullableLongin interfaceExtendedQueryable<T>
-
concat
public Queryable<T> concat(Enumerable<T> source2)
Description copied from interface:ExtendedEnumerableConcatenates two sequences.- Specified by:
concatin interfaceExtendedEnumerable<T>- Specified by:
concatin interfaceExtendedQueryable<T>- Overrides:
concatin classDefaultEnumerable<T>
-
count
public int count(FunctionExpression<Predicate1<T>> func)
Description copied from interface:ExtendedQueryableReturns the number of elements in the specified sequence that satisfies a condition.- Specified by:
countin interfaceExtendedQueryable<T>
-
first
public T first(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableReturns the first element of a sequence that satisfies a specified condition.- Specified by:
firstin interfaceExtendedQueryable<T>
-
firstOrDefault
public T firstOrDefault(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableReturns the first element of a sequence that satisfies a specified condition or a default value if no such element is found.- Specified by:
firstOrDefaultin interfaceExtendedQueryable<T>
-
groupBy
public <TKey> Queryable<Grouping<TKey,T>> groupBy(FunctionExpression<Function1<T,TKey>> keySelector)
Description copied from interface:ExtendedQueryableGroups the elements of a sequence according to a specified key selector function.- Specified by:
groupByin interfaceExtendedQueryable<T>
-
groupBy
public <TKey> Queryable<Grouping<TKey,T>> groupBy(FunctionExpression<Function1<T,TKey>> keySelector, EqualityComparer<TKey> comparer)
Description copied from interface:ExtendedQueryableGroups the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.- Specified by:
groupByin interfaceExtendedQueryable<T>
-
groupBy
public <TKey,TElement> Queryable<Grouping<TKey,TElement>> groupBy(FunctionExpression<Function1<T,TKey>> keySelector, FunctionExpression<Function1<T,TElement>> elementSelector)
Description copied from interface:ExtendedQueryableGroups the elements of a sequence according to a specified key selector function and projects the elements for each group by using a specified function.- Specified by:
groupByin interfaceExtendedQueryable<T>
-
groupBy
public <TKey,TElement> Queryable<Grouping<TKey,TElement>> groupBy(FunctionExpression<Function1<T,TKey>> keySelector, FunctionExpression<Function1<T,TElement>> elementSelector, EqualityComparer<TKey> comparer)
Description copied from interface:ExtendedQueryableGroups 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.- Specified by:
groupByin interfaceExtendedQueryable<T>
-
groupByK
public <TKey,TResult> Queryable<TResult> groupByK(FunctionExpression<Function1<T,TKey>> keySelector, FunctionExpression<Function2<TKey,Enumerable<T>,TResult>> resultSelector)
Description copied from interface:ExtendedQueryableGroups 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 fromExtendedQueryable.groupBy(org.apache.calcite.linq4j.tree.FunctionExpression, org.apache.calcite.linq4j.tree.FunctionExpression), which has the same erasure.- Specified by:
groupByKin interfaceExtendedQueryable<T>
-
groupByK
public <TKey,TResult> Queryable<TResult> groupByK(FunctionExpression<Function1<T,TKey>> keySelector, FunctionExpression<Function2<TKey,Enumerable<T>,TResult>> resultSelector, EqualityComparer<TKey> comparer)
Description copied from interface:ExtendedQueryableGroups 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.- Specified by:
groupByKin interfaceExtendedQueryable<T>
-
groupBy
public <TKey,TElement,TResult> Queryable<TResult> groupBy(FunctionExpression<Function1<T,TKey>> keySelector, FunctionExpression<Function1<T,TElement>> elementSelector, FunctionExpression<Function2<TKey,Enumerable<TElement>,TResult>> resultSelector)
Description copied from interface:ExtendedQueryableGroups 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.- Specified by:
groupByin interfaceExtendedQueryable<T>
-
groupBy
public <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)
Description copied from interface:ExtendedQueryableGroups 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.- Specified by:
groupByin interfaceExtendedQueryable<T>
-
groupJoin
public <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)
Description copied from interface:ExtendedQueryableCorrelates the elements of two sequences based on key equality and groups the results. The default equality comparer is used to compare keys.- Specified by:
groupJoinin interfaceExtendedQueryable<T>
-
groupJoin
public <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)
Description copied from interface:ExtendedQueryableCorrelates the elements of two sequences based on key equality and groups the results. A specifiedEqualityComparer<TSource>is used to compare keys.- Specified by:
groupJoinin interfaceExtendedQueryable<T>
-
join
public <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)
Description copied from interface:ExtendedQueryableCorrelates the elements of two sequences based on matching keys. The default equality comparer is used to compare keys.- Specified by:
joinin interfaceExtendedQueryable<T>
-
join
public <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)
Description copied from interface:ExtendedQueryableCorrelates the elements of two sequences based on matching keys. A specifiedEqualityComparer<TSource>is used to compare keys.- Specified by:
joinin interfaceExtendedQueryable<T>
-
last
public T last(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableReturns the last element of a sequence that satisfies a specified condition.- Specified by:
lastin interfaceExtendedQueryable<T>
-
lastOrDefault
public T lastOrDefault(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableReturns the last element of a sequence that satisfies a condition or a default value if no such element is found.- Specified by:
lastOrDefaultin interfaceExtendedQueryable<T>
-
longCount
public long longCount(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableReturns an long that represents the number of elements in a sequence that satisfy a condition.- Specified by:
longCountin interfaceExtendedQueryable<T>
-
max
public <TResult extends Comparable<TResult>> TResult max(FunctionExpression<Function1<T,TResult>> selector)
Description copied from interface:ExtendedQueryableInvokes a projection function on each element of a genericIQueryable<TSource>and returns the maximum resulting value.- Specified by:
maxin interfaceExtendedQueryable<T>
-
min
public <TResult extends Comparable<TResult>> TResult min(FunctionExpression<Function1<T,TResult>> selector)
Description copied from interface:ExtendedQueryableInvokes a projection function on each element of a genericIQueryable<TSource>and returns the minimum resulting value.- Specified by:
minin interfaceExtendedQueryable<T>
-
orderBy
public <TKey extends Comparable> OrderedQueryable<T> orderBy(FunctionExpression<Function1<T,TKey>> keySelector)
Description copied from interface:ExtendedQueryableSorts the elements of a sequence in ascending order according to a key.- Specified by:
orderByin interfaceExtendedQueryable<T>
-
orderBy
public <TKey> OrderedQueryable<T> orderBy(FunctionExpression<Function1<T,TKey>> keySelector, Comparator<TKey> comparator)
Description copied from interface:ExtendedQueryableSorts the elements of a sequence in ascending order by using a specified comparer.- Specified by:
orderByin interfaceExtendedQueryable<T>
-
orderByDescending
public <TKey extends Comparable> OrderedQueryable<T> orderByDescending(FunctionExpression<Function1<T,TKey>> keySelector)
Description copied from interface:ExtendedQueryableSorts the elements of a sequence in descending order according to a key.- Specified by:
orderByDescendingin interfaceExtendedQueryable<T>
-
orderByDescending
public <TKey> OrderedQueryable<T> orderByDescending(FunctionExpression<Function1<T,TKey>> keySelector, Comparator<TKey> comparator)
Description copied from interface:ExtendedQueryableSorts the elements of a sequence in descending order by using a specified comparer.- Specified by:
orderByDescendingin interfaceExtendedQueryable<T>
-
select
public <TResult> Queryable<TResult> select(FunctionExpression<Function1<T,TResult>> selector)
Description copied from interface:ExtendedQueryableProjects each element of a sequence into a new form.- Specified by:
selectin interfaceExtendedQueryable<T>
-
selectN
public <TResult> Queryable<TResult> selectN(FunctionExpression<Function2<T,Integer,TResult>> selector)
Description copied from interface:ExtendedQueryableProjects each element of a sequence into a new form by incorporating the element's index.NOTE: Renamed from
selectbecause had same erasure asExtendedQueryable.select(org.apache.calcite.linq4j.tree.FunctionExpression).- Specified by:
selectNin interfaceExtendedQueryable<T>
-
selectMany
public <TResult> Queryable<TResult> selectMany(FunctionExpression<Function1<T,Enumerable<TResult>>> selector)
Description copied from interface:ExtendedQueryableProjects each element of a sequence to anEnumerable<TSource>and combines the resulting sequences into one sequence.- Specified by:
selectManyin interfaceExtendedQueryable<T>
-
selectManyN
public <TResult> Queryable<TResult> selectManyN(FunctionExpression<Function2<T,Integer,Enumerable<TResult>>> selector)
Description copied from interface:ExtendedQueryableProjects 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 asExtendedQueryable.selectMany(org.apache.calcite.linq4j.tree.FunctionExpression)- Specified by:
selectManyNin interfaceExtendedQueryable<T>
-
selectMany
public <TCollection,TResult> Queryable<TResult> selectMany(FunctionExpression<Function2<T,Integer,Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<T,TCollection,TResult>> resultSelector)
Description copied from interface:ExtendedQueryableProjects 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.- Specified by:
selectManyin interfaceExtendedQueryable<T>
-
selectManyN
public <TCollection,TResult> Queryable<TResult> selectManyN(FunctionExpression<Function1<T,Enumerable<TCollection>>> collectionSelector, FunctionExpression<Function2<T,TCollection,TResult>> resultSelector)
Description copied from interface:ExtendedQueryableProjects 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 asExtendedQueryable.selectMany(org.apache.calcite.linq4j.tree.FunctionExpression, org.apache.calcite.linq4j.tree.FunctionExpression)- Specified by:
selectManyNin interfaceExtendedQueryable<T>
-
single
public T single(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableReturns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.- Specified by:
singlein interfaceExtendedQueryable<T>
-
singleOrDefault
public T singleOrDefault(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableReturns 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.- Specified by:
singleOrDefaultin interfaceExtendedQueryable<T>
-
skipWhile
public Queryable<T> skipWhile(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableBypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.- Specified by:
skipWhilein interfaceExtendedQueryable<T>
-
skipWhileN
public Queryable<T> skipWhileN(FunctionExpression<Predicate2<T,Integer>> predicate)
Description copied from interface:ExtendedQueryableBypasses 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.- Specified by:
skipWhileNin interfaceExtendedQueryable<T>
-
sumBigDecimal
public BigDecimal sumBigDecimal(FunctionExpression<BigDecimalFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of Decimal values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumBigDecimalin interfaceExtendedQueryable<T>
-
sumNullableBigDecimal
public BigDecimal sumNullableBigDecimal(FunctionExpression<NullableBigDecimalFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of nullable Decimal values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumNullableBigDecimalin interfaceExtendedQueryable<T>
-
sumDouble
public double sumDouble(FunctionExpression<DoubleFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of Double values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumDoublein interfaceExtendedQueryable<T>
-
sumNullableDouble
public Double sumNullableDouble(FunctionExpression<NullableDoubleFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of nullable Double values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumNullableDoublein interfaceExtendedQueryable<T>
-
sumInteger
public int sumInteger(FunctionExpression<IntegerFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of int values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumIntegerin interfaceExtendedQueryable<T>
-
sumNullableInteger
public Integer sumNullableInteger(FunctionExpression<NullableIntegerFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of nullable int values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumNullableIntegerin interfaceExtendedQueryable<T>
-
sumLong
public long sumLong(FunctionExpression<LongFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of long values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumLongin interfaceExtendedQueryable<T>
-
sumNullableLong
public Long sumNullableLong(FunctionExpression<NullableLongFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of nullable long values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumNullableLongin interfaceExtendedQueryable<T>
-
sumFloat
public float sumFloat(FunctionExpression<FloatFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of Float values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumFloatin interfaceExtendedQueryable<T>
-
sumNullableFloat
public Float sumNullableFloat(FunctionExpression<NullableFloatFunction1<T>> selector)
Description copied from interface:ExtendedQueryableComputes the sum of the sequence of nullable Float values that is obtained by invoking a projection function on each element of the input sequence.- Specified by:
sumNullableFloatin interfaceExtendedQueryable<T>
-
takeWhile
public Queryable<T> takeWhile(FunctionExpression<Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableReturns elements from a sequence as long as a specified condition is true.- Specified by:
takeWhilein interfaceExtendedQueryable<T>
-
takeWhileN
public Queryable<T> takeWhileN(FunctionExpression<Predicate2<T,Integer>> predicate)
Description copied from interface:ExtendedQueryableReturns 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.- Specified by:
takeWhileNin interfaceExtendedQueryable<T>
-
thenBy
public <TKey extends Comparable<TKey>> OrderedQueryable<T> thenBy(FunctionExpression<Function1<T,TKey>> keySelector)
Description copied from interface:ExtendedOrderedQueryablePerforms a subsequent ordering of the elements in a sequence in ascending order according to a key.- Specified by:
thenByin interfaceExtendedOrderedQueryable<T>
-
thenBy
public <TKey> OrderedQueryable<T> thenBy(FunctionExpression<Function1<T,TKey>> keySelector, Comparator<TKey> comparator)
Description copied from interface:ExtendedOrderedQueryablePerforms a subsequent ordering of the elements in a sequence in ascending order according to a key, using a specified comparator.- Specified by:
thenByin interfaceExtendedOrderedQueryable<T>
-
thenByDescending
public <TKey extends Comparable<TKey>> OrderedQueryable<T> thenByDescending(FunctionExpression<Function1<T,TKey>> keySelector)
Description copied from interface:ExtendedOrderedQueryablePerforms a subsequent ordering of the elements in a sequence in descending order according to a key.- Specified by:
thenByDescendingin interfaceExtendedOrderedQueryable<T>
-
thenByDescending
public <TKey> OrderedQueryable<T> thenByDescending(FunctionExpression<Function1<T,TKey>> keySelector, Comparator<TKey> comparator)
Description copied from interface:ExtendedOrderedQueryablePerforms a subsequent ordering of the elements in a sequence in descending order according to a key, using a specified comparator.- Specified by:
thenByDescendingin interfaceExtendedOrderedQueryable<T>
-
where
public Queryable<T> where(FunctionExpression<? extends Predicate1<T>> predicate)
Description copied from interface:ExtendedQueryableFilters a sequence of values based on a predicate.- Specified by:
wherein interfaceExtendedQueryable<T>
-
whereN
public Queryable<T> whereN(FunctionExpression<? extends Predicate2<T,Integer>> predicate)
Description copied from interface:ExtendedQueryableFilters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.- Specified by:
whereNin interfaceExtendedQueryable<T>
-
zip
public <T1,TResult> Queryable<TResult> zip(Enumerable<T1> source1, FunctionExpression<Function2<T,T1,TResult>> resultSelector)
Description copied from interface:ExtendedQueryableMerges two sequences by using the specified predicate function.- Specified by:
zipin interfaceExtendedQueryable<T>
-
-