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
ConstructorsConstructorDescriptionDocumentField(String name, List<Object> values) DocumentField(String name, List<Object> values, List<Object> ignoredValues, List<LookupField> lookupFields) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DocumentFieldfromXContent(org.elasticsearch.xcontent.XContentParser parser) The field's ignored values as an immutable list.org.elasticsearch.xcontent.ToXContentFragmentgetName()The name of the field.org.elasticsearch.xcontent.ToXContentFragment<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
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
-