K
- The key type of the cache.M
- The metadata type of the cache.V
- The raw data type of the cache.public interface TupleDataCache<K,M extends Serializable,V extends Serializable> extends DataCache<TupleDataCache.DataEntry<K,M,V>>
Modifier and Type | Interface and Description |
---|---|
static interface |
TupleDataCache.DataEntry<K,M,V>
A data cache entry defined as a tuple consisting of key, metadata, and value fields.
|
Modifier and Type | Method and Description |
---|---|
TupleDataCache.DataEntry<K,M,V> |
get(String key)
Retrieve the complete data entry from the cache.
|
V |
getDataValue(K key)
Read the raw data from cache.
|
boolean |
set(K key,
M meta,
V value)
Given a key, put a complete data entry in the data cache.
|
TupleDataCache.DataEntry<K,M,V> get(String key)
get
in interface DataCache<TupleDataCache.DataEntry<K,M extends Serializable,V extends Serializable>>
key
- The key associated with data entry to be retrievednull
if the cache contains no
mapping for the keyV getDataValue(K key)
key
- The key whose associated value is to be returnednull
if this map contains no mapping for
the keyboolean set(K key, M meta, V value)
key
- The key of the cache entry.meta
- The metadata associated with the raw data.value
- The raw data to store in to the cache.IllegalStateException
- in the rare circumstance where queue is too full to accept any more requestsCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.