org.elasticsearch.search.internal
Class InternalSearchResponse
java.lang.Object
org.elasticsearch.search.internal.InternalSearchResponse
- All Implemented Interfaces:
- Streamable, ToXContent
public class InternalSearchResponse
- extends Object
- implements Streamable, ToXContent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final InternalSearchResponse EMPTY
InternalSearchResponse
public InternalSearchResponse(InternalSearchHits hits,
InternalFacets facets,
boolean timedOut)
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.