| Constructor and Description |
|---|
MessageSearches(Iterator<Message<?>> messages,
SearchQuery query) |
MessageSearches(Iterator<Message<?>> messages,
SearchQuery query,
org.slf4j.Logger log) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isMatch(SearchQuery.Criterion criterion,
Message<?> message,
Collection<Long> recentMessageUids,
org.slf4j.Logger log)
Does the row match the given criterion?
|
static boolean |
isMatch(SearchQuery query,
Message<?> message,
org.slf4j.Logger log)
Does the row match the given criteria?
|
Iterator<Long> |
iterator()
Return a
Iterator which holds all uids which matched, sorted according to the SearchQuery |
public MessageSearches(Iterator<Message<?>> messages, SearchQuery query)
public MessageSearches(Iterator<Message<?>> messages, SearchQuery query, org.slf4j.Logger log)
public static boolean isMatch(SearchQuery query, Message<?> message, org.slf4j.Logger log) throws MailboxException
query - SearchQuery, not nullmessage - Message, not nulllog - the logger to usetrue if the row matches the given criteria, false otherwiseMailboxExceptionpublic static boolean isMatch(SearchQuery.Criterion criterion, Message<?> message, Collection<Long> recentMessageUids, org.slf4j.Logger log) throws MailboxException
criterion - the criterion to usemessage - Message, not nullrecentMessageUids - collection of recent message uidslog - the logger to usetrue if the row matches the given criterion, false otherwiseMailboxExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.