Class SearchState<T>

java.lang.Object
org.apache.nifi.util.search.ahocorasick.SearchState<T>

public class SearchState<T> extends Object
  • Field Details

    • currentNode

      private Node currentNode
    • resultMap

      private final Map<SearchTerm<T>,List<Long>> resultMap
    • bytesRead

      private long bytesRead
  • Constructor Details

    • SearchState

      SearchState(Node rootNode)
  • Method Details

    • incrementBytesRead

      void incrementBytesRead(long increment)
    • setCurrentNode

      void setCurrentNode(Node curr)
    • getCurrentNode

      public Node getCurrentNode()
    • getResults

      public Map<SearchTerm<T>,List<Long>> getResults()
    • addResult

      void addResult(SearchTerm matchingTerm)
    • foundMatch

      public boolean foundMatch()