Package | Description |
---|---|
org.apache.hadoop.conf |
Configuration of system parameters.
|
Modifier and Type | Method and Description |
---|---|
StorageUnit |
StorageSize.getUnit() |
static StorageUnit |
StorageUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StorageUnit[] |
StorageUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
double |
Configuration.getStorageSize(String name,
double defaultValue,
StorageUnit targetUnit)
Gets storage size from a config file.
|
double |
Configuration.getStorageSize(String name,
String defaultValue,
StorageUnit targetUnit)
Gets the Storage Size from the config, or returns the defaultValue.
|
void |
Configuration.setStorageSize(String name,
double value,
StorageUnit unit)
Sets Storage Size for the specified key.
|
Constructor and Description |
---|
StorageSize(StorageUnit unit,
double value)
Constucts a Storage Measure, which contains the value and the unit of
measure.
|
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.