Package org.apache.hadoop.hbase
Class Size
java.lang.Object
org.apache.hadoop.hbase.Size
- All Implemented Interfaces:
Comparable<Size>
It is used to represent the size with different units. This class doesn't serve for the precise
computation.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final BigDecimal
private final Size.Unit
private final double
static final Size
-
Constructor Summary
-
Method Summary
-
Field Details
-
ZERO
-
SCALE_BASE
-
value
-
unit
-
-
Constructor Details
-
Size
-
-
Method Details
-
getUnit
Returns size unit -
getLongValue
get the value -
get
get the value -
get
get the value which is converted to specified unit.- Parameters:
unit
- size unit- Returns:
- the converted value
-
compareTo
- Specified by:
compareTo
in interfaceComparable<Size>
-
toString
-
equals
-
hashCode
-