arrow_ipc

Module reader

source
Expand description

Arrow IPC File and Stream Readers

The FileReader and StreamReader have similar interfaces, however the FileReader expects a reader that supports Seeking

Modulesยง

Structsยง

Functionsยง

  • create_array ๐Ÿ”’
    Coordinates reading arrays based on data types.
  • Reads the correct number of buffers based on list type and null_count, and creates a list array ref
  • create_list_array ๐Ÿ”’
    Reads the correct number of buffers based on list type and null_count, and creates a list array ref
  • Reads the correct number of buffers based on data type and null_count, and creates a primitive array ref
  • parse_message ๐Ÿ”’
    Parse an encapsulated message
  • read_block ๐Ÿ”’
    Read the data for a given block
  • read_buffer ๐Ÿ”’
    Read a buffer based on offset and length From https://github.com/apache/arrow/blob/6a936c4ff5007045e86f65f1a6b6c3c955ad5103/format/Message.fbs#L58 Each constituent buffer is first compressed with the indicated compressor, and then written with the uncompressed length in the first 8 bytes as a 64-bit little-endian signed integer followed by the compressed buffer bytes (and then padding as required by the protocol). The uncompressed length may be set to -1 to indicate that the data that follows is not compressed, which can be useful for cases where compression does not yield appreciable savings.
  • Read the dictionary from the buffer and provided metadata, updating the dictionaries_by_id with the resulting dictionary
  • Read the footer length from the last 10 bytes of an Arrow IPC file
  • Creates a record batch from binary data using the crate::RecordBatch indexes and the Schema.