Skip to content

/AWS1/CL_SRDFIELDSTATS

The statistics for a field calculated in the request.

CONSTRUCTOR

IMPORTING

Optional arguments:

IV_MIN TYPE /AWS1/SRDSTRING /AWS1/SRDSTRING

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: yyyy-mm-ddTHH:mm:ss.SSSZ.

IV_MAX TYPE /AWS1/SRDSTRING /AWS1/SRDSTRING

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: yyyy-mm-ddTHH:mm:ss.SSSZ.

IV_COUNT TYPE /AWS1/SRDLONG /AWS1/SRDLONG

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

IV_MISSING TYPE /AWS1/SRDLONG /AWS1/SRDLONG

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

IV_SUM TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING

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

IV_SUMOFSQUARES TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING

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

IV_MEAN TYPE /AWS1/SRDSTRING /AWS1/SRDSTRING

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: yyyy-mm-ddTHH:mm:ss.SSSZ.

IV_STDDEV TYPE /AWS1/RT_DOUBLE_AS_STRING /AWS1/RT_DOUBLE_AS_STRING

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


Queryable Attributes

min

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: yyyy-mm-ddTHH:mm:ss.SSSZ.

Accessible with the following methods

Method Description
GET_MIN() Getter for MIN, with configurable default
ASK_MIN() Getter for MIN w/ exceptions if field has no value
HAS_MIN() Determine if MIN has a value

max

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: yyyy-mm-ddTHH:mm:ss.SSSZ.

Accessible with the following methods

Method Description
GET_MAX() Getter for MAX, with configurable default
ASK_MAX() Getter for MAX w/ exceptions if field has no value
HAS_MAX() Determine if MAX has a value

count

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

Accessible with the following methods

Method Description
GET_COUNT() Getter for COUNT

missing

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

Accessible with the following methods

Method Description
GET_MISSING() Getter for MISSING

sum

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

Accessible with the following methods

Method Description
GET_SUM() Getter for SUM
ASK_SUM() Getter for SUM w/ exceptions if field has no value
STR_SUM() String format for SUM

sumOfSquares

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

Accessible with the following methods

Method Description
GET_SUMOFSQUARES() Getter for SUMOFSQUARES
ASK_SUMOFSQUARES() Getter for SUMOFSQUARES w/ exceptions if field has no value
STR_SUMOFSQUARES() String format for SUMOFSQUARES

mean

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: yyyy-mm-ddTHH:mm:ss.SSSZ.

Accessible with the following methods

Method Description
GET_MEAN() Getter for MEAN, with configurable default
ASK_MEAN() Getter for MEAN w/ exceptions if field has no value
HAS_MEAN() Determine if MEAN has a value

stddev

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

Accessible with the following methods

Method Description
GET_STDDEV() Getter for STDDEV
ASK_STDDEV() Getter for STDDEV w/ exceptions if field has no value
STR_STDDEV() String format for STDDEV

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TS_STATS_MAPROW

TYPES: BEGIN OF TS_STATS_MAPROW,
key TYPE /AWS1/SRDSTRING,
value TYPE REF TO /AWS1/CL_SRDFIELDSTATS,
END OF TS_STATS_MAPROW.

TT_STATS

TYPES TT_STATS TYPE HASHED TABLE OF /AWS1/CL_SRDFIELDSTATS=>TS_STATS_MAPROW WITH UNIQUE KEY key
.