class FileTable extends AbstractQueryableTable implements TranslatableTable
| Modifier and Type | Field and Description |
|---|---|
private FileRowConverter |
converter |
private RelProtoDataType |
protoRowType |
private FileReader |
reader |
elementType| Modifier | Constructor and Description |
|---|---|
private |
FileTable(Source source,
String selector,
Integer index,
RelProtoDataType protoRowType,
List<Map<String,Object>> fieldConfigs)
Creates a FileTable.
|
| Modifier and Type | Method and Description |
|---|---|
<T> Queryable<T> |
asQueryable(QueryProvider queryProvider,
SchemaPlus schema,
String tableName) |
(package private) static FileTable |
create(Source source,
Map<String,Object> tableDef)
Creates a FileTable.
|
RelDataType |
getRowType(RelDataTypeFactory typeFactory) |
Statistic |
getStatistic() |
Enumerable<Object> |
project(int[] fields)
Returns an enumerable over a given projection of the fields.
|
RelNode |
toRel(RelOptTable.ToRelContext context,
RelOptTable relOptTable) |
String |
toString() |
getElementType, getExpressiongetJdbcTableType, isRolledUp, rolledUpColumnValidInsideAgg, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetJdbcTableType, isRolledUp, rolledUpColumnValidInsideAggprivate final RelProtoDataType protoRowType
private FileReader reader
private FileRowConverter converter
static FileTable create(Source source, Map<String,Object> tableDef) throws Exception
Exceptionpublic Statistic getStatistic()
getStatistic in interface TablegetStatistic in class AbstractTablepublic RelDataType getRowType(RelDataTypeFactory typeFactory)
getRowType in interface Tablepublic <T> Queryable<T> asQueryable(QueryProvider queryProvider, SchemaPlus schema, String tableName)
asQueryable in interface QueryableTablepublic Enumerable<Object> project(int[] fields)
public RelNode toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable)
toRel in interface TranslatableTableCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.