Interface StructAccessor
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionGet a LIST field value by name.getListOfDoubles(String name) Get a DOUBLE list field by name.getListOfInts(String name) Get an INT32 list field by name.getListOfLongs(String name) Get an INT64 list field by name.Get a MAP field value by name.Get a nested struct field value by name.Methods inherited from interface FieldAccessor
getBinary, getBoolean, getDate, getDecimal, getDouble, getFieldCount, getFieldName, getFloat, getInt, getInterval, getLong, getString, getTime, getTimestamp, getUuid, getValue, getVariant, isNull
-
Method Details
-
getStruct
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
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
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
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
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
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
-