Package io.trino.operator.window.pattern
Class LogicalIndexNavigation
- java.lang.Object
-
- io.trino.operator.window.pattern.LogicalIndexNavigation
-
public class LogicalIndexNavigation extends Object
-
-
Constructor Summary
Constructors Constructor Description LogicalIndexNavigation(Set<Integer> labels, boolean last, boolean running, int logicalOffset, int physicalOffset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Set<Integer>getLabels()intgetLogicalOffset()intgetPhysicalOffset()inthashCode()booleanisLast()intresolvePosition(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.LogicalIndexNavigationwithLogicalOffset(int logicalOffset)LogicalIndexNavigationwithoutLogicalOffset()LogicalIndexNavigationwithoutPhysicalOffset()LogicalIndexNavigationwithPhysicalOffset(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
-
withoutLogicalOffset
public LogicalIndexNavigation withoutLogicalOffset()
-
withLogicalOffset
public LogicalIndexNavigation withLogicalOffset(int logicalOffset)
-
withoutPhysicalOffset
public LogicalIndexNavigation withoutPhysicalOffset()
-
withPhysicalOffset
public LogicalIndexNavigation withPhysicalOffset(int physicalOffset)
-
-