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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static DocValueFieldsContext.FieldAndFormat
fromXContent(XContentParser parser)
Parse aDocValueFieldsContext.FieldAndFormat
from someXContent
.int
hashCode()
void
writeTo(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.FieldAndFormat
from someXContent
.- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-