public abstract class DeclarativeExpressionResolver extends ExpressionDefaultVisitor<ResolvedExpression>
DeclarativeAggregateFunction
.Constructor and Description |
---|
DeclarativeExpressionResolver(RelBuilder relBuilder,
DeclarativeAggregateFunction function,
boolean isMerge) |
Modifier and Type | Method and Description |
---|---|
protected ResolvedExpression |
defaultMethod(Expression expression) |
abstract ResolvedExpression |
toAccInputExpr(String name,
int localIndex)
When accumulate phase, for inputs.
|
abstract ResolvedExpression |
toAggBufferExpr(String name,
int localIndex)
For aggregate buffer.
|
abstract ResolvedExpression |
toMergeInputExpr(String name,
int localIndex)
When merge phase, for inputs.
|
static ResolvedExpression |
toRexDistinctKey(RelBuilder builder,
String name,
LogicalType t) |
static ResolvedExpression |
toRexInputRef(RelBuilder builder,
int i,
LogicalType t) |
public DeclarativeExpressionResolver(RelBuilder relBuilder, DeclarativeAggregateFunction function, boolean isMerge)
protected ResolvedExpression defaultMethod(Expression expression)
defaultMethod
in class ExpressionDefaultVisitor<ResolvedExpression>
public abstract ResolvedExpression toMergeInputExpr(String name, int localIndex)
public abstract ResolvedExpression toAccInputExpr(String name, int localIndex)
public abstract ResolvedExpression toAggBufferExpr(String name, int localIndex)
public static ResolvedExpression toRexInputRef(RelBuilder builder, int i, LogicalType t)
public static ResolvedExpression toRexDistinctKey(RelBuilder builder, String name, LogicalType t)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.