public abstract class LeafOperation extends Object implements BooleanOperation
| Modifier and Type | Field and Description |
|---|---|
protected String |
field |
protected Tuple |
tuple |
protected Double |
val |
| Constructor and Description |
|---|
LeafOperation(StreamExpression expression,
StreamFactory factory) |
LeafOperation(String field,
double val) |
| Modifier and Type | Method and Description |
|---|---|
void |
operate(Tuple tuple) |
protected String |
quote(String s) |
Explanation |
toExplanation(StreamFactory factory)
Returns an explanation about the stream object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitevaluatetoExpressionpublic LeafOperation(String field, double val)
public LeafOperation(StreamExpression expression, StreamFactory factory) throws IOException
IOExceptionpublic void operate(Tuple tuple)
operate in interface StreamOperationpublic Explanation toExplanation(StreamFactory factory) throws IOException
ExpressibletoExplanation in interface Expressiblefactory - Stream factory for this, contains information about the function nameIOException - throw on any errorCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.