Class DocValueFormat.BinaryDocValueFormat

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

public static class DocValueFormat.BinaryDocValueFormat extends implements DocValueFormat
Singleton, stateless formatter, for representing bytes as base64 strings
  • 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
    • format

      public  format(org.apache.lucene.util.BytesRef value)
      Description copied from interface: DocValueFormat
      Format a binary value. This is used by terms aggregations to format keys for fields that use binary doc value representations such as the keyword and ip fields.
      Specified by:
      format in interface DocValueFormat
    • parseBytesRef

      public org.apache.lucene.util.BytesRef parseBytesRef( value)
      Description copied from interface: DocValueFormat
      Parse a value that was formatted with DocValueFormat.format(BytesRef) back to the original BytesRef.
      Specified by:
      parseBytesRef in interface DocValueFormat