MCPcopy Create free account
hub / github.com/apache/datafusion / new

Method new

datafusion/expr/src/window_state.rs:104–115  ·  view source on GitHub ↗
(out_type: &DataType)

Source from the content-addressed store, hash-verified

102 }
103
104 pub fn new(out_type: &DataType) -> Result<Self> {
105 let empty_out_col = ScalarValue::try_from(out_type)?.to_array_of_size(0)?;
106 Ok(Self {
107 window_frame_range: Range { start: 0, end: 0 },
108 window_frame_ctx: None,
109 last_calculated_index: 0,
110 offset_pruned_rows: 0,
111 out_col: empty_out_col,
112 n_row_result_missing: 0,
113 is_end: false,
114 })
115 }
116}
117
118/// This object stores the window frame state for use in incremental calculations.

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
to_array_of_sizeMethod · 0.45

Tested by

no test coverage detected