Selecto.Window.Frame (Selecto v0.4.5)

Copy Markdown

Window frame specification (ROWS or RANGE).

Defines which rows within the partition are included in the window frame for the current row's calculation.

Summary

Types

boundary()

@type boundary() ::
  :unbounded_preceding
  | :current_row
  | :unbounded_following
  | {:preceding, integer()}
  | {:following, integer()}
  | {:interval, String.t()}

frame_type()

@type frame_type() :: :rows | :range

t()

@type t() :: %Selecto.Window.Frame{
  end: boundary(),
  start: boundary(),
  type: frame_type()
}