public class QueryLookup<V> extends Object implements TransactionalLookupIndexIF<ParameterArray,V>
Modifier and Type | Field and Description |
---|---|
protected Map<ParameterArray,V> |
cache |
protected Map<Object,Object> |
lru |
protected String |
qname |
protected TransactionIF |
txn |
Constructor and Description |
---|
QueryLookup(String qname,
TransactionIF txn,
int lrusize,
V nullObject) |
Modifier and Type | Method and Description |
---|---|
void |
abort() |
void |
commit() |
V |
get(ParameterArray params) |
V |
put(ParameterArray key,
V value) |
V |
remove(ParameterArray key) |
void |
removeAll(Collection<ParameterArray> keys) |
protected String qname
protected TransactionIF txn
protected Map<ParameterArray,V> cache
public QueryLookup(String qname, TransactionIF txn, int lrusize, V nullObject)
public V get(ParameterArray params)
get
in interface TransactionalLookupIndexIF<ParameterArray,V>
public V put(ParameterArray key, V value)
put
in interface TransactionalLookupIndexIF<ParameterArray,V>
public V remove(ParameterArray key)
remove
in interface TransactionalLookupIndexIF<ParameterArray,V>
public void removeAll(Collection<ParameterArray> keys)
removeAll
in interface TransactionalLookupIndexIF<ParameterArray,V>
public void commit()
commit
in interface TransactionalLookupIndexIF<ParameterArray,V>
public void abort()
abort
in interface TransactionalLookupIndexIF<ParameterArray,V>