Class IcebergPartitionField

    • Method Detail

      • sourceId

        public final Integer sourceId()

        The identifier of the source field from the table schema that this partition field is based on.

        Returns:
        The identifier of the source field from the table schema that this partition field is based on.
      • transform

        public final String transform()

        The transformation function applied to the source field to create the partition, such as identity, bucket, truncate, year, month, day, or hour.

        Returns:
        The transformation function applied to the source field to create the partition, such as identity, bucket, truncate, year, month, day, or hour.
      • name

        public final String name()

        The name of the partition field as it will appear in the partitioned table structure.

        Returns:
        The name of the partition field as it will appear in the partitioned table structure.
      • fieldId

        public final Integer fieldId()

        The unique identifier assigned to this partition field within the Iceberg table's partition specification.

        Returns:
        The unique identifier assigned to this partition field within the Iceberg table's partition specification.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)