You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by te...@apache.org on 2019/02/20 23:37:16 UTC
[hadoop] branch trunk updated: HDFS-14273. Fix checkstyle issues in
BlockLocation's method javadoc (Contributed by Shweta Yakkali via Daniel
Templeton)
This is an automated email from the ASF dual-hosted git repository.
templedf pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 371a6db HDFS-14273. Fix checkstyle issues in BlockLocation's method javadoc (Contributed by Shweta Yakkali via Daniel Templeton)
371a6db is described below
commit 371a6db59ad8891cf0b5101fadee74d31ea2a895
Author: Shweta Yakkali <sh...@cloudera.com>
AuthorDate: Wed Feb 20 15:36:14 2019 -0800
HDFS-14273. Fix checkstyle issues in BlockLocation's method javadoc
(Contributed by Shweta Yakkali via Daniel Templeton)
Change-Id: I546aa4a0fe7f83b53735acd9925f366b2f1a00e2
---
.../java/org/apache/hadoop/fs/BlockLocation.java | 36 +++++++++++-----------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
index 37f0309..c6dde52 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/BlockLocation.java
@@ -77,14 +77,14 @@ public class BlockLocation implements Serializable {
new StorageType[0];
/**
- * Default Constructor
+ * Default Constructor.
*/
public BlockLocation() {
this(EMPTY_STR_ARRAY, EMPTY_STR_ARRAY, 0L, 0L);
}
/**
- * Copy constructor
+ * Copy constructor.
*/
public BlockLocation(BlockLocation that) {
this.hosts = that.hosts;
@@ -99,7 +99,7 @@ public class BlockLocation implements Serializable {
}
/**
- * Constructor with host, name, offset and length
+ * Constructor with host, name, offset and length.
*/
public BlockLocation(String[] names, String[] hosts, long offset,
long length) {
@@ -107,7 +107,7 @@ public class BlockLocation implements Serializable {
}
/**
- * Constructor with host, name, offset, length and corrupt flag
+ * Constructor with host, name, offset, length and corrupt flag.
*/
public BlockLocation(String[] names, String[] hosts, long offset,
long length, boolean corrupt) {
@@ -115,7 +115,7 @@ public class BlockLocation implements Serializable {
}
/**
- * Constructor with host, name, network topology, offset and length
+ * Constructor with host, name, network topology, offset and length.
*/
public BlockLocation(String[] names, String[] hosts, String[] topologyPaths,
long offset, long length) {
@@ -124,7 +124,7 @@ public class BlockLocation implements Serializable {
/**
* Constructor with host, name, network topology, offset, length
- * and corrupt flag
+ * and corrupt flag.
*/
public BlockLocation(String[] names, String[] hosts, String[] topologyPaths,
long offset, long length, boolean corrupt) {
@@ -176,21 +176,21 @@ public class BlockLocation implements Serializable {
}
/**
- * Get the list of hosts (hostname) hosting this block
+ * Get the list of hosts (hostname) hosting this block.
*/
public String[] getHosts() throws IOException {
return hosts;
}
/**
- * Get the list of hosts (hostname) hosting a cached replica of the block
+ * Get the list of hosts (hostname) hosting a cached replica of the block.
*/
public String[] getCachedHosts() {
- return cachedHosts;
+ return cachedHosts;
}
/**
- * Get the list of names (IP:xferPort) hosting this block
+ * Get the list of names (IP:xferPort) hosting this block.
*/
public String[] getNames() throws IOException {
return names;
@@ -219,14 +219,14 @@ public class BlockLocation implements Serializable {
}
/**
- * Get the start offset of file associated with this block
+ * Get the start offset of file associated with this block.
*/
public long getOffset() {
return offset;
}
/**
- * Get the length of the block
+ * Get the length of the block.
*/
public long getLength() {
return length;
@@ -247,14 +247,14 @@ public class BlockLocation implements Serializable {
}
/**
- * Set the start offset of file associated with this block
+ * Set the start offset of file associated with this block.
*/
public void setOffset(long offset) {
this.offset = offset;
}
/**
- * Set the length of block
+ * Set the length of block.
*/
public void setLength(long length) {
this.length = length;
@@ -268,7 +268,7 @@ public class BlockLocation implements Serializable {
}
/**
- * Set the hosts hosting this block
+ * Set the hosts hosting this block.
*/
public void setHosts(String[] hosts) throws IOException {
if (hosts == null) {
@@ -279,7 +279,7 @@ public class BlockLocation implements Serializable {
}
/**
- * Set the hosts hosting a cached replica of this block
+ * Set the hosts hosting a cached replica of this block.
*/
public void setCachedHosts(String[] cachedHosts) {
if (cachedHosts == null) {
@@ -290,7 +290,7 @@ public class BlockLocation implements Serializable {
}
/**
- * Set the names (host:port) hosting this block
+ * Set the names (host:port) hosting this block.
*/
public void setNames(String[] names) throws IOException {
if (names == null) {
@@ -301,7 +301,7 @@ public class BlockLocation implements Serializable {
}
/**
- * Set the network topology paths of the hosts
+ * Set the network topology paths of the hosts.
*/
public void setTopologyPaths(String[] topologyPaths) throws IOException {
if (topologyPaths == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org