Package org.apache.iceberg
Class PartitionField
- java.lang.Object
-
- org.apache.iceberg.PartitionField
-
- All Implemented Interfaces:
java.io.Serializable
public class PartitionField extends java.lang.Object implements java.io.SerializableRepresents a single field in aPartitionSpec.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)intfieldId()Returns the partition field id across all the table metadata's partition specs.inthashCode()java.lang.Stringname()Returns the name of this partition field.intsourceId()Returns the field id of the source field in thespec'stable schema.java.lang.StringtoString()Transform<?,?>transform()Returns the transform used to produce partition values from source values.
-
-
-
Method Detail
-
sourceId
public int sourceId()
Returns the field id of the source field in thespec'stable schema.
-
fieldId
public int fieldId()
Returns the partition field id across all the table metadata's partition specs.
-
name
public java.lang.String name()
Returns the name of this partition field.
-
transform
public Transform<?,?> transform()
Returns the transform used to produce partition values from source values.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-