Skip to content

Commit

Permalink
Rename to entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Dec 17, 2023
1 parent 1fb99c6 commit 6acf8bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arrow-array/src/builder/map_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<K: ArrayBuilder, V: ArrayBuilder> MapBuilder<K, V> {
}

/// Returns both the key and value array builders of the map
pub fn keys_and_values(&mut self) -> (&mut K, &mut V) {
pub fn entries(&mut self) -> (&mut K, &mut V) {
(&mut self.key_builder, &mut self.value_builder)
}

Expand Down
4 changes: 2 additions & 2 deletions arrow/tests/array_transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -837,12 +837,12 @@ fn test_map_keys_values_append() {
Int64Builder::with_capacity(32),
Int64Builder::with_capacity(32),
);
let (keys, values) = builder.keys_and_values();
let (keys, values) = builder.entries();
keys.append_slice(&[1, 2, 3]);
values.append_slice(&[1, 3, 4]);
builder.append(true).unwrap();

let (keys, values) = builder.keys_and_values();
let (keys, values) = builder.entries();
keys.append_slice(&[4, 5]);
values.append_slice(&[4, 6]);
builder.append(true).unwrap();
Expand Down

0 comments on commit 6acf8bb

Please sign in to comment.