|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.db.DataCacheLRUImpl
public class DataCacheLRUImpl
Query result data cache implementation that uses a least-recently-used algorithm to store and evict query results.
Constructor Summary | |
---|---|
DataCacheLRUImpl(int cacheSize)
Ctor. |
Method Summary | |
---|---|
EventTable[] |
getCached(java.lang.Object[] lookupKeys)
Retrieves an entry from the cache. |
int |
getCacheSize()
Returns the maximum cache size. |
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[] keys,
EventTable[] value)
Adds an entry to this cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataCacheLRUImpl(int cacheSize)
cacheSize
- is the maximum cache sizeMethod Detail |
---|
public EventTable[] getCached(java.lang.Object[] lookupKeys)
getCached
in interface DataCache
lookupKeys
- the key whose associated value is to be returned.
public void put(java.lang.Object[] keys, EventTable[] value)
put
in interface DataCache
keys
- the keys with which the specified value is to be associated.value
- a value to be associated with the specified key.public int getCacheSize()
public boolean isActive()
DataCache
isActive
in interface DataCache
|
© 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 |