Skip to content

Commit 8d8541c

Browse files
[Variant] Support nested lists and object lists (#7740)
# Which issue does this PR close? - Closes #7696 # Rationale for this change Heavily refactors `VariantBuilder`, `ObjectBuilder`, and `ListBuilder` to allow nested list and object building. Now, `ObjectBuilder` and `ListBuilder` have their own `VariantBuffer`, an intermediate buffer that gets written to upon every call to `insert` or `append_value`. Only when `finish` is called will the builder flush the intermediate buffer to its parent buffer. `VariantBuilder` was split to hold `VariantBuffer` and `FieldMetadataDictionary` to better simplify and separate the nesting logic.
1 parent 121371c commit 8d8541c

File tree

1 file changed

+578
-275
lines changed

1 file changed

+578
-275
lines changed

0 commit comments

Comments
 (0)