Class FetchDocValuesContext.FieldAndFormat
java.lang.Object
org.elasticsearch.search.fetch.subphase.FetchDocValuesContext.FieldAndFormat
- All Implemented Interfaces:
Writeable
- Enclosing class:
- FetchDocValuesContext
public static final class FetchDocValuesContext.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>
-
Field Summary
-
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 boolean
equals(java.lang.Object obj)
static FetchDocValuesContext.FieldAndFormat
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
Parse aFetchDocValuesContext.FieldAndFormat
from someXContent
.int
hashCode()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Field Details
-
Constructor Details
-
FieldAndFormat
public FieldAndFormat(java.lang.String field, @Nullable java.lang.String format)Sole constructor. -
FieldAndFormat
Serialization constructor.- Throws:
java.io.IOException
-
-
Method Details
-
fromXContent
public static FetchDocValuesContext.FieldAndFormat fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOExceptionParse aFetchDocValuesContext.FieldAndFormat
from someXContent
.- Throws:
java.io.IOException
-
writeTo
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
-