MCPcopy Create free account
hub / github.com/apache/arrow-rs / append_value

Method append_value

arrow-array/src/builder/union_builder.rs:86–95  ·  view source on GitHub ↗

Appends a single value to this `FieldData`'s `values_buffer`.

(&mut self, v: T::Native)

Source from the content-addressed store, hash-verified

84
85 /// Appends a single value to this `FieldData`'s `values_buffer`.
86 fn append_value<T: ArrowPrimitiveType>(&mut self, v: T::Native) {
87 self.values_buffer
88 .as_mut_any()
89 .downcast_mut::<BufferBuilder<T::Native>>()
90 .expect("Tried to append unexpected type")
91 .append(v);
92
93 self.null_buffer_builder.append(true);
94 self.slots += 1;
95 }
96
97 /// Appends a null to this `FieldData`.
98 fn append_null(&mut self) {

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
as_mut_anyMethod · 0.45

Tested by

no test coverage detected