Class DocumentField
java.lang.Object
org.elasticsearch.common.document.DocumentField
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static DocumentField
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) The field's ignored values as an immutable list.org.elasticsearch.xcontent.ToXContentFragment
getName()
The name of the field.org.elasticsearch.xcontent.ToXContentFragment
<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
-
-
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
-
getValidValuesWriter
public org.elasticsearch.xcontent.ToXContentFragment getValidValuesWriter() -
getIgnoredValuesWriter
public org.elasticsearch.xcontent.ToXContentFragment getIgnoredValuesWriter() -
fromXContent
public static DocumentField fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-