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
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable ObjectReturns a context variable.Returns the query provider.Returns a sub-schema with a given name, or null.Returns the type factory.static @Nullable DataContextof(RelNode targetRel, LogicalFilter queryRel) static @Nullable DataContextof(RelDataType rowType, List<? extends Pair<RexInputRef, ? extends @Nullable RexNode>> usageList) static @Nullable DataContextof(RelDataType rowType, RexNode rex)
-
Constructor Details
-
VisitorDataContext
-
-
Method Details
-
getRootSchema
Description copied from interface:DataContextReturns a sub-schema with a given name, or null.- Specified by:
getRootSchemain interfaceDataContext
-
getTypeFactory
Description copied from interface:DataContextReturns the type factory.- Specified by:
getTypeFactoryin interfaceDataContext
-
getQueryProvider
Description copied from interface:DataContextReturns the query provider.- Specified by:
getQueryProviderin interfaceDataContext
-
get
Description copied from interface:DataContextReturns a context variable.Supported variables include: "sparkContext", "currentTimestamp", "localTimestamp".
- Specified by:
getin 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
-