| Modifier and Type | Method and Description |
|---|---|
static AbstractSchema |
SchemaUtilites.getTemporaryWorkspace(org.apache.calcite.schema.SchemaPlus defaultSchema,
DrillConfig config)
Looks in schema tree for default temporary workspace instance.
|
static AbstractSchema |
SchemaUtilites.resolveToMutableDrillSchema(org.apache.calcite.schema.SchemaPlus defaultSchema,
List<String> schemaPath)
Given reference to default schema in schema tree, search for schema with given schemaPath.
|
static AbstractSchema |
SchemaUtilites.unwrapAsDrillSchemaInstance(org.apache.calcite.schema.SchemaPlus schemaPlus)
Unwrap given SchemaPlus instance as Drill schema instance (AbstractSchema).
|
| Modifier and Type | Method and Description |
|---|---|
static WorkspaceSchemaFactory.WorkspaceSchema |
SchemaUtilites.resolveToValidTemporaryWorkspace(AbstractSchema schema,
DrillConfig config)
Makes sure that passed workspace exists, is default temporary workspace, mutable and file-based
(instance of
WorkspaceSchemaFactory.WorkspaceSchema). |
| Modifier and Type | Method and Description |
|---|---|
static void |
SqlHandlerUtil.dropTableFromSchema(AbstractSchema drillSchema,
String tableName)
Drops table from schema.
|
static void |
SqlHandlerUtil.dropViewFromSchema(AbstractSchema drillSchema,
String viewName)
Drops view from schema.
|
static org.apache.calcite.schema.Table |
SqlHandlerUtil.getTableFromSchema(AbstractSchema drillSchema,
String tblName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
UserSession.isTemporaryTable(AbstractSchema drillSchema,
DrillConfig config,
String tableName)
Checks if passed table is temporary, table name is case-insensitive.
|
String |
UserSession.registerTemporaryTable(AbstractSchema schema,
String tableName,
DrillConfig config)
Creates and adds session temporary location if absent using schema configuration.
|
void |
UserSession.removeTemporaryTable(AbstractSchema schema,
String tableName,
DrillConfig config)
Removes temporary table name from the list of session temporary tables.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SubSchemaWrapper |
| Constructor and Description |
|---|
SubSchemaWrapper(AbstractSchema innerSchema) |
| Modifier and Type | Class and Description |
|---|---|
class |
FileSystemSchemaFactory.FileSystemSchema |
class |
WorkspaceSchemaFactory.WorkspaceSchema |
| Modifier and Type | Method and Description |
|---|---|
AbstractSchema |
FileSystemSchemaFactory.FileSystemSchema.getDefaultSchema() |
AbstractSchema |
FileSystemSchemaFactory.FileSystemSchema.getSubSchema(String name) |
Copyright © 2017 The Apache Software Foundation. All rights reserved.