Class DocValueFormat.GeoHashDocValueFormat

java.lang.Object
org.elasticsearch.search.DocValueFormat.GeoHashDocValueFormat
All Implemented Interfaces:
NamedWriteable, Writeable, DocValueFormat
Enclosing interface:
DocValueFormat

public static class DocValueFormat.GeoHashDocValueFormat extends Object implements DocValueFormat
Singleton, stateless formatter for geo hash values
  • Field Details

  • Method Details

    • getWriteableName

      public String getWriteableName()
      Description copied from interface: NamedWriteable
      Returns the name of the writeable object
      Specified by:
      getWriteableName in interface NamedWriteable
    • writeTo

      public void writeTo(StreamOutput out)
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
    • format

      public String format(long value)
      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 the long and date fields.
      Specified by:
      format in interface DocValueFormat
    • format

      public String format(double value)
      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 the long, double or date fields.
      Specified by:
      format in interface DocValueFormat