public class FileSystemSchemaFactory.FileSystemSchema extends AbstractSchema
name, schemaPath| Constructor and Description |
|---|
FileSystemSchemaFactory.FileSystemSchema(String name,
SchemaConfig schemaConfig) |
| Modifier and Type | Method and Description |
|---|---|
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
|
AbstractSchema |
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) |
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.
|
AbstractSchema |
getSubSchema(String name) |
Set<String> |
getSubSchemaNames() |
org.apache.calcite.schema.Table |
getTable(String name) |
Set<String> |
getTableNames() |
String |
getTypeName() |
boolean |
isMutable() |
boolean |
showInInformationSchema()
Reports whether to show items from this schema in INFORMATION_SCHEMA
tables.
|
close, contentsHaveChangedSince, createNewTable, createView, dropTable, dropView, getExpression, getFullSchemaName, getName, getSchemaPath, getTableNamesAndTypes, getTablesByNames, getTablesByNamesByBulkLoadpublic FileSystemSchemaFactory.FileSystemSchema(String name, SchemaConfig schemaConfig) throws IOException
IOExceptionpublic Iterable<String> getSubPartitions(String table, List<String> partitionColumns, List<String> partitionValues) throws PartitionNotFoundException
SchemaPartitionExplorerPartitionExplorer.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 boolean showInInformationSchema()
AbstractSchema
This base implementation returns true.
showInInformationSchema in class AbstractSchemapublic String getTypeName()
getTypeName in class AbstractSchemapublic org.apache.calcite.schema.Table getTable(String name)
getTable in interface org.apache.calcite.schema.SchemagetTable in class AbstractSchemapublic Collection<org.apache.calcite.schema.Function> getFunctions(String name)
getFunctions in interface org.apache.calcite.schema.SchemagetFunctions in class AbstractSchemapublic Set<String> getFunctionNames()
getFunctionNames in interface org.apache.calcite.schema.SchemagetFunctionNames in class AbstractSchemapublic AbstractSchema 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 Set<String> getTableNames()
getTableNames in interface org.apache.calcite.schema.SchemagetTableNames in class AbstractSchemapublic boolean isMutable()
isMutable in interface org.apache.calcite.schema.SchemaisMutable 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 AbstractSchema getDefaultSchema()
AbstractSchemagetDefaultSchema in class AbstractSchemaCopyright © 2017 The Apache Software Foundation. All rights reserved.