@InterfaceAudience.Public public final class Size extends Object implements Comparable<Size>
Constructor and Description |
---|
Size(double value,
org.apache.hadoop.hbase.Size.Unit unit) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Size other) |
boolean |
equals(Object obj) |
double |
get()
get the value
|
double |
get(org.apache.hadoop.hbase.Size.Unit unit)
get the value which is converted to specified unit.
|
long |
getLongValue()
get the value
|
org.apache.hadoop.hbase.Size.Unit |
getUnit()
Returns size unit
|
int |
hashCode() |
String |
toString() |
public Size(double value, org.apache.hadoop.hbase.Size.Unit unit)
public org.apache.hadoop.hbase.Size.Unit getUnit()
public long getLongValue()
public double get()
public double get(org.apache.hadoop.hbase.Size.Unit unit)
unit
- size unitpublic int compareTo(Size other)
compareTo
in interface Comparable<Size>
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.