Class IcebergRetentionConfiguration

    • Method Detail

      • snapshotRetentionPeriodInDays

        public final Integer snapshotRetentionPeriodInDays()

        The number of days to retain the Iceberg snapshots. If an input is not provided, the corresponding Iceberg table configuration field will be used or if not present, the default value 5 will be used.

        Returns:
        The number of days to retain the Iceberg snapshots. If an input is not provided, the corresponding Iceberg table configuration field will be used or if not present, the default value 5 will be used.
      • numberOfSnapshotsToRetain

        public final Integer numberOfSnapshotsToRetain()

        The number of Iceberg snapshots to retain within the retention period. If an input is not provided, the corresponding Iceberg table configuration field will be used or if not present, the default value 1 will be used.

        Returns:
        The number of Iceberg snapshots to retain within the retention period. If an input is not provided, the corresponding Iceberg table configuration field will be used or if not present, the default value 1 will be used.
      • cleanExpiredFiles

        public final Boolean cleanExpiredFiles()

        If set to false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted.

        Returns:
        If set to false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted.
      • 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)