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.Serializable
Represents a single field in aPartitionSpec
.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
fieldId()
Returns the partition field id across all the table metadata's partition specs.int
hashCode()
java.lang.String
name()
Returns the name of this partition field.int
sourceId()
Returns the field id of the source field in thespec's
table schema.java.lang.String
toString()
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's
table 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:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-