gravitino.api.stats.statistic_values.StatisticValues¶
- class gravitino.api.stats.statistic_values.StatisticValues¶
Bases:
objectA class representing a collection of statistic values.
- __init__()¶
Methods
__init__()boolean_value(value)Creates a statistic value that holds a boolean value.
double_value(value)Creates a statistic value that holds a double value.
list_value(value)Creates a statistic value that holds a list of other statistic values.
long_value(value)Creates a statistic value that holds a long value.
object_value(value)Creates a statistic value that holds a map of string keys to other statistic values.
string_value(value)Creates a statistic value that holds a string value.
- class BooleanValue(value: bool)¶
Bases:
StatisticValue[bool]A statistic value that holds a Boolean value.
- data_type() Type¶
Returns the data type of the statistic value.
- Returns:
Type: the data type of the statistic value
- value() bool¶
Returns the value of the statistic.
- Returns:
The value of the statistic
- class DoubleValue(value: float)¶
Bases:
StatisticValue[float]A statistic value that holds a Double value.
- data_type() Type¶
Returns the data type of the statistic value.
- Returns:
Type: the data type of the statistic value
- value() float¶
Returns the value of the statistic.
- Returns:
The value of the statistic
- class ListValue(value_list: list[gravitino.api.stats.statistic_value.StatisticValue[T]])¶
Bases:
StatisticValue[list[StatisticValue[T]]]A statistic value that holds a List of other statistic values.
- data_type() Type¶
Returns the data type of the statistic value.
- Returns:
Type: the data type of the statistic value
- value() list[gravitino.api.stats.statistic_value.StatisticValue[T]]¶
Returns the value of the statistic.
- Returns:
The value of the statistic
- class LongValue(value: int)¶
Bases:
StatisticValue[int]A statistic value that holds a Long value.
- data_type() Type¶
Returns the data type of the statistic value.
- Returns:
Type: the data type of the statistic value
- value() int¶
Returns the value of the statistic.
- Returns:
The value of the statistic
- class ObjectValue(value_map: dict[str, gravitino.api.stats.statistic_value.StatisticValue[T]])¶
Bases:
StatisticValue[dict[str,StatisticValue[T]]]A statistic value that holds a Map of String keys to other statistic values.
- data_type() Type¶
Returns the data type of the statistic value.
- Returns:
Type: the data type of the statistic value
- value() dict[str, gravitino.api.stats.statistic_value.StatisticValue[T]]¶
Returns the value of the statistic.
- Returns:
The value of the statistic
- class StringValue(value: str)¶
Bases:
StatisticValue[str]A statistic value that holds a String value.
- data_type() Type¶
Returns the data type of the statistic value.
- Returns:
Type: the data type of the statistic value
- value() str¶
Returns the value of the statistic.
- Returns:
The value of the statistic
- static boolean_value(value: bool) BooleanValue¶
Creates a statistic value that holds a boolean value.
- Args:
value: the boolean value to be held by this statistic value
- Returns:
A BooleanValue instance containing the provided boolean value
- static double_value(value: float) DoubleValue¶
Creates a statistic value that holds a double value.
- Args:
value: the double value to be held by this statistic value
- Returns:
A DoubleValue instance containing the provided double value
- static list_value(value: list[gravitino.api.stats.statistic_value.StatisticValue[T]]) ListValue[T]¶
Creates a statistic value that holds a list of other statistic values.
- Args:
value: the list of statistic values to be held by this statistic value
- Returns:
A ListValue instance containing the provided list of statistic values
- static long_value(value: int) LongValue¶
Creates a statistic value that holds a long value.
- Args:
value: the long value to be held by this statistic value
- Returns:
A LongValue instance containing the provided long value
- static object_value(value: dict[str, gravitino.api.stats.statistic_value.StatisticValue[Any]]) ObjectValue[Any]¶
Creates a statistic value that holds a map of string keys to other statistic values.
- Args:
value: the map of string keys to statistic values to be held by this statistic value
- Returns:
An ObjectValue instance containing the provided map of statistic values
- static string_value(value: str) StringValue¶
Creates a statistic value that holds a string value.
- Args:
value: the string value to be held by this statistic value
- Returns:
A StringValue instance containing the provided string value