Class MatchUtils
java.lang.Object
org.apache.calcite.adapter.enumerable.MatchUtils
Class with static Helpers for MATCH_RECOGNIZE.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E> intlastWithSymbol(String symbol, List<E> rows, List<String> symbols, int startIndex) Returns the highest index whose corresponding symbol matches, -1 otherwise.static intlastWithSymbolOrLast(String symbol, List<String> symbols, int startIndex) Returns the highest index whose corresponding symbol matches, startIndex otherwise.static voidprint(int s)
-
Method Details
-
lastWithSymbol
public static <E> int lastWithSymbol(String symbol, List<E> rows, List<String> symbols, int startIndex) Returns the highest index whose corresponding symbol matches, -1 otherwise.- Parameters:
symbol- Target Symbolrows- List of passed rowssymbols- Corresponding symbols to rows- Returns:
- index or -1
-
lastWithSymbolOrLast
Returns the highest index whose corresponding symbol matches, startIndex otherwise.- Parameters:
symbol- Target Symbolsymbols- Corresponding symbols to rows- Returns:
- index or startIndex
-
print
public static void print(int s)
-