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.Builder
builder()
final Long
count()
The number of documents that contain a value in the specified field in the result set.final boolean
final boolean
equalsBySdkFields
(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 int
hashCode()
final String
max()
The maximum value found in the specified field in the result set.final String
mean()
The average of the values found in the specified field in the result set.final String
min()
The minimum value found in the specified field in the result set.final Long
missing()
The number of documents that do not contain a value in the specified field in the result set.static Class
<? extends FieldStats.Builder> final Double
stddev()
The standard deviation of the values in the specified field in the result set.final Double
sum()
The sum of the field values across the documents in the result set.final Double
The 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 String
toString()
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
),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.
-
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:
- 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.
-
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.
null
for date fields.- Returns:
- The sum of the field values across the documents in the result set.
null
for 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
),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.
-
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:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<FieldStats.Builder,
FieldStats> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in 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
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. -
getValueForField
-
sdkFields
-