org.elasticsearch.action.count
Class CountResponse

java.lang.Object
  extended by org.elasticsearch.action.support.broadcast.BroadcastOperationResponse
      extended by org.elasticsearch.action.count.CountResponse
All Implemented Interfaces:
ActionResponse, Streamable

public class CountResponse
extends BroadcastOperationResponse

The response of the count action.


Method Summary
 long count()
          The count of documents matching the query provided.
 long getCount()
          The count of documents matching the query provided.
 void readFrom(StreamInput in)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class org.elasticsearch.action.support.broadcast.BroadcastOperationResponse
failedShards, getFailedShards, getShardFailures, getSuccessfulShards, getTotalShards, shardFailures, successfulShards, totalShards
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

count

public long count()
The count of documents matching the query provided.


getCount

public long getCount()
The count of documents matching the query provided.


readFrom

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

writeTo

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


Copyright © 2009-2012. All Rights Reserved.