Enum InfoSchemaTableType
- All Implemented Interfaces:
Serializable
,Comparable<InfoSchemaTableType>
,DrillTableSelection
The set of tables / views in INFORMATION_SCHEMA.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptiondigest()
The digest of the selection represented by the implementation.<S> PojoRecordReader<S>
getRecordReader
(org.apache.calcite.schema.SchemaPlus rootSchema, InfoSchemaFilter filter, OptionManager optionManager, MetastoreRegistry metastoreRegistry) org.apache.calcite.rel.type.RelDataType
getRowType
(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) static InfoSchemaTableType
Returns the enum constant of this type with the specified name.static InfoSchemaTableType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CATALOGS
-
SCHEMATA
-
VIEWS
-
COLUMNS
-
TABLES
-
PARTITIONS
-
FILES
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getRecordReader
public <S> PojoRecordReader<S> getRecordReader(org.apache.calcite.schema.SchemaPlus rootSchema, InfoSchemaFilter filter, OptionManager optionManager, MetastoreRegistry metastoreRegistry) -
getRowType
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) -
digest
Description copied from interface:DrillTableSelection
The digest of the selection represented by the implementation. The selections that accompany Tables can modify the contained dataset, e.g. a file selection can restrict to a subset of the available data and a format selection can include options that affect the behaviour of the underlying reader. Two scans will end up being considered identical during logical planning if their digests are the same so selection implementations should override this method so that exactly those scans that really are identical (in terms of the data they produce) have matching digests.- Specified by:
digest
in interfaceDrillTableSelection
- Returns:
- this selection's digest, normally a string built from its properties.
-