Packages

c

org.apache.spark.sql.execution.window

SlidingWindowFunctionFrame

final class SlidingWindowFunctionFrame extends WindowFunctionFrame

The sliding window frame calculates frames with the following SQL form: ... BETWEEN 1 PRECEDING AND 1 FOLLOWING

Linear Supertypes
WindowFunctionFrame, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SlidingWindowFunctionFrame
  2. WindowFunctionFrame
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SlidingWindowFunctionFrame(target: InternalRow, processor: AggregateProcessor, lbound: BoundOrdering, ubound: BoundOrdering)

    target

    to write results to.

    processor

    to calculate the row values with.

    lbound

    comparator used to identify the lower bound of an output row.

    ubound

    comparator used to identify the upper bound of an output row.

Value Members

  1. 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
    SlidingWindowFunctionFrameWindowFunctionFrame
  2. 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
    SlidingWindowFunctionFrameWindowFunctionFrame
  3. def prepare(rows: ExternalAppendOnlyUnsafeRowArray): Unit

    Prepare the frame for calculating a new partition.

    Prepare the frame for calculating a new partition. Reset all variables.

    rows

    to calculate the frame results for.

    Definition Classes
    SlidingWindowFunctionFrameWindowFunctionFrame
  4. def write(index: Int, current: InternalRow): Unit

    Write the frame columns for the current row to the given target row.

    Write the frame columns for the current row to the given target row.

    Definition Classes
    SlidingWindowFunctionFrameWindowFunctionFrame