Package org.apache.calcite.runtime
Class Matcher<E>
java.lang.Object
org.apache.calcite.runtime.Matcher<E>
- Type Parameters:
E
- Type of rows matched by this automaton
Workspace that partialMatches patterns against an automaton.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> Matcher.Builder<E>
org.apache.calcite.runtime.Matcher.PartitionState<E>
createPartitionState
(int history, int future) 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).matchOneWithSymbols
(MemoryFactory.Memory<E> rows, org.apache.calcite.runtime.Matcher.PartitionState<E> partitionState)
-
Method Details
-
builder
-
match
-
match
-
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)
-