Class Statistics
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Statistics.Builder,
Statistics>
Provides statistics for each data field imported into to an Amazon Forecast dataset with the CreateDatasetImportJob operation.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Double
avg()
For a numeric field, the average value in the field.static Statistics.Builder
builder()
final Integer
count()
The number of values in the field.final Integer
The number of distinct values in the field.final Long
The number of distinct values in the field.final Long
The number of values in the field.final Integer
countNan()
The number of NAN (not a number) values in the field.final Long
The number of NAN (not a number) values in the field.final Integer
The number of null values in the field.final Long
The number of null values in the field.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()
For a numeric field, the maximum value in the field.final String
min()
For a numeric field, the minimum value in the field.static Class
<? extends Statistics.Builder> final Double
stddev()
For a numeric field, the standard deviation.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
-
count
The number of values in the field. If the response value is -1, refer to
CountLong
.- Returns:
- The number of values in the field. If the response value is -1, refer to
CountLong
.
-
countDistinct
The number of distinct values in the field. If the response value is -1, refer to
CountDistinctLong
.- Returns:
- The number of distinct values in the field. If the response value is -1, refer to
CountDistinctLong
.
-
countNull
The number of null values in the field. If the response value is -1, refer to
CountNullLong
.- Returns:
- The number of null values in the field. If the response value is -1, refer to
CountNullLong
.
-
countNan
The number of NAN (not a number) values in the field. If the response value is -1, refer to
CountNanLong
.- Returns:
- The number of NAN (not a number) values in the field. If the response value is -1, refer to
CountNanLong
.
-
min
For a numeric field, the minimum value in the field.
- Returns:
- For a numeric field, the minimum value in the field.
-
max
For a numeric field, the maximum value in the field.
- Returns:
- For a numeric field, the maximum value in the field.
-
avg
For a numeric field, the average value in the field.
- Returns:
- For a numeric field, the average value in the field.
-
stddev
For a numeric field, the standard deviation.
- Returns:
- For a numeric field, the standard deviation.
-
countLong
The number of values in the field.
CountLong
is used instead ofCount
if the value is greater than 2,147,483,647.- Returns:
- The number of values in the field.
CountLong
is used instead ofCount
if the value is greater than 2,147,483,647.
-
countDistinctLong
The number of distinct values in the field.
CountDistinctLong
is used instead ofCountDistinct
if the value is greater than 2,147,483,647.- Returns:
- The number of distinct values in the field.
CountDistinctLong
is used instead ofCountDistinct
if the value is greater than 2,147,483,647.
-
countNullLong
The number of null values in the field.
CountNullLong
is used instead ofCountNull
if the value is greater than 2,147,483,647.- Returns:
- The number of null values in the field.
CountNullLong
is used instead ofCountNull
if the value is greater than 2,147,483,647.
-
countNanLong
The number of NAN (not a number) values in the field.
CountNanLong
is used instead ofCountNan
if the value is greater than 2,147,483,647.- Returns:
- The number of NAN (not a number) values in the field.
CountNanLong
is used instead ofCountNan
if the value is greater than 2,147,483,647.
-
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<Statistics.Builder,
Statistics> - 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
-