private static class StandardConvertletTable.AvgVarianceConvertlet extends java.lang.Object implements SqlRexConvertlet
AVG
and VARIANCE
windowed aggregate functions.Constructor and Description |
---|
AvgVarianceConvertlet(SqlKind kind) |
Modifier and Type | Method and Description |
---|---|
RexNode |
convertCall(SqlRexContext cx,
SqlCall call) |
private SqlNode |
expandAvg(SqlNode arg,
RelDataType avgType,
SqlRexContext cx) |
private SqlNode |
expandVariance(SqlNode argInput,
RelDataType varType,
SqlRexContext cx,
boolean biased,
boolean sqrt) |
private SqlNode |
getCastedSqlNode(SqlNode argInput,
RelDataType varType,
SqlParserPos pos,
RexNode argRex) |
private final SqlKind kind
AvgVarianceConvertlet(SqlKind kind)
public RexNode convertCall(SqlRexContext cx, SqlCall call)
convertCall
in interface SqlRexConvertlet
private SqlNode expandAvg(SqlNode arg, RelDataType avgType, SqlRexContext cx)
private SqlNode expandVariance(SqlNode argInput, RelDataType varType, SqlRexContext cx, boolean biased, boolean sqrt)
private SqlNode getCastedSqlNode(SqlNode argInput, RelDataType varType, SqlParserPos pos, RexNode argRex)
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.