Package | Description |
---|---|
org.apache.hadoop.fs |
Implementations of
AbstractFileSystem for hdfs
over rpc and hdfs over web. |
org.apache.hadoop.hdfs.client |
This package provides the administrative APIs for HDFS.
|
Modifier and Type | Field and Description |
---|---|
static StorageType |
StorageType.DEFAULT |
static StorageType[] |
StorageType.EMPTY_ARRAY |
Modifier and Type | Method and 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[] |
BlockStoragePolicySpi.getStorageTypes()
Return the preferred storage types associated with this policy.
|
StorageType[] |
BlockLocation.getStorageTypes()
Get the storage type of each replica of the block.
|
static StorageType |
StorageType.parseStorageType(int i) |
static StorageType |
StorageType.parseStorageType(String s) |
static StorageType |
StorageType.valueOf(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 and Description |
---|---|
static List<StorageType> |
StorageType.asList() |
static List<StorageType> |
StorageType.getMovableTypes() |
static List<StorageType> |
StorageType.getTypesSupportingQuota() |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
static String |
QuotaUsage.getStorageTypeHeader(List<StorageType> storageTypes)
return the header of with the StorageTypes.
|
protected String |
QuotaUsage.getTypesQuotaUsage(boolean hOption,
List<StorageType> types) |
String |
ContentSummary.toString(boolean qOption,
boolean hOption,
boolean tOption,
boolean xOption,
List<StorageType> types)
Return the string representation of the object in the output format.
|
String |
ContentSummary.toString(boolean qOption,
boolean hOption,
boolean tOption,
List<StorageType> types)
Return the string representation of the object in the output format.
|
String |
QuotaUsage.toString(boolean hOption,
boolean tOption,
List<StorageType> types)
Return the string representation of the object in the output format.
|
Constructor and Description |
---|
BlockLocation(String[] names,
String[] hosts,
String[] cachedHosts,
String[] topologyPaths,
String[] storageIds,
StorageType[] storageTypes,
long offset,
long length,
boolean corrupt) |
Modifier and Type | Method and Description |
---|---|
void |
HdfsAdmin.clearQuotaByStorageType(Path src,
StorageType type)
Clear the space quota by storage type for a directory.
|
void |
HdfsAdmin.setQuotaByStorageType(Path src,
StorageType type,
long quota)
Set the quota by storage type for a directory.
|
Copyright © 2023 Apache Software Foundation. All rights reserved.