org.elasticsearch.index.shard
Class DocsStats

java.lang.Object
  extended by org.elasticsearch.index.shard.DocsStats
All Implemented Interfaces:
Streamable, ToXContent

public class DocsStats
extends Object
implements Streamable, ToXContent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
DocsStats()
           
DocsStats(long count, long deleted)
           
 
Method Summary
 void add(DocsStats docsStats)
           
 long count()
           
 long deleted()
           
 long getCount()
           
 long getDeleted()
           
static DocsStats readDocStats(StreamInput in)
           
 void readFrom(StreamInput in)
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocsStats

public DocsStats()

DocsStats

public DocsStats(long count,
                 long deleted)
Method Detail

add

public void add(DocsStats docsStats)

count

public long count()

getCount

public long getCount()

deleted

public long deleted()

getDeleted

public long getDeleted()

readDocStats

public static DocsStats readDocStats(StreamInput in)
                              throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.