Class GoogleSheetsRootSchema
java.lang.Object
org.apache.drill.exec.store.AbstractSchema
org.apache.drill.exec.store.googlesheets.schema.GoogleSheetsRootSchema
- All Implemented Interfaces:
AutoCloseable,org.apache.calcite.schema.Schema,SchemaPartitionExplorer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.schema.Schema
org.apache.calcite.schema.Schema.TableType -
Field Summary
Fields inherited from class org.apache.drill.exec.store.AbstractSchema
name, SCHEMA_SEPARATOR, schemaPath -
Constructor Summary
ConstructorsConstructorDescriptionGoogleSheetsRootSchema(GoogleSheetsStoragePlugin plugin, SchemaConfig schemaConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetFileTokenWithCorrectCase(Map<String, String> tokenMap, String lowercaseToken) Drill automatically converts the file token to lower case during DDL queries.getSubSchema(String name) org.apache.calcite.schema.TableReturns string describing schema type which shows where the schema came from.Methods inherited from class org.apache.drill.exec.store.AbstractSchema
appendToStatsTable, applyFunctionParameters, areTableNamesCaseSensitive, close, createNewTable, createNewTable, createStatsTable, createView, dropTable, dropView, getDefaultSchema, getExpression, getFullSchemaName, getFunctionNames, getFunctionParameters, getFunctions, getName, getSchemaPath, getStatsTable, getSubPartitions, getTableNames, getTableNamesAndTypes, getTablesByNames, getType, getTypeMap, getTypeNames, getUser, isMutable, modifyTable, needToImpersonateReadingData, showInInformationSchema, snapshot, toString
-
Constructor Details
-
GoogleSheetsRootSchema
-
-
Method Details
-
getSubSchemaNames
- Specified by:
getSubSchemaNamesin interfaceorg.apache.calcite.schema.Schema- Overrides:
getSubSchemaNamesin classAbstractSchema
-
getSubSchema
- Specified by:
getSubSchemain interfaceorg.apache.calcite.schema.Schema- Overrides:
getSubSchemain classAbstractSchema
-
getTable
- Specified by:
getTablein interfaceorg.apache.calcite.schema.Schema- Overrides:
getTablein classAbstractSchema
-
getTypeName
Description copied from class:AbstractSchemaReturns string describing schema type which shows where the schema came from. Good practice here is to return json type name of storage plugin's config.- Specified by:
getTypeNamein classAbstractSchema- Returns:
- schema type name
-
getTokenMap
-
getFileTokenWithCorrectCase
public static String getFileTokenWithCorrectCase(Map<String, String> tokenMap, String lowercaseToken) Drill automatically converts the file token to lower case during DDL queries. Since Google is case-sensitive, this method insures that we are using the correct file token.- Returns:
- A file token in the correct case.
-