Interface Searcher<Q,​R>

  • Type Parameters:
    Q - Search query param, be it single string or struct or union with search parameters.
    R - The result type of the search.
    All Known Subinterfaces:
    MessageSearcher<Q,​M>
    All Known Implementing Classes:
    HazelcastMessageSearcher, PredicateFilterMessageStoreSearcher

    public interface Searcher<Q,​R>
    Interface for searching a store for a specific search S.
    • Method Detail

      • search

        @Nonnull
        java.util.List<R> search​(@Nonnull
                                 Q query)
        Run a query and return the resulting items.
        Parameters:
        query - The search query.
        Returns:
        List of all R that matches Query Q.
      • stream

        default java.util.stream.Stream<R> stream​(@Nonnull
                                                  Q query)
        Run a query and stream the resulting items.
        Parameters:
        query - The search query.
        Returns:
        Stream of all R that matches Query Q.