static class CalciteConnectionImpl.DataContextImpl extends Object implements DataContext
DataContext.Variable| Modifier and Type | Field and Description |
|---|---|
private com.google.common.collect.ImmutableMap<Object,Object> |
map |
private QueryProvider |
queryProvider |
private CalciteSchema |
rootSchema |
private JavaTypeFactory |
typeFactory |
ROOT| Constructor and Description |
|---|
DataContextImpl(CalciteConnectionImpl connection,
Map<String,Object> parameters,
CalciteSchema rootSchema) |
| 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.
|
private SqlAdvisor |
getSqlAdvisor() |
JavaTypeFactory |
getTypeFactory()
Returns the type factory.
|
private final CalciteSchema rootSchema
private final QueryProvider queryProvider
private final JavaTypeFactory typeFactory
DataContextImpl(CalciteConnectionImpl connection, Map<String,Object> parameters, CalciteSchema rootSchema)
public Object get(String name)
DataContextSupported variables include: "sparkContext", "currentTimestamp", "localTimestamp".
get in interface DataContextname - Name of variableprivate SqlAdvisor getSqlAdvisor()
public SchemaPlus getRootSchema()
DataContextgetRootSchema in interface DataContextpublic JavaTypeFactory getTypeFactory()
DataContextgetTypeFactory in interface DataContextpublic QueryProvider getQueryProvider()
DataContextgetQueryProvider in interface DataContextCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.