Interface Query


  • public interface Query
    Defines an interface that Query implementations must support.
    Author:
    as 2012.01.19
    • 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 set
        sOrder - ordering expression (see ComparatorHelper for details)
        nStart - the start index
        cResults - 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
      • 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