public interface GridCacheProjectionEx<K,V> extends CacheProjection<K,V>
| Modifier and Type | Method and Description |
|---|---|
GridCacheContext<K,V> |
context() |
Set<javax.cache.Cache.Entry<K,V>> |
entrySetx(IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Gets entry set containing internal entries.
|
javax.cache.expiry.ExpiryPolicy |
expiry() |
GridCacheProjectionEx<K,V> |
forSubjectId(UUID subjId)
Creates projection for specified subject ID.
|
V |
get(K key,
GridCacheEntryEx<K,V> entry,
boolean deserializePortable,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter) |
Map<K,V> |
getAllOutTx(List<K> keys)
Gets values from cache.
|
IgniteInternalFuture<Map<K,V>> |
getAllOutTxAsync(List<K> keys)
Asynchronously gets values from cache.
|
V |
getForcePrimary(K key)
Gets value from cache.
|
IgniteInternalFuture<V> |
getForcePrimaryAsync(K key)
Asynchronously gets value from cache.
|
long |
igfsDataSpaceMax()
Get maximum space available for IGFS.
|
long |
igfsDataSpaceUsed()
Get current amount of used IGFS space in bytes.
|
<T> javax.cache.processor.EntryProcessorResult<T> |
invoke(K key,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... args) |
<T> Map<K,javax.cache.processor.EntryProcessorResult<T>> |
invokeAll(Map<? extends K,? extends javax.cache.processor.EntryProcessor<K,V,T>> map,
Object... args) |
<T> Map<K,javax.cache.processor.EntryProcessorResult<T>> |
invokeAll(Set<? extends K> keys,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... args) |
<T> IgniteInternalFuture<Map<K,javax.cache.processor.EntryProcessorResult<T>>> |
invokeAllAsync(Map<? extends K,? extends javax.cache.processor.EntryProcessor<K,V,T>> map,
Object... args) |
<T> IgniteInternalFuture<Map<K,javax.cache.processor.EntryProcessorResult<T>>> |
invokeAllAsync(Set<? extends K> keys,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... args) |
<T> IgniteInternalFuture<javax.cache.processor.EntryProcessorResult<T>> |
invokeAsync(K key,
javax.cache.processor.EntryProcessor<K,V,T> entryProcessor,
Object... args) |
boolean |
isIgfsDataCache()
Checks whether this cache is IGFS data cache.
|
boolean |
isMongoDataCache()
Checks whether this cache is Mongo data cache.
|
boolean |
isMongoMetaCache()
Checks whether this cache is Mongo meta cache.
|
IgnitePredicate<javax.cache.Cache.Entry<K,V>> |
predicate()
Gets predicate on which this projection is based on or
null
if predicate is not defined. |
Set<javax.cache.Cache.Entry<K,V>> |
primaryEntrySetx(IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Gets set of primary entries containing internal entries.
|
V |
put(K key,
V val,
GridCacheEntryEx<K,V> entry,
long ttl,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Internal method that is called from
GridCacheEntryImpl. |
void |
putAllDr(Map<? extends K,GridCacheDrInfo<V>> drMap)
Store DR data.
|
IgniteInternalFuture<?> |
putAllDrAsync(Map<? extends K,GridCacheDrInfo<V>> drMap)
Store DR data asynchronously.
|
IgniteInternalFuture<V> |
putAsync(K key,
V val,
GridCacheEntryEx<K,V> entry,
long ttl,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Internal method that is called from
GridCacheEntryImpl. |
boolean |
putx(K key,
V val,
GridCacheEntryEx<K,V> entry,
long ttl,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Internal method that is called from
GridCacheEntryImpl. |
IgniteInternalFuture<Boolean> |
putxAsync(K key,
V val,
GridCacheEntryEx<K,V> entry,
long ttl,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Internal method that is called from
GridCacheEntryImpl. |
V |
remove(K key,
GridCacheEntryEx<K,V> entry,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Internal method that is called from
GridCacheEntryImpl. |
void |
removeAllDr(Map<? extends K,GridCacheVersion> drMap)
Removes DR data.
|
IgniteInternalFuture<?> |
removeAllDrAsync(Map<? extends K,GridCacheVersion> drMap)
Removes DR data asynchronously.
|
IgniteInternalFuture<V> |
removeAsync(K key,
GridCacheEntryEx<K,V> entry,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Internal method that is called from
GridCacheEntryImpl. |
boolean |
removex(K key,
GridCacheEntryEx<K,V> entry,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Internal method that is called from
GridCacheEntryImpl. |
GridCacheReturn<V> |
removex(K key,
V val)
Removes given key mapping from cache if one exists and value is equal to the passed in value.
|
IgniteInternalFuture<Boolean> |
removexAsync(K key,
GridCacheEntryEx<K,V> entry,
IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
Internal method that is called from
GridCacheEntryImpl. |
IgniteInternalFuture<GridCacheReturn<V>> |
removexAsync(K key,
V val)
Asynchronously removes given key mapping from cache if one exists and value is equal to the passed in value.
|
GridCacheReturn<V> |
replacex(K key,
V oldVal,
V newVal)
Stores given key-value pair in cache only if only if the previous value is equal to the
'oldVal' passed in. |
IgniteInternalFuture<GridCacheReturn<V>> |
replacexAsync(K key,
V oldVal,
V newVal)
Asynchronously stores given key-value pair in cache only if only if the previous value is equal to the
'oldVal' passed in. |
GridCacheProjectionEx<K,V> |
withExpiryPolicy(javax.cache.expiry.ExpiryPolicy plc) |
cache, clear, clear, clearAsync, clearLocally, clearLocally, compact, compactAll, containsKey, containsKeyAsync, containsKeys, containsKeysAsync, containsValue, entry, entrySet, entrySet, evict, evictAll, evictAll, flags, flagsOff, flagsOn, forAll, forEach, get, getAll, getAllAsync, getAsync, globalPrimarySize, globalSize, gridProjection, isEmpty, isLocked, isLockedByThread, keepPortable, keySet, keySet, localEntries, localPeek, localSize, lock, lockAll, lockAllAsync, lockAsync, name, nearSize, peek, peek, primaryEntrySet, primaryKeySet, primarySize, primaryValues, projection, projection, projection, promote, promoteAll, put, putAll, putAllAsync, putAsync, putIfAbsent, putIfAbsentAsync, putx, putxAsync, putxIfAbsent, putxIfAbsentAsync, queries, reload, reloadAll, reloadAll, reloadAllAsync, reloadAllAsync, reloadAsync, remove, remove, removeAll, removeAll, removeAllAsync, removeAllAsync, removeAllAsync, removeAsync, removeAsync, removex, removexAsync, replace, replace, replaceAsync, replaceAsync, replacex, replacexAsync, size, size, sizeAsync, toMap, tx, txStart, txStart, txStart, txStartEx, unlock, unlockAll, valuesGridCacheProjectionEx<K,V> forSubjectId(UUID subjId)
subjId - Client ID.@Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>> predicate()
null
if predicate is not defined.@Nullable V put(K key, V val, @Nullable GridCacheEntryEx<K,V> entry, long ttl, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter) throws IgniteCheckedException
GridCacheEntryImpl.key - Key.val - Value.entry - Cached entry. If not provided, equivalent to {CacheProjection#put}.ttl - Optional time-to-live. If negative, leaves ttl value unchanged.filter - Optional filter.IgniteCheckedException - If failed.IgniteInternalFuture<V> putAsync(K key, V val, @Nullable GridCacheEntryEx<K,V> entry, long ttl, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
GridCacheEntryImpl.key - Key.val - Value.entry - Optional cached entry.ttl - Optional time-to-live value. If negative, leaves ttl value unchanged.filter - Optional filter.boolean putx(K key, V val, @Nullable GridCacheEntryEx<K,V> entry, long ttl, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter) throws IgniteCheckedException
GridCacheEntryImpl.key - Key.val - Value.entry - Cached entry. If not provided, equivalent to {CacheProjection#put}.ttl - Optional time-to-live. If negative, leaves ttl value unchanged.filter - Optional filter.IgniteCheckedException - If failed.IgniteInternalFuture<Boolean> putxAsync(K key, V val, @Nullable GridCacheEntryEx<K,V> entry, long ttl, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
GridCacheEntryImpl.key - Key.val - Value.entry - Cached entry. If not provided, equivalent to {CacheProjection#put}.ttl - Optional time-to-live. If negative, leave ttl value unchanged.filter - Optional filter.void putAllDr(Map<? extends K,GridCacheDrInfo<V>> drMap) throws IgniteCheckedException
drMap - DR map.IgniteCheckedException - If put operation failed.CacheFlagException - If projection flags validation failed.IgniteInternalFuture<?> putAllDrAsync(Map<? extends K,GridCacheDrInfo<V>> drMap) throws IgniteCheckedException
drMap - DR map.IgniteCheckedException - If put operation failed.CacheFlagException - If projection flags validation failed.@Nullable V remove(K key, @Nullable GridCacheEntryEx<K,V> entry, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter) throws IgniteCheckedException
GridCacheEntryImpl.key - Key to remove.entry - Cached entry. If not provided, equivalent to {CacheProjection#put}.filter - Optional filter.IgniteCheckedException - If failed.IgniteInternalFuture<V> removeAsync(K key, @Nullable GridCacheEntryEx<K,V> entry, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
GridCacheEntryImpl.key - Key to remove.entry - Optional cached entry.filter - Optional filter.void removeAllDr(Map<? extends K,GridCacheVersion> drMap) throws IgniteCheckedException
drMap - DR map.IgniteCheckedException - If remove failed.CacheFlagException - If projection flags validation failed.IgniteInternalFuture<?> removeAllDrAsync(Map<? extends K,GridCacheVersion> drMap) throws IgniteCheckedException
drMap - DR map.IgniteCheckedException - If remove failed.CacheFlagException - If projection flags validation failed.boolean removex(K key, @Nullable GridCacheEntryEx<K,V> entry, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter) throws IgniteCheckedException
GridCacheEntryImpl.key - Key to remove.entry - Cached entry. If not provided, equivalent to {CacheProjection#put}.filter - Optional filter.IgniteCheckedException - If failed.IgniteInternalFuture<Boolean> removexAsync(K key, @Nullable GridCacheEntryEx<K,V> entry, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
GridCacheEntryImpl.key - Key to remove.entry - Cached entry. If not provided, equivalent to {CacheProjection#put}.filter - Optional filter.IgniteInternalFuture<GridCacheReturn<V>> replacexAsync(K key, V oldVal, V newVal)
'oldVal' passed in.
This method will return true if value is stored in cache and false otherwise.
If write-through is enabled, the stored value will be persisted to CacheStore
via CacheStore#put(Transaction, Object, Object) method.
CacheFlag.LOCAL, CacheFlag.READ.key - Key to store in cache.oldVal - Old value to match.newVal - Value to be associated with the given key.NullPointerException - If either key or value are null.CacheFlagException - If projection flags validation failed.GridCacheReturn<V> replacex(K key, V oldVal, V newVal) throws IgniteCheckedException
'oldVal' passed in.
This method will return true if value is stored in cache and false otherwise.
If write-through is enabled, the stored value will be persisted to CacheStore
via CacheStore#put(Transaction, Object, Object) method.
CacheFlag.LOCAL, CacheFlag.READ.key - Key to store in cache.oldVal - Old value to match.newVal - Value to be associated with the given key.NullPointerException - If either key or value are null.IgniteCheckedException - If replace operation failed.CacheFlagException - If projection flags validation failed.GridCacheReturn<V> removex(K key, V val) throws IgniteCheckedException
If write-through is enabled, the value will be removed from CacheStore
via CacheStore#remove(Transaction, Object) method.
CacheFlag.LOCAL, CacheFlag.READ.key - Key whose mapping is to be removed from cache.val - Value to match against currently cached value.NullPointerException - if the key or value is null.IgniteCheckedException - If remove failed.CacheFlagException - If projection flags validation failed.IgniteInternalFuture<GridCacheReturn<V>> removexAsync(K key, V val)
This method will return true if remove did occur, which means that all optionally
provided filters have passed and there was something to remove, false otherwise.
If write-through is enabled, the value will be removed from CacheStore
via CacheStore#remove(Transaction, Object) method.
CacheFlag.LOCAL, CacheFlag.READ.key - Key whose mapping is to be removed from cache.val - Value to match against currently cached value.NullPointerException - if the key or value is null.CacheFlagException - If projection flags validation failed.@Nullable V get(K key, @Nullable GridCacheEntryEx<K,V> entry, boolean deserializePortable, @Nullable IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter) throws IgniteCheckedException
key - Key to retrieve the value for.entry - Cached entry when called from entry wrapper.filter - Filter to check prior to getting the value. Note that filter check
together with getting the value is an atomic operation.IgniteCheckedException - If failed.@Nullable V getForcePrimary(K key) throws IgniteCheckedException
key - Key to get value for.IgniteCheckedException - If failed.IgniteInternalFuture<V> getForcePrimaryAsync(K key)
key - Key to get value for.@Nullable Map<K,V> getAllOutTx(List<K> keys) throws IgniteCheckedException
keys - Keys to get values for.IgniteCheckedException - If failed.IgniteInternalFuture<Map<K,V>> getAllOutTxAsync(List<K> keys)
keys - Keys to get values for.boolean isIgfsDataCache()
True in case this cache is IGFS data cache.long igfsDataSpaceUsed()
long igfsDataSpaceMax()
boolean isMongoDataCache()
True if this cache is mongo data cache.boolean isMongoMetaCache()
True if this cache is mongo meta cache.Set<javax.cache.Cache.Entry<K,V>> entrySetx(IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
filter - Filter.Set<javax.cache.Cache.Entry<K,V>> primaryEntrySetx(IgnitePredicate<javax.cache.Cache.Entry<K,V>>... filter)
filter - Optional filter.@Nullable javax.cache.expiry.ExpiryPolicy expiry()
ExpiryPolicy associated with this projection.GridCacheProjectionEx<K,V> withExpiryPolicy(javax.cache.expiry.ExpiryPolicy plc)
plc - ExpiryPolicy to associate with this projection.@Nullable <T> javax.cache.processor.EntryProcessorResult<T> invoke(K key, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... args) throws IgniteCheckedException
key - Key.entryProcessor - Entry processor.args - Arguments.IgniteCheckedException - If failed.<T> IgniteInternalFuture<javax.cache.processor.EntryProcessorResult<T>> invokeAsync(K key, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... args)
key - Key.entryProcessor - Entry processor.args - Arguments.<T> Map<K,javax.cache.processor.EntryProcessorResult<T>> invokeAll(Set<? extends K> keys, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... args) throws IgniteCheckedException
keys - Keys.entryProcessor - Entry processor.args - Arguments.IgniteCheckedException - If failed.<T> IgniteInternalFuture<Map<K,javax.cache.processor.EntryProcessorResult<T>>> invokeAllAsync(Set<? extends K> keys, javax.cache.processor.EntryProcessor<K,V,T> entryProcessor, Object... args)
keys - Keys.entryProcessor - Entry processor.args - Arguments.<T> Map<K,javax.cache.processor.EntryProcessorResult<T>> invokeAll(Map<? extends K,? extends javax.cache.processor.EntryProcessor<K,V,T>> map, Object... args) throws IgniteCheckedException
map - Map containing keys and entry processors to be applied to values.args - Arguments.IgniteCheckedException - If failed.<T> IgniteInternalFuture<Map<K,javax.cache.processor.EntryProcessorResult<T>>> invokeAllAsync(Map<? extends K,? extends javax.cache.processor.EntryProcessor<K,V,T>> map, Object... args)
map - Map containing keys and entry processors to be applied to values.args - Arguments.GridCacheContext<K,V> context()
Follow @ApacheIgnite
Ignite Fabric : ver. 1.0.0-RC1 Release Date : February 17 2015