org.elasticsearch.search.fetch
Class FetchSearchResult
java.lang.Object
org.elasticsearch.search.fetch.FetchSearchResult
- All Implemented Interfaces:
- Streamable, FetchSearchResultProvider, SearchPhaseResult
public class FetchSearchResult
- extends java.lang.Object
- implements Streamable, FetchSearchResultProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FetchSearchResult
public FetchSearchResult()
FetchSearchResult
public FetchSearchResult(long id,
SearchShardTarget shardTarget)
fetchResult
public FetchSearchResult fetchResult()
- Specified by:
fetchResult
in interface FetchSearchResultProvider
id
public long id()
- Specified by:
id
in interface SearchPhaseResult
shardTarget
public SearchShardTarget shardTarget()
- Specified by:
shardTarget
in interface SearchPhaseResult
shardTarget
public void shardTarget(SearchShardTarget shardTarget)
- Specified by:
shardTarget
in interface SearchPhaseResult
hits
public void hits(InternalSearchHits hits)
hits
public InternalSearchHits hits()
initCounter
public FetchSearchResult initCounter()
counterGetAndIncrement
public int counterGetAndIncrement()
readFetchSearchResult
public static FetchSearchResult readFetchSearchResult(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
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