Package org.elasticsearch.search
Class DocValueFormat.GeoHashDocValueFormat
java.lang.Object
org.elasticsearch.search.DocValueFormat.GeoHashDocValueFormat
- All Implemented Interfaces:
NamedWriteable
,Writeable
,DocValueFormat
- Enclosing interface:
- DocValueFormat
Singleton, stateless formatter for geo hash values
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.search.DocValueFormat
DocValueFormat.BinaryDocValueFormat, DocValueFormat.BooleanDocValueFormat, DocValueFormat.DateTime, DocValueFormat.Decimal, DocValueFormat.GeoHashDocValueFormat, DocValueFormat.GeoTileDocValueFormat, DocValueFormat.IpDocValueFormat, DocValueFormat.RawDocValueFormat, DocValueFormat.UnsignedLongShiftedDocValueFormat
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Fields inherited from interface org.elasticsearch.search.DocValueFormat
BIGINTEGER_2_64_MINUS_ONE, BINARY, BOOLEAN, GEOHASH, GEOTILE, IP, MASK_2_63, RAW, UNSIGNED_LONG_SHIFTED
-
Method Summary
Modifier and TypeMethodDescriptionformat
(double value) Format a double value.format
(long value) Format a long value.Returns the name of the writeable objectvoid
writeTo
(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.search.DocValueFormat
format, formatSortValue, parseBytesRef, parseDouble, parseLong
-
Field Details
-
INSTANCE
-
-
Method Details
-
getWriteableName
Description copied from interface:NamedWriteable
Returns the name of the writeable object- Specified by:
getWriteableName
in interfaceNamedWriteable
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
format
Description copied from interface:DocValueFormat
Format 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 thelong
anddate
fields.- Specified by:
format
in interfaceDocValueFormat
-
format
Description copied from interface:DocValueFormat
Format 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
,double
ordate
fields.- Specified by:
format
in interfaceDocValueFormat
-