Package org.apache.gravitino.stats
Class StatisticValues
java.lang.Object
org.apache.gravitino.stats.StatisticValues
A class representing a collection of statistic values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A statistic value that holds a Boolean value.static class
A statistic value that holds a Double value.static class
A statistic value that holds a List of other statistic values.static class
A statistic value that holds a Long value.static class
A statistic value that holds a Map of String keys to other statistic values.static class
A statistic value that holds a String value. -
Method Summary
Modifier and TypeMethodDescriptionstatic StatisticValues.BooleanValue
booleanValue
(boolean value) Creates a statistic value that holds a boolean value.static StatisticValues.DoubleValue
doubleValue
(double value) Creates a statistic value that holds a double value.static <T> StatisticValues.ListValue<T>
listValue
(List<StatisticValue<T>> values) Creates a statistic value that holds a list of other statistic values.static StatisticValues.LongValue
longValue
(long value) Creates a statistic value that holds a long value.static StatisticValues.ObjectValue
objectValue
(Map<String, StatisticValue<?>> values) Creates a statistic value that holds a map of string keys to other statistic values.static StatisticValues.StringValue
stringValue
(String value) Creates a statistic value that holds a string value.
-
Method Details
-
booleanValue
Creates a statistic value that holds a boolean value.- Parameters:
value
- the boolean value to be held by this statistic value- Returns:
- a BooleanValue instance containing the provided boolean value
-
longValue
Creates a statistic value that holds a long value.- Parameters:
value
- the long value to be held by this statistic value- Returns:
- a LongValue instance containing the provided long value
-
doubleValue
Creates a statistic value that holds a double value.- Parameters:
value
- the double value to be held by this statistic value- Returns:
- a DoubleValue instance containing the provided double value
-
stringValue
Creates a statistic value that holds a string value.- Parameters:
value
- the string value to be held by this statistic value- Returns:
- a StringValue instance containing the provided string value
-
listValue
Creates a statistic value that holds a list of other statistic values.- Type Parameters:
T
- the type of the values in the list- Parameters:
values
- the list of statistic values to be held by this statistic value- Returns:
- a ListValue instance containing the provided list of statistic values
-
objectValue
Creates a statistic value that holds a map of string keys to other statistic values.- Parameters:
values
- 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
-