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.ParamsEMPTY_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.NestedIdentitygetField in interface SearchHit.NestedIdentitypublic int getOffset()
SearchHit.NestedIdentitygetOffset in interface SearchHit.NestedIdentitypublic SearchHit.NestedIdentity getChild()
SearchHit.NestedIdentitynull is returned.
In the case of mappings with multiple levels of nested object fieldsgetChild in interface SearchHit.NestedIdentitypublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.