Class ImmutableGCParams.Builder

  • Enclosing class:
    ImmutableGCParams

    @NotThreadSafe
    public static final class ImmutableGCParams.Builder
    extends Object
    Builds instances of type ImmutableGCParams. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder from​(GCParams instance)
        Fill a builder with attribute values from the provided GCParams instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • putNessieClientConfigs

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder putNessieClientConfigs​(String key,
                                                                      String value)
        Put one entry to the nessieClientConfigs map.
        Parameters:
        key - The key in the nessieClientConfigs map
        value - The associated value in the nessieClientConfigs map
        Returns:
        this builder for use in a chained invocation
      • putNessieClientConfigs

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder putNessieClientConfigs​(Map.Entry<String,​? extends String> entry)
        Put one entry to the nessieClientConfigs map. Nulls are not permitted
        Parameters:
        entry - The key and value entry
        Returns:
        this builder for use in a chained invocation
      • nessieClientConfigs

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder nessieClientConfigs​(Map<String,​? extends String> entries)
        Sets or replaces all mappings from the specified map as entries for the nessieClientConfigs map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the nessieClientConfigs map
        Returns:
        this builder for use in a chained invocation
      • putAllNessieClientConfigs

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder putAllNessieClientConfigs​(Map<String,​? extends String> entries)
        Put all mappings from the specified map as entries to nessieClientConfigs map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the nessieClientConfigs map
        Returns:
        this builder for use in a chained invocation
      • putCutOffTimestampPerRef

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder putCutOffTimestampPerRef​(String key,
                                                                        Instant value)
        Put one entry to the cutOffTimestampPerRef map.
        Parameters:
        key - The key in the cutOffTimestampPerRef map
        value - The associated value in the cutOffTimestampPerRef map
        Returns:
        this builder for use in a chained invocation
      • cutOffTimestampPerRef

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder cutOffTimestampPerRef​(@Nullable
                                                                     Map<String,​? extends Instant> entries)
        Sets or replaces all mappings from the specified map as entries for the cutOffTimestampPerRef map. Nulls are not permitted as keys or values, but parameter itself can be null
        Parameters:
        entries - The entries that will be added to the cutOffTimestampPerRef map
        Returns:
        this builder for use in a chained invocation
      • putAllCutOffTimestampPerRef

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder putAllCutOffTimestampPerRef​(Map<String,​? extends Instant> entries)
        Put all mappings from the specified map as entries to cutOffTimestampPerRef map. Nulls are not permitted
        Parameters:
        entries - The entries that will be added to the cutOffTimestampPerRef map
        Returns:
        this builder for use in a chained invocation
      • defaultCutOffTimestamp

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder defaultCutOffTimestamp​(Instant defaultCutOffTimestamp)
        Initializes the value for the defaultCutOffTimestamp attribute.
        Parameters:
        defaultCutOffTimestamp - The value for defaultCutOffTimestamp
        Returns:
        this builder for use in a chained invocation
      • deadReferenceCutOffTimeStamp

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder deadReferenceCutOffTimeStamp​(@Nullable
                                                                            Instant deadReferenceCutOffTimeStamp)
        Initializes the value for the deadReferenceCutOffTimeStamp attribute.
        Parameters:
        deadReferenceCutOffTimeStamp - The value for deadReferenceCutOffTimeStamp (can be null)
        Returns:
        this builder for use in a chained invocation
      • sparkPartitionsCount

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder sparkPartitionsCount​(@Nullable
                                                                    Integer sparkPartitionsCount)
        Initializes the value for the sparkPartitionsCount attribute.
        Parameters:
        sparkPartitionsCount - The value for sparkPartitionsCount (can be null)
        Returns:
        this builder for use in a chained invocation
      • commitProtectionDuration

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder commitProtectionDuration​(Duration commitProtectionDuration)
        Initializes the value for the commitProtectionDuration attribute.

        If not set, this attribute will have a default value as returned by the initializer of commitProtectionDuration.

        Parameters:
        commitProtectionDuration - The value for commitProtectionDuration
        Returns:
        this builder for use in a chained invocation
      • bloomFilterExpectedEntries

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder bloomFilterExpectedEntries​(@Nullable
                                                                          Long bloomFilterExpectedEntries)
        Initializes the value for the bloomFilterExpectedEntries attribute.
        Parameters:
        bloomFilterExpectedEntries - The value for bloomFilterExpectedEntries (can be null)
        Returns:
        this builder for use in a chained invocation
      • bloomFilterFpp

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder bloomFilterFpp​(double bloomFilterFpp)
        Initializes the value for the bloomFilterFpp attribute.

        If not set, this attribute will have a default value as returned by the initializer of bloomFilterFpp.

        Parameters:
        bloomFilterFpp - The value for bloomFilterFpp
        Returns:
        this builder for use in a chained invocation
      • nessieCatalogName

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder nessieCatalogName​(String nessieCatalogName)
        Initializes the value for the nessieCatalogName attribute.
        Parameters:
        nessieCatalogName - The value for nessieCatalogName
        Returns:
        this builder for use in a chained invocation
      • outputBranchName

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder outputBranchName​(String outputBranchName)
        Initializes the value for the outputBranchName attribute.
        Parameters:
        outputBranchName - The value for outputBranchName
        Returns:
        this builder for use in a chained invocation
      • outputTableIdentifier

        @CanIgnoreReturnValue
        public final ImmutableGCParams.Builder outputTableIdentifier​(String outputTableIdentifier)
        Initializes the value for the outputTableIdentifier attribute.
        Parameters:
        outputTableIdentifier - The value for outputTableIdentifier
        Returns:
        this builder for use in a chained invocation