Class FieldStats
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FieldStats.Builder,FieldStats>
The statistics for a field calculated in the request.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldStats.Builderbuilder()final Longcount()The number of documents that contain a value in the specified field in the result set.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringmax()The maximum value found in the specified field in the result set.final Stringmean()The average of the values found in the specified field in the result set.final Stringmin()The minimum value found in the specified field in the result set.final Longmissing()The number of documents that do not contain a value in the specified field in the result set.static Class<? extends FieldStats.Builder> final Doublestddev()The standard deviation of the values in the specified field in the result set.final Doublesum()The sum of the field values across the documents in the result set.final DoubleThe sum of all field values in the result set squared.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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:
- 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.
-
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:
- 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.
-
count
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.
-
missing
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.
-
sum
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.
-
sumOfSquares
The sum of all field values in the result set squared.
- Returns:
- The sum of all field values in the result set squared.
-
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:
- 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.
-
stddev
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.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<FieldStats.Builder,FieldStats> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-