public class InternalSearchHits extends Object implements SearchHits
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
InternalSearchHits.StreamContext |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| 修飾子とタイプ | フィールドと説明 |
|---|---|
static InternalSearchHit[] |
EMPTY |
long |
totalHits |
EMPTY_PARAMS| コンストラクタと説明 |
|---|
InternalSearchHits(InternalSearchHit[] hits,
long totalHits,
float maxScore) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static InternalSearchHits |
empty() |
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static final InternalSearchHit[] EMPTY
public long totalHits
public InternalSearchHits(InternalSearchHit[] hits, long totalHits, float maxScore)
public static InternalSearchHits.StreamContext streamContext()
public static InternalSearchHits empty()
public void shardTarget(SearchShardTarget shardTarget)
public long totalHits()
SearchHitstotalHits インタフェース内 SearchHitspublic long getTotalHits()
SearchHitsgetTotalHits インタフェース内 SearchHitspublic float maxScore()
SearchHitsmaxScore インタフェース内 SearchHitspublic float getMaxScore()
SearchHitsgetMaxScore インタフェース内 SearchHitspublic SearchHit[] hits()
SearchHitshits インタフェース内 SearchHitspublic SearchHit getAt(int position)
SearchHitsgetAt インタフェース内 SearchHitspublic SearchHit[] getHits()
SearchHitsgetHits インタフェース内 SearchHitspublic InternalSearchHit[] internalHits()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionpublic static InternalSearchHits readSearchHits(StreamInput in, InternalSearchHits.StreamContext context) throws IOException
IOExceptionpublic static InternalSearchHits readSearchHits(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionpublic void readFrom(StreamInput in, InternalSearchHits.StreamContext context) throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out, InternalSearchHits.StreamContext context) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.