Package org.apache.calcite.sql2rel
Class StandardConvertletTable.RegrCovarianceConvertlet
- java.lang.Object
-
- org.apache.calcite.sql2rel.StandardConvertletTable.RegrCovarianceConvertlet
-
- All Implemented Interfaces:
SqlRexConvertlet
- Enclosing class:
- StandardConvertletTable
private static class StandardConvertletTable.RegrCovarianceConvertlet extends java.lang.Object implements SqlRexConvertlet
Convertlet that handlesCOVAR_POP
,COVAR_SAMP
,REGR_SXX
,REGR_SYY
windowed aggregate functions.
-
-
Constructor Summary
Constructors Constructor Description RegrCovarianceConvertlet(SqlKind kind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RexNode
convertCall(SqlRexContext cx, SqlCall call)
private SqlNode
expandCovariance(SqlNode arg0Input, SqlNode arg1Input, SqlNode dependent, RelDataType varType, SqlRexContext cx, boolean biased)
private SqlNode
expandRegrSzz(SqlNode arg1, SqlNode arg2, RelDataType avgType, SqlRexContext cx, boolean variance)
private SqlNode
getCastedSqlNode(SqlNode argInput, RelDataType varType, SqlParserPos pos, RexNode argRex)
-
-
-
Field Detail
-
kind
private final SqlKind kind
-
-
Constructor Detail
-
RegrCovarianceConvertlet
RegrCovarianceConvertlet(SqlKind kind)
-
-
Method Detail
-
convertCall
public RexNode convertCall(SqlRexContext cx, SqlCall call)
- Specified by:
convertCall
in interfaceSqlRexConvertlet
-
expandRegrSzz
private SqlNode expandRegrSzz(SqlNode arg1, SqlNode arg2, RelDataType avgType, SqlRexContext cx, boolean variance)
-
expandCovariance
private SqlNode expandCovariance(SqlNode arg0Input, SqlNode arg1Input, SqlNode dependent, RelDataType varType, SqlRexContext cx, boolean biased)
-
getCastedSqlNode
private SqlNode getCastedSqlNode(SqlNode argInput, RelDataType varType, SqlParserPos pos, RexNode argRex)
-
-