private static class CalciteConnectionImpl.SlimDataContext extends Object implements DataContext, Serializable
DataContext that has few variables and is
Serializable. For Spark.DataContext.VariableROOT| Modifier | Constructor and Description |
|---|---|
private |
SlimDataContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(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.
|
public SchemaPlus getRootSchema()
DataContextgetRootSchema in interface DataContextpublic JavaTypeFactory getTypeFactory()
DataContextgetTypeFactory in interface DataContextpublic QueryProvider getQueryProvider()
DataContextgetQueryProvider in interface DataContextpublic Object get(String name)
DataContextSupported variables include: "sparkContext", "currentTimestamp", "localTimestamp".
get in interface DataContextname - Name of variableCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.