Interface NumericValueConverter
- All Superinterfaces:
Comparator<Number>,ValueConverter
- All Known Implementing Classes:
LongConverter
Extends ValueConverter interface for numeric converters to support numerical
operations such as comparison, addition, etc.
-
Method Summary
Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface org.apache.hadoop.yarn.server.timelineservice.storage.common.ValueConverter
decodeValue, encodeValue
-
Method Details
-
add
Adds two or more numbers. If either of the numbers are null, it is taken as 0.- Parameters:
num1- the first number to add.num2- the second number to add.numbers- Rest of the numbers to be added.- Returns:
- result after adding up the numbers.
-