write_optional_index

Function write_optional_index 

Source
fn write_optional_index<W: Write + ?Sized>(
    out: &mut W,
    is_null: bool,
    null_order: Nullability,
) -> Result<(), ArrowError>
Expand description

Write the union branch index for an optional field.

Branch index is 0-based per Avro unions:

  • Null-first (default): null => 0, value => 1
  • Null-second (Impala): value => 0, null => 1