Class Segment.Builder

java.lang.Object
co.elastic.clients.elasticsearch.indices.segments.Segment.Builder
All Implemented Interfaces:
ObjectBuilder<Segment>
Enclosing class:
Segment

public static class Segment.Builder
extends java.lang.Object
implements ObjectBuilder<Segment>
Builder for Segment.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • attributes

      public Segment.Builder attributes​(java.util.Map<java.lang.String,​java.lang.String> value)
      API name: attributes
    • putAttributes

      public Segment.Builder putAttributes​(java.lang.String key, java.lang.String value)
      Add a key/value to attributes(Map), creating the map if needed.
    • committed

      public Segment.Builder committed​(boolean value)
      API name: committed
    • compound

      public Segment.Builder compound​(boolean value)
      API name: compound
    • deletedDocs

      public Segment.Builder deletedDocs​(long value)
      API name: deleted_docs
    • generation

      public Segment.Builder generation​(int value)
      API name: generation
    • memoryInBytes

      public Segment.Builder memoryInBytes​(double value)
      API name: memory_in_bytes
    • search

      public Segment.Builder search​(boolean value)
      API name: search
    • sizeInBytes

      public Segment.Builder sizeInBytes​(double value)
      API name: size_in_bytes
    • numDocs

      public Segment.Builder numDocs​(long value)
      API name: num_docs
    • version

      public Segment.Builder version​(java.lang.String value)
      API name: version
    • build

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