From b6c543fe4589b5cff982c5629a5c23074973c733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Thu, 6 Sep 2018 13:16:54 +0200 Subject: [PATCH] HDDS-404. Implement toString() in OmKeyLocationInfo. Contributed by Dinesh Chitlangia. --- .../hadoop/ozone/om/helpers/OmKeyLocationInfo.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java index fae92f8a7d2..79b3c82b2dc 100644 --- a/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java +++ b/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyLocationInfo.java @@ -130,4 +130,14 @@ public final class OmKeyLocationInfo { info.setCreateVersion(keyLocation.getCreateVersion()); return info; } + + @Override + public String toString() { + return "{blockID={containerID=" + blockID.getContainerID() + + ", localID=" + blockID.getLocalID() + "}" + + ", shouldCreateContainer=" + shouldCreateContainer + + ", length=" + length + + ", offset=" + offset + + ", createVersion=" + createVersion + '}'; + } }