Interface ScoreDistributionOrBuilder (3.0.4)

public interface ScoreDistributionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsScoreBuckets(int key)

public abstract boolean containsScoreBuckets(int key)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
boolean

getScoreBuckets()

public abstract Map<Integer,Long> getScoreBuckets()

Use #getScoreBucketsMap() instead.

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

getScoreBucketsCount()

public abstract int getScoreBucketsCount()

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Returns
TypeDescription
int

getScoreBucketsMap()

public abstract Map<Integer,Long> getScoreBucketsMap()

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

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

getScoreBucketsOrDefault(int key, long defaultValue)

public abstract long getScoreBucketsOrDefault(int key, long defaultValue)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameters
NameDescription
keyint
defaultValuelong
Returns
TypeDescription
long

getScoreBucketsOrThrow(int key)

public abstract long getScoreBucketsOrThrow(int key)

Map key is score value multiplied by 100. The scores are discrete values between [0, 1]. The maximum number of buckets is on order of a few dozen, but typically much lower (ie. 10).

map<int32, int64> score_buckets = 1;

Parameter
NameDescription
keyint
Returns
TypeDescription
long