Package org.apache.calcite.adapter.csv
Class CsvTable
java.lang.Object
org.apache.calcite.schema.impl.AbstractTable
org.apache.calcite.adapter.csv.CsvTable
- Direct Known Subclasses:
CsvFilterableTable
,CsvScannableTable
,CsvTranslatableTable
Base class for table that reads CSV files.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Various degrees of table "intelligence". -
Field Summary
Modifier and TypeFieldDescriptionprotected final @Nullable RelProtoDataType
protected final Source
-
Method Summary
Modifier and TypeMethodDescriptiongetFieldTypes
(RelDataTypeFactory typeFactory) Returns the field types of this CSV table.getRowType
(RelDataTypeFactory typeFactory) Returns this table's row type.protected boolean
isStream()
Returns whether the table represents a stream.Methods inherited from class org.apache.calcite.schema.impl.AbstractTable
getJdbcTableType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.schema.Wrapper
maybeUnwrap, unwrapOrThrow
-
Field Details
-
source
-
protoRowType
-
-
Method Details
-
getRowType
Description copied from interface:Table
Returns this table's row type.This 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.
- Parameters:
typeFactory
- Type factory with which to create the type- Returns:
- Row type
-
getFieldTypes
Returns the field types of this CSV table. -
isStream
protected boolean isStream()Returns whether the table represents a stream.
-