Package org.apache.calcite.jdbc
Class CalciteConnectionImpl.SlimDataContext
- java.lang.Object
-
- org.apache.calcite.jdbc.CalciteConnectionImpl.SlimDataContext
-
- All Implemented Interfaces:
java.io.Serializable
,DataContext
- Enclosing class:
- CalciteConnectionImpl
private static class CalciteConnectionImpl.SlimDataContext extends java.lang.Object implements DataContext, java.io.Serializable
Implementation ofDataContext
that has few variables and isSerializable
. For Spark.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.DataContext
DataContext.Variable
-
-
Field Summary
-
Fields inherited from interface org.apache.calcite.DataContext
ROOT
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SlimDataContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
get(java.lang.String name)
Returns a context variable.QueryProvider
getQueryProvider()
Returns the query provider.SchemaPlus
getRootSchema()
Returns a sub-schema with a given name, or null.JavaTypeFactory
getTypeFactory()
Returns the type factory.
-
-
-
Method Detail
-
getRootSchema
public SchemaPlus getRootSchema()
Description copied from interface:DataContext
Returns a sub-schema with a given name, or null.- Specified by:
getRootSchema
in interfaceDataContext
-
getTypeFactory
public JavaTypeFactory getTypeFactory()
Description copied from interface:DataContext
Returns the type factory.- Specified by:
getTypeFactory
in interfaceDataContext
-
getQueryProvider
public QueryProvider getQueryProvider()
Description copied from interface:DataContext
Returns the query provider.- Specified by:
getQueryProvider
in interfaceDataContext
-
get
public java.lang.Object get(java.lang.String name)
Description copied from interface:DataContext
Returns a context variable.Supported variables include: "sparkContext", "currentTimestamp", "localTimestamp".
- Specified by:
get
in interfaceDataContext
- Parameters:
name
- Name of variable
-
-