MCPcopy Create free account
hub / github.com/apache/paimon-rust / get_binary

Method get_binary

crates/paimon/src/spec/binary_row.rs:227–230  ·  view source on GitHub ↗
(&self, pos: usize)

Source from the content-addressed store, hash-verified

225 }
226
227 pub fn get_binary(&self, pos: usize) -> crate::Result<&[u8]> {
228 let (start, len) = self.resolve_var_length_field(pos)?;
229 Ok(&self.data[start..start + len])
230 }
231
232 pub fn get_string(&self, pos: usize) -> crate::Result<&str> {
233 let bytes = self.get_binary(pos)?;

Callers 4

get_stringMethod · 0.80
get_decimal_unscaledMethod · 0.80
get_datumMethod · 0.80
extract_datumFunction · 0.80

Calls 1

Tested by

no test coverage detected