import { Constants } from '../Constants' ; import { Snapshot } from '../domain' ; export class BucketSnapshot implements Snapshot { private count ; private value ; constructor ( count = 0 , value = 0 ) { this . count = count ; this . value = value ; } getValue ( quantile ) { return Constants . NOT_AVAILABLE ; } getValues ( ) { return [ ] ; } size ( ) { return this . count ; } getMedian ( ) { return Constants . NOT_AVAILABLE ; } get75thPercentile ( ) { return Constants . NOT_AVAILABLE ; } get95thPercentile ( ) { return Constants . NOT_AVAILABLE ; } get98thPercentile ( ) { return Constants . NOT_AVAILABLE ; } get99thPercentile ( ) { return Constants . NOT_AVAILABLE ; } get999thPercentile ( ) { return Constants . NOT_AVAILABLE ; } getMax ( ) { return Constants . NOT_AVAILABLE ; } getMean ( ) { if ( this . count === 0 ) { return 0 ; } return this . value / this . count ; } getMin ( ) { return Constants . NOT_AVAILABLE ; } getStdDev ( ) { return Constants . NOT_AVAILABLE ; } }