Coherence.Query

Description

Functions for querying the Cache

Functions

NameSignature and Synopsis
C_CacheInvokevoid C_CacheInvoke(String cacheName, Object filter, String ruleFunction)
Invoke a rule function for all matched objects in cache memory for the passed filter.
C_CacheOnlyMode_DeleteConceptsint C_CacheOnlyMode_DeleteConcepts(String cacheName, Object filter)
Execute a query deletion on a cache. Used for cache only mode. Query operates only on cache memory, not backing store.
C_CacheOnlyMode_DeleteEntitiesint C_CacheOnlyMode_DeleteEntities(String cacheName, long[] ids)
Execute a query deletion on a cache. For cache only mode. Query operates only on cache memory, not backing store.
C_CacheOnlyMode_QueryConceptsConcept[] C_CacheOnlyMode_QueryConcepts(String cacheName, Object filter, boolean queryOnly)
Execute a query against a named cache. Optimized for cache only mode. Query operates only on cache memory, not backing store.
C_CurrentContextString C_CurrentContext()
Return the current batch execution context.
C_EntryHasNextboolean C_EntryHasNext(Object iterator)
Returns a boolean value to check if iterator has more values
C_EntryIteratorObject C_EntryIterator(String cacheName, Object filter)
Returns Returns an Iterator for EntrySet on the cache. Use this iterator in next and hasNext. The iterator is a snapshot of the current set, and is not modifiable nor are any changes to the backing map reflected by this iterator
C_EntryNextValuelong C_EntryNextValue(Object iterator)
Returns the next value for iterator.
C_KeyHasNextboolean C_KeyHasNext(Object iterator)
Returns a boolean value to check if iterator has more values
C_KeyIteratorObject C_KeyIterator(String cacheName, Object filter)
Returns an Iterator for KeySet on the cache. Use this iterator in next and hasNext. The iterator is a snapshot of the current set, and is not modifiable nor are any changes to the backing map reflected by this iterator.
C_KeyNextValuelong C_KeyNextValue(Object iterator)
Returns the next value for iterator.
C_QueryActionvoid C_QueryAction(String cacheName, Object filter, int batchsize, String closure)
Schedule assertion of objects from the cache to the working memory. Query operates only on cache memory, not backing store. Typically used in a preprocessor to load multiple concepts from cache to the Rete network. Then to make objects loaded by this function trigger rules, use the value of closure in a rule's join condition using the format Coherence.Query.C_CurrentContext == String "".
C_QueryAndLoadConceptsConcept[] C_QueryAndLoadConcepts(String cacheName, Object filter, boolean loadContained)
Execute a query against a named cache and load result set into WM. Query operates only on cache memory, not backing store.
C_QueryConceptsConcept[] C_QueryConcepts(String cacheName, Object filter, boolean queryOnly)
Execute a query against a named cache. Query operates only on cache memory, not backing store.
C_QueryEventsEvent[] C_QueryEvents(String cacheName, Object filter, boolean queryOnly)
Execute a query against a named cache. Query operates only on cache memory, not backing store. For the extractor used in the left hand side of the filter condition, use Coherence.Extractors.C_EventPropertyGetter.
C_QueryEvents_OrderEvent[] C_QueryEvents_Order(String cacheName, Object filter, String ruleFunction)
Execute a query against a named cache. The resultset can be ordered using a rule function. Query operates only on cache memory, not backing store. For the extractor used in the left hand side of the filter condition, use Coherence.Extractors.C_EventPropertyGetter.
C_QueryIDslong[] C_QueryIDs(String cacheName, Object filter)
Execute a query against a named cache. Query operates only on cache memory, not backing store.