You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by md...@apache.org on 2014/04/04 04:01:35 UTC

[2/6] git commit: ACCUMULO-1897 removes unneeded constructor for MemKeyConversionIterator.

ACCUMULO-1897 removes unneeded constructor for MemKeyConversionIterator.

Signed-off-by: Mike Drob <md...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/75d62a46
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/75d62a46
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/75d62a46

Branch: refs/heads/1.6.0-SNAPSHOT
Commit: 75d62a46279aa448c386d7408a4268b0fe842c20
Parents: 22a6209
Author: Sean Busbey <bu...@cloudera.com>
Authored: Thu Apr 3 01:27:26 2014 -0700
Committer: Mike Drob <md...@cloudera.com>
Committed: Thu Apr 3 18:55:12 2014 -0700

----------------------------------------------------------------------
 .../accumulo/server/tabletserver/InMemoryMap.java       | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/75d62a46/server/src/main/java/org/apache/accumulo/server/tabletserver/InMemoryMap.java
----------------------------------------------------------------------
diff --git a/server/src/main/java/org/apache/accumulo/server/tabletserver/InMemoryMap.java b/server/src/main/java/org/apache/accumulo/server/tabletserver/InMemoryMap.java
index f914c33..914cd85 100644
--- a/server/src/main/java/org/apache/accumulo/server/tabletserver/InMemoryMap.java
+++ b/server/src/main/java/org/apache/accumulo/server/tabletserver/InMemoryMap.java
@@ -123,19 +123,9 @@ class MemKeyConversionIterator extends WrappingIterator implements Interruptible
     setSource(source);
   }
 
-  public MemKeyConversionIterator(SortedKeyValueIterator<Key,Value> source, MemKey startKey) {
-    this(source);
-    try {
-      if (currKey != null)
-        currKey = (MemKey) startKey.clone();
-    } catch (CloneNotSupportedException e) {
-      // MemKey is supported
-    }
-  }
-
   @Override
   public SortedKeyValueIterator<Key,Value> deepCopy(IteratorEnvironment env) {
-    return new MemKeyConversionIterator(getSource().deepCopy(env), currKey);
+    return new MemKeyConversionIterator(getSource().deepCopy(env));
   }
   
   @Override