public class SchemaTreeProvider extends Object implements AutoCloseable
close().| Constructor and Description |
|---|
SchemaTreeProvider(DrillbitContext dContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.calcite.schema.SchemaPlus |
createFullRootSchema(SchemaConfig schemaConfig)
Create and return a Full SchemaTree with given schemaConfig.
|
org.apache.calcite.schema.SchemaPlus |
createFullRootSchema(String userName,
SchemaConfig.SchemaConfigInfoProvider provider)
Return full root schema with schema owner as the given user.
|
org.apache.calcite.schema.SchemaPlus |
createRootSchema(OptionManager options)
Return root schema for process user.
|
org.apache.calcite.schema.SchemaPlus |
createRootSchema(SchemaConfig schemaConfig)
Create and return a SchemaTree with given schemaConfig.
|
org.apache.calcite.schema.SchemaPlus |
createRootSchema(String userName,
SchemaConfig.SchemaConfigInfoProvider provider)
Return root schema with schema owner as the given user.
|
public SchemaTreeProvider(DrillbitContext dContext)
public org.apache.calcite.schema.SchemaPlus createRootSchema(OptionManager options)
options - list of optionspublic org.apache.calcite.schema.SchemaPlus createRootSchema(String userName, SchemaConfig.SchemaConfigInfoProvider provider)
userName - Name of the user who is accessing the storage sources.provider - SchemaConfig.SchemaConfigInfoProvider instancepublic org.apache.calcite.schema.SchemaPlus createRootSchema(SchemaConfig schemaConfig)
schemaConfig - public org.apache.calcite.schema.SchemaPlus createFullRootSchema(String userName, SchemaConfig.SchemaConfigInfoProvider provider)
userName - Name of the user who is accessing the storage sources.provider - SchemaConfig.SchemaConfigInfoProvider instancepublic org.apache.calcite.schema.SchemaPlus createFullRootSchema(SchemaConfig schemaConfig)
schemaConfig - public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.