Interface DocValueFormat

    • Method Detail

      • format

        java.lang.Object format​(long value)
        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.
      • format

        java.lang.Object format​(double value)
        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.
      • format

        java.lang.Object format​(org.apache.lucene.util.BytesRef value)
        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.
      • parseLong

        long parseLong​(java.lang.String value,
                       boolean roundUp,
                       java.util.function.LongSupplier now)
        Parse a value that was formatted with format(long) back to the original long value.
      • parseDouble

        double parseDouble​(java.lang.String value,
                           boolean roundUp,
                           java.util.function.LongSupplier now)
        Parse a value that was formatted with format(double) back to the original double value.
      • parseBytesRef

        org.apache.lucene.util.BytesRef parseBytesRef​(java.lang.String value)
        Parse a value that was formatted with format(BytesRef) back to the original BytesRef.