Interface TimestampStats.GranularStatsOrBuilder (2.3.18)

public static interface TimestampStats.GranularStatsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsBuckets(int key)

public abstract boolean containsBuckets(int key)

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
boolean

getBuckets()

public abstract Map<Integer,Long> getBuckets()

Use #getBucketsMap() instead.

Returns
TypeDescription
Map<Integer,java.lang.Long>

getBucketsCount()

public abstract int getBucketsCount()

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Returns
TypeDescription
int

getBucketsMap()

public abstract Map<Integer,Long> getBucketsMap()

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Returns
TypeDescription
Map<Integer,java.lang.Long>

getBucketsOrDefault(int key, long defaultValue)

public abstract long getBucketsOrDefault(int key, long defaultValue)

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Parameters
NameDescription
keyint
defaultValuelong
Returns
TypeDescription
long

getBucketsOrThrow(int key)

public abstract long getBucketsOrThrow(int key)

A map from granularity key to example count for that key. E.g. for hour_of_day 13 means 1pm, or for month_of_year 5 means May).

map<int32, int64> buckets = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
long