Expand description
Arrow IPC File and Stream Writers
The FileWriter
and StreamWriter
have similar interfaces,
however the FileWriter
expects a reader that supports Seek
ing
Structs§
- Keeps track of dictionaries that have been written, to avoid emitting the same dictionary multiple times.
- Stores the encoded data, which is an crate::Message, and optional Arrow data
- Writer for an IPC file
- IPC write options used to control the behaviour of the
IpcDataGenerator
- Writer for an IPC stream
Constants§
- PADDING π
Functions§
- buffer_
need_ πtruncate Whether to truncate the buffer - Returns byte width for a buffer spec. Only for
BufferSpec::FixedWidth
. - Returns the values and offsets [
Buffer
] for a ByteArray with offset typeO
- Similar logic as
get_byte_array_buffers()
but slices the child array instead of a values buffer. - has_
validity_ πbitmap In V4, null types have no validity bitmap In V5 and later, null and union types have no validity bitmap Run end encoded type has no validity bitmap. - pad_
to_ πalignment Calculate an alignment boundary and return the number of bytes needed to pad to the alignment boundary - reencode_
offsets πCommon functionality for re-encoding offsets. Returns the new offsets as well as original start offset and length for use in slicing child data. - unslice_
run_ πarray - write_
array_ πdata Write array data to a vector of bytes - write_
body_ πbuffers - write_
buffer πWrite a buffer intoarrow_data
, a vector of bytes, and adds itscrate::Buffer
tobuffers
. Returns the new offset inarrow_data
- write_
continuation πWrite a record batch to the writer, writing the message size before the message if the record batch is being written to a stream - Write a messageβs IPC data and buffers, returning metadata and buffer data lengths written