Class DocValueFormat.UnsignedLongShiftedDocValueFormat

org.elasticsearch.search.DocValueFormat.UnsignedLongShiftedDocValueFormat
All Implemented Interfaces:
NamedWriteable, Writeable, DocValueFormat
Enclosing interface:
DocValueFormat

public static class DocValueFormat.UnsignedLongShiftedDocValueFormat extends implements DocValueFormat
DocValues format for unsigned 64 bit long values, that are stored as shifted signed 64 bit long values.
  • Field Details

  • Method Details

    • getWriteableName

      public  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
    • toString

      public  toString()
      Overrides:
       in class 
    • parseLong

      public long parseLong( value, boolean roundUp,  now)
      Formats the unsigned long to the shifted long format
      Specified by:
      parseLong in interface DocValueFormat
    • format

      public  format(long value)
      Formats a raw docValue that is stored in the shifted long format to the unsigned long representation.
      Specified by:
      format in interface DocValueFormat
    • formatSortValue

      public  formatSortValue( value)
      Description copied from interface: DocValueFormat
      Formats a value of a sort field in a search response. This is used by SearchSortValues to avoid sending the internal representation of a value of a sort field in a search response. The default implementation formats BytesRef but leave other types as-is.
      Specified by:
      formatSortValue in interface DocValueFormat
    • format

      public  format(double value)
      Double docValues of the unsigned_long field type are already in the formatted representation, so we don't need to do anything here
      Specified by:
      format in interface DocValueFormat
    • parseDouble

      public double parseDouble( value, boolean roundUp,  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