Interface Query
public interface Query
Defines an interface that Query implementations must support.
- Author:
- as 2012.01.19
-
Method Summary
Modifier and TypeMethodDescription<E> Collection
<E> execute
(NamedCache cache, ValueExtractor<Map.Entry, ? extends E> extractor, String sOrder, int nStart, int cResults) Return the values that satisfy this query.keySet
(NamedCache cache) Return the keys that satisfy this query.default Collection
values
(NamedCache cache, String sOrder, int nStart, int cResults) Deprecated.As of Coherence 12.2.1.
-
Method Details
-
execute
<E> Collection<E> execute(NamedCache cache, ValueExtractor<Map.Entry, ? extends E> extractor, String sOrder, int nStart, int cResults) Return the values that satisfy this query.- Type Parameters:
E
- the element type- Parameters:
cache
- the cache to be queried (filtered)extractor
- the extractor to apply to each entry in the result setsOrder
- ordering expression (seeComparatorHelper
for details)nStart
- the start indexcResults
- the size of the result set to be returned- Returns:
- the values that satisfy query criteria
- Throws:
QueryException
- if any error occurs during query execution
-
values
Deprecated.As of Coherence 12.2.1. Useexecute(NamedCache, ValueExtractor, String, int, int)
instead.Return the values that satisfy this query.- Parameters:
cache
- cache to be queried (filtered)sOrder
- ordering expression (seeComparatorHelper
for details)nStart
- start indexcResults
- size of the result set to be returned- Returns:
- the values that satisfy query criteria
- Throws:
QueryException
- if any error occurs during query execution
-
keySet
Return the keys that satisfy this query.- Parameters:
cache
- cache to be queried (filtered)- Returns:
- the keys that satisfy query criteria
- Throws:
QueryException
- if any error occurs during query execution
-