Interface PqVariantObject
- All Superinterfaces:
FieldAccessor
Name-based view of a Variant OBJECT value.
Inherits the primitive getters (getInt, getString, getTimestamp, …) and
the getVariant / isNull / getFieldCount / getFieldName metadata
accessors from FieldAccessor. The typed getters narrow through the
Variant type tag of each field — e.g. getInt("age") accepts a field whose
Variant type is INT8/INT16/INT32, and throws VariantTypeException
otherwise.
Variant-specific complex navigation uses getObject(String) and
getArray(String), not the Parquet-schema-typed getStruct / getList /
getMap (which are not exposed here).
-
Method Summary
Modifier and TypeMethodDescriptionGet a field whose Variant type is ARRAY and unwrap it as a nestedPqVariantArrayview.Get a field whose Variant type is OBJECT and unwrap it as a nestedPqVariantObjectview.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
-
getObject
Get a field whose Variant type is OBJECT and unwrap it as a nestedPqVariantObjectview.- Parameters:
name- the field name- Returns:
- the nested object view, or null if the field is null
- Throws:
IllegalArgumentException- if the field is absentVariantTypeException- if the field's Variant type is not OBJECT
-
getArray
Get a field whose Variant type is ARRAY and unwrap it as a nestedPqVariantArrayview.- Parameters:
name- the field name- Returns:
- the nested array view, or null if the field is null
- Throws:
IllegalArgumentException- if the field is absentVariantTypeException- if the field's Variant type is not ARRAY
-