public class InternalSearchHitField extends Object implements SearchHitField
Constructor and Description |
---|
InternalSearchHitField(String name,
List<Object> values) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
The name of the field.
|
Object |
getValue()
The first value of the hit.
|
List<Object> |
getValues()
The field values.
|
boolean |
isMetadataField() |
Iterator<Object> |
iterator() |
String |
name()
The name of the field.
|
void |
readFrom(StreamInput in) |
static InternalSearchHitField |
readSearchHitField(StreamInput in) |
Object |
value()
The first value of the hit.
|
List<Object> |
values()
The field values.
|
void |
writeTo(StreamOutput out) |
public String name()
SearchHitField
name
in interface SearchHitField
public String getName()
SearchHitField
getName
in interface SearchHitField
public Object value()
SearchHitField
value
in interface SearchHitField
public Object getValue()
SearchHitField
getValue
in interface SearchHitField
public List<Object> values()
SearchHitField
values
in interface SearchHitField
public List<Object> getValues()
SearchHitField
getValues
in interface SearchHitField
public boolean isMetadataField()
isMetadataField
in interface SearchHitField
public static InternalSearchHitField readSearchHitField(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2017. All rights reserved.