Package org.apache.drill.exec.store.http
Class HttpAPIConnectionSchema
java.lang.Object
org.apache.drill.exec.store.AbstractSchema
org.apache.drill.exec.store.http.HttpAPIConnectionSchema
- All Implemented Interfaces:
AutoCloseable
,org.apache.calcite.schema.Schema
,SchemaPartitionExplorer
In the HTTP storage plugin, users can define specific connections or APIs.
This class represents the database component of other storage plugins.
-
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
ConstructorDescriptionHttpAPIConnectionSchema
(HttpSchemaFactory.HttpSchema parent, String name, HttpStoragePlugin plugin, String queryUserName) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.schema.Table
Gets the table that is received from the query.Returns 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, getSubSchema, getSubSchemaNames, getTableNamesAndTypes, getTablesByNames, getType, getTypeMap, getTypeNames, getUser, isMutable, modifyTable, needToImpersonateReadingData, showInInformationSchema, snapshot, toString
-
Constructor Details
-
HttpAPIConnectionSchema
public HttpAPIConnectionSchema(HttpSchemaFactory.HttpSchema parent, String name, HttpStoragePlugin plugin, String queryUserName)
-
-
Method Details
-
getTypeName
Description copied from class:AbstractSchema
Returns 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:
getTypeName
in classAbstractSchema
- Returns:
- schema type name
-
getTable
Gets the table that is received from the query. In this case, the table actually are arguments which are passed in the URL string.- Specified by:
getTable
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
getTable
in classAbstractSchema
- Parameters:
tableName
- The "tableName" actually will contain the URL arguments passed to the record reader- Returns:
- the selected table
-
getTableNames
- Specified by:
getTableNames
in interfaceorg.apache.calcite.schema.Schema
- Overrides:
getTableNames
in classAbstractSchema
-