public static final class InternalSearchHit.InternalNestedIdentity extends Object implements SearchHit.NestedIdentity, Streamable, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
InternalSearchHit.InternalNestedIdentity.Fields |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
InternalSearchHit.InternalNestedIdentity(String field,
int offset,
InternalSearchHit.InternalNestedIdentity child) |
Modifier and Type | Method and Description |
---|---|
SearchHit.NestedIdentity |
getChild()
Returns the next child nested level if there is any, otherwise
null is returned. |
Text |
getField()
Returns the nested field in the source this hit originates from
|
int |
getOffset()
Returns the offset in the nested array of objects in the source this hit
|
void |
readFrom(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public InternalSearchHit.InternalNestedIdentity(String field, int offset, InternalSearchHit.InternalNestedIdentity child)
public Text getField()
SearchHit.NestedIdentity
getField
in interface SearchHit.NestedIdentity
public int getOffset()
SearchHit.NestedIdentity
getOffset
in interface SearchHit.NestedIdentity
public SearchHit.NestedIdentity getChild()
SearchHit.NestedIdentity
null
is returned.
In the case of mappings with multiple levels of nested object fieldsgetChild
in interface SearchHit.NestedIdentity
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.