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()
SearchHitFieldname in interface SearchHitFieldpublic String getName()
SearchHitFieldgetName in interface SearchHitFieldpublic Object value()
SearchHitFieldvalue in interface SearchHitFieldpublic Object getValue()
SearchHitFieldgetValue in interface SearchHitFieldpublic List<Object> values()
SearchHitFieldvalues in interface SearchHitFieldpublic List<Object> getValues()
SearchHitFieldgetValues in interface SearchHitFieldpublic boolean isMetadataField()
isMetadataField in interface SearchHitFieldpublic static InternalSearchHitField readSearchHitField(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2017. All rights reserved.