abacef commented on issue #7798: URL: https://github.com/apache/arrow-rs/issues/7798#issuecomment-3034578912
I dont know how set in stone these builder APIs are but in order to prevent there being unfinished objects being appended to objects for example, we can make `new_object` return a builder but not actually set the offset, then they would call `finish` which just returns something like a FinalizedBuilder type, and only then would they be able to call a new method on an ObjectBuilder called like `add_object` which only takes a FinalizedBuilder and sets the offset and puts it in the parent buffer and does the finalization things. Is there something I may not be considering? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org