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

Method with_values_field

arrow-array/src/builder/map_builder.rs:135–140  ·  view source on GitHub ↗

Override the field passed to [`MapBuilder::new`] By default, a nullable field is created with the name `values` Note: [`Self::finish`] and [`Self::finish_cloned`] will panic if the field's data type does not match that of `V`

(self, field: impl Into<FieldRef>)

Source from the content-addressed store, hash-verified

133 /// Note: [`Self::finish`] and [`Self::finish_cloned`] will panic if the
134 /// field's data type does not match that of `V`
135 pub fn with_values_field(self, field: impl Into<FieldRef>) -> Self {
136 Self {
137 value_field: Some(field.into()),
138 ..self
139 }
140 }
141
142 /// Returns the key array builder of the map
143 pub fn keys(&mut self) -> &mut K {

Calls

no outgoing calls