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 Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A single key-value entry in a map.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get all entries in this map.
    boolean
    Check if this map is empty.
    int
    Get the number of entries in this map.
  • Method Details

    • getEntries

      List<PqMap.Entry> getEntries()
      Get all entries in this map.
      Returns:
      list of map entries
    • 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