public class VisitorDataContext extends Object implements DataContext
DataContext.Variable| Modifier and Type | Field and Description |
|---|---|
private static CalciteLogger |
LOGGER |
private Object[] |
values |
ROOT| Constructor and Description |
|---|
VisitorDataContext(Object[] values) |
| 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.
|
static Pair<Integer,?> |
getValue(RexNode inputRef,
RexNode literal) |
static DataContext |
of(RelDataType rowType,
List<Pair<RexInputRef,RexNode>> usageList) |
static DataContext |
of(RelDataType rowType,
RexNode rex) |
static DataContext |
of(RelNode targetRel,
LogicalFilter queryRel) |
private static RexNode |
removeCast(RexNode inputRef) |
private static final CalciteLogger LOGGER
private final Object[] values
public VisitorDataContext(Object[] values)
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 variablepublic static DataContext of(RelNode targetRel, LogicalFilter queryRel)
public static DataContext of(RelDataType rowType, RexNode rex)
public static DataContext of(RelDataType rowType, List<Pair<RexInputRef,RexNode>> usageList)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.