public class BeamSqlPositionExpression extends BeamSqlExpression
example: POSITION(string1 IN string2) POSITION(string1 IN string2 FROM integer)
operands, outputType
Constructor and Description |
---|
BeamSqlPositionExpression(java.util.List<BeamSqlExpression> operands) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept()
assertion to make sure the input and output are supported in this expression.
|
BeamSqlPrimitive |
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, opValueEvaluated
public BeamSqlPositionExpression(java.util.List<BeamSqlExpression> operands)
public boolean accept()
BeamSqlExpression
accept
in class BeamSqlExpression
public BeamSqlPrimitive evaluate(BeamRecord inputRow, BoundedWindow window)
BeamSqlExpression
BeamRecord
with BoundedWindow
to this expression,
the output value is wrapped with BeamSqlPrimitive
.evaluate
in class BeamSqlExpression