MrLolthe1st opened a new issue, #37429:
URL: https://github.com/apache/arrow/issues/37429

   ### Describe the enhancement requested
   
   It is useful to use `StreamDecoderImpl` outside `reader.cc`.
   For example, someone produces stream of data like that:
   ```
   <SCHEMA>
   <RECORD BATCH 0>
   ...
   <RECORD BATCH n - 1>
   <EOS> (*)
   <SCHEMA>
   <DICTIONARY 0>
   ...
   <DICTIONARY k - 1>
   <RECORD BATCH 0>
   ...
   <RECORD BATCH n - 1>
   <EOS>
   <SCHEMA>
   <RECORD BATCH 0>
   ...
   <RECORD BATCH n - 1>
   <EOS>
   ```
   
   StreamDecoder in that way will ignore all payload after (*). But in way 
where StreamDecoderImpl-like class is open to use, I can use 
OnMessageDecoded(..) method and delegate message decoding in outer scope and 
when EOS coming, reseting StreamDecoderImpl to new.
   
   ### Component(s)
   
   C++


-- 
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]

Reply via email to