static class CalciteConnectionImpl.ContextImpl extends java.lang.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() |
java.util.List<java.lang.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.
|
java.util.List<java.lang.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.Context
public CalciteSchema getRootSchema()
CalcitePrepare.Context
getRootSchema
in interface CalcitePrepare.Context
public CalciteSchema getMutableRootSchema()
CalcitePrepare.Context
getMutableRootSchema
in interface CalcitePrepare.Context
public java.util.List<java.lang.String> getDefaultSchemaPath()
getDefaultSchemaPath
in interface CalcitePrepare.Context
public java.util.List<java.lang.String> getObjectPath()
CalcitePrepare.Context
The 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.Context
public CalciteConnectionConfig config()
config
in interface CalcitePrepare.Context
public DataContext getDataContext()
getDataContext
in interface CalcitePrepare.Context
public RelRunner getRelRunner()
CalcitePrepare.Context
getRelRunner
in interface CalcitePrepare.Context
public CalcitePrepare.SparkHandler spark()
CalcitePrepare.Context
spark
in interface CalcitePrepare.Context
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.