public class PercolateResponse extends BroadcastResponse implements Iterable<PercolateResponse.Match>, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
PercolateResponse.Match
Represents a query that has matched with the document that was percolated.
|
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static PercolateResponse.Match[] |
EMPTY |
headersEMPTY_PARAMS| Modifier and Type | Method and Description |
|---|---|
InternalAggregations |
getAggregations() |
long |
getCount() |
PercolateResponse.Match[] |
getMatches() |
TimeValue |
getTook()
How long the percolate took.
|
long |
getTookInMillis()
How long the percolate took in milliseconds.
|
Iterator<PercolateResponse.Match> |
iterator() |
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
getFailedShards, getShardFailures, getSuccessfulShards, getTotalShardsremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic static final PercolateResponse.Match[] EMPTY
public TimeValue getTook()
public long getTookInMillis()
public PercolateResponse.Match[] getMatches()
null if th.public long getCount()
public InternalAggregations getAggregations()
null.public Iterator<PercolateResponse.Match> iterator()
iterator in interface Iterable<PercolateResponse.Match>public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class BroadcastResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class BroadcastResponseIOExceptionCopyright © 2009–2017. All rights reserved.