Hi Michael, The easiest way is likely to use BufferOutputStream [1] as the file target or implement your own arrow:io::OutputStream to fit your requirements.
Cheers, Micah [1] https://github.com/apache/arrow/blob/main/cpp/src/arrow/io/memory.h#L39 On Fri, Mar 3, 2023 at 9:58 AM Lewis, Michael L <[email protected]> wrote: > Hi, > > Just started looking at the Arrow C++ API. I was just wondering if there > is an example (or if its possible) to write a Parquet file to a char buffer > via Arrow. > > I can write parquet files (ofc. I could just read them back in) to disk/S3 > etc. But I’d like to write them to char buffer directly. > > > Regards & Thanks, > Mike Lewis > > > ________________________________________________________________ This > email is intended only for the use of the individual(s) to whom it is > addressed and may be privileged and confidential. Unauthorised use or > disclosure is prohibited. If you receive this e-mail in error, please > advise immediately and delete the original message without copying, using, > or telling anyone about its contents. This message may have been altered > without your or our knowledge and the sender does not accept any liability > for any errors or omissions in the message. This message does not create or > change any contract. Royal Bank of Canada and its subsidiaries accept no > responsibility for damage caused by any viruses contained in this email or > its attachments. Emails may be monitored. RBC Capital Markets is a business > name used by branches and subsidiaries of Royal Bank of Canada, including > Royal Bank of Canada, London branch and RBC Europe Limited. In accordance > with English law requirements, details regarding RBC Europe Limited and > Royal Bank of Canada, London Branch are set out below: RBC EUROPE LIMITED > Registered in England and Wales 995939 Registered Address: 100 Bishopsgate, > London, EC2N 4AA. Authorised by the Prudential Regulation Authority and > regulated by the Financial Conduct Authority and the Prudential Regulation > Authority. ROYAL BANK OF CANADA, LONDON BRANCH Incorporated in Canada in > 1869 with Limited Liability. Registered in England and Wales BR000548 > Registered Address: 1 Place Ville Marie, Montreal, Quebec, Canada. Branch > location: 100 Bishopsgate, London, EC2N 4AA. Authorised and regulated by > the Office of the Superintendent of Financial Institutions of Canada. > Authorised by the Prudential Regulation Authority. Subject to regulation by > the Financial Conduct Authority and limited regulation by the Prudential > Regulation Authority. Details of our regulation by the Prudential > Regulation Authority are available from us on request. Please see link for > RBCCM disclosures. https://www.rbccm.com/rbccm/policies-disclaimers.page >
