public class SubSchemaWrapper extends AbstractSchema
name, SCHEMA_SEPARATOR, schemaPath| Constructor and Description |
|---|
SubSchemaWrapper(AbstractSchema innerSchema) |
| Modifier and Type | Method and Description |
|---|---|
CreateTableEntry |
appendToStatsTable(String tableName)
Create an append statistics table entry for given tableName.
|
CreateTableEntry |
createNewTable(String tableName,
List<String> partitionColumns,
StorageStrategy storageStrategy)
Creates table entry using table name, list of partition columns
and storage strategy used to create table folder and files
|
CreateTableEntry |
createStatsTable(String tableName)
Create stats table entry for given tableName.
|
org.apache.calcite.schema.Schema |
getDefaultSchema()
The schema can be a top level schema which doesn't have its own tables, but refers
to one of the default sub schemas for table look up.
|
Set<String> |
getFunctionNames() |
Collection<org.apache.calcite.schema.Function> |
getFunctions(String name)
For the given table names returns list of acceptable table functions
which are common for all Drill schemas.
|
org.apache.calcite.schema.Table |
getStatsTable(String tableName)
Get the statistics table for given tableName
|
Iterable<String> |
getSubPartitions(String table,
List<String> partitionColumns,
List<String> partitionValues)
Get a list of sub-partitions of a particular table and the partitions
specified by partition columns and values.
|
org.apache.calcite.schema.Schema |
getSubSchema(String name) |
Set<String> |
getSubSchemaNames() |
org.apache.calcite.schema.Table |
getTable(String name) |
Set<String> |
getTableNames() |
String |
getTypeName()
Returns string describing schema type which shows where the schema came from.
|
boolean |
isMutable() |
boolean |
showInInformationSchema()
Reports whether to show items from this schema in INFORMATION_SCHEMA
tables.
|
applyFunctionParameters, areTableNamesCaseSensitive, close, createNewTable, createView, dropTable, dropView, getExpression, getFullSchemaName, getFunctionParameters, getName, getSchemaPath, getTableNamesAndTypes, getTablesByNames, getType, getTypeMap, getTypeNames, snapshot, toStringpublic SubSchemaWrapper(AbstractSchema innerSchema)
public boolean showInInformationSchema()
AbstractSchema
This base implementation returns true.
showInInformationSchema in class AbstractSchemapublic Iterable<String> getSubPartitions(String table, List<String> partitionColumns, List<String> partitionValues) throws PartitionNotFoundException
SchemaPartitionExplorer
For more info see docs in PartitionExplorer.
getSubPartitions in interface SchemaPartitionExplorergetSubPartitions in class AbstractSchemapartitionColumns - a list of partitions to matchpartitionValues - list of values of each partition (corresponding
to the partition column list)PartitionNotFoundException - when the partition does not exist in
the given workspacepublic org.apache.calcite.schema.Schema getDefaultSchema()
AbstractSchemaDefault implementation returns itself.
Ex. "dfs" schema refers to the tables in "default" workspace when querying for tables in "dfs" schema.
getDefaultSchema in class AbstractSchemapublic CreateTableEntry createNewTable(String tableName, List<String> partitionColumns, StorageStrategy storageStrategy)
AbstractSchemacreateNewTable in class AbstractSchematableName - : new table name.partitionColumns - : list of partition columns. Empty list if there is no partition columns.storageStrategy - : storage strategy used to create table folder and filespublic CreateTableEntry createStatsTable(String tableName)
AbstractSchemacreateStatsTable in class AbstractSchematableName - table namepublic CreateTableEntry appendToStatsTable(String tableName)
AbstractSchemaappendToStatsTable in class AbstractSchematableName - table namepublic org.apache.calcite.schema.Table getStatsTable(String tableName)
AbstractSchemagetStatsTable in class AbstractSchematableName - table namepublic Collection<org.apache.calcite.schema.Function> getFunctions(String name)
AbstractSchemagetFunctions in interface org.apache.calcite.schema.SchemagetFunctions in class AbstractSchemaname - table namepublic Set<String> getFunctionNames()
getFunctionNames in interface org.apache.calcite.schema.SchemagetFunctionNames in class AbstractSchemapublic org.apache.calcite.schema.Schema getSubSchema(String name)
getSubSchema in interface org.apache.calcite.schema.SchemagetSubSchema in class AbstractSchemapublic Set<String> getSubSchemaNames()
getSubSchemaNames in interface org.apache.calcite.schema.SchemagetSubSchemaNames in class AbstractSchemapublic boolean isMutable()
isMutable in interface org.apache.calcite.schema.SchemaisMutable in class AbstractSchemapublic org.apache.calcite.schema.Table getTable(String name)
getTable in interface org.apache.calcite.schema.SchemagetTable in class AbstractSchemapublic Set<String> getTableNames()
getTableNames in interface org.apache.calcite.schema.SchemagetTableNames in class AbstractSchemapublic String getTypeName()
AbstractSchemagetTypeName in class AbstractSchemaCopyright © 2021 The Apache Software Foundation. All rights reserved.