incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [2/2] git commit: Fixed some imports and formatting issues.
Date Tue, 25 Sep 2012 12:22:47 GMT
Fixed some imports and formatting issues.


Project: http://git-wip-us.apache.org/repos/asf/incubator-blur/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-blur/commit/ac5f2647
Tree: http://git-wip-us.apache.org/repos/asf/incubator-blur/tree/ac5f2647
Diff: http://git-wip-us.apache.org/repos/asf/incubator-blur/diff/ac5f2647

Branch: refs/heads/master
Commit: ac5f264719753ae66a1de82c50909a298418d900
Parents: 3ff1403
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Tue Sep 25 08:22:17 2012 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Tue Sep 25 08:22:17 2012 -0400

----------------------------------------------------------------------
 .../src/test/java/org/apache/blur/MiniCluster.java |   15 ++++++++++-----
 .../apache/blur/lucene/search/FacetQueryTest.java  |    5 ++---
 2 files changed, 12 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ac5f2647/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java
----------------------------------------------------------------------
diff --git a/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java b/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java
index 86791b2..1d03932 100644
--- a/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java
+++ b/src/blur-core/src/test/java/org/apache/blur/MiniCluster.java
@@ -17,14 +17,20 @@ package org.apache.blur;
  * limitations under the License.
  */
 
-import static org.apache.blur.utils.BlurConstants.*;
+import static org.apache.blur.utils.BlurConstants.BLUR_CONTROLLER_BIND_PORT;
+import static org.apache.blur.utils.BlurConstants.BLUR_GUI_CONTROLLER_PORT;
+import static org.apache.blur.utils.BlurConstants.BLUR_GUI_SHARD_PORT;
+import static org.apache.blur.utils.BlurConstants.BLUR_SHARD_BIND_PORT;
+import static org.apache.blur.utils.BlurConstants.BLUR_SHARD_BLOCKCACHE_DIRECT_MEMORY_ALLOCATION;
+import static org.apache.blur.utils.BlurConstants.BLUR_SHARD_BLOCKCACHE_SLAB_COUNT;
+import static org.apache.blur.utils.BlurConstants.BLUR_SHARD_SAFEMODEDELAY;
+import static org.apache.blur.utils.BlurConstants.BLUR_ZOOKEEPER_CONNECTION;
 
 import java.io.File;
 import java.io.IOException;
 import java.lang.reflect.Field;
 import java.net.URI;
 import java.util.ArrayList;
-import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Properties;
@@ -34,7 +40,6 @@ import java.util.concurrent.Executors;
 import java.util.concurrent.Future;
 import java.util.concurrent.ThreadPoolExecutor;
 
-import org.apache.blur.BlurConfiguration;
 import org.apache.blur.log.Log;
 import org.apache.blur.log.LogFactory;
 import org.apache.blur.thrift.BlurClient;
@@ -44,6 +49,8 @@ import org.apache.blur.thrift.ThriftBlurControllerServer;
 import org.apache.blur.thrift.ThriftBlurShardServer;
 import org.apache.blur.thrift.ThriftServer;
 import org.apache.blur.thrift.generated.AnalyzerDefinition;
+import org.apache.blur.thrift.generated.Blur.Client;
+import org.apache.blur.thrift.generated.Blur.Iface;
 import org.apache.blur.thrift.generated.BlurException;
 import org.apache.blur.thrift.generated.BlurQuery;
 import org.apache.blur.thrift.generated.BlurResults;
@@ -52,8 +59,6 @@ import org.apache.blur.thrift.generated.Record;
 import org.apache.blur.thrift.generated.Row;
 import org.apache.blur.thrift.generated.RowMutation;
 import org.apache.blur.thrift.generated.TableDescriptor;
-import org.apache.blur.thrift.generated.Blur.Client;
-import org.apache.blur.thrift.generated.Blur.Iface;
 import org.apache.blur.utils.BlurUtil;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FileSystem;

http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/ac5f2647/src/blur-core/src/test/java/org/apache/blur/lucene/search/FacetQueryTest.java
----------------------------------------------------------------------
diff --git a/src/blur-core/src/test/java/org/apache/blur/lucene/search/FacetQueryTest.java
b/src/blur-core/src/test/java/org/apache/blur/lucene/search/FacetQueryTest.java
index 9657b7c..28b80bb 100644
--- a/src/blur-core/src/test/java/org/apache/blur/lucene/search/FacetQueryTest.java
+++ b/src/blur-core/src/test/java/org/apache/blur/lucene/search/FacetQueryTest.java
@@ -20,7 +20,6 @@ package org.apache.blur.lucene.search;
 import java.io.IOException;
 import java.util.concurrent.atomic.AtomicLongArray;
 
-import org.apache.blur.lucene.search.FacetQuery;
 import org.apache.lucene.analysis.KeywordAnalyzer;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.document.Field;
@@ -36,7 +35,6 @@ import org.apache.lucene.search.BooleanQuery;
 import org.apache.lucene.search.IndexSearcher;
 import org.apache.lucene.search.Query;
 import org.apache.lucene.search.TermQuery;
-import org.apache.lucene.search.TopDocs;
 import org.apache.lucene.store.LockObtainFailedException;
 import org.apache.lucene.store.RAMDirectory;
 import org.apache.lucene.util.Version;
@@ -77,8 +75,9 @@ public class FacetQueryTest {
     FacetQuery facetQuery = new FacetQuery(bq, facets, counts);
 
     IndexSearcher indexSearcher = new IndexSearcher(reader);
-    TopDocs topDocs = indexSearcher.search(facetQuery, 10);
+    indexSearcher.search(facetQuery, 10);
 
+    //@TODO add actual assertion
     for (int i = 0; i < counts.length(); i++) {
       System.out.println(counts.get(i));
     }


Mime
View raw message