org.elasticsearch.search.count
Class CountSearchResult

java.lang.Object
  extended by org.elasticsearch.search.count.CountSearchResult
All Implemented Interfaces:
Streamable, SearchPhaseResult

public class CountSearchResult
extends Object
implements Streamable, SearchPhaseResult

The initial scan search result, including the count of hits matching the provided query.


Constructor Summary
CountSearchResult()
           
CountSearchResult(long id, long totalHits)
           
 
Method Summary
 long id()
           
 void readFrom(StreamInput in)
           
 SearchShardTarget shardTarget()
           
 void shardTarget(SearchShardTarget shardTarget)
           
 long totalHits()
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountSearchResult

public CountSearchResult()

CountSearchResult

public CountSearchResult(long id,
                         long totalHits)
Method Detail

id

public long id()
Specified by:
id in interface SearchPhaseResult

totalHits

public long totalHits()

shardTarget

public SearchShardTarget shardTarget()
Specified by:
shardTarget in interface SearchPhaseResult

shardTarget

public void shardTarget(SearchShardTarget shardTarget)
Specified by:
shardTarget in interface SearchPhaseResult

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


Copyright © 2009-2012. All Rights Reserved.