public static final class InternalSearchHit.InternalNestedIdentity extends java.lang.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 |
---|
InternalNestedIdentity(java.lang.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)
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.
|
public InternalNestedIdentity(java.lang.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 java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException