Package net.morimekta.providence.storage
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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.List<R>
search(Q query)
Run a query and return the resulting items.default java.util.stream.Stream<R>
stream(Q query)
Run a query and stream the resulting items.
-