Class MergesStats.Builder

java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.MergesStats.Builder
All Implemented Interfaces:
CopyableBuilder<MergesStats.Builder,MergesStats>, MutableBuilder<MergesStats.Builder,MergesStats>, ObjectBuilder<MergesStats>
Enclosing class:
MergesStats

public static class MergesStats.Builder extends ObjectBuilderBase implements CopyableBuilder<MergesStats.Builder,MergesStats>
Builder for MergesStats.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • copy

      @Nonnull public MergesStats.Builder copy()
      Description copied from interface: CopyableBuilder
      Create a new builder CopyableBuilder that is a copy of this one.
      Specified by:
      copy in interface CopyableBuilder<MergesStats.Builder,MergesStats>
      Returns:
      a new builder instance.
    • current

      @Nonnull public final MergesStats.Builder current(long value)
      Required - The number of current merge operations.

      API name: current

    • currentDocs

      @Nonnull public final MergesStats.Builder currentDocs(long value)
      Required - The number of documents in current merge operations.

      API name: current_docs

    • currentSize

      @Nonnull public final MergesStats.Builder currentSize(@Nullable String value)
      The size of current merge operations in a human-readable format.

      API name: current_size

    • currentSizeInBytes

      @Nonnull public final MergesStats.Builder currentSizeInBytes(long value)
      Required - The size of current merge operations in bytes.

      API name: current_size_in_bytes

    • total

      @Nonnull public final MergesStats.Builder total(long value)
      Required - The total number of merge operations.

      API name: total

    • totalAutoThrottle

      @Nonnull public final MergesStats.Builder totalAutoThrottle(@Nullable String value)
      The total auto-throttle size in a human-readable format.

      API name: total_auto_throttle

    • totalAutoThrottleInBytes

      @Nonnull public final MergesStats.Builder totalAutoThrottleInBytes(long value)
      Required - The total auto-throttle size in bytes.

      API name: total_auto_throttle_in_bytes

    • totalDocs

      @Nonnull public final MergesStats.Builder totalDocs(long value)
      Required - The total number of documents that have been merged.

      API name: total_docs

    • totalSize

      @Nonnull public final MergesStats.Builder totalSize(@Nullable String value)
      The total size of merge operations in a human-readable format.

      API name: total_size

    • totalSizeInBytes

      @Nonnull public final MergesStats.Builder totalSizeInBytes(long value)
      Required - The total size of merge operations in bytes.

      API name: total_size_in_bytes

    • totalStoppedTime

      @Nonnull public final MergesStats.Builder totalStoppedTime(@Nullable Time value)
      The total amount of time merge operations have been stopped.

      API name: total_stopped_time

    • totalStoppedTime

      @Nonnull public final MergesStats.Builder totalStoppedTime(Function<Time.Builder,ObjectBuilder<Time>> fn)
      The total amount of time merge operations have been stopped.

      API name: total_stopped_time

    • totalStoppedTimeInMillis

      @Nonnull public final MergesStats.Builder totalStoppedTimeInMillis(long value)
      Required - The total amount of time merge operations have been stopped in milliseconds.

      API name: total_stopped_time_in_millis

    • totalThrottledTime

      @Nonnull public final MergesStats.Builder totalThrottledTime(@Nullable Time value)
      The total amount of time merge operations have been throttled.

      API name: total_throttled_time

    • totalThrottledTime

      @Nonnull public final MergesStats.Builder totalThrottledTime(Function<Time.Builder,ObjectBuilder<Time>> fn)
      The total amount of time merge operations have been throttled.

      API name: total_throttled_time

    • totalThrottledTimeInMillis

      @Nonnull public final MergesStats.Builder totalThrottledTimeInMillis(long value)
      Required - The total amount of time merge operations have been throttled in milliseconds.

      API name: total_throttled_time_in_millis

    • totalTime

      @Nonnull public final MergesStats.Builder totalTime(@Nullable Time value)
      The total amount of time spent on merge operations.

      API name: total_time

    • totalTime

      @Nonnull public final MergesStats.Builder totalTime(Function<Time.Builder,ObjectBuilder<Time>> fn)
      The total amount of time spent on merge operations.

      API name: total_time

    • totalTimeInMillis

      @Nonnull public final MergesStats.Builder totalTimeInMillis(long value)
      Required - The total amount of time spent on merge operations in milliseconds.

      API name: total_time_in_millis

    • unreferencedFileCleanupsPerformed

      @Nonnull public final MergesStats.Builder unreferencedFileCleanupsPerformed(@Nullable Long value)
      The number of unreferenced file cleanups performed.

      API name: unreferenced_file_cleanups_performed

    • build

      @Nonnull public MergesStats build()
      Builds a MergesStats.
      Specified by:
      build in interface ObjectBuilder<MergesStats>
      Throws:
      NullPointerException - if some of the required fields are null.