public class HollowMapCachedDelegate<K,V> extends java.lang.Object implements HollowMapDelegate<K,V>, HollowCachedDelegate
HollowRecordDelegate
interface for cached MAP type records.HollowRecordDelegate
Modifier and Type | Field and Description |
---|---|
protected HollowMapTypeAPI |
typeAPI |
Constructor and Description |
---|
HollowMapCachedDelegate(HollowMapTypeAPI typeAPI,
int ordinal) |
HollowMapCachedDelegate(HollowMapTypeDataAccess dataAccess,
int ordinal) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(HollowMap<K,V> map,
int ordinal,
java.lang.Object key) |
boolean |
containsValue(HollowMap<K,V> map,
int ordinal,
java.lang.Object value) |
java.util.Map.Entry<K,V> |
findEntry(HollowMap<K,V> map,
int ordinal,
java.lang.Object... hashKey) |
K |
findKey(HollowMap<K,V> map,
int ordinal,
java.lang.Object... hashKey) |
V |
findValue(HollowMap<K,V> map,
int ordinal,
java.lang.Object... hashKey) |
V |
get(HollowMap<K,V> map,
int ordinal,
java.lang.Object key) |
HollowMapSchema |
getSchema() |
HollowMapTypeAPI |
getTypeAPI() |
HollowMapTypeDataAccess |
getTypeDataAccess() |
HollowMapEntryOrdinalIterator |
iterator(int ordinal) |
int |
size(int ordinal) |
void |
updateTypeAPI(HollowTypeAPI typeAPI)
Called by the
HollowObjectCacheProvider when the api is updated. |
protected HollowMapTypeAPI typeAPI
public HollowMapCachedDelegate(HollowMapTypeDataAccess dataAccess, int ordinal)
public HollowMapCachedDelegate(HollowMapTypeAPI typeAPI, int ordinal)
public int size(int ordinal)
size
in interface HollowMapDelegate<K,V>
public V get(HollowMap<K,V> map, int ordinal, java.lang.Object key)
get
in interface HollowMapDelegate<K,V>
public boolean containsKey(HollowMap<K,V> map, int ordinal, java.lang.Object key)
containsKey
in interface HollowMapDelegate<K,V>
public boolean containsValue(HollowMap<K,V> map, int ordinal, java.lang.Object value)
containsValue
in interface HollowMapDelegate<K,V>
public K findKey(HollowMap<K,V> map, int ordinal, java.lang.Object... hashKey)
findKey
in interface HollowMapDelegate<K,V>
public V findValue(HollowMap<K,V> map, int ordinal, java.lang.Object... hashKey)
findValue
in interface HollowMapDelegate<K,V>
public java.util.Map.Entry<K,V> findEntry(HollowMap<K,V> map, int ordinal, java.lang.Object... hashKey)
findEntry
in interface HollowMapDelegate<K,V>
public HollowMapEntryOrdinalIterator iterator(int ordinal)
iterator
in interface HollowMapDelegate<K,V>
public HollowMapSchema getSchema()
getSchema
in interface HollowMapDelegate<K,V>
public HollowMapTypeDataAccess getTypeDataAccess()
getTypeDataAccess
in interface HollowMapDelegate<K,V>
public HollowMapTypeAPI getTypeAPI()
getTypeAPI
in interface HollowMapDelegate<K,V>
public void updateTypeAPI(HollowTypeAPI typeAPI)
HollowCachedDelegate
HollowObjectCacheProvider
when the api is updated.updateTypeAPI
in interface HollowCachedDelegate
typeAPI
- the type api that is updated