org.elasticsearch.search.fetch
Class QueryFetchSearchResult
java.lang.Object
org.elasticsearch.search.fetch.QueryFetchSearchResult
- All Implemented Interfaces:
- Streamable, FetchSearchResultProvider, QuerySearchResultProvider, SearchPhaseResult
public class QueryFetchSearchResult
- extends Object
- implements Streamable, QuerySearchResultProvider, FetchSearchResultProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryFetchSearchResult
public QueryFetchSearchResult()
QueryFetchSearchResult
public QueryFetchSearchResult(QuerySearchResult queryResult,
FetchSearchResult fetchResult)
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
includeFetch
public boolean includeFetch()
- Description copied from interface:
QuerySearchResultProvider
- If both query and fetch happened on the same call.
- Specified by:
includeFetch
in interface QuerySearchResultProvider
queryResult
public QuerySearchResult queryResult()
- Specified by:
queryResult
in interface QuerySearchResultProvider
fetchResult
public FetchSearchResult fetchResult()
- Specified by:
fetchResult
in interface FetchSearchResultProvider
readQueryFetchSearchResult
public static QueryFetchSearchResult readQueryFetchSearchResult(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
Copyright © 2009-2012. All Rights Reserved.