Class MatchUtils

java.lang.Object
org.apache.calcite.adapter.enumerable.MatchUtils

public class MatchUtils extends Object
Class with static Helpers for MATCH_RECOGNIZE.
  • Method Details

    • lastWithSymbol

      public static <E> int lastWithSymbol(String symbol, List<E> rows, List<String> symbols, int startIndex)
      Returns the row with the highest index whose corresponding symbol matches, null otherwise.
      Parameters:
      symbol - Target Symbol
      rows - List of passed rows
      symbols - Corresponding symbols to rows
      Returns:
      index or -1
    • print

      public static void print(int s)