Package dev.frostlake.executor
Class WindowPartitionOrder
java.lang.Object
dev.frostlake.executor.WindowPartitionOrder
First-occurrence 1-based position, RANK and DENSE_RANK of every row of ONE sorted window
partition, built in a single pass over the partition. Keys are ROW VALUES with first-equal-wins
puts, which reproduces the former per-output-row linear scans exactly: duplicate rows all read
the FIRST duplicate's numbers.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WindowPartitionOrder
-
-
Method Details
-
position
1-based position of the first row equal torow, or null when no row equals it. -
rank
-
denseRank
-
firstPeer
public int firstPeer(int index) -
lastPeer
public int lastPeer(int index)
-