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

        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

        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
      • nessieClientConfigs

        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

        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

        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

        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

        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

        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

        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

        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

        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

        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

        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