| Package | Description |
|---|---|
| org.apache.hadoop.fs |
An abstract file system API.
|
| Modifier and Type | Field | Description |
|---|---|---|
static StorageType |
StorageType.DEFAULT |
|
static StorageType[] |
StorageType.EMPTY_ARRAY |
| Modifier and Type | Method | Description |
|---|---|---|
StorageType[] |
BlockStoragePolicySpi.getCreationFallbacks() |
Get the fallback storage types for creating new block replicas.
|
StorageType[] |
BlockStoragePolicySpi.getReplicationFallbacks() |
Get the fallback storage types for replicating existing block replicas.
|
StorageType[] |
BlockLocation.getStorageTypes() |
Get the storage type of each replica of the block.
|
StorageType[] |
BlockStoragePolicySpi.getStorageTypes() |
Return the preferred storage types associated with this policy.
|
static StorageType |
StorageType.parseStorageType(int i) |
|
static StorageType |
StorageType.parseStorageType(java.lang.String s) |
|
static StorageType |
StorageType.valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static StorageType[] |
StorageType.values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<StorageType> |
StorageType.asList() |
|
static java.util.List<StorageType> |
StorageType.getMovableTypes() |
|
static java.util.List<StorageType> |
StorageType.getTypesSupportingQuota() |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
StorageType.allowSameDiskTiering(StorageType storageType) |
|
static java.lang.String |
StorageType.getConf(Configuration conf,
StorageType t,
java.lang.String name) |
Get the configured values for different StorageType.
|
long |
QuotaUsage.getTypeConsumed(StorageType type) |
Return storage type consumed.
|
long |
QuotaUsage.getTypeQuota(StorageType type) |
Return storage type quota.
|
void |
FileSystem.setQuotaByStorageType(Path src,
StorageType type,
long quota) |
Set per storage type quota for the given
Path. |
void |
BlockLocation.setStorageTypes(StorageType[] storageTypes) |
|
ContentSummary.Builder |
ContentSummary.Builder.typeConsumed(StorageType type,
long consumed) |
|
QuotaUsage.Builder |
QuotaUsage.Builder.typeConsumed(StorageType type,
long consumed) |
|
ContentSummary.Builder |
ContentSummary.Builder.typeQuota(StorageType type,
long quota) |
|
QuotaUsage.Builder |
QuotaUsage.Builder.typeQuota(StorageType type,
long quota) |
| Modifier and Type | Method | Description |
|---|---|---|
static java.lang.String |
QuotaUsage.getStorageTypeHeader(java.util.List<StorageType> storageTypes) |
return the header of with the StorageTypes.
|
protected java.lang.String |
QuotaUsage.getTypesQuotaUsage(boolean hOption,
java.util.List<StorageType> types) |
|
java.lang.String |
ContentSummary.toString(boolean qOption,
boolean hOption,
boolean tOption,
boolean xOption,
java.util.List<StorageType> types) |
Return the string representation of the object in the output format.
|
java.lang.String |
ContentSummary.toString(boolean qOption,
boolean hOption,
boolean tOption,
java.util.List<StorageType> types) |
Return the string representation of the object in the output format.
|
java.lang.String |
QuotaUsage.toString(boolean hOption,
boolean tOption,
java.util.List<StorageType> types) |
Return the string representation of the object in the output format.
|
| Constructor | Description |
|---|---|
BlockLocation(java.lang.String[] names,
java.lang.String[] hosts,
java.lang.String[] cachedHosts,
java.lang.String[] topologyPaths,
java.lang.String[] storageIds,
StorageType[] storageTypes,
long offset,
long length,
boolean corrupt) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.