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

Method make_long_view

datafusion/functions/src/strings.rs:745–757  ·  view source on GitHub ↗
(&self, length: u32, offset: u32, prefix_bytes: &[u8])

Source from the content-addressed store, hash-verified

743 /// building the view here ourselves is faster.
744 #[inline]
745 fn make_long_view(&self, length: u32, offset: u32, prefix_bytes: &[u8]) -> u128 {
746 let buffer_index: u32 = i32::try_from(self.completed.len())
747 .expect("buffer count exceeds i32::MAX")
748 as u32;
749 ByteView {
750 length,
751 // length > 12, so prefix_bytes has at least 4 bytes.
752 prefix: u32::from_le_bytes(prefix_bytes[..4].try_into().unwrap()),
753 buffer_index,
754 offset,
755 }
756 .into()
757 }
758
759 /// See [`BulkNullStringArrayBuilder::append_byte_map`].
760 ///

Callers 3

append_valueMethod · 0.80
append_byte_mapMethod · 0.80
append_withMethod · 0.80

Calls 2

lenMethod · 0.45
intoMethod · 0.45

Tested by

no test coverage detected