| Package | Description |
|---|---|
| org.apache.hadoop.conf |
Configuration of system parameters.
|
| Modifier and Type | Method | Description |
|---|---|---|
StorageUnit |
StorageSize.getUnit() |
|
static StorageUnit |
StorageUnit.valueOf(java.lang.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 | Description |
|---|---|---|
double |
Configuration.getStorageSize(java.lang.String name,
double defaultValue,
StorageUnit targetUnit) |
Gets storage size from a config file.
|
double |
Configuration.getStorageSize(java.lang.String name,
java.lang.String defaultValue,
StorageUnit targetUnit) |
Gets the Storage Size from the config, or returns the defaultValue.
|
void |
Configuration.setStorageSize(java.lang.String name,
double value,
StorageUnit unit) |
Sets Storage Size for the specified key.
|
| Constructor | Description |
|---|---|
StorageSize(StorageUnit unit,
double value) |
Constucts a Storage Measure, which contains the value and the unit of
measure.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.