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, wait
evaluate
toExpression
public LeafOperation(String field, double val)
public LeafOperation(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public void operate(Tuple tuple)
operate
in interface StreamOperation
public Explanation toExplanation(StreamFactory factory) throws IOException
Expressible
toExplanation
in interface Expressible
factory
- Stream factory for this, contains information about the function nameIOException
- throw on any errorCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.