gianm commented on PR #12745: URL: https://github.com/apache/druid/pull/12745#issuecomment-1176698824
> Does my writable frame have to get converted to a readable one somehow? How does that work? When a FrameWriter initially builds up a frame row-by-row, it does that using memory allocated from an arena. When done, it needs be converted to the format described in the class-level javadoc for Frame. That's done by calling `FrameWriter.writeTo` or `FrameWriter.toByteArray`. Once it's in that format, it can be wrapped with `Frame.wrap` and read however you want. It can also be modified in place: for example, the FrameSort class sorts frames in-place. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
