org.elasticsearch.search.fetch
Class FetchSearchResult

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

public class FetchSearchResult
extends Object
implements Streamable, FetchSearchResultProvider


Constructor Summary
FetchSearchResult()
           
FetchSearchResult(long id, SearchShardTarget shardTarget)
           
 
Method Summary
 int counterGetAndIncrement()
           
 FetchSearchResult fetchResult()
           
 InternalSearchHits hits()
           
 void hits(InternalSearchHits hits)
           
 long id()
           
 FetchSearchResult initCounter()
           
static FetchSearchResult readFetchSearchResult(StreamInput in)
           
 void readFrom(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

FetchSearchResult

public FetchSearchResult()

FetchSearchResult

public FetchSearchResult(long id,
                         SearchShardTarget shardTarget)
Method Detail

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 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.