static class CalciteConnectionImpl.ContextImpl extends Object implements CalcitePrepare.Context
| Modifier and Type | Field and Description |
|---|---|
private CalciteConnectionImpl |
connection |
private CalciteSchema |
mutableRootSchema |
private CalciteSchema |
rootSchema |
| Constructor and Description |
|---|
ContextImpl(CalciteConnectionImpl connection) |
| Modifier and Type | Method and Description |
|---|---|
CalciteConnectionConfig |
config() |
DataContext |
getDataContext() |
List<String> |
getDefaultSchemaPath() |
CalciteSchema |
getMutableRootSchema()
Returns the root schema for statements that need to be able to modify
schemas and have the results available to other statements.
|
List<String> |
getObjectPath()
Returns the path of the object being analyzed, or null.
|
RelRunner |
getRelRunner()
Gets a runner; it can execute a relational expression.
|
CalciteSchema |
getRootSchema()
Returns the root schema for statements that need a read-consistent
snapshot.
|
JavaTypeFactory |
getTypeFactory() |
CalcitePrepare.SparkHandler |
spark()
Returns the spark handler.
|
private final CalciteConnectionImpl connection
private final CalciteSchema mutableRootSchema
private final CalciteSchema rootSchema
ContextImpl(CalciteConnectionImpl connection)
public JavaTypeFactory getTypeFactory()
getTypeFactory in interface CalcitePrepare.Contextpublic CalciteSchema getRootSchema()
CalcitePrepare.ContextgetRootSchema in interface CalcitePrepare.Contextpublic CalciteSchema getMutableRootSchema()
CalcitePrepare.ContextgetMutableRootSchema in interface CalcitePrepare.Contextpublic List<String> getDefaultSchemaPath()
getDefaultSchemaPath in interface CalcitePrepare.Contextpublic List<String> getObjectPath()
CalcitePrepare.ContextThe object is being analyzed is typically a view. If it is already being analyzed further up the stack, the view definition can be deduced to be cyclic.
getObjectPath in interface CalcitePrepare.Contextpublic CalciteConnectionConfig config()
config in interface CalcitePrepare.Contextpublic DataContext getDataContext()
getDataContext in interface CalcitePrepare.Contextpublic RelRunner getRelRunner()
CalcitePrepare.ContextgetRelRunner in interface CalcitePrepare.Contextpublic CalcitePrepare.SparkHandler spark()
CalcitePrepare.Contextspark in interface CalcitePrepare.ContextCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.