Class FieldStats
- All Implemented Interfaces:
Serializable
,Cloneable
The statistics for a field calculated in the request.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getCount()
The number of documents that contain a value in the specified field in the result set.getMax()
The maximum value found in the specified field in the result set.getMean()
The average of the values found in the specified field in the result set.getMin()
The minimum value found in the specified field in the result set.The number of documents that do not contain a value in the specified field in the result set.The standard deviation of the values in the specified field in the result set.getSum()
The sum of the field values across the documents in the result set.The sum of all field values in the result set squared.int
hashCode()
void
The number of documents that contain a value in the specified field in the result set.void
The maximum value found in the specified field in the result set.void
The average of the values found in the specified field in the result set.void
The minimum value found in the specified field in the result set.void
setMissing
(Long missing) The number of documents that do not contain a value in the specified field in the result set.void
The standard deviation of the values in the specified field in the result set.void
The sum of the field values across the documents in the result set.void
setSumOfSquares
(Double sumOfSquares) The sum of all field values in the result set squared.toString()
Returns a string representation of this object; useful for testing and debugging.The number of documents that contain a value in the specified field in the result set.The maximum value found in the specified field in the result set.The average of the values found in the specified field in the result set.The minimum value found in the specified field in the result set.withMissing
(Long missing) The number of documents that do not contain a value in the specified field in the result set.withStddev
(Double stddev) The standard deviation of the values in the specified field in the result set.The sum of the field values across the documents in the result set.withSumOfSquares
(Double sumOfSquares) The sum of all field values in the result set squared.
-
Constructor Details
-
FieldStats
public FieldStats()
-
-
Method Details
-
setMin
The minimum value found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),min
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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
, ordouble-array
),min
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,min
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
getMin
The minimum value found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),min
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,min
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.- Returns:
- The minimum value found in the specified field in the result
set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),min
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,min
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
withMin
The minimum value found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),min
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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
, ordouble-array
),min
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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.
-
setMax
The maximum value found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),max
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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
, ordouble-array
),max
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,max
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
getMax
The maximum value found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),max
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,max
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.- Returns:
- The maximum value found in the specified field in the result
set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),max
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,max
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
withMax
The maximum value found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),max
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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
, ordouble-array
),max
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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.
-
setCount
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.
-
getCount
The number of documents that contain a value in the specified field in the result set.
- Returns:
- The number of documents that contain a value in the specified field in the result set.
-
withCount
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.
-
setMissing
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.
-
getMissing
The number of documents that do not contain a value in the specified field in the result set.
- Returns:
- The number of documents that do not contain a value in the specified field in the result set.
-
withMissing
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.
-
setSum
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.
-
getSum
The sum of the field values across the documents in the result set.
null
for date fields.- Returns:
- The sum of the field values across the documents in the result
set.
null
for date fields.
-
withSum
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.
-
setSumOfSquares
The sum of all field values in the result set squared.
- Parameters:
sumOfSquares
- The sum of all field values in the result set squared.
-
getSumOfSquares
The sum of all field values in the result set squared.
- Returns:
- The sum of all field values in the result set squared.
-
withSumOfSquares
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.
-
setMean
The average of the values found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),mean
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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
, ordouble-array
),mean
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,mean
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
getMean
The average of the values found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),mean
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,mean
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.- Returns:
- The average of the values found in the specified field in the
result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),mean
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-array
,mean
is the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
withMean
The average of the values found in the specified field in the result set.
If the field is numeric (
int
,int-array
,double
, ordouble-array
),mean
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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
, ordouble-array
),mean
is the string representation of a double-precision 64-bit floating point value. If the field isdate
ordate-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.
-
setStddev
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.
-
getStddev
The standard deviation of the values in the specified field in the result set.
- Returns:
- The standard deviation of the values in the specified field in the result set.
-
withStddev
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.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-