1 .. Licensed to the Apache Software Foundation (ASF) under one
2 .. or more contributor license agreements. See the NOTICE file
3 .. distributed with this work for additional information
4 .. regarding copyright ownership. The ASF licenses this file
5 .. to you under the Apache License, Version 2.0 (the
6 .. "License"); you may not use this file except in compliance
7 .. with the License. You may obtain a copy of the License at
9 .. http://www.apache.org/licenses/LICENSE-2.0
11 .. Unless required by applicable law or agreed to in writing,
12 .. software distributed under the License is distributed on an
13 .. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14 .. KIND, either express or implied. See the License for the
15 .. specific language governing permissions and limitations
18 .. default-domain:: cpp
28 .. doxygenstruct:: arrow::ipc::IpcReadOptions
31 .. doxygenstruct:: arrow::ipc::IpcWriteOptions
34 Reading IPC streams and files
35 =============================
40 Use either of these two classes, depending on which IPC format you want
41 to read. The file format requires a random-access file, while the stream
42 format only requires a sequential input stream.
44 .. doxygenclass:: arrow::ipc::RecordBatchStreamReader
47 .. doxygenclass:: arrow::ipc::RecordBatchFileReader
53 To read an IPC stream in event-driven fashion, you must implement a
54 :class:`~arrow::ipc::Listener` subclass that you will pass to
55 :class:`~arrow::ipc::StreamDecoder`.
57 .. doxygenclass:: arrow::ipc::Listener
60 .. doxygenclass:: arrow::ipc::StreamDecoder
66 .. doxygenstruct:: arrow::ipc::ReadStats
69 Writing IPC streams and files
70 =============================
75 The IPC stream format is only optionally terminated, whereas the IPC file format
76 must include a terminating footer. Thus a writer of the IPC file format must be
77 explicitly finalized with :func:`~arrow::ipc::RecordBatchWriter::Close()` or the resulting
80 .. doxygengroup:: record-batch-writer-factories
83 .. doxygenclass:: arrow::ipc::RecordBatchWriter
89 .. doxygenstruct:: arrow::ipc::WriteStats