Interface Query
-
public interface Query
Defines an interface that Query implementations must support.- Author:
- as 2012.01.19
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description <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.Set
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 Detail
-
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 default Collection values(NamedCache cache, String sOrder, int nStart, int cResults)
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
Set keySet(NamedCache cache)
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
-
-