private static class Schemas.DummyDataContext extends Object implements DataContext
DataContext.Variable| Modifier and Type | Field and Description |
|---|---|
private CalciteConnection |
connection |
private com.google.common.collect.ImmutableMap<String,Object> |
map |
private SchemaPlus |
rootSchema |
ROOT| Constructor and Description |
|---|
DummyDataContext(CalciteConnection connection,
SchemaPlus 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.
|
JavaTypeFactory |
getTypeFactory()
Returns the type factory.
|
private final CalciteConnection connection
private final SchemaPlus rootSchema
DummyDataContext(CalciteConnection connection, SchemaPlus rootSchema)
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.