org.elasticsearch.search.count
Class CountSearchResult
java.lang.Object
org.elasticsearch.search.count.CountSearchResult
- All Implemented Interfaces:
- Streamable, SearchPhaseResult
public class CountSearchResult
- extends java.lang.Object
- implements Streamable, SearchPhaseResult
The initial scan search result, including the count of hits matching the provided query.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CountSearchResult
public CountSearchResult()
CountSearchResult
public CountSearchResult(long id,
long totalHits)
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 java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException