Class StatisticValues

java.lang.Object
org.apache.gravitino.stats.StatisticValues

public class StatisticValues extends Object
A class representing a collection of statistic values.
  • Method Details

    • booleanValue

      public static StatisticValues.BooleanValue booleanValue(boolean value)
      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

      public static StatisticValues.LongValue longValue(long value)
      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

      public static StatisticValues.DoubleValue doubleValue(double value)
      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

      public static StatisticValues.StringValue stringValue(String value)
      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

      public static <T> StatisticValues.ListValue<T> listValue(List<StatisticValue<T>> values)
      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

      public static StatisticValues.ObjectValue objectValue(Map<String,StatisticValue<?>> values)
      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