public class BeamSqlSingleElementExpression extends BeamSqlExpression
Throws if there is more than one element. Returns null if collection is empty.
operands, outputType| Constructor and Description |
|---|
BeamSqlSingleElementExpression(java.util.List<BeamSqlExpression> operands,
org.apache.calcite.sql.type.SqlTypeName sqlTypeName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept()
assertion to make sure the input and output are supported in this expression.
|
BeamSqlPrimitive |
evaluate(Row inputRow,
BoundedWindow window,
BeamSqlExpressionEnvironment env)
Apply input record
Row with BoundedWindow to this expression, the output value
is wrapped with BeamSqlPrimitive. |
getOperands, getOutputType, numberOfOperands, op, opType, opValueEvaluatedpublic BeamSqlSingleElementExpression(java.util.List<BeamSqlExpression> operands, org.apache.calcite.sql.type.SqlTypeName sqlTypeName)
public boolean accept()
BeamSqlExpressionaccept in class BeamSqlExpressionpublic BeamSqlPrimitive evaluate(Row inputRow, BoundedWindow window, BeamSqlExpressionEnvironment env)
BeamSqlExpressionRow with BoundedWindow to this expression, the output value
is wrapped with BeamSqlPrimitive.evaluate in class BeamSqlExpression