Class SegmentsStats

java.lang.Object
org.elasticsearch.index.engine.SegmentsStats
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class SegmentsStats extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentFragment
  • Constructor Details

  • Method Details

    • add

      public void add(long count)
    • addIndexWriterMemoryInBytes

      public void addIndexWriterMemoryInBytes(long indexWriterMemoryInBytes)
    • addVersionMapMemoryInBytes

      public void addVersionMapMemoryInBytes(long versionMapMemoryInBytes)
    • addBitsetMemoryInBytes

      public void addBitsetMemoryInBytes(long bitsetMemoryInBytes)
    • addFiles

      public void addFiles(ImmutableOpenMap<String,SegmentsStats.FileStats> files)
    • add

      public void add(SegmentsStats mergeStats)
    • getCount

      public long getCount()
      The number of segments.
    • getIndexWriterMemoryInBytes

      public long getIndexWriterMemoryInBytes()
      Estimation of the memory usage by index writer
    • getIndexWriterMemory

      public ByteSizeValue getIndexWriterMemory()
    • getVersionMapMemoryInBytes

      public long getVersionMapMemoryInBytes()
      Estimation of the memory usage by version map
    • getVersionMapMemory

      public ByteSizeValue getVersionMapMemory()
    • getBitsetMemoryInBytes

      public long getBitsetMemoryInBytes()
      Estimation of how much the cached bit sets are taking. (which nested and p/c rely on)
    • getBitsetMemory

      public ByteSizeValue getBitsetMemory()
    • getFiles

    • getMaxUnsafeAutoIdTimestamp

      public long getMaxUnsafeAutoIdTimestamp()
      Returns the max timestamp that is used to de-optimize documents with auto-generated IDs in the engine. This is used to ensure we don't add duplicate documents when we assume an append only case based on auto-generated IDs
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • clearFiles

      public void clearFiles()