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 | Field and Description |
|---|---|
private static Function1<Object[],Row> |
ARRAY_TO_ROW |
private static Function1<?,?> |
SLICE |
| Modifier | Constructor and Description |
|---|---|
private |
Enumerables() |
| Modifier and Type | Method and Description |
|---|---|
static <E> Enumerable<E> |
slice0(Enumerable<E[]> enumerable)
Converts an enumerable over singleton arrays into the enumerable of their
first elements.
|
static Enumerable<Row> |
toRow(Enumerable<Object[]> enumerable)
|
static com.google.common.base.Supplier<Enumerable<Row>> |
toRow(com.google.common.base.Supplier<Enumerable<Object[]>> supplier)
Converts a supplier of an
Enumerable over object arrays into a
supplier of an Enumerable over Row objects. |
private static final Function1<?,?> SLICE
public static <E> Enumerable<E> slice0(Enumerable<E[]> enumerable)
public static Enumerable<Row> toRow(Enumerable<Object[]> enumerable)
public static com.google.common.base.Supplier<Enumerable<Row>> toRow(com.google.common.base.Supplier<Enumerable<Object[]>> supplier)
Enumerable over object arrays into a
supplier of an Enumerable over Row objects.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.