Package org.apache.calcite.adapter.csv
Class CsvTranslatableTable
java.lang.Object
org.apache.calcite.schema.impl.AbstractTable
org.apache.calcite.adapter.csv.CsvTable
org.apache.calcite.adapter.csv.CsvTranslatableTable
- All Implemented Interfaces:
- QueryableTable,- Table,- TranslatableTable,- Wrapper
Table based on a CSV file.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.calcite.adapter.csv.CsvTableCsvTable.Flavor
- 
Field SummaryFields inherited from class org.apache.calcite.adapter.csv.CsvTableprotoRowType, source
- 
Method SummaryModifier and TypeMethodDescription<T> Queryable<T>asQueryable(QueryProvider queryProvider, SchemaPlus schema, String tableName) Converts this table into aQueryable.Returns the element type of the collection that will implement this table.getExpression(SchemaPlus schema, String tableName, Class clazz) Generates an expression with which this table can be referenced in generated code.project(DataContext root, int[] fields) Returns an enumerable over a given projection of the fields.toRel(RelOptTable.ToRelContext context, RelOptTable relOptTable) Converts this table into arelational expression.toString()Methods inherited from class org.apache.calcite.adapter.csv.CsvTablegetFieldTypes, getRowType, isStreamMethods inherited from class org.apache.calcite.schema.impl.AbstractTablegetJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrapMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.TablegetJdbcTableType, getRowType, getStatistic, isRolledUp, rolledUpColumnValidInsideAggMethods inherited from interface org.apache.calcite.schema.WrappermaybeUnwrap, unwrapOrThrow
- 
Method Details- 
toString
- 
projectReturns an enumerable over a given projection of the fields.
- 
getExpressionDescription copied from interface:QueryableTableGenerates an expression with which this table can be referenced in generated code.- Specified by:
- getExpressionin interface- QueryableTable
- Parameters:
- schema- Schema
- tableName- Table name (unique within schema)
- clazz- The desired collection class; for example- Queryable.
 
- 
getElementTypeDescription copied from interface:QueryableTableReturns the element type of the collection that will implement this table.- Specified by:
- getElementTypein interface- QueryableTable
 
- 
asQueryablepublic <T> Queryable<T> asQueryable(QueryProvider queryProvider, SchemaPlus schema, String tableName) Description copied from interface:QueryableTableConverts this table into aQueryable.- Specified by:
- asQueryablein interface- QueryableTable
 
- 
toRelDescription copied from interface:TranslatableTableConverts this table into arelational expression.- Specified by:
- toRelin interface- TranslatableTable
 
 
-