|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.search.internal.InternalSearchHits
public class InternalSearchHits
Nested Class Summary | |
---|---|
static class |
InternalSearchHits.StreamContext
|
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary | |
---|---|
static InternalSearchHit[] |
EMPTY
|
long |
totalHits
|
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Constructor Summary | |
---|---|
InternalSearchHits(InternalSearchHit[] hits,
long totalHits,
float maxScore)
|
Method Summary | |
---|---|
SearchHit |
getAt(int position)
Return the hit as the provided position. |
SearchHit[] |
getHits()
The hits of the search request (based on the search type, and from / size provided). |
float |
getMaxScore()
The maximum score of this query. |
long |
getTotalHits()
The total number of hits that matches the search request. |
SearchHit[] |
hits()
The hits of the search request (based on the search type, and from / size provided). |
InternalSearchHit[] |
internalHits()
|
Iterator<SearchHit> |
iterator()
|
float |
maxScore()
The maximum score of this query. |
void |
readFrom(StreamInput in)
|
void |
readFrom(StreamInput in,
InternalSearchHits.StreamContext context)
|
static InternalSearchHits |
readSearchHits(StreamInput in)
|
static InternalSearchHits |
readSearchHits(StreamInput in,
InternalSearchHits.StreamContext context)
|
void |
shardTarget(SearchShardTarget shardTarget)
|
static InternalSearchHits.StreamContext |
streamContext()
|
long |
totalHits()
The total number of hits that matches the search request. |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params)
|
void |
writeTo(StreamOutput out)
|
void |
writeTo(StreamOutput out,
InternalSearchHits.StreamContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final InternalSearchHit[] EMPTY
public long totalHits
Constructor Detail |
---|
public InternalSearchHits(InternalSearchHit[] hits, long totalHits, float maxScore)
Method Detail |
---|
public static InternalSearchHits.StreamContext streamContext()
public void shardTarget(SearchShardTarget shardTarget)
public long totalHits()
SearchHits
totalHits
in interface SearchHits
public long getTotalHits()
SearchHits
getTotalHits
in interface SearchHits
public float maxScore()
SearchHits
maxScore
in interface SearchHits
public float getMaxScore()
SearchHits
getMaxScore
in interface SearchHits
public SearchHit[] hits()
SearchHits
hits
in interface SearchHits
public SearchHit getAt(int position)
SearchHits
getAt
in interface SearchHits
public SearchHit[] getHits()
SearchHits
getHits
in interface SearchHits
public Iterator<SearchHit> iterator()
iterator
in interface Iterable<SearchHit>
public InternalSearchHit[] internalHits()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public static InternalSearchHits readSearchHits(StreamInput in, InternalSearchHits.StreamContext context) throws IOException
IOException
public static InternalSearchHits readSearchHits(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void readFrom(StreamInput in, InternalSearchHits.StreamContext context) throws IOException
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public void writeTo(StreamOutput out, InternalSearchHits.StreamContext context) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |