Class LogicalIndexNavigation


  • public class LogicalIndexNavigation
    extends Object
    • Constructor Detail

      • LogicalIndexNavigation

        public LogicalIndexNavigation​(Set<Integer> labels,
                                      boolean last,
                                      boolean running,
                                      int logicalOffset,
                                      int physicalOffset)
    • Method Detail

      • isLast

        public boolean isLast()
      • getLogicalOffset

        public int getLogicalOffset()
      • getPhysicalOffset

        public int getPhysicalOffset()
      • resolvePosition

        public int resolvePosition​(int currentRow,
                                   ArrayView matchedLabels,
                                   int searchStart,
                                   int searchEnd,
                                   int patternStart)
        This method is used when evaluating labels during pattern matching, computing row pattern measures, and computing SKIP TO position after finding a match. Search is limited up to the current row in case of running semantics and to the entire match in case of final semantics.
        Returns:
        position within partition, or -1 if matching position was not found
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object