Class DocValueFieldsContext.FieldAndFormat
- java.lang.Object
-
- org.elasticsearch.search.fetch.subphase.DocValueFieldsContext.FieldAndFormat
-
- All Implemented Interfaces:
Writeable
- Enclosing class:
- DocValueFieldsContext
public static final class DocValueFieldsContext.FieldAndFormat extends java.lang.Object implements Writeable
Wrapper around a field name and the format that should be used to display values of this field.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description FieldAndFormat(java.lang.String field, java.lang.String format)Sole constructor.FieldAndFormat(StreamInput in)Serialization constructor.
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)static DocValueFieldsContext.FieldAndFormatfromXContent(XContentParser parser)Parse aDocValueFieldsContext.FieldAndFormatfrom someXContent.inthashCode()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
-
-
Constructor Detail
-
FieldAndFormat
public FieldAndFormat(java.lang.String field, @Nullable java.lang.String format)Sole constructor.
-
FieldAndFormat
public FieldAndFormat(StreamInput in) throws java.io.IOException
Serialization constructor.- Throws:
java.io.IOException
-
-
Method Detail
-
fromXContent
public static DocValueFieldsContext.FieldAndFormat fromXContent(XContentParser parser) throws java.io.IOException
Parse aDocValueFieldsContext.FieldAndFormatfrom someXContent.- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:WriteableWrite this into the StreamOutput.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-