public class DataCacheClearableMap extends Object implements DataCache
DataCache
implementation
that serves to hold EventBean rows generated during a join evaluation
involving historical streams stable for the same cache lookup keys.Constructor and Description |
---|
DataCacheClearableMap()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the cache.
|
void |
destroy() |
EventTable[] |
getCached(Object[] methodParams,
int numLookupKeys)
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(Object[] methodParams,
int numLookupKeys,
EventTable[] rows)
Puts into the cache a key and a list of rows, or an empty list if zero rows.
|
public EventTable[] getCached(Object[] methodParams, int numLookupKeys)
DataCache
getCached
in interface DataCache
methodParams
- is the keys to look up in the cachenumLookupKeys
- number of method param keys, from the start, that are for cache lookuppublic void put(Object[] methodParams, int numLookupKeys, 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.
public boolean isActive()
DataCache
public void clear()