Writeable
, ToXContent
, ToXContentFragment
public static final class SearchHit.NestedIdentity extends java.lang.Object implements Writeable, ToXContentFragment
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Constructor | Description |
---|---|
NestedIdentity(java.lang.String field,
int offset,
SearchHit.NestedIdentity child) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
static SearchHit.NestedIdentity |
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.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFragment
public NestedIdentity(java.lang.String field, int offset, SearchHit.NestedIdentity child)
public Text getField()
public int getOffset()
public SearchHit.NestedIdentity getChild()
null
is returned.
In the case of mappings with multiple levels of nested object fieldspublic 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 SearchHit.NestedIdentity 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