Record Class IndexMetadataStats

java.lang.Object
java.lang.Record
org.elasticsearch.cluster.metadata.IndexMetadataStats
All Implemented Interfaces:
Writeable, ToXContent, ToXContentFragment

public record IndexMetadataStats(IndexWriteLoad indexWriteLoad, IndexMetadataStats.AverageShardSize averageShardSize) extends Record implements Writeable, ToXContentFragment
  • Field Details

    • WRITE_LOAD_FIELD

      public static final ParseField WRITE_LOAD_FIELD
    • AVERAGE_SIZE_FIELD

      public static final ParseField AVERAGE_SIZE_FIELD
  • Constructor Details

    • IndexMetadataStats

      public IndexMetadataStats(IndexWriteLoad indexWriteLoad, long totalSizeInBytes, int numberOfShards)
    • IndexMetadataStats

      public IndexMetadataStats(StreamInput in) throws IOException
      Throws:
      IOException
    • IndexMetadataStats

      public IndexMetadataStats(IndexWriteLoad indexWriteLoad, IndexMetadataStats.AverageShardSize averageShardSize)
      Creates an instance of a IndexMetadataStats record class.
      Parameters:
      indexWriteLoad - the value for the indexWriteLoad record component
      averageShardSize - the value for the averageShardSize record component
  • Method Details