com.espertech.esper.core.service
Interface ExpressionResultCacheForDeclaredExprLastValue
- All Known Implementing Classes:
- ExpressionResultCacheForDeclaredExprLastValueMulti, ExpressionResultCacheForDeclaredExprLastValueNone, ExpressionResultCacheForDeclaredExprLastValueSingle
public interface ExpressionResultCacheForDeclaredExprLastValue
On the level of expression declaration:
a) for non-enum evaluation and for enum-evaluation a separate cache
b) The cache is keyed by the prototype-node and verified by a events-per-stream (EventBean[]) that is maintained or rewritten.
NOTE: ExpressionResultCacheEntry should not be held onto since the instance returned can be reused.
cacheEnabled
boolean cacheEnabled()
getDeclaredExpressionLastValue
ExpressionResultCacheEntry<EventBean[],java.lang.Object> getDeclaredExpressionLastValue(java.lang.Object node,
EventBean[] eventsPerStream)
saveDeclaredExpressionLastValue
void saveDeclaredExpressionLastValue(java.lang.Object node,
EventBean[] eventsPerStream,
java.lang.Object result)