AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

FieldStats

import "github.com/aws/aws-sdk-go/service/cloudsearchdomain"

type FieldStats struct { Count *int64 `locationName:"count" type:"long"` Max *string `locationName:"max" type:"string"` Mean *string `locationName:"mean" type:"string"` Min *string `locationName:"min" type:"string"` Missing *int64 `locationName:"missing" type:"long"` Stddev *float64 `locationName:"stddev" type:"double"` Sum *float64 `locationName:"sum" type:"double"` SumOfSquares *float64 `locationName:"sumOfSquares" type:"double"` }

The statistics for a field calculated in the request.

Count

Type: *int64

The number of documents that contain a value in the specified field in the result set.

Max

Type: *string

The maximum value found in the specified field in the result set.

If the field is numeric (int, int-array, double, or double-array), max is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, max is the string representation of a date with the format specified in IETF RFC3339 (http://tools.ietf.org/html/rfc3339): yyyy-mm-ddTHH:mm:ss.SSSZ.

Mean

Type: *string

The average of the values found in the specified field in the result set.

If the field is numeric (int, int-array, double, or double-array), mean is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, mean is the string representation of a date with the format specified in IETF RFC3339 (http://tools.ietf.org/html/rfc3339): yyyy-mm-ddTHH:mm:ss.SSSZ.

Min

Type: *string

The minimum value found in the specified field in the result set.

If the field is numeric (int, int-array, double, or double-array), min is the string representation of a double-precision 64-bit floating point value. If the field is date or date-array, min is the string representation of a date with the format specified in IETF RFC3339 (http://tools.ietf.org/html/rfc3339): yyyy-mm-ddTHH:mm:ss.SSSZ.

Missing

Type: *int64

The number of documents that do not contain a value in the specified field in the result set.

Stddev

Type: *float64

The standard deviation of the values in the specified field in the result set.

Sum

Type: *float64

The sum of the field values across the documents in the result set. null for date fields.

SumOfSquares

Type: *float64

The sum of all field values in the result set squared.

Method

GoString

func (s FieldStats) GoString() string

GoString returns the string representation

SetCount

func (s *FieldStats) SetCount(v int64) *FieldStats

SetCount sets the Count field's value.

SetMax

func (s *FieldStats) SetMax(v string) *FieldStats

SetMax sets the Max field's value.

SetMean

func (s *FieldStats) SetMean(v string) *FieldStats

SetMean sets the Mean field's value.

SetMin

func (s *FieldStats) SetMin(v string) *FieldStats

SetMin sets the Min field's value.

SetMissing

func (s *FieldStats) SetMissing(v int64) *FieldStats

SetMissing sets the Missing field's value.

SetStddev

func (s *FieldStats) SetStddev(v float64) *FieldStats

SetStddev sets the Stddev field's value.

SetSum

func (s *FieldStats) SetSum(v float64) *FieldStats

SetSum sets the Sum field's value.

SetSumOfSquares

func (s *FieldStats) SetSumOfSquares(v float64) *FieldStats

SetSumOfSquares sets the SumOfSquares field's value.

String

func (s FieldStats) String() string

String returns the string representation

On this page: