@InterfaceAudience.Private public class StorageSize extends Object
Source: Hadoop 3.1.0 StorageSize.java
| Constructor and Description |
|---|
StorageSize(StorageUnit unit,
double value)
Constucts a Storage Measure, which contains the value and the unit of measure.
|
| Modifier and Type | Method and Description |
|---|---|
static double |
getStorageSize(String value,
double defaultValue,
StorageUnit targetUnit) |
StorageUnit |
getUnit() |
double |
getValue() |
static StorageSize |
parse(String value) |
public StorageSize(StorageUnit unit, double value)
unit - - Unit of Measurevalue - - Numeric value.public static double getStorageSize(String value, double defaultValue, StorageUnit targetUnit)
public static StorageSize parse(String value)
public StorageUnit getUnit()
public double getValue()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.