Interface LabelStatsOrBuilder (0.147.0)

public interface LabelStatsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsExampleCount(String key)

public abstract boolean containsExampleCount(String key)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getExampleCount()

public abstract Map<String,Long> getExampleCount()

Use #getExampleCountMap() instead.

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

getExampleCountCount()

public abstract int getExampleCountCount()

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Returns
TypeDescription
int

getExampleCountMap()

public abstract Map<String,Long> getExampleCountMap()

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

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

getExampleCountOrDefault(String key, long defaultValue)

public abstract long getExampleCountOrDefault(String key, long defaultValue)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameters
NameDescription
keyString
defaultValuelong
Returns
TypeDescription
long

getExampleCountOrThrow(String key)

public abstract long getExampleCountOrThrow(String key)

Map of each annotation spec's example count. Key is the annotation spec name and value is the number of examples for that annotation spec. If the annotated dataset does not have annotation spec, the map will return a pair where the key is empty string and value is the total number of annotations.

map<string, int64> example_count = 1;

Parameter
NameDescription
keyString
Returns
TypeDescription
long