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

Function single_null_buffer

datafusion/physical-expr-common/src/binary_map.rs:555–562  ·  view source on GitHub ↗

Returns a `NullBuffer` with a single null value at the given index

(num_values: usize, null_index: usize)

Source from the content-addressed store, hash-verified

553
554/// Returns a `NullBuffer` with a single null value at the given index
555fn single_null_buffer(num_values: usize, null_index: usize) -> NullBuffer {
556 let mut null_builder = NullBufferBuilder::new(num_values);
557 null_builder.append_n_non_nulls(null_index);
558 null_builder.append_null();
559 null_builder.append_n_non_nulls(num_values - null_index - 1);
560 // SAFETY: inner builder must be constructed
561 null_builder.finish().unwrap()
562}
563
564impl<O: OffsetSizeTrait, V> Debug for ArrowBytesMap<O, V>
565where

Callers 1

into_stateMethod · 0.85

Calls 3

newFunction · 0.85
append_nullMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…