Interface PqVariant


public interface PqVariant

Variant value — the top-level accessor for a Parquet column annotated with the VARIANT logical type. A Variant carries the canonical two-part binary encoding (metadata(), value()) plus a type tag (type()), and exposes tag-specific extraction through the as*() methods.

PqVariant v = row.getVariant("event");
if (v.type() == VariantType.OBJECT) {
    PqVariantObject obj = v.asObject();
    String userId = obj.getString("user_id");
}

Every nested Variant sub-value (array element, object field value) is itself a PqVariant, so navigation composes naturally.

See Also: