public class BeamSqlWindowExpression extends BeamSqlExpression
BeamSqlExpression for HOP, TUMBLE, SESSION operation.
These functions don't change the timestamp field, instead it's used to indicate the event_timestamp field, and how the window is defined.
operands, outputType| Constructor and Description |
|---|
BeamSqlWindowExpression(java.util.List<BeamSqlExpression> operands,
SqlTypeName outputType) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept()
assertion to make sure the input and output are supported in this expression.
|
BeamSqlPrimitive<java.util.Date> |
evaluate(BeamRecord inputRow,
BoundedWindow window)
Apply input record
BeamRecord with BoundedWindow to this expression,
the output value is wrapped with BeamSqlPrimitive. |
getOperands, getOutputType, numberOfOperands, op, opType, opValueEvaluatedpublic BeamSqlWindowExpression(java.util.List<BeamSqlExpression> operands, SqlTypeName outputType)
public boolean accept()
BeamSqlExpressionaccept in class BeamSqlExpressionpublic BeamSqlPrimitive<java.util.Date> evaluate(BeamRecord inputRow, BoundedWindow window)
BeamSqlExpressionBeamRecord with BoundedWindow to this expression,
the output value is wrapped with BeamSqlPrimitive.evaluate in class BeamSqlExpression