dataflow
v1b3
|
#include <histogram.h>
Public Member Functions | |
Histogram (const Json::Value &storage) | |
Histogram (Json::Value *storage) | |
virtual | ~Histogram () |
const StringPiece | GetTypeName () const |
bool | has_bucket_counts () const |
void | clear_bucket_counts () |
const client::JsonCppArray< int64 > | get_bucket_counts () const |
client::JsonCppArray< int64 > | mutable_bucketCounts () |
bool | has_first_bucket_offset () const |
void | clear_first_bucket_offset () |
int32 | get_first_bucket_offset () const |
void | set_first_bucket_offset (int32 value) |
Static Public Member Functions | |
static Histogram * | New () |
Histogram of value counts for a distribution.
Buckets have an inclusive lower bound and exclusive upper bound and use "1,2,5 bucketing": The first bucket range is from [0,1) and all subsequent bucket boundaries are powers of ten multiplied by 1, 2, or 5. Thus, bucket boundaries are 0, 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000, ... Negative values are not supported.
|
explicit |
Standard constructor for an immutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
explicit |
Standard constructor for a mutable data object instance.
[in] | storage | The underlying data storage for this instance. |
|
virtual |
Standard destructor.
|
inline |
Clears the 'bucketCounts
' attribute.
|
inline |
Clears the 'firstBucketOffset
' attribute.
|
inline |
Get a reference to the value of the 'bucketCounts
' attribute.
|
inline |
Get the value of the 'firstBucketOffset
' attribute.
|
inline |
Returns a string denoting the type of this data object.
|
inline |
Determine if the 'bucketCounts
' attribute was set.
bucketCounts
' attribute was set.
|
inline |
Determine if the 'firstBucketOffset
' attribute was set.
firstBucketOffset
' attribute was set.
|
inline |
Gets a reference to a mutable value of the 'bucketCounts
' property.
Counts of values in each bucket. For efficiency, prefix and trailing buckets with count = 0 are elided. Buckets can store the full range of values of an unsigned long, with ULLONG_MAX falling into the 59th bucket with range [1e19, 2e19).
|
static |
Creates a new default instance.
|
inline |
Change the 'firstBucketOffset
' attribute.
Starting index of first stored bucket. The non-inclusive upper-bound of the ith bucket is given by: pow(10,(i-first_bucket_offset)/3) * (1,2,5)[(i-first_bucket_offset)%3].
[in] | value | The new value. |