Q - The query type.K - The store's key type.M - The message type in the store.public class PredicateFilterMessageStoreSearcher<Q,K,M extends net.morimekta.providence.PMessage<M>> extends Object implements MessageSearcher<Q,M>
| Modifier and Type | Class and Description |
|---|---|
static interface |
PredicateFilterMessageStoreSearcher.PredicateFilter<Q,K,M extends net.morimekta.providence.PMessage<M>> |
| Constructor and Description |
|---|
PredicateFilterMessageStoreSearcher(MessageReadOnlyStore<K,M> store,
BiPredicate<M,Q> biPredicate) |
PredicateFilterMessageStoreSearcher(MessageReadOnlyStore<K,M> store,
PredicateFilterMessageStoreSearcher.PredicateFilter<Q,K,M> predicate) |
| Modifier and Type | Method and Description |
|---|---|
List<M> |
search(Q query)
Run a query and return the resulting items.
|
Stream<M> |
stream(Q query)
Run a query and stream the resulting items.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsearchBuilderspublic PredicateFilterMessageStoreSearcher(MessageReadOnlyStore<K,M> store, BiPredicate<M,Q> biPredicate)
public PredicateFilterMessageStoreSearcher(MessageReadOnlyStore<K,M> store, PredicateFilterMessageStoreSearcher.PredicateFilter<Q,K,M> predicate)
@Nonnull public List<M> search(@Nonnull Q query)
SearcherCopyright © 2015–2020 morimekta.net. All rights reserved.