class ArrayTable extends AbstractQueryableTable implements ScannableTable
ArrayTable.Representation and
ArrayTable.RepresentationType.| Modifier and Type | Class and Description |
|---|---|
static class |
ArrayTable.BitSlicedPrimitiveArray
Representation that stores numeric values in a bit-sliced
array.
|
static class |
ArrayTable.ByteStringDictionary
Representation that stores byte-string column values.
|
static class |
ArrayTable.Column
Column definition and value set.
|
static class |
ArrayTable.Constant
Representation of a column that has the same value for every row.
|
static class |
ArrayTable.Content
Contents of a table.
|
static class |
ArrayTable.ObjectArray
Representation that stores the column values in an array.
|
static class |
ArrayTable.ObjectDictionary
Representation that stores the values of a column as a
dictionary of objects.
|
static class |
ArrayTable.PrimitiveArray
Representation that stores the values of a column in an array of
primitive values.
|
static class |
ArrayTable.PrimitiveDictionary
Representation that stores column values in a dictionary of
primitive values, then uses a short code for each row.
|
static interface |
ArrayTable.Representation
Representation of the values of a column.
|
(package private) static class |
ArrayTable.RepresentationType
How a column's values are represented.
|
static class |
ArrayTable.StringDictionary
Representation that stores string column values.
|
| Modifier and Type | Field and Description |
|---|---|
private RelProtoDataType |
protoRowType |
private com.google.common.base.Supplier<ArrayTable.Content> |
supplier |
elementType| Constructor and Description |
|---|
ArrayTable(Type elementType,
RelProtoDataType protoRowType,
com.google.common.base.Supplier<ArrayTable.Content> supplier)
Creates an ArrayTable.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName)
Converts this table into a
Queryable. |
RelDataType |
getRowType(RelDataTypeFactory typeFactory)
Returns this table's row type.
|
Statistic |
getStatistic()
Returns a provider of statistics about this table.
|
private static <E> List<E> |
permuteList(List<E> list,
int[] sources) |
Enumerable<Object[]> |
scan(DataContext root)
Returns an enumerator over the rows in this Table.
|
private static <T> Pair<Object,T> |
toPair(Object dataSet) |
getElementType, getExpressiongetJdbcTableType, isRolledUp, rolledUpColumnValidInsideAgg, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetJdbcTableType, isRolledUp, rolledUpColumnValidInsideAggprivate final RelProtoDataType protoRowType
private final com.google.common.base.Supplier<ArrayTable.Content> supplier
ArrayTable(Type elementType, RelProtoDataType protoRowType, com.google.common.base.Supplier<ArrayTable.Content> supplier)
public RelDataType getRowType(RelDataTypeFactory typeFactory)
TableThis is a struct type whose fields describe the names and types of the columns in this table.
The implementer must use the type factory provided. This ensures that the type is converted into a canonical form; other equal types in the same query will use the same object.
getRowType in interface TabletypeFactory - Type factory with which to create the typepublic Statistic getStatistic()
TablegetStatistic in interface TablegetStatistic in class AbstractTablepublic Enumerable<Object[]> scan(DataContext root)
ScannableTablescan in interface ScannableTablepublic <T> Queryable<T> asQueryable(QueryProvider queryProvider, SchemaPlus schema, String tableName)
QueryableTableQueryable.asQueryable in interface QueryableTableCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.