Coherence.Filters

Description

Functions for querying the Cache

Functions

NameSignature and Synopsis
C_AllObject C_All(Filter[] filter)
An All filter
C_AndObject C_And(Object filter1, Object filter2)
A logical And filter
C_AnyObject C_Any(Filter[] filter)
An Any filter; e.g., (F1 || F2 || F3)
C_BetweenLimitIndexedDoubleObject C_BetweenLimitIndexedDouble(double startValue, double endValue, int maxResults, Object valueExtractor)
Optimized filter that uses the ordered Index for filtering items whose indexed values are between the given start and end values. Limits the results to the specified number. The Index must be ordered. The valueExtractor provided must be the same as the one used to create the Index. The startValue is inclusive and the endValue is exclusive. The endValue can be same as the startValue if needed.
C_BetweenLimitIndexedLongObject C_BetweenLimitIndexedLong(long startValue, long endValue, int maxResults, Object valueExtractor)
Optimized filter that uses the ordered Index for filtering items whose indexed values are between the given start and end values. Limits the results to the specified number. The Index must be ordered. The valueExtractor provided must be the same as the one used to create the Index. The startValue is inclusive and the endValue is exclusive. The endValue can be same as the startValue if needed.
C_BetweenLimitIndexedStringObject C_BetweenLimitIndexedString(String startValue, String endValue, int maxResults, Object valueExtractor)
Optimized filter that uses the ordered Index for filtering items whose indexed values are between the given start and end values. Limits the results to the specified number. The Index must be ordered. The valueExtractor provided must be the same as the one used to create the Index. The startValue is inclusive and the endValue is exclusive. The endValue can be same as the startValue if needed.
C_CurrentPageint C_CurrentPage(Object filter)
Obtain a current page number (zero-based).
C_EqualsObject C_Equals(Object value1, Object value2)
An equality filter
C_GreaterEqualsObject C_GreaterEquals(Object value1, Object value2)
A greater than or equals filter
C_GreaterThanObject C_GreaterThan(Object value1, Object value2)
A greater than filter
C_LessThanObject C_LessThan(Object value1, Object value2)
A less than filter
C_LessThanEqualsObject C_LessThanEquals(Object value1, Object value2)
A less than or equals filter
C_LimitObject C_Limit(Object filter, int pageSize)
Filter which truncates the results of another filter. This filter is a mutable object that is modified by the query processor. Clients are supposed to hold a reference to this filter and repetitively pass it to query methods with a desired page size (expressed as a number of entries per page).
C_NextPageObject C_NextPage(Object filter)
Move to the next page
C_NotEqualsObject C_NotEquals(Object value1, Object value2)
An inequality filter
C_PreviousPageObject C_PreviousPage(Object filter)
Move to the previous page
C_RuleFunctionObject C_RuleFunction(String className, String ruleFunctionURI, Object[] args)
Use specified rule function as a filter