private static class StandardConvertletTable.AvgVarianceConvertlet extends 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 final SqlKind kind
AvgVarianceConvertlet(SqlKind kind)
public RexNode convertCall(SqlRexContext cx, SqlCall call)
convertCall in interface SqlRexConvertletprivate SqlNode expandAvg(SqlNode arg, RelDataType avgType, SqlRexContext cx)
private SqlNode expandVariance(SqlNode argInput, RelDataType varType, SqlRexContext cx, boolean biased, boolean sqrt)
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.