public class PercolateResponse extends BroadcastResponse implements java.lang.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.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static PercolateResponse.Match[] |
EMPTY |
static float |
NO_SCORE |
EMPTY_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.
|
java.util.Iterator<PercolateResponse.Match> |
iterator() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
getFailedShards, getShardFailures, getSuccessfulShards, getTotalShards
remoteAddress, remoteAddress
public static final PercolateResponse.Match[] EMPTY
public static final float NO_SCORE
public TimeValue getTook()
public long getTookInMillis()
public PercolateResponse.Match[] getMatches()
null
if th.public long getCount()
public InternalAggregations getAggregations()
null
.public java.util.Iterator<PercolateResponse.Match> iterator()
iterator
in interface java.lang.Iterable<PercolateResponse.Match>
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class BroadcastResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class BroadcastResponse
java.io.IOException