Interface StructAccessor

All Superinterfaces:
FieldAccessor
All Known Subinterfaces:
PqStruct, RowReader

public interface StructAccessor extends FieldAccessor

Parquet-struct access interface. Extends FieldAccessor with complex getters specific to the Parquet schema-typed world: nested structs, lists (including primitive-specialized ones), and maps.

Variant objects do not expose these methods — use PqVariantObject for Variant navigation. See FieldAccessor for the common primitive and Variant accessor surface shared by both.

This interface makes no assumptions about mutability or lifecycle, allowing code to work polymorphically with both RowReader (a stateful, mutable view over the current row) and PqStruct (an immutable, self-contained nested struct value).

See Also:
  • Method Details

    • getStruct

      PqStruct getStruct(String name)
      Get a nested struct field value by name.
      Parameters:
      name - the field name
      Returns:
      the nested struct, or null if the field is null
      Throws:
      IllegalArgumentException - if the field type is not a struct
    • getListOfInts

      PqIntList getListOfInts(String name)
      Get an INT32 list field by name.
      Parameters:
      name - the field name
      Returns:
      the int list, or null if the field is null
      Throws:
      IllegalArgumentException - if the field is not a list of INT32
    • getListOfLongs

      PqLongList getListOfLongs(String name)
      Get an INT64 list field by name.
      Parameters:
      name - the field name
      Returns:
      the long list, or null if the field is null
      Throws:
      IllegalArgumentException - if the field is not a list of INT64
    • getListOfDoubles

      PqDoubleList getListOfDoubles(String name)
      Get a DOUBLE list field by name.
      Parameters:
      name - the field name
      Returns:
      the double list, or null if the field is null
      Throws:
      IllegalArgumentException - if the field is not a list of DOUBLE
    • getList

      PqList getList(String name)
      Get a LIST field value by name.
      Parameters:
      name - the field name
      Returns:
      the list, or null if the field is null
      Throws:
      IllegalArgumentException - if the field type is not a list
    • getMap

      PqMap getMap(String name)
      Get a MAP field value by name.
      Parameters:
      name - the field name
      Returns:
      the map, or null if the field is null
      Throws:
      IllegalArgumentException - if the field type is not a map