pub struct Frame {
pub options: i32,
pub start: Option<Expr>,
pub end: Option<Expr>,
pub start_in_range: u32,
pub end_in_range: u32,
pub in_range_asc: bool,
pub in_range_nulls_first: bool,
}Expand description
The frame of a window, as the fields frameOptions, startOffset, endOffset, startInRangeFunc, endInRangeFunc, inRangeAsc and inRangeNullsFirst of WindowClause.
Fields§
§options: i32frameOptions: the bits FRAMEOPTION_* of the mode, the bounds and the exclusion.
start: Option<Expr>The offset of the start, of type bigint in ROWS and GROUPS mode.
end: Option<Expr>The offset of the end, of type bigint in ROWS and GROUPS mode.
start_in_range: u32startInRangeFunc: the in_range function of the start in RANGE mode with an offset, or 0.
end_in_range: u32endInRangeFunc: the in_range function of the end in RANGE mode with an offset, or 0.
in_range_asc: boolinRangeAsc: true when the column of ORDER BY sorts in ascending order.
in_range_nulls_first: boolinRangeNullsFirst: true when the nulls of the column of ORDER BY come first.
Implementations§
Source§impl Frame
impl Frame
Sourcepub fn start_bound(&self) -> FrameBound
pub fn start_bound(&self) -> FrameBound
The start of the frame.
Sourcepub fn end_bound(&self) -> FrameBound
pub fn end_bound(&self) -> FrameBound
The end of the frame.
Sourcepub fn exclusion(&self) -> FrameExclusion
pub fn exclusion(&self) -> FrameExclusion
The rows that the frame does not have.