Package org.apache.iceberg
Class PartitionKey
- java.lang.Object
-
- org.apache.iceberg.PartitionKey
-
- All Implemented Interfaces:
java.io.Serializable,StructLike
public class PartitionKey extends java.lang.Object implements StructLike, java.io.Serializable
A struct of partition values.Instances of this class can produce partition values from a data row passed to
partition(StructLike).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PartitionKey(PartitionSpec spec, Schema inputSchema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionKeycopy()booleanequals(java.lang.Object o)<T> Tget(int pos, java.lang.Class<T> javaClass)inthashCode()voidpartition(StructLike row)Replace this key's partition values with the partition values for the row.<T> voidset(int pos, T value)intsize()java.lang.StringtoPath()java.lang.StringtoString()
-
-
-
Constructor Detail
-
PartitionKey
public PartitionKey(PartitionSpec spec, Schema inputSchema)
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
copy
public PartitionKey copy()
-
toPath
public java.lang.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
-
size
public int size()
- Specified by:
sizein interfaceStructLike
-
get
public <T> T get(int pos, java.lang.Class<T> javaClass)- Specified by:
getin interfaceStructLike
-
set
public <T> void set(int pos, T value)- Specified by:
setin interfaceStructLike
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-