Class DocValueFormat.Decimal

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

public static final class DocValueFormat.Decimal
extends java.lang.Object
implements DocValueFormat
  • Field Details

  • Constructor Details

    • Decimal

      public Decimal​(java.lang.String pattern)
    • Decimal

      public Decimal​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • getWriteableName

      public java.lang.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) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • format

      public java.lang.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 java.lang.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
    • parseLong

      public long parseLong​(java.lang.String value, boolean roundUp, java.util.function.LongSupplier now)
      Description copied from interface: DocValueFormat
      Parse a value that was formatted with DocValueFormat.format(long) back to the original long value.
      Specified by:
      parseLong in interface DocValueFormat
    • parseDouble

      public double parseDouble​(java.lang.String value, boolean roundUp, java.util.function.LongSupplier now)
      Description copied from interface: DocValueFormat
      Parse a value that was formatted with DocValueFormat.format(double) back to the original double value.
      Specified by:
      parseDouble in interface DocValueFormat
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object