accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vi...@apache.org
Subject svn commit: r1487883 - /accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockTable.java
Date Thu, 30 May 2013 15:05:50 GMT
Author: vines
Date: Thu May 30 15:05:49 2013
New Revision: 1487883

URL: http://svn.apache.org/r1487883
Log:
ACCUMULO-1474 - making splits use a concurrent set instead of a standard set


Modified:
    accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockTable.java

Modified: accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockTable.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockTable.java?rev=1487883&r1=1487882&r2=1487883&view=diff
==============================================================================
--- accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockTable.java
(original)
+++ accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/mock/MockTable.java
Thu May 30 15:05:49 2013
@@ -20,13 +20,13 @@ import java.util.Collection;
 import java.util.EnumSet;
 import java.util.HashMap;
 import java.util.Map;
-import java.util.Set;
 import java.util.Map.Entry;
+import java.util.Set;
 import java.util.SortedMap;
 import java.util.SortedSet;
 import java.util.TreeMap;
-import java.util.TreeSet;
 import java.util.concurrent.ConcurrentSkipListMap;
+import java.util.concurrent.ConcurrentSkipListSet;
 
 import org.apache.accumulo.core.client.admin.TimeType;
 import org.apache.accumulo.core.conf.AccumuloConfiguration;
@@ -87,7 +87,7 @@ public class MockTable {
   final Map<String,String> settings;
   Map<String,EnumSet<TablePermission>> userPermissions = new HashMap<String,EnumSet<TablePermission>>();
   private TimeType timeType;
-  SortedSet<Text> splits = new TreeSet<Text>();
+  SortedSet<Text> splits = new ConcurrentSkipListSet<Text>();
   Map<String,Set<Text>> localityGroups = new TreeMap<String, Set<Text>>();
   
   MockTable(boolean limitVersion, TimeType timeType) {



Mime
View raw message