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 TypeMethodDescriptionbooleanstatic DocumentFieldfromXContent(XContentParser parser) The field's ignored values as an immutable list.getName()The name of the field.<V> VgetValue()The first value of the hit.The field values.inthashCode()iterator()toString()voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getLookupFields
-
getValidValuesWriter
-
getIgnoredValuesWriter
-
fromXContent
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-