Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.coherence.rest.query
Interface Query


public interface Query

Defines an interface that Query implementations must support.

Author:
as 2012.01.19

Method Summary
 java.util.Set keySet(NamedCache cache)
          Return the keys that satisfy this query.
 java.util.Collection values(NamedCache cache, java.lang.String sOrder, int nStart, int cResults)
          Return the values that satisfy this query.

 

Method Detail

values

java.util.Collection values(NamedCache cache,
                            java.lang.String sOrder,
                            int nStart,
                            int cResults)
Return the values that satisfy this query.
Parameters:
cache - cache to be queried (filtered)
sOrder - ordering expression (see com.tangosol.coherence.rest.util.ComparatorHelper for details)
nStart - start index
cResults - 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

java.util.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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.