Interface FieldStats.Builder

    • Method Detail

      • min

        FieldStats.Builder min​(String min)

        The minimum value found in the specified field in the result set.

        If the field is numeric (int, int-array, double, or double-array), min is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, min is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

        Parameters:
        min - The minimum value found in the specified field in the result set.

        If the field is numeric (int, int-array, double, or double-array), min is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, min is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • max

        FieldStats.Builder max​(String max)

        The maximum value found in the specified field in the result set.

        If the field is numeric (int, int-array, double, or double-array), max is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, max is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

        Parameters:
        max - The maximum value found in the specified field in the result set.

        If the field is numeric (int, int-array, double, or double-array), max is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, max is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • count

        FieldStats.Builder count​(Long count)

        The number of documents that contain a value in the specified field in the result set.

        Parameters:
        count - The number of documents that contain a value in the specified field in the result set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • missing

        FieldStats.Builder missing​(Long missing)

        The number of documents that do not contain a value in the specified field in the result set.

        Parameters:
        missing - The number of documents that do not contain a value in the specified field in the result set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sum

        FieldStats.Builder sum​(Double sum)

        The sum of the field values across the documents in the result set. null for date fields.

        Parameters:
        sum - The sum of the field values across the documents in the result set. null for date fields.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sumOfSquares

        FieldStats.Builder sumOfSquares​(Double sumOfSquares)

        The sum of all field values in the result set squared.

        Parameters:
        sumOfSquares - The sum of all field values in the result set squared.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • mean

        FieldStats.Builder mean​(String mean)

        The average of the values found in the specified field in the result set.

        If the field is numeric (int, int-array, double, or double-array), mean is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, mean is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

        Parameters:
        mean - The average of the values found in the specified field in the result set.

        If the field is numeric (int, int-array, double, or double-array), mean is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, mean is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • stddev

        FieldStats.Builder stddev​(Double stddev)

        The standard deviation of the values in the specified field in the result set.

        Parameters:
        stddev - The standard deviation of the values in the specified field in the result set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.