Class GetStats

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

public class GetStats extends Object implements Writeable, org.elasticsearch.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.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