Package org.apache.calcite.runtime
Class Enumerables
- java.lang.Object
-
- org.apache.calcite.runtime.Enumerables
-
public class Enumerables extends java.lang.Object
Utilities for processingEnumerable
collections.This class is a place to put things not yet added to linq4j. Methods are subject to removal without notice.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Enumerables()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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<java.lang.Object[]>> supplier)
Deprecated.static java.util.function.Supplier<Enumerable<Row>>
toRow(java.util.function.Supplier<Enumerable<java.lang.Object[]>> supplier)
Converts a supplier of anEnumerable
over object arrays into a supplier of anEnumerable
overRow
objects.static Enumerable<Row>
toRow(Enumerable<java.lang.Object[]> enumerable)
-
-
-
Method Detail
-
slice0
public static <E> Enumerable<E> slice0(Enumerable<E[]> enumerable)
Converts an enumerable over singleton arrays into the enumerable of their first elements.
-
toRow
public static Enumerable<Row> toRow(Enumerable<java.lang.Object[]> enumerable)
-
toRow
public static java.util.function.Supplier<Enumerable<Row>> toRow(java.util.function.Supplier<Enumerable<java.lang.Object[]>> supplier)
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<java.lang.Object[]>> supplier)
Deprecated.
-
-