Class GetStats

java.lang.Object
org.elasticsearch.index.get.GetStats
All Implemented Interfaces:
Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment

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

    • GetStats

      public GetStats()
    • GetStats

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

      public GetStats(long existsCount, long existsTimeInMillis, long missingCount, long missingTimeInMillis, long current)
  • Method Details

    • add

      public void add(GetStats stats)
    • addTotals

      public void addTotals(GetStats stats)
    • getCount

      public long getCount()
    • getTimeInMillis

      public long getTimeInMillis()
    • getTime

      public org.elasticsearch.core.TimeValue getTime()
    • getExistsCount

      public long getExistsCount()
    • getExistsTimeInMillis

      public long getExistsTimeInMillis()
    • getExistsTime

      public org.elasticsearch.core.TimeValue getExistsTime()
    • getMissingCount

      public long getMissingCount()
    • getMissingTimeInMillis

      public long getMissingTimeInMillis()
    • getMissingTime

      public org.elasticsearch.core.TimeValue getMissingTime()
    • current

      public long current()
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.common.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