Class FieldStats
- java.lang.Object
-
- com.amazonaws.services.cloudsearchdomain.model.FieldStats
-
- All Implemented Interfaces:
Serializable,Cloneable
public class FieldStats extends Object implements Serializable, Cloneable
The statistics for a field calculated in the request.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldStats()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldStatsclone()booleanequals(Object obj)LonggetCount()The number of documents that contain a value in the specified field in the result set.StringgetMax()The maximum value found in the specified field in the result set.StringgetMean()The average of the values found in the specified field in the result set.StringgetMin()The minimum value found in the specified field in the result set.LonggetMissing()The number of documents that do not contain a value in the specified field in the result set.DoublegetStddev()The standard deviation of the values in the specified field in the result set.DoublegetSum()The sum of the field values across the documents in the result set.DoublegetSumOfSquares()The sum of all field values in the result set squared.inthashCode()voidsetCount(Long count)The number of documents that contain a value in the specified field in the result set.voidsetMax(String max)The maximum value found in the specified field in the result set.voidsetMean(String mean)The average of the values found in the specified field in the result set.voidsetMin(String min)The minimum value found in the specified field in the result set.voidsetMissing(Long missing)The number of documents that do not contain a value in the specified field in the result set.voidsetStddev(Double stddev)The standard deviation of the values in the specified field in the result set.voidsetSum(Double sum)The sum of the field values across the documents in the result set.voidsetSumOfSquares(Double sumOfSquares)The sum of all field values in the result set squared.StringtoString()Returns a string representation of this object; useful for testing and debugging.FieldStatswithCount(Long count)The number of documents that contain a value in the specified field in the result set.FieldStatswithMax(String max)The maximum value found in the specified field in the result set.FieldStatswithMean(String mean)The average of the values found in the specified field in the result set.FieldStatswithMin(String min)The minimum value found in the specified field in the result set.FieldStatswithMissing(Long missing)The number of documents that do not contain a value in the specified field in the result set.FieldStatswithStddev(Double stddev)The standard deviation of the values in the specified field in the result set.FieldStatswithSum(Double sum)The sum of the field values across the documents in the result set.FieldStatswithSumOfSquares(Double sumOfSquares)The sum of all field values in the result set squared.
-
-
-
Method Detail
-
setMin
public void setMin(String min)
The minimum value found in the specified field in the result set.
If the field is numeric (
int,int-array,double, ordouble-array),minis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,minis 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),minis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,minis the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
getMin
public String getMin()
The minimum value found in the specified field in the result set.
If the field is numeric (
int,int-array,double, ordouble-array),minis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,minis 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),minis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,minis the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
withMin
public FieldStats withMin(String min)
The minimum value found in the specified field in the result set.
If the field is numeric (
int,int-array,double, ordouble-array),minis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,minis 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),minis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,minis 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
public void setMax(String max)
The maximum value found in the specified field in the result set.
If the field is numeric (
int,int-array,double, ordouble-array),maxis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,maxis 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),maxis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,maxis the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
getMax
public String getMax()
The maximum value found in the specified field in the result set.
If the field is numeric (
int,int-array,double, ordouble-array),maxis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,maxis 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),maxis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,maxis the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
withMax
public FieldStats withMax(String max)
The maximum value found in the specified field in the result set.
If the field is numeric (
int,int-array,double, ordouble-array),maxis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,maxis 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),maxis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,maxis 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
public void setCount(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.
-
getCount
public Long 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
public FieldStats withCount(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.
-
setMissing
public void setMissing(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.
-
getMissing
public Long 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
public FieldStats withMissing(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.
-
setSum
public void setSum(Double sum)
The sum of the field values across the documents in the result set.
nullfor date fields.- Parameters:
sum- The sum of the field values across the documents in the result set.nullfor date fields.
-
getSum
public Double getSum()
The sum of the field values across the documents in the result set.
nullfor date fields.- Returns:
- The sum of the field values across the documents in the result
set.
nullfor date fields.
-
withSum
public FieldStats withSum(Double sum)
The sum of the field values across the documents in the result set.
nullfor date fields.- Parameters:
sum- The sum of the field values across the documents in the result set.nullfor date fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setSumOfSquares
public void setSumOfSquares(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.
-
getSumOfSquares
public Double 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
public FieldStats withSumOfSquares(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.
-
setMean
public void setMean(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, ordouble-array),meanis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,meanis 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),meanis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,meanis the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
getMean
public 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, ordouble-array),meanis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,meanis 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),meanis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,meanis the string representation of a date with the format specified in IETF RFC3339: yyyy-mm-ddTHH:mm:ss.SSSZ.
-
withMean
public FieldStats withMean(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, ordouble-array),meanis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,meanis 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),meanis the string representation of a double-precision 64-bit floating point value. If the field isdateordate-array,meanis 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
public void setStddev(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.
-
getStddev
public Double 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
public FieldStats withStddev(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.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public FieldStats clone()
-
-