public class OffsetOverFrame extends Object implements OverWindowFrame
See LeadLagAggFunction
.
Modifier and Type | Class and Description |
---|---|
static interface |
OffsetOverFrame.CalcOffsetFunc
Calc offset from base row.
|
Constructor and Description |
---|
OffsetOverFrame(GeneratedAggsHandleFunction aggsHandleFunction,
Long offset,
OffsetOverFrame.CalcOffsetFunc calcOffsetFunc) |
Modifier and Type | Method and Description |
---|---|
void |
open(ExecutionContext ctx)
Open to init with
ExecutionContext . |
void |
prepare(ResettableExternalBuffer rows)
Prepare for next partition.
|
RowData |
process(int index,
RowData current)
return the ACC of the window frame.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNextOrNull
public OffsetOverFrame(GeneratedAggsHandleFunction aggsHandleFunction, Long offset, OffsetOverFrame.CalcOffsetFunc calcOffsetFunc)
aggsHandleFunction
- the aggregate functionoffset
- it means the offset within a partition if calcOffsetFunc is null.calcOffsetFunc
- calculate the real offset when the function is not null.public void open(ExecutionContext ctx) throws Exception
OverWindowFrame
ExecutionContext
.open
in interface OverWindowFrame
Exception
public void prepare(ResettableExternalBuffer rows) throws Exception
OverWindowFrame
prepare
in interface OverWindowFrame
Exception
public RowData process(int index, RowData current) throws Exception
OverWindowFrame
process
in interface OverWindowFrame
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.