IPWorks Cloud 2020 .NET Edition

Questions / Feedback?

HDFSResource Type

An HDFS file, directory, or symlink.

Remarks

This type represents and HDFS file, directory, or symlink.

Fields

AccessTime
Long

The last access time of the resource.

This field reflects the last access time of the resource, in milliseconds relative to the Unix epoch.

BlockSize
Long

The block size of the file.

This field reflects the block size of the file, in bytes.

ChildCount
Long

The number of children in the directory.

This field reflects the number of immediate children in the directory. Always 0 for files.

Group
String

The name of the resource's group.

This field reflects the name of the resource's group.

ModifiedTime
Long

The last modified time of the resource.

This field reflects the last modified time of the resource, in milliseconds relative to the Unix epoch.

Name
String

The name of the resource.

This field reflects the name of the resource.

Owner
String

The name of the resource's owner.

This field reflects the name of the resource's owner.

Path
String

The full path of the resource.

This field reflects the full path of the resource. (Note that this field's value is not returned by the server, it is calculated by the component for convenience.)

Permission
String

The resource's permission bits.

This field reflects the resource's permission bits, represented as an octal string (e.g., 755).

Replication
Integer

The replication factor of the file.

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

The size of the file.

This field 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 field's value if Replication is greater than 1. In that case, multiply the values of this field 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 field 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 field reflects the resource's type. Possible values are:

0 (hrtFile) A file.
1 (hrtDirectory) A directory.
2 (hrtSymLink) A symlink.

Constructors

public HDFSResource();
Public HDFSResource()

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 .NET Edition - Version 20.0 [Build 8265]