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

Method append_offset

datafusion/functions/src/strings.rs:119–127  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

117 }
118
119 pub fn append_offset(&mut self) -> Result<()> {
120 let next_offset: i32 = self
121 .value_buffer
122 .len()
123 .try_into()
124 .map_err(|_| exec_datafusion_err!("byte array offset overflow"))?;
125 self.offsets_buffer.push(next_offset);
126 Ok(())
127 }
128
129 /// Finalize the builder into a concrete [`StringArray`].
130 ///

Callers 2

invoke_with_argsMethod · 0.80
invoke_with_argsMethod · 0.80

Calls 3

lenMethod · 0.45
pushMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected