You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2014/05/15 23:03:28 UTC
[4/7] git commit: ACCUMULO-2758 Remove non-observed offset argument
from private encodeColumnFamily method
ACCUMULO-2758 Remove non-observed offset argument from private encodeColumnFamily method
Signed-off-by: Josh Elser <el...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/b2ecd1cd
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/b2ecd1cd
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/b2ecd1cd
Branch: refs/heads/1.6.1-SNAPSHOT
Commit: b2ecd1cdbe0cfe4f14c6be7a38b7113897654dc7
Parents: 57f2763
Author: Gary Singh <ga...@gmail.com>
Authored: Thu May 15 16:57:32 2014 -0400
Committer: Josh Elser <el...@apache.org>
Committed: Thu May 15 17:02:31 2014 -0400
----------------------------------------------------------------------
.../java/org/apache/accumulo/core/util/LocalityGroupUtil.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/b2ecd1cd/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java b/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
index 2dfbf86..6efd098 100644
--- a/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
+++ b/core/src/main/java/org/apache/accumulo/core/util/LocalityGroupUtil.java
@@ -147,7 +147,7 @@ public class LocalityGroupUtil {
StringBuilder sb = new StringBuilder();
for (Text text : colFams) {
- String ecf = encodeColumnFamily(sb, text.getBytes(), 0, text.getLength());
+ String ecf = encodeColumnFamily(sb, text.getBytes(), text.getLength());
ecfs.add(ecf);
}
@@ -155,10 +155,10 @@ public class LocalityGroupUtil {
}
public static String encodeColumnFamily(ByteSequence bs) {
- return encodeColumnFamily(new StringBuilder(), bs.getBackingArray(), bs.offset(), bs.length());
+ return encodeColumnFamily(new StringBuilder(), bs.getBackingArray(), bs.length());
}
- private static String encodeColumnFamily(StringBuilder sb, byte[] ba, int offset, int len) {
+ private static String encodeColumnFamily(StringBuilder sb, byte[] ba, int len) {
sb.setLength(0);
for (int i = 0; i < len; i++) {