|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.db.DataCacheClearableMap
public class DataCacheClearableMap
For use in iteration over historical joins, a DataCache
implementation
that serves to hold EventBean rows generated during a join evaluation
involving historical streams stable for the same cache lookup keys.
Constructor Summary | |
---|---|
DataCacheClearableMap()
Ctor. |
Method Summary | |
---|---|
void |
clear()
Clears the cache. |
EventTable[] |
getCached(java.lang.Object[] lookupKeys)
Ask the cache if the keyed value is cached, returning a list or rows if the key is in the cache, or returning null to indicate no such key cached. |
boolean |
isActive()
Returns true if the cache is active and currently caching, or false if the cache is inactive and not currently caching |
void |
put(java.lang.Object[] lookupKeys,
EventTable[] rows)
Puts into the cache a key and a list of rows, or an empty list if zero rows. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataCacheClearableMap()
Method Detail |
---|
public EventTable[] getCached(java.lang.Object[] lookupKeys)
DataCache
getCached
in interface DataCache
lookupKeys
- is the keys to look up in the cache
public void put(java.lang.Object[] lookupKeys, EventTable[] rows)
DataCache
The put method is designed to be called when the cache does not contain a key as determined by the get method. Implementations typically simply overwrite any keys put into the cache that already existed in the cache.
put
in interface DataCache
lookupKeys
- is the keys to the cache entryrows
- is a number of rowspublic boolean isActive()
DataCache
isActive
in interface DataCache
public void clear()
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |