public class BeamSqlTrimExpression extends BeamSqlExpression
TRIM( { BOTH | LEADING | TRAILING } string1 FROM string2)
operands, outputType| Constructor and Description |
|---|
BeamSqlTrimExpression(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, opValueEvaluatedpublic BeamSqlTrimExpression(java.util.List<BeamSqlExpression> operands)
public boolean accept()
BeamSqlExpressionaccept in class BeamSqlExpressionpublic BeamSqlPrimitive evaluate(BeamRecord inputRow, BoundedWindow window)
BeamSqlExpressionBeamRecord with BoundedWindow to this expression,
the output value is wrapped with BeamSqlPrimitive.evaluate in class BeamSqlExpression