Class PartitionMap<V>

java.lang.Object
java.util.AbstractMap<Pair<Integer,StructLike>,V>
org.apache.iceberg.util.PartitionMap<V>
Type Parameters:
V - the type of values
All Implemented Interfaces:
Map<Pair<Integer,StructLike>,V>

public class PartitionMap<V> extends AbstractMap<Pair<Integer,StructLike>,V>
A map that uses a pair of spec ID and partition tuple as keys.

This implementation internally stores provided partition tuples in StructLikeMap for consistent hashing and equals behavior. This ensures that objects of different types that represent the same structs are treated as equal keys in the map.

Note: This map is not designed for concurrent modification by multiple threads. However, it supports safe concurrent reads, assuming there are no concurrent writes.

Note: This map does not support null pairs but supports null as partition tuples.