Class WindowFunction
java.lang.Object
org.apache.drill.exec.physical.impl.window.WindowFunction
-
Method Details
-
requiresFullPartition
- Parameters:
pop
- window group definition- Returns:
- true if this window function requires all batches of current partition to be available before processing the first batch
-
canDoWork
public boolean canDoWork(int numBatchesAvailable, WindowPOP pop, boolean frameEndReached, boolean partitionEndReached) - Parameters:
numBatchesAvailable
- number of batches available for current partitionpop
- window group definitionframeEndReached
- we found the last row of the first batch's framepartitionEndReached
- all batches of current partition are available- Returns:
- true if this window function can process the first batch immediately
-