Interface PqMap
public interface PqMap
Type-safe interface for accessing Parquet MAP values.
A MAP in Parquet is stored as a list of key-value entries. This interface provides type-safe access to the entries with dedicated accessor methods.
PqMap attributes = row.getMap("attributes");
for (PqMap.Entry entry : attributes.getEntries()) {
String key = entry.getStringKey();
int value = entry.getIntValue();
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA single key-value entry in a map. -
Method Summary
-
Method Details
-
getEntries
-
size
int size()Get the number of entries in this map.- Returns:
- the entry count
-
isEmpty
boolean isEmpty()Check if this map is empty.- Returns:
- true if the map has no entries
-