Class FieldStats
- java.lang.Object
-
- software.amazon.awssdk.services.cloudsearchdomain.model.FieldStats
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FieldStats.Builder,FieldStats>
@Generated("software.amazon.awssdk:codegen") public final class FieldStats extends Object implements SdkPojo, Serializable, ToCopyableBuilder<FieldStats.Builder,FieldStats>
The statistics for a field calculated in the request.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFieldStats.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldStats.Builderbuilder()Longcount()The number of documents that contain a value in the specified field in the result set.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmax()The maximum value found in the specified field in the result set.Stringmean()The average of the values found in the specified field in the result set.Stringmin()The minimum value found in the specified field in the result set.Longmissing()The number of documents that do not contain a value in the specified field in the result set.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends FieldStats.Builder>serializableBuilderClass()Doublestddev()The standard deviation of the values in the specified field in the result set.Doublesum()The sum of the field values across the documents in the result set.DoublesumOfSquares()The sum of all field values in the result set squared.FieldStats.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
min
public final 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.- 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
public final 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.- 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
public final Long 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
public final Long 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
public final Double 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
public final Double 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
public final 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.- 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
public final Double 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
public FieldStats.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<FieldStats.Builder,FieldStats>
-
builder
public static FieldStats.Builder builder()
-
serializableBuilderClass
public static Class<? extends FieldStats.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-