Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2F4502009DC for ; Tue, 2 May 2017 23:54:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2DD68160BAC; Tue, 2 May 2017 21:54:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 77C67160B9D for ; Tue, 2 May 2017 23:53:59 +0200 (CEST) Received: (qmail 67279 invoked by uid 500); 2 May 2017 21:53:57 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 67169 invoked by uid 99); 2 May 2017 21:53:57 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 May 2017 21:53:57 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 7972DDFD78; Tue, 2 May 2017 21:53:57 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: inigoiri@apache.org To: common-commits@hadoop.apache.org Date: Tue, 02 May 2017 21:53:58 -0000 Message-Id: <3123e0f73f444c8880831731cdbb64a1@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [02/50] [abbrv] hadoop git commit: HDFS-11697. Add javadoc for storage policy and erasure coding policy. Contributed by Kai Sasaki. archived-at: Tue, 02 May 2017 21:54:00 -0000 HDFS-11697. Add javadoc for storage policy and erasure coding policy. Contributed by Kai Sasaki. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/ba768bf4 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/ba768bf4 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/ba768bf4 Branch: refs/heads/HDFS-10467 Commit: ba768bf4d58492364f9c6401bd1c245886ee75e9 Parents: dd22eef Author: Akira Ajisaka Authored: Thu Apr 27 16:12:27 2017 +0900 Committer: Inigo Committed: Tue May 2 14:52:02 2017 -0700 ---------------------------------------------------------------------- .../hadoop/hdfs/protocol/HdfsFileStatus.java | 22 +++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/ba768bf4/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/HdfsFileStatus.java ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/HdfsFileStatus.java b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/HdfsFileStatus.java index 17926a5..c386602 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/HdfsFileStatus.java +++ b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/HdfsFileStatus.java @@ -58,7 +58,7 @@ public class HdfsFileStatus { public static final byte[] EMPTY_NAME = new byte[0]; /** - * Constructor + * Constructor. * @param length the number of bytes the file has * @param isdir if the path is a directory * @param block_replication the replication factor @@ -68,9 +68,13 @@ public class HdfsFileStatus { * @param permission permission * @param owner the owner of the path * @param group the group of the path + * @param symlink symlink target encoded in java UTF8 or null * @param path the local name in java UTF8 encoding the same as that in-memory * @param fileId the file id + * @param childrenNum the number of children. Used by directory. * @param feInfo the file's encryption info + * @param storagePolicy ID which specifies storage policy + * @param ecPolicy the erasure coding policy */ public HdfsFileStatus(long length, boolean isdir, int block_replication, long blocksize, long modification_time, long access_time, @@ -157,7 +161,7 @@ public class HdfsFileStatus { /** * Get FsPermission associated with the file. - * @return permssion + * @return permission */ public final FsPermission getPermission() { return permission; @@ -180,7 +184,7 @@ public class HdfsFileStatus { } /** - * Check if the local name is empty + * Check if the local name is empty. * @return true if the name is empty */ public final boolean isEmptyLocalName() { @@ -188,7 +192,7 @@ public class HdfsFileStatus { } /** - * Get the string representation of the local name + * Get the string representation of the local name. * @return the local name in string */ public final String getLocalName() { @@ -196,7 +200,7 @@ public class HdfsFileStatus { } /** - * Get the Java UTF8 representation of the local name + * Get the Java UTF8 representation of the local name. * @return the local name in java UTF8 */ public final byte[] getLocalNameInBytes() { @@ -204,7 +208,7 @@ public class HdfsFileStatus { } /** - * Get the string representation of the full path name + * Get the string representation of the full path name. * @param parent the parent path * @return the full path in string */ @@ -222,7 +226,7 @@ public class HdfsFileStatus { } /** - * Get the full path + * Get the full path. * @param parent the parent path * @return the full path */ @@ -254,6 +258,10 @@ public class HdfsFileStatus { return feInfo; } + /** + * Get the erasure coding policy if it's set. + * @return the erasure coding policy + */ public ErasureCodingPolicy getErasureCodingPolicy() { return ecPolicy; } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org