public class FieldStats
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The statistics for a field calculated in the request.
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
count
The number of documents that contain a value in the specified field in
the result set.
|
private java.lang.String |
max
The maximum value found in the specified field in the result set.
|
private java.lang.String |
mean
The average of the values found in the specified field in the result set.
|
private java.lang.String |
min
The minimum value found in the specified field in the result set.
|
private java.lang.Long |
missing
The number of documents that do not contain a value in the specified
field in the result set.
|
private java.lang.Double |
stddev
The standard deviation of the values in the specified field in the result
set.
|
private java.lang.Double |
sum
The sum of the field values across the documents in the result set.
|
private java.lang.Double |
sumOfSquares
The sum of all field values in the result set squared.
|
Constructor and Description |
---|
FieldStats() |
Modifier and Type | Method and Description |
---|---|
FieldStats |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getCount()
The number of documents that contain a value in the specified field in
the result set.
|
java.lang.String |
getMax()
The maximum value found in the specified field in the result set.
|
java.lang.String |
getMean()
The average of the values found in the specified field in the result set.
|
java.lang.String |
getMin()
The minimum value found in the specified field in the result set.
|
java.lang.Long |
getMissing()
The number of documents that do not contain a value in the specified
field in the result set.
|
java.lang.Double |
getStddev()
The standard deviation of the values in the specified field in the result
set.
|
java.lang.Double |
getSum()
The sum of the field values across the documents in the result set.
|
java.lang.Double |
getSumOfSquares()
The sum of all field values in the result set squared.
|
int |
hashCode() |
void |
setCount(java.lang.Long count)
The number of documents that contain a value in the specified field in
the result set.
|
void |
setMax(java.lang.String max)
The maximum value found in the specified field in the result set.
|
void |
setMean(java.lang.String mean)
The average of the values found in the specified field in the result set.
|
void |
setMin(java.lang.String min)
The minimum value found in the specified field in the result set.
|
void |
setMissing(java.lang.Long missing)
The number of documents that do not contain a value in the specified
field in the result set.
|
void |
setStddev(java.lang.Double stddev)
The standard deviation of the values in the specified field in the result
set.
|
void |
setSum(java.lang.Double sum)
The sum of the field values across the documents in the result set.
|
void |
setSumOfSquares(java.lang.Double sumOfSquares)
The sum of all field values in the result set squared.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
FieldStats |
withCount(java.lang.Long count)
The number of documents that contain a value in the specified field in
the result set.
|
FieldStats |
withMax(java.lang.String max)
The maximum value found in the specified field in the result set.
|
FieldStats |
withMean(java.lang.String mean)
The average of the values found in the specified field in the result set.
|
FieldStats |
withMin(java.lang.String min)
The minimum value found in the specified field in the result set.
|
FieldStats |
withMissing(java.lang.Long missing)
The number of documents that do not contain a value in the specified
field in the result set.
|
FieldStats |
withStddev(java.lang.Double stddev)
The standard deviation of the values in the specified field in the result
set.
|
FieldStats |
withSum(java.lang.Double sum)
The sum of the field values across the documents in the result set.
|
FieldStats |
withSumOfSquares(java.lang.Double sumOfSquares)
The sum of all field values in the result set squared.
|
private java.lang.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.
private java.lang.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.
private java.lang.Long count
The number of documents that contain a value in the specified field in the result set.
private java.lang.Long missing
The number of documents that do not contain a value in the specified field in the result set.
private java.lang.Double sum
The sum of the field values across the documents in the result set.
null
for date fields.
private java.lang.Double sumOfSquares
The sum of all field values in the result set squared.
private java.lang.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.
private java.lang.Double stddev
The standard deviation of the values in the specified field in the result set.
public void setMin(java.lang.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.
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.
public java.lang.String getMin()
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.
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.
public FieldStats withMin(java.lang.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.
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.
public void setMax(java.lang.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.
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.
public java.lang.String getMax()
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.
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.
public FieldStats withMax(java.lang.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.
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.
public void setCount(java.lang.Long count)
The number of documents that contain a value in the specified field in the result set.
count
- The number of documents that contain a value in the specified
field in the result set.public java.lang.Long getCount()
The number of documents that contain a value in the specified field in the result set.
public FieldStats withCount(java.lang.Long count)
The number of documents that contain a value in the specified field in the result set.
count
- The number of documents that contain a value in the specified
field in the result set.public void setMissing(java.lang.Long missing)
The number of documents that do not contain a value in the specified field in the result set.
missing
- The number of documents that do not contain a value in the
specified field in the result set.public java.lang.Long getMissing()
The number of documents that do not contain a value in the specified field in the result set.
public FieldStats withMissing(java.lang.Long missing)
The number of documents that do not contain a value in the specified field in the result set.
missing
- The number of documents that do not contain a value in the
specified field in the result set.public void setSum(java.lang.Double sum)
The sum of the field values across the documents in the result set.
null
for date fields.
sum
- The sum of the field values across the documents in the result
set. null
for date fields.public java.lang.Double getSum()
The sum of the field values across the documents in the result set.
null
for date fields.
null
for date fields.public FieldStats withSum(java.lang.Double sum)
The sum of the field values across the documents in the result set.
null
for date fields.
sum
- The sum of the field values across the documents in the result
set. null
for date fields.public void setSumOfSquares(java.lang.Double sumOfSquares)
The sum of all field values in the result set squared.
sumOfSquares
- The sum of all field values in the result set squared.public java.lang.Double getSumOfSquares()
The sum of all field values in the result set squared.
public FieldStats withSumOfSquares(java.lang.Double sumOfSquares)
The sum of all field values in the result set squared.
sumOfSquares
- The sum of all field values in the result set squared.public void setMean(java.lang.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.
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.
public java.lang.String getMean()
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.
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.
public FieldStats withMean(java.lang.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.
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.
public void setStddev(java.lang.Double stddev)
The standard deviation of the values in the specified field in the result set.
stddev
- The standard deviation of the values in the specified field in the
result set.public java.lang.Double getStddev()
The standard deviation of the values in the specified field in the result set.
public FieldStats withStddev(java.lang.Double stddev)
The standard deviation of the values in the specified field in the result set.
stddev
- The standard deviation of the values in the specified field in the
result set.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public FieldStats clone()
clone
in class java.lang.Object