accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From md...@apache.org
Subject [2/6] git commit: ACCUMULO-1897 removes unneeded constructor for MemKeyConversionIterator.
Date Fri, 04 Apr 2014 02:01:35 GMT
ACCUMULO-1897 removes unneeded constructor for MemKeyConversionIterator.

Signed-off-by: Mike Drob <mdrob@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 <busbey@cloudera.com>
Authored: Thu Apr 3 01:27:26 2014 -0700
Committer: Mike Drob <mdrob@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


Mime
View raw message