HDFSResource Type
An HDFS file, directory, or symlink.
Remarks
This type represents and HDFS file, directory, or symlink.
Fields
accessTime Int64 |
The last access time of the resource. This property reflects the last access time of the resource, in milliseconds relative to the Unix epoch. | ||||||
blockSize Int64 |
The block size of the file. This property reflects the block size of the file, in bytes. | ||||||
childCount Int64 |
The number of children in the directory. This property reflects the number of immediate children in the directory. Always 0 for files. | ||||||
group String |
The name of the resource's group. This property reflects the name of the resource's group. | ||||||
modifiedTime Int64 |
The last modified time of the resource. This property reflects the last modified time of the resource, in milliseconds relative to the Unix epoch. | ||||||
name String |
The name of the resource. This property reflects the name of the resource. | ||||||
owner String |
The name of the resource's owner. This property reflects the name of the resource's owner. | ||||||
path String |
The full path of the resource. This property reflects the full path of the resource. (Note that this property's value is not returned by the server, it is calculated by the class for convenience.) | ||||||
permission String |
The resource's permission bits. This property reflects the resource's permission bits, represented as an octal string (e.g., 755). | ||||||
replication Int32 |
The replication factor of the file. This property reflects the replication factor of the file. Always 0 for directories. A file's replication factor determines how many copies of the file's data ("replicas") are maintained by HDFS. For example, a replication factor of 3 means that HDFS will maintain 2 replicas in addition to the original file. Thus, the minimum replication factor a file can have is 1. | ||||||
size Int64 |
The size of the file. This property reflects the size of the file, in bytes. Always 0 for directories. Note that the actual amount of space the file consumes will be greater than this property's value if Replication is greater than 1. In that case, multiply the values of this property and Replication to obtain the total number of bytes consumed by the file and its replicas. | ||||||
symlinkTarget String |
The full target path of the symlink. This property reflects the full target path of the symlink, if Type is 2 (ftSymLink) and the server returns the target path information, or empty string otherwise. | ||||||
type HDFSResourceTypes |
The resource type. This property reflects the resource's type. Possible values are:
|
Constructors
public init()