Class PartitionData

java.lang.Object
org.apache.iceberg.PartitionData
All Implemented Interfaces:
Serializable, org.apache.avro.generic.GenericContainer, org.apache.avro.generic.IndexedRecord, org.apache.avro.specific.SpecificData.SchemaConstructable, StructLike

public class PartitionData extends Object implements org.apache.avro.generic.IndexedRecord, StructLike, org.apache.avro.specific.SpecificData.SchemaConstructable, Serializable
See Also:
  • Constructor Details

  • Method Details

    • getPartitionType

      public Types.StructType getPartitionType()
    • getSchema

      public org.apache.avro.Schema getSchema()
      Specified by:
      getSchema in interface org.apache.avro.generic.GenericContainer
    • getType

      public Type getType(int pos)
    • clear

      public void clear()
    • 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
    • get

      public Object get(int pos)
      Specified by:
      get in interface org.apache.avro.generic.IndexedRecord
    • set

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

      public void put(int i, Object v)
      Specified by:
      put in interface org.apache.avro.generic.IndexedRecord
    • toString

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

      public PartitionData copy()
    • copyFor

      public PartitionData copyFor(StructLike partition)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • copyData

      public static Object[] copyData(Types.StructType type, Object[] data)