abstract class OffsetWindowFunctionFrameBase extends WindowFunctionFrame
The offset window frame calculates frames containing LEAD/LAG statements.
- Alphabetic
- By Inheritance
- OffsetWindowFunctionFrameBase
- WindowFunctionFrame
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new OffsetWindowFunctionFrameBase(target: InternalRow, ordinal: Int, expressions: Array[OffsetWindowFunction], inputSchema: Seq[Attribute], newMutableProjection: (Seq[Expression], Seq[Attribute]) => MutableProjection, offset: Int)
- target
to write results to.
- ordinal
the ordinal is the starting offset at which the results of the window frame get written into the (shared) target row. The result of the frame expression with index 'i' will be written to the 'ordinal' + 'i' position in the target row.
- expressions
to shift a number of rows.
- inputSchema
required for creating a projection.
- newMutableProjection
function used to create the projection.
- offset
by which rows get moved within a partition.
Abstract Value Members
- abstract def prepare(rows: ExternalAppendOnlyUnsafeRowArray): Unit
Prepare the frame for calculating the results for a partition.
Prepare the frame for calculating the results for a partition.
- rows
to calculate the frame results for.
- Definition Classes
- WindowFunctionFrame
- abstract def write(index: Int, current: InternalRow): Unit
Write the current results to the target row.
Write the current results to the target row.
- Definition Classes
- WindowFunctionFrame
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def currentLowerBound(): Int
The current lower window bound in the row array (inclusive).
The current lower window bound in the row array (inclusive).
This should be called after the current row is updated via
write
.- Definition Classes
- OffsetWindowFunctionFrameBase → WindowFunctionFrame
- def currentUpperBound(): Int
The current row index of the upper window bound in the row array (exclusive)
The current row index of the upper window bound in the row array (exclusive)
This should be called after the current row is updated via
write
.- Definition Classes
- OffsetWindowFunctionFrameBase → WindowFunctionFrame
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val fillDefaultValue: MutableProjection
Create the projection used when the offset row DOES NOT exists.
Create the projection used when the offset row DOES NOT exists.
- Attributes
- protected
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def findNextRowWithNonNullInput(): Unit
find the offset row whose input is not null
find the offset row whose input is not null
- Attributes
- protected
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- var input: ExternalAppendOnlyUnsafeRowArray
Rows of the partition currently being processed.
Rows of the partition currently being processed.
- Attributes
- protected
- val inputAttrs: Seq[Attribute]
Attributes of the input row currently used for output.
Attributes of the input row currently used for output.
- Attributes
- protected
- var inputIndex: Int
Index of the input row currently used for output.
Index of the input row currently used for output.
- Attributes
- protected
- var inputIterator: Iterator[UnsafeRow]
An iterator over the input
An iterator over the input
- Attributes
- protected
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- var nextSelectedRow: InternalRow
Holder the UnsafeRow where the input operator by function is not null.
Holder the UnsafeRow where the input operator by function is not null.
- Attributes
- protected
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def nullCheck(row: InternalRow): Boolean
Check if the output value of the first index is null.
Check if the output value of the first index is null.
- Attributes
- protected
- val project: UnsafeProjection
Create the projection to determine whether input is null.
Create the projection to determine whether input is null.
- Attributes
- protected
- val projection: MutableProjection
Create the projection used when the offset row exists.
Create the projection used when the offset row exists. Please note that this project always respect null input values (like PostgreSQL).
- Attributes
- protected
- def resetStates(rows: ExternalAppendOnlyUnsafeRowArray): Unit
- Attributes
- protected
- var skippedNonNullCount: Int
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()