Package org.apache.calcite.jdbc
Class CalciteConnectionImpl.ContextImpl
- java.lang.Object
-
- org.apache.calcite.jdbc.CalciteConnectionImpl.ContextImpl
-
- All Implemented Interfaces:
CalcitePrepare.Context
- Enclosing class:
- CalciteConnectionImpl
static class CalciteConnectionImpl.ContextImpl extends java.lang.Object implements CalcitePrepare.Context
Implementation of Context.
-
-
Field Summary
Fields Modifier and Type Field Description private CalciteConnectionImpl
connection
private CalciteSchema
mutableRootSchema
private CalciteSchema
rootSchema
-
Constructor Summary
Constructors Constructor Description ContextImpl(CalciteConnectionImpl connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
connection
private final CalciteConnectionImpl connection
-
mutableRootSchema
private final CalciteSchema mutableRootSchema
-
rootSchema
private final CalciteSchema rootSchema
-
-
Constructor Detail
-
ContextImpl
ContextImpl(CalciteConnectionImpl connection)
-
-
Method Detail
-
getTypeFactory
public JavaTypeFactory getTypeFactory()
- Specified by:
getTypeFactory
in interfaceCalcitePrepare.Context
-
getRootSchema
public CalciteSchema getRootSchema()
Description copied from interface:CalcitePrepare.Context
Returns the root schema for statements that need a read-consistent snapshot.- Specified by:
getRootSchema
in interfaceCalcitePrepare.Context
-
getMutableRootSchema
public CalciteSchema getMutableRootSchema()
Description copied from interface:CalcitePrepare.Context
Returns the root schema for statements that need to be able to modify schemas and have the results available to other statements. Viz, DDL statements.- Specified by:
getMutableRootSchema
in interfaceCalcitePrepare.Context
-
getDefaultSchemaPath
public java.util.List<java.lang.String> getDefaultSchemaPath()
- Specified by:
getDefaultSchemaPath
in interfaceCalcitePrepare.Context
-
getObjectPath
public java.util.List<java.lang.String> getObjectPath()
Description copied from interface:CalcitePrepare.Context
Returns the path of the object being analyzed, or null.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.
- Specified by:
getObjectPath
in interfaceCalcitePrepare.Context
-
config
public CalciteConnectionConfig config()
- Specified by:
config
in interfaceCalcitePrepare.Context
-
getDataContext
public DataContext getDataContext()
- Specified by:
getDataContext
in interfaceCalcitePrepare.Context
-
getRelRunner
public RelRunner getRelRunner()
Description copied from interface:CalcitePrepare.Context
Gets a runner; it can execute a relational expression.- Specified by:
getRelRunner
in interfaceCalcitePrepare.Context
-
spark
public CalcitePrepare.SparkHandler spark()
Description copied from interface:CalcitePrepare.Context
Returns the spark handler. Never null.- Specified by:
spark
in interfaceCalcitePrepare.Context
-
-