org.elasticsearch.search.internal
Class InternalSearchResponse

java.lang.Object
  extended by org.elasticsearch.search.internal.InternalSearchResponse
All Implemented Interfaces:
Streamable, ToXContent

public class InternalSearchResponse
extends Object
implements Streamable, ToXContent


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
static InternalSearchResponse EMPTY
           
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
InternalSearchResponse(InternalSearchHits hits, InternalFacets facets, boolean timedOut)
           
 
Method Summary
 Facets facets()
           
 SearchHits hits()
           
 void readFrom(StreamInput in)
           
static InternalSearchResponse readInternalSearchResponse(StreamInput in)
           
 boolean timedOut()
           
 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final InternalSearchResponse EMPTY
Constructor Detail

InternalSearchResponse

public InternalSearchResponse(InternalSearchHits hits,
                              InternalFacets facets,
                              boolean timedOut)
Method Detail

timedOut

public boolean timedOut()

hits

public SearchHits hits()

facets

public Facets facets()

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException

readInternalSearchResponse

public static InternalSearchResponse readInternalSearchResponse(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.