Class PartitionKey

java.lang.Object
org.apache.iceberg.PartitionKey
All Implemented Interfaces:
Serializable, StructLike

public class PartitionKey extends Object
A struct of partition values.

Instances of this class can produce partition values from a data row passed to partition(StructLike).

See Also:
  • Constructor Details

  • Method Details

    • copy

      public PartitionKey copy()
    • toPath

      public String toPath()
    • partition

      public void partition(StructLike row)
      Replace this key's partition values with the partition values for the row.
      Parameters:
      row - a StructLike row
    • wrap

      public void wrap(StructLike row)
    • size

      public int size()
      Specified by:
      size in interface StructLike
    • get

      public <T> T get(int pos, Class<T> javaClass)
      Specified by:
      get in interface StructLike
    • set

      public <T> void set(int pos, T value)
      Specified by:
      set in interface StructLike
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object