Class AbstractBinaryStoreReaderV1

java.lang.Object
com.illumon.iris.binarystore.AbstractBinaryStoreReader
com.illumon.iris.binarystore.AbstractBinaryStoreReaderV1
All Implemented Interfaces:
BinaryStoreReader, TableReader
Direct Known Subclasses:
BinaryStoreBufferProcessorV1, BinaryStoreReaderV1

public abstract class AbstractBinaryStoreReaderV1
extends AbstractBinaryStoreReader
Base for V1 binary store readers.

This class implements the reader for a self-descriptive binary format table.
A table is structured as following:
  • header, formatted as follows:
    • 4-byte signed int (numColumns)
    • For each column:
      • 0-terminated ascii string (column name)
      • 0-terminated ascii string (type name)
      • 4-byte signed int (type size - unused)
      • 4-byte signed int (metadata size)
      • metadata size bytes (metadata)
  • list of rows
    • (numColumns+7)/8 bytes (column presence bitmap)
    • For each non-null column:
      • Column data based on SupportedType encoding