Class Matcher<E>

java.lang.Object
org.apache.calcite.runtime.Matcher<E>
Type Parameters:
E - Type of rows matched by this automaton

public class Matcher<E> extends Object
Workspace that partialMatches patterns against an automaton.
  • Method Details

    • builder

      public static <E> Matcher.Builder<E> builder(Automaton automaton)
    • match

      public List<org.apache.calcite.runtime.Matcher.PartialMatch<E>> match(E... rows)
    • match

      public List<org.apache.calcite.runtime.Matcher.PartialMatch<E>> match(Iterable<E> rows)
    • createPartitionState

      public org.apache.calcite.runtime.Matcher.PartitionState<E> createPartitionState(int history, int future)
    • matchOne

      protected void matchOne(MemoryFactory.Memory<E> rows, org.apache.calcite.runtime.Matcher.PartitionState<E> partitionState, Consumer<org.apache.calcite.runtime.Matcher.PartialMatch<E>> resultMatches)
      Feeds a single input row into the given partition state, and writes the resulting output rows (if any). This method ignores the symbols that caused a transition.
    • matchOneWithSymbols

      protected List<org.apache.calcite.runtime.Matcher.PartialMatch<E>> matchOneWithSymbols(MemoryFactory.Memory<E> rows, org.apache.calcite.runtime.Matcher.PartitionState<E> partitionState)