Skip to content

Commit a9b0e72

Browse files
committed
Expose field_builders in StructBuilder
1 parent 9c92a50 commit a9b0e72

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arrow-array/src/builder/struct_builder.rs

+5
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,11 @@ impl StructBuilder {
372372
self.field_builders[i].as_any_mut().downcast_mut::<T>()
373373
}
374374

375+
/// Returns a reference to field builders
376+
pub fn field_builders(&self) -> &[Box<dyn ArrayBuilder>] {
377+
&self.field_builders
378+
}
379+
375380
/// Returns the number of fields for the struct this builder is building.
376381
pub fn num_fields(&self) -> usize {
377382
self.field_builders.len()

0 commit comments

Comments
 (0)