org.elasticsearch.search.fetch
Class QueryFetchSearchResult

java.lang.Object
  extended by org.elasticsearch.search.fetch.QueryFetchSearchResult
All Implemented Interfaces:
Streamable, FetchSearchResultProvider, QuerySearchResultProvider, SearchPhaseResult

public class QueryFetchSearchResult
extends Object
implements Streamable, QuerySearchResultProvider, FetchSearchResultProvider


Constructor Summary
QueryFetchSearchResult()
           
QueryFetchSearchResult(QuerySearchResult queryResult, FetchSearchResult fetchResult)
           
 
Method Summary
 FetchSearchResult fetchResult()
           
 long id()
           
 boolean includeFetch()
          If both query and fetch happened on the same call.
 QuerySearchResult queryResult()
           
 void readFrom(StreamInput in)
           
static QueryFetchSearchResult readQueryFetchSearchResult(StreamInput in)
           
 SearchShardTarget shardTarget()
           
 void shardTarget(SearchShardTarget shardTarget)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryFetchSearchResult

public QueryFetchSearchResult()

QueryFetchSearchResult

public QueryFetchSearchResult(QuerySearchResult queryResult,
                              FetchSearchResult fetchResult)
Method Detail

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.