public static final class InternalSearchHit.InternalNestedIdentity extends java.lang.Object implements SearchHit.NestedIdentity, Writeable, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
InternalSearchHit.InternalNestedIdentity.Fields |
Writeable.Reader<V>, Writeable.Writer<V>
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 |
---|---|
boolean |
equals(java.lang.Object obj) |
static InternalSearchHit.InternalNestedIdentity |
fromXContent(XContentParser parser) |
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
|
int |
hashCode() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the 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 writeTo(StreamOutput out) throws java.io.IOException
Writeable
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static InternalSearchHit.InternalNestedIdentity fromXContent(XContentParser parser)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object