java.lang.Object
org.elasticsearch.search.DocValueFormat.DateTime
- All Implemented Interfaces:
NamedWriteable,Writeable,DocValueFormat
- Enclosing interface:
DocValueFormat
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.DocValueFormat
DocValueFormat.BinaryDocValueFormat, DocValueFormat.BooleanDocValueFormat, DocValueFormat.DateTime, DocValueFormat.Decimal, DocValueFormat.DenseVectorDocValueFormat, DocValueFormat.GeoHashDocValueFormat, DocValueFormat.GeoTileDocValueFormat, DocValueFormat.IpDocValueFormat, DocValueFormat.RawDocValueFormat, DocValueFormat.TimeSeriesIdDocValueFormat, DocValueFormat.UnsignedLongShiftedDocValueFormatNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.search.DocValueFormat
BIGINTEGER_2_64_MINUS_ONE, BINARY, BOOLEAN, DENSE_VECTOR, GEOHASH, GEOTILE, IP, MASK_2_63, RAW, TIME_SERIES_ID, UNSIGNED_LONG_SHIFTED -
Constructor Summary
ConstructorsConstructorDescriptionDateTime(DateFormatter formatter, ZoneId timeZone, DateFieldMapper.Resolution resolution) -
Method Summary
Modifier and TypeMethodDescriptionbooleanformat(double value) Format a double value.format(long value) Format a long value.formatSortValue(Object value) Formats a value of a sort field in a search response.Returns the name of the writeable objectinthashCode()doubleparseDouble(String value, boolean roundUp, LongSupplier now) Parse a value that was formatted withDocValueFormat.format(double)back to the original double value.longparseLong(String value, boolean roundUp, LongSupplier now) Parse a value that was formatted withDocValueFormat.format(long)back to the original long value.static DocValueFormat.DateTimereadFrom(StreamInput in) 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 org.elasticsearch.search.DocValueFormat
format, parseBytesRef
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
DateTime
-
-
Method Details
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object- Specified by:
getWriteableNamein interfaceNamedWriteable
-
readFrom
- Throws:
IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getDateMathParser
-
format
Description copied from interface:DocValueFormatFormat a long value. This is used by terms and histogram aggregations to format keys for fields that use longs as a doc value representation such as thelonganddatefields.- Specified by:
formatin interfaceDocValueFormat
-
format
Description copied from interface:DocValueFormatFormat a double value. This is used by terms and stats aggregations to format keys for fields that use numbers as a doc value representation such as thelong,doubleordatefields.- Specified by:
formatin interfaceDocValueFormat
-
formatSortValue
Description copied from interface:DocValueFormatFormats a value of a sort field in a search response. This is used bySearchSortValuesto avoid sending the internal representation of a value of a sort field in a search response. The default implementation formatsBytesRefbut leave other types as-is.- Specified by:
formatSortValuein interfaceDocValueFormat
-
parseLong
Description copied from interface:DocValueFormatParse a value that was formatted withDocValueFormat.format(long)back to the original long value.- Specified by:
parseLongin interfaceDocValueFormat
-
parseDouble
Description copied from interface:DocValueFormatParse a value that was formatted withDocValueFormat.format(double)back to the original double value.- Specified by:
parseDoublein interfaceDocValueFormat
-
toString
-
equals
-
hashCode
public int hashCode()
-