public interface Search<T>
| Modifier and Type | Method and Description |
|---|---|
void |
initializeDictionary(Set<SearchTerm<T>> terms)
Establishes the dictionary of terms which will be searched in subsequent search calls.
|
SearchState<T> |
search(InputStream haystack,
boolean findAll)
Searches the given input stream for matches between the already specified dictionary and the contents scanned.
|
void initializeDictionary(Set<SearchTerm<T>> terms)
terms - the terms to create a dictionary ofSearchState<T> search(InputStream haystack, boolean findAll) throws IOException
haystack - the source data to scan for hitsfindAll - if true will find all matches if false will find only the first matchIOException - Thrown for any exceptions occurring while searching.IllegalStateException - if the dictionary has not yet been initializedCopyright © 2019 Apache NiFi Project. All rights reserved.