Package org.apache.calcite.plan
Class VisitorDataContext
java.lang.Object
org.apache.calcite.plan.VisitorDataContext
- All Implemented Interfaces:
DataContext
DataContext for evaluating a RexExpression.
-
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
-
Method Summary
Modifier and TypeMethodDescription@Nullable Object
Returns a context variable.Returns the query provider.Returns a sub-schema with a given name, or null.Returns the type factory.static @Nullable DataContext
of
(RelNode targetRel, LogicalFilter queryRel) static @Nullable DataContext
of
(RelDataType rowType, List<? extends Pair<RexInputRef, ? extends @Nullable RexNode>> usageList) static @Nullable DataContext
of
(RelDataType rowType, RexNode rex)
-
Constructor Details
-
VisitorDataContext
-
-
Method Details
-
getRootSchema
Description copied from interface:DataContext
Returns a sub-schema with a given name, or null.- Specified by:
getRootSchema
in interfaceDataContext
-
getTypeFactory
Description copied from interface:DataContext
Returns the type factory.- Specified by:
getTypeFactory
in interfaceDataContext
-
getQueryProvider
Description copied from interface:DataContext
Returns the query provider.- Specified by:
getQueryProvider
in interfaceDataContext
-
get
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
-
of
-
of
-
of
public static @Nullable DataContext of(RelDataType rowType, List<? extends Pair<RexInputRef, ? extends @Nullable RexNode>> usageList) -
getValue
-