Class RequestStats
-
- All Implemented Interfaces:
@JsonClass(generateAdapter = true) public final class RequestStatsA list of stats request.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringfieldprivate Stringlabelprivate Booleanminprivate Booleanmaxprivate Booleansumprivate BooleancountValuesprivate Booleanmissingprivate Booleanmeanprivate Booleanstddevprivate BooleansumOfSquaresprivate BooleandistinctValuesprivate BooleancountDistinctprivate Booleancardinalityprivate FloatcardinalityAccuracyprivate List<String>excludeFiltersprivate List<Float>percentiles
-
Constructor Summary
Constructors Constructor Description RequestStats(String field, String label, Boolean min, Boolean max, Boolean sum, Boolean countValues, Boolean missing, Boolean mean, Boolean stddev, Boolean sumOfSquares, Boolean distinctValues, Boolean countDistinct, Boolean cardinality, Float cardinalityAccuracy, List<String> excludeFilters, List<Float> percentiles)
-
Method Summary
Modifier and Type Method Description final StringgetField()The stats field final UnitsetField(@Json(name = "field") String field)The stats field final StringgetLabel()A label to include for reference the stats field final UnitsetLabel(@Json(name = "label") String label)A label to include for reference the stats field final BooleangetMin()The minimum value of the field final UnitsetMin(@Json(name = "min") Boolean min)The minimum value of the field final BooleangetMax()The maximum value of the field final UnitsetMax(@Json(name = "max") Boolean max)The maximum value of the field final BooleangetSum()The sum of all values of the field final UnitsetSum(@Json(name = "sum") Boolean sum)The sum of all values of the field final BooleangetCountValues()The number which have a value for this field final UnitsetCountValues(@Json(name = "countValues") Boolean countValues)The number which have a value for this field final BooleangetMissing()The number which do not have a value for this field final UnitsetMissing(@Json(name = "missing") Boolean missing)The number which do not have a value for this field final BooleangetMean()The average final UnitsetMean(@Json(name = "mean") Boolean mean)The average final BooleangetStddev()Standard deviation final UnitsetStddev(@Json(name = "stddev") Boolean stddev)Standard deviation final BooleangetSumOfSquares()Sum of all values squared final UnitsetSumOfSquares(@Json(name = "sumOfSquares") Boolean sumOfSquares)Sum of all values squared final BooleangetDistinctValues()The set of all distinct values for the field (This can be very expensive to calculate) final UnitsetDistinctValues(@Json(name = "distinctValues") Boolean distinctValues)The set of all distinct values for the field (This can be very expensive to calculate) final BooleangetCountDistinct()The number of distinct values (This can be very expensive to calculate) final UnitsetCountDistinct(@Json(name = "countDistinct") Boolean countDistinct)The number of distinct values (This can be very expensive to calculate) final BooleangetCardinality()A statistical approximation of the number of distinct values final UnitsetCardinality(@Json(name = "cardinality") Boolean cardinality)A statistical approximation of the number of distinct values final FloatgetCardinalityAccuracy()Number between 0.0 and 1.0 indicating how aggressively the algorithm should try to be accurate. final UnitsetCardinalityAccuracy(@Json(name = "cardinalityAccuracy") Float cardinalityAccuracy)Number between 0.0 and 1.0 indicating how aggressively the algorithm should try to be accurate. final List<String>getExcludeFilters()A list of filters to exclude final UnitsetExcludeFilters(@Json(name = "excludeFilters") List<String> excludeFilters)A list of filters to exclude final List<Float>getPercentiles()A list of percentile values, e.g. final UnitsetPercentiles(@Json(name = "percentiles") List<Float> percentiles)A list of percentile values, e.g. -
-
Constructor Detail
-
RequestStats
RequestStats(String field, String label, Boolean min, Boolean max, Boolean sum, Boolean countValues, Boolean missing, Boolean mean, Boolean stddev, Boolean sumOfSquares, Boolean distinctValues, Boolean countDistinct, Boolean cardinality, Float cardinalityAccuracy, List<String> excludeFilters, List<Float> percentiles)
-
-
Method Detail
-
setLabel
final Unit setLabel(@Json(name = "label") String label)
A label to include for reference the stats field
-
getCountValues
final Boolean getCountValues()
The number which have a value for this field
-
setCountValues
final Unit setCountValues(@Json(name = "countValues") Boolean countValues)
The number which have a value for this field
-
getMissing
final Boolean getMissing()
The number which do not have a value for this field
-
setMissing
final Unit setMissing(@Json(name = "missing") Boolean missing)
The number which do not have a value for this field
-
getSumOfSquares
final Boolean getSumOfSquares()
Sum of all values squared
-
setSumOfSquares
final Unit setSumOfSquares(@Json(name = "sumOfSquares") Boolean sumOfSquares)
Sum of all values squared
-
getDistinctValues
final Boolean getDistinctValues()
The set of all distinct values for the field (This can be very expensive to calculate)
-
setDistinctValues
final Unit setDistinctValues(@Json(name = "distinctValues") Boolean distinctValues)
The set of all distinct values for the field (This can be very expensive to calculate)
-
getCountDistinct
final Boolean getCountDistinct()
The number of distinct values (This can be very expensive to calculate)
-
setCountDistinct
final Unit setCountDistinct(@Json(name = "countDistinct") Boolean countDistinct)
The number of distinct values (This can be very expensive to calculate)
-
getCardinality
final Boolean getCardinality()
A statistical approximation of the number of distinct values
-
setCardinality
final Unit setCardinality(@Json(name = "cardinality") Boolean cardinality)
A statistical approximation of the number of distinct values
-
getCardinalityAccuracy
final Float getCardinalityAccuracy()
Number between 0.0 and 1.0 indicating how aggressively the algorithm should try to be accurate. Used with boolean cardinality flag.
-
setCardinalityAccuracy
final Unit setCardinalityAccuracy(@Json(name = "cardinalityAccuracy") Float cardinalityAccuracy)
Number between 0.0 and 1.0 indicating how aggressively the algorithm should try to be accurate. Used with boolean cardinality flag.
-
getExcludeFilters
final List<String> getExcludeFilters()
A list of filters to exclude
-
setExcludeFilters
final Unit setExcludeFilters(@Json(name = "excludeFilters") List<String> excludeFilters)
A list of filters to exclude
-
getPercentiles
final List<Float> getPercentiles()
A list of percentile values, e.g. \"1,99,99.9\"
-
setPercentiles
final Unit setPercentiles(@Json(name = "percentiles") List<Float> percentiles)
A list of percentile values, e.g. \"1,99,99.9\"
-
-
-
-