public class Enumerables extends Object
Enumerable
collections.
This class is a place to put things not yet added to linq4j. Methods are subject to removal without notice.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Enumerables.Emitter<E,TResult>
Given a match (a list of rows, and their states) produces a list
of rows to be output.
|
| Modifier and Type | Method and Description |
|---|---|
static <E,TKey,TResult> |
match(org.apache.calcite.linq4j.Enumerable<E> enumerable,
org.apache.calcite.linq4j.function.Function1<E,TKey> keySelector,
Matcher<E> matcher,
Enumerables.Emitter<E,TResult> emitter,
int history,
int future) |
static <E> org.apache.calcite.linq4j.Enumerable<E> |
slice0(org.apache.calcite.linq4j.Enumerable<E[]> enumerable)
Converts an enumerable over singleton arrays into the enumerable of their
first elements.
|
static org.apache.calcite.linq4j.Enumerable<Row> |
toRow(org.apache.calcite.linq4j.Enumerable<Object[]> enumerable)
|
static Supplier<org.apache.calcite.linq4j.Enumerable<Row>> |
toRow(Supplier<org.apache.calcite.linq4j.Enumerable<Object[]>> supplier)
Converts a supplier of an
Enumerable over object arrays into a
supplier of an Enumerable over Row objects. |
static com.google.common.base.Supplier<org.apache.calcite.linq4j.Enumerable<Row>> |
toRow(com.google.common.base.Supplier<org.apache.calcite.linq4j.Enumerable<Object[]>> supplier)
Deprecated.
|
public static <E> org.apache.calcite.linq4j.Enumerable<E> slice0(org.apache.calcite.linq4j.Enumerable<E[]> enumerable)
public static org.apache.calcite.linq4j.Enumerable<Row> toRow(org.apache.calcite.linq4j.Enumerable<Object[]> enumerable)
public static Supplier<org.apache.calcite.linq4j.Enumerable<Row>> toRow(Supplier<org.apache.calcite.linq4j.Enumerable<Object[]>> supplier)
Enumerable over object arrays into a
supplier of an Enumerable over Row objects.@Deprecated public static com.google.common.base.Supplier<org.apache.calcite.linq4j.Enumerable<Row>> toRow(com.google.common.base.Supplier<org.apache.calcite.linq4j.Enumerable<Object[]>> supplier)
public static <E,TKey,TResult> org.apache.calcite.linq4j.Enumerable<TResult> match(org.apache.calcite.linq4j.Enumerable<E> enumerable,
org.apache.calcite.linq4j.function.Function1<E,TKey> keySelector,
Matcher<E> matcher,
Enumerables.Emitter<E,TResult> emitter,
int history,
int future)
Copyright © 2012-2022 Apache Software Foundation. All Rights Reserved.