Interface TimestampStats.GranularStatsOrBuilder (2.47.0)

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
Name Description
key int
Returns
Type Description
boolean

getBuckets() (deprecated)

public abstract Map<Integer,Long> getBuckets()

Use #getBucketsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key int
defaultValue long
Returns
Type Description
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
Name Description
key int
Returns
Type Description
long