IPWorks Cloud 2020 Kotlin Edition

Questions / Feedback?

HDFSDirSummary Type

HDFS directory content summary information.

Remarks

This type holds and HDFS directory's content summary information.

Fields

DirCount
Long

The number of subdirectories within the directory.

This field reflects the number of subdirectories contained within the directory, calculated recursively. Note that this count will always include the directory itself; i.e., this field would return 1 for a directory with no subfolders.

FileCount
Long

The number of files within the directory.

This field reflects the number of files contained within the directory, calculated recursively.

NameQuota
Long

The name quota imposed on the directory.

This field 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
Long

The total size of the directory contents, excluding file replicas.

This field reflects the total size (in bytes) of the directory's contents, calculated recursively.

Unlike SpaceUsed, this field'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
Long

The space quota imposed on the directory.

This field 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
Long

The total amount of space the directory consumes on disk.

This field reflects the total amount of space (in bytes) that the directory's contents, calculated recursively, consume on disk.

Unlike Size, this field's value includes space consumed by file replicas.

StorageQuota
Long

The storage type quota imposed on the directory.

This field 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 fields.

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 field's value will be -1.

StorageQuotaCount
Int

The number of storage type quotas associated with the directory.

This field reflects the number of storage type quotas associated with the directory. Use the StorageQuotaIndex field to select which storage type quota's information to reflect in the StorageQuota, StorageQuotaType, and StorageQuotaUsed fields.

StorageQuotaIndex
Int

Selects the storage type quota to show information for.

This field selects which storage type quota's information to reflect in the StorageQuota, StorageQuotaType, and StorageQuotaUsed fields; those fields are re-populated when this field's value is changed.

Valid values for this field 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 field reflects the storage type associated with the storage type quota currently selected by StorageQuotaIndex

StorageQuotaUsed
Long

The number of bytes consumed for the storage type quota.

This field reflects the number of bytes that have been consumed for the storage type quota currently selected by StorageQuotaIndex

Constructors

public constructor()



Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Cloud 2020 Kotlin Edition - Version 20.0 [Build 7941]