public abstract class TemporalEvaluator extends ComplexEvaluator
constructingFactory, nodeId, serialVersionUID, streamContext, subEvaluators
Constructor and Description |
---|
TemporalEvaluator(StreamExpression expression,
StreamFactory factory) |
Modifier and Type | Method and Description |
---|---|
Object |
evaluate(Tuple tuple) |
abstract Object |
evaluateDate(TemporalAccessor aDate) |
abstract String |
getFunction() |
protected Instant |
getInstant(String dateStr) |
Explanation |
toExplanation(StreamFactory factory)
Returns an explanation about the stream object
|
StreamExpressionParameter |
toExpression(StreamFactory factory) |
getStreamContext, setStreamContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evaluateOverContext
public TemporalEvaluator(StreamExpression expression, StreamFactory factory) throws IOException
IOException
public Object evaluate(Tuple tuple) throws IOException
IOException
public abstract Object evaluateDate(TemporalAccessor aDate) throws IOException
IOException
public abstract String getFunction()
protected Instant getInstant(String dateStr) throws IOException
IOException
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
toExpression
in interface Expressible
toExpression
in class ComplexEvaluator
IOException
public Explanation toExplanation(StreamFactory factory) throws IOException
Expressible
toExplanation
in interface Expressible
toExplanation
in class ComplexEvaluator
factory
- Stream factory for this, contains information about the function nameIOException
- throw on any errorCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.