java.lang.Object
org.elasticsearch.common.document.DocumentField
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentField
(String name, List<Object> values) DocumentField
(String name, List<Object> values, List<Object> ignoredValues, List<LookupField> lookupFields) -
Method Summary
Modifier and TypeMethodDescriptionboolean
static DocumentField
fromXContent
(XContentParser parser) The field's ignored values as an immutable list.getName()
The name of the field.<V> V
getValue()
The first value of the hit.The field values.int
hashCode()
iterator()
toString()
void
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
DocumentField
- Throws:
IOException
-
DocumentField
-
DocumentField
-
DocumentField
-
-
Method Details
-
getName
The name of the field. -
getValue
public <V> V getValue()The first value of the hit. -
getValues
The field values. -
iterator
-
getIgnoredValues
The field's ignored values as an immutable list. -
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getLookupFields
-
getValidValuesWriter
-
getIgnoredValuesWriter
-
fromXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-