Package org.apache.calcite.runtime
Class Enumerables
java.lang.Object
org.apache.calcite.runtime.Enumerables
Utilities for processing
Enumerable
collections.
This class is a place to put things not yet added to linq4j. Methods are subject to removal without notice.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Given a match (a list of rows, and their states) produces a list of rows to be output. -
Method Summary
Modifier and TypeMethodDescriptionstatic <E,
TKey, TResult>
Enumerable<TResult>match
(Enumerable<E> enumerable, Function1<E, TKey> keySelector, Matcher<E> matcher, Enumerables.Emitter<E, TResult> emitter, int history, int future) static <E> Enumerable<E>
slice0
(Enumerable<E[]> enumerable) Converts an enumerable over singleton arrays into the enumerable of their first elements.static com.google.common.base.Supplier<Enumerable<Row>>
toRow
(com.google.common.base.Supplier<Enumerable<@Nullable Object[]>> supplier) Deprecated.static Supplier<Enumerable<Row>>
toRow
(Supplier<Enumerable<@Nullable Object[]>> supplier) Converts a supplier of anEnumerable
over object arrays into a supplier of anEnumerable
overRow
objects.static Enumerable<Row>
toRow
(Enumerable<@Nullable Object[]> enumerable)
-
Method Details
-
slice0
Converts an enumerable over singleton arrays into the enumerable of their first elements. -
toRow
-
toRow
Converts a supplier of anEnumerable
over object arrays into a supplier of anEnumerable
overRow
objects. -
toRow
@Deprecated public static com.google.common.base.Supplier<Enumerable<Row>> toRow(com.google.common.base.Supplier<Enumerable<@Nullable Object[]>> supplier) Deprecated. -
match
public static <E,TKey, Enumerable<TResult> matchTResult> (Enumerable<E> enumerable, Function1<E, TKey> keySelector, Matcher<E> matcher, Enumerables.Emitter<E, TResult> emitter, int history, int future)
-