Package org.apache.calcite.linq4j
Interface ExtendedOrderedEnumerable<T>
- Type Parameters:
T
- Element type
- All Superinterfaces:
Enumerable<T>
,ExtendedEnumerable<T>
,Iterable<T>
,RawEnumerable<T>
- All Known Subinterfaces:
OrderedEnumerable<T>
- All Known Implementing Classes:
AbstractEnumerable
,AbstractEnumerable2
,AbstractQueryable
,AbstractTableQueryable
,BaseQueryable
,CassandraTable.CassandraQueryable
,DefaultEnumerable
,ElasticsearchTable.ElasticsearchQueryable
,GeodeTable.GeodeQueryable
,InnodbTable.InnodbQueryable
,Interpreter
,MemoryEnumerable
,MongoTable.MongoQueryable
,QueryableDefaults.NonLeafReplayableQueryable
,QueryableDefaults.ReplayableQueryable
,QueryProviderImpl.QueryableImpl
,ResultSetEnumerable
,SpatialTypeFunctions.GridEnumerable
,SplunkQuery
Extension methods for
OrderedEnumerable
.-
Method Summary
Modifier and TypeMethodDescription<TKey> OrderedEnumerable<T>
createOrderedEnumerable
(Function1<T, TKey> keySelector, Comparator<TKey> comparator, boolean descending) Performs a subsequent ordering of the elements in anOrderedEnumerable
according to a key, using a specified comparator.<TKey extends Comparable<TKey>>
OrderedEnumerable<T>Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.<TKey> OrderedEnumerable<T>
thenBy
(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>>
OrderedEnumerable<T>thenByDescending
(Function1<T, TKey> keySelector) Performs a subsequent ordering of the elements in a sequence in descending order according to a key.<TKey> OrderedEnumerable<T>
thenByDescending
(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.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, cast, concat, contains, contains, correlateJoin, count, count, defaultIfEmpty, defaultIfEmpty, distinct, distinct, elementAt, elementAtOrDefault, except, except, except, except, first, first, firstOrDefault, firstOrDefault, foreach, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupBy, groupJoin, groupJoin, hashJoin, hashJoin, hashJoin, hashJoin, intersect, intersect, intersect, intersect, 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, ofType, orderBy, orderBy, orderByDescending, orderByDescending, removeAll, reverse, select, select, selectMany, selectMany, selectMany, selectMany, sequenceEqual, sequenceEqual, single, single, singleOrDefault, singleOrDefault, skip, skipWhile, skipWhile, sortedGroupBy, sum, sum, sum, sum, sum, sum, sum, sum, sum, sum, take, takeWhile, takeWhile, toList, toLookup, toLookup, toLookup, toLookup, toMap, toMap, toMap, toMap, union, union, where, where, zip
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.apache.calcite.linq4j.RawEnumerable
enumerator
-
Method Details
-
createOrderedEnumerable
<TKey> OrderedEnumerable<T> createOrderedEnumerable(Function1<T, TKey> keySelector, Comparator<TKey> comparator, boolean descending) Performs a subsequent ordering of the elements in anOrderedEnumerable
according to a key, using a specified comparator.The functionality provided by this method is like that provided by
thenBy
orthenByDescending
, depending on whether descending is true or false. They both perform a subordinate ordering of an already sorted sequence of typeOrderedEnumerable
. -
thenBy
Performs a subsequent ordering of the elements in a sequence in ascending order according to a key. -
thenBy
Performs a subsequent ordering of the elements in a sequence in ascending order according to a key, using a specified comparator. -
thenByDescending
<TKey extends Comparable<TKey>> OrderedEnumerable<T> thenByDescending(Function1<T, TKey> keySelector) Performs a subsequent ordering of the elements in a sequence in descending order according to a key. -
thenByDescending
<TKey> OrderedEnumerable<T> thenByDescending(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.
-