Interface StructAccessor
- All Superinterfaces:
FieldAccessor
Parquet-struct access interface. Extends FieldAccessor with complex getters
specific to the Parquet schema-typed world (nested structs, lists, maps) and
with index-based mirrors of the FieldAccessor by-name accessors.
Variant objects do not expose these methods — use PqVariantObject for
Variant navigation. By-index access lives here rather than on FieldAccessor
because the "field index" is meaningful for struct-shaped accessors (the
position in projected schema order) but not for Variant objects (whose field
order is lexicographic on the metadata key dictionary and rarely matches what
a caller would consider "first" / "second").
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 (a flyweight
over a nested struct position).
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBinary(int fieldIndex) Get a BINARY field value by field index.booleangetBoolean(int fieldIndex) Get a BOOLEAN field value by field index.getDate(int fieldIndex) Get a DATE field value by field index.getDecimal(int fieldIndex) Get a DECIMAL field value by field index.doublegetDouble(int fieldIndex) Get a DOUBLE field value by field index.floatgetFloat(int fieldIndex) Get a FLOAT field value by field index.intgetInt(int fieldIndex) Get an INT32 field value by field index.getInterval(int fieldIndex) Get an INTERVAL field value by field index.getList(int fieldIndex) Get a LIST field value by field index.Get a LIST field value by name.longgetLong(int fieldIndex) Get an INT64 field value by field index.getMap(int fieldIndex) Get a MAP field value by field index.Get a MAP field value by name.getRawValue(int fieldIndex) Get a field value by field index as its raw physical representation.getString(int fieldIndex) Get a STRING field value by field index.getStruct(int fieldIndex) Get a nested struct field value by field index.Get a nested struct field value by name.getTime(int fieldIndex) Get a TIME field value by field index.getTimestamp(int fieldIndex) Get a TIMESTAMP field value by field index.getUuid(int fieldIndex) Get a UUID field value by field index.getValue(int fieldIndex) Get a field value by field index, decoded to its logical-type representation.getVariant(int fieldIndex) Get a VARIANT field value by field index.booleanisNull(int fieldIndex) Check if a field is null by field index.Methods inherited from interface FieldAccessor
getBinary, getBoolean, getDate, getDecimal, getDouble, getFieldCount, getFieldName, getFloat, getInt, getInterval, getLong, getRawValue, getString, getTime, getTimestamp, getUuid, getValue, getVariant, isNull
-
Method Details
-
getStruct
-
getList
-
getMap
-
getInt
int getInt(int fieldIndex) Get an INT32 field value by field index. SeeFieldAccessor.getInt(String). -
getLong
long getLong(int fieldIndex) Get an INT64 field value by field index. SeeFieldAccessor.getLong(String). -
getFloat
float getFloat(int fieldIndex) Get a FLOAT field value by field index. SeeFieldAccessor.getFloat(String). -
getDouble
double getDouble(int fieldIndex) Get a DOUBLE field value by field index. SeeFieldAccessor.getDouble(String). -
getBoolean
boolean getBoolean(int fieldIndex) Get a BOOLEAN field value by field index. SeeFieldAccessor.getBoolean(String). -
getString
Get a STRING field value by field index. SeeFieldAccessor.getString(String). -
getBinary
byte[] getBinary(int fieldIndex) Get a BINARY field value by field index. SeeFieldAccessor.getBinary(String). -
getDate
Get a DATE field value by field index. SeeFieldAccessor.getDate(String). -
getTime
Get a TIME field value by field index. SeeFieldAccessor.getTime(String). -
getTimestamp
Get a TIMESTAMP field value by field index. SeeFieldAccessor.getTimestamp(String). -
getDecimal
Get a DECIMAL field value by field index. SeeFieldAccessor.getDecimal(String). -
getUuid
Get a UUID field value by field index. SeeFieldAccessor.getUuid(String). -
getInterval
Get an INTERVAL field value by field index. SeeFieldAccessor.getInterval(String). -
getVariant
Get a VARIANT field value by field index. SeeFieldAccessor.getVariant(String). -
getStruct
Get a nested struct field value by field index. SeegetStruct(String). -
getList
Get a LIST field value by field index. SeegetList(String). -
getMap
Get a MAP field value by field index. SeegetMap(String). -
getValue
Get a field value by field index, decoded to its logical-type representation. SeeFieldAccessor.getValue(String). -
getRawValue
Get a field value by field index as its raw physical representation. SeeFieldAccessor.getRawValue(String). -
isNull
boolean isNull(int fieldIndex) Check if a field is null by field index. SeeFieldAccessor.isNull(String).
-