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 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(String field, String format)Sole constructor.FieldAndFormat(StreamInput in)Serialization constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(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(StreamInput in) throws IOException
Serialization constructor.- Throws:
IOException
-
-
Method Detail
-
fromXContent
public static DocValueFieldsContext.FieldAndFormat fromXContent(XContentParser parser) throws IOException
Parse aDocValueFieldsContext.FieldAndFormatfrom someXContent.- Throws:
IOException
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
-