Class IndicesStatsResponse

All Implemented Interfaces:
Writeable, org.elasticsearch.common.util.concurrent.RefCounted, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject

public class IndicesStatsResponse
extends BroadcastResponse
  • Method Details

    • asMap

      public java.util.Map<ShardRouting,​ShardStats> asMap()
    • getShards

      public ShardStats[] getShards()
    • getAt

      public ShardStats getAt​(int position)
    • getIndex

      public IndexStats getIndex​(java.lang.String index)
    • getIndices

      public java.util.Map<java.lang.String,​IndexStats> getIndices()
    • getTotal

      public CommonStats getTotal()
    • getPrimaries

      public CommonStats getPrimaries()
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Overrides:
      writeTo in class BroadcastResponse
      Throws:
      java.io.IOException
    • addCustomXContentFields

      protected void addCustomXContentFields​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Description copied from class: BroadcastResponse
      Override in subclass to add custom fields following the common `_shards` field
      Overrides:
      addCustomXContentFields in class BroadcastResponse
      Throws:
      java.io.IOException
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object