Interface PqStruct
- All Superinterfaces:
StructAccessor
Type-safe struct interface for reading nested Parquet data.
Provides dedicated accessor methods for each type, similar to JDBC ResultSet.
This interface is used for nested struct access, not for top-level row iteration.
For top-level row access, use RowReader directly.
A PqStruct is an immutable, self-contained object representing a nested
struct value, which can be freely passed around in an application.
while (rowReader.hasNext()) {
rowReader.next();
int id = rowReader.getInt("id");
// Nested struct
PqStruct address = rowReader.getStruct("address");
String city = address.getString("city");
// List of structs
PqList items = rowReader.getList("items");
for (PqStruct item : items.structs()) { ... }
}
-
Method Summary
Methods inherited from interface StructAccessor
getBinary, getBoolean, getDate, getDecimal, getDouble, getFieldCount, getFieldName, getFloat, getInt, getList, getListOfDoubles, getListOfInts, getListOfLongs, getLong, getMap, getString, getStruct, getTime, getTimestamp, getUuid, getValue, isNull