HDFSDirSummary Type
HDFS directory content summary information.
Remarks
This type holds and HDFS directory's content summary information.
Fields
dirCount Int64 |
The number of subdirectories within the directory. This property reflects the number of subdirectories contained within the directory, calculated recursively. Note that this count will always include the directory itself; i.e., this property would return 1 for a directory with no subfolders. |
fileCount Int64 |
The number of files within the directory. This property reflects the number of files contained within the directory, calculated recursively. |
nameQuota Int64 |
The name quota imposed on the directory. This property reflects the name quota imposed on the directory, or -1 if the directory doesn't have a name quota set. A name quota limits the number of files and directories that can be created within a directory (calculated recursively). Note that a directory's own name is counted against its own quota, so the minimum name quota that may be applied to a directory is 1 (which will force the directory to stay empty). |
size Int64 |
The total size of the directory contents, excluding file replicas. This property reflects the total size (in bytes) of the directory's contents, calculated recursively. Unlike SpaceUsed, this property's value does not take file replicas into account, and thus should not be interpreted as the actual number of bytes the directory's contents use on disk. |
spaceQuota Int64 |
The space quota imposed on the directory. This property reflects the overall space quota (in bytes) imposed on the directory, or -1 if the directory doesn't have a space quota set. A space quota limits the total number of bytes the files within a directory (or any of its subdirectories) may consume across all storage mediums. Space quotas are tracked separately from each directory's various StorageQuotas, and only one space quota may be applied to any given directory. |
spaceUsed Int64 |
The total amount of space the directory consumes on disk. This property reflects the total amount of space (in bytes) that the directory's contents, calculated recursively, consume on disk. Unlike Size, this property's value includes space consumed by file replicas. |
storageQuota Int64 |
The storage type quota imposed on the directory. This property reflects the storage type quota (in bytes) imposed on the directory for the StorageQuotaType currently selected by StorageQuotaIndex. Storage type quotas limit the number of bytes that files within a directory (or any of its subdirectories) may consume on specific types of storage mediums. Multiple storage type quotas, each associated with a different type of storage medium, may be imposed on a directory simultaneously. Storage type quotas are tracked separately from a directory's overall SpaceQuota. Use StorageQuotaCount to determine how many storage type quotas are imposed on a directory, and StorageQuotaIndex to select which storage type quota's information to reflect in the StorageQuota, StorageQuotaType, and StorageQuotaUsed properties. Note that it is possible for a storage type quota to be imposed on a directory without actually restricting any space usage, in which case this property's value will be -1. |
storageQuotaCount Int32 |
The number of storage type quotas associated with the directory. This property reflects the number of storage type quotas associated with the directory. Use the StorageQuotaIndex property to select which storage type quota's information to reflect in the StorageQuota, StorageQuotaType, and StorageQuotaUsed properties. |
storageQuotaIndex Int32 |
Selects the storage type quota to show information for. This property selects which storage type quota's information to reflect in the StorageQuota, StorageQuotaType, and StorageQuotaUsed properties; those properties are re-populated when this property's value is changed. Valid values for this property are -1 to (StorageQuotaCount - 1); invalid indices are ignored. The default value is 0 if StorageQuotaCount is greater than 0, and -1 otherwise. |
storageQuotaType String |
The storage type associated with the storage type quota. This property reflects the storage type associated with the storage type quota currently selected by StorageQuotaIndex |
storageQuotaUsed Int64 |
The number of bytes consumed for the storage type quota. This property reflects the number of bytes that have been consumed for the storage type quota currently selected by StorageQuotaIndex |
Constructors
public init()