net.esper.eql.db
Class DataCacheNullImpl
java.lang.Object
net.esper.eql.db.DataCacheNullImpl
- All Implemented Interfaces:
- DataCache
public class DataCacheNullImpl
- extends Object
- implements DataCache
Null implementation for a data cache that doesn't ever hit.
Method Summary |
List<EventBean> |
getCached(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. |
void |
put(Object[] lookupKeys,
List<EventBean> 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 |
DataCacheNullImpl
public DataCacheNullImpl()
getCached
public List<EventBean> getCached(Object[] lookupKeys)
- Description copied from interface:
DataCache
- 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. Zero rows may also be cached.
- Specified by:
getCached
in interface DataCache
- Parameters:
lookupKeys
- is the keys to look up in the cache
- Returns:
- a list of rows that can be empty is the key was found in the cache, or null if
the key is not found in the cache
put
public void put(Object[] lookupKeys,
List<EventBean> rows)
- Description copied from interface:
DataCache
- Puts into the cache a key and a list of rows, or an empty list if zero rows.
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.
- Specified by:
put
in interface DataCache
- Parameters:
lookupKeys
- is the keys to the cache entryrows
- is a number of rows