incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [01/19] git commit: Updated the example.
Date Thu, 23 May 2013 19:39:40 GMT
Updated Branches:
  refs/heads/0.1.5 0e02da8c8 -> 7abb183c9


Updated the example.


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

Branch: refs/heads/0.1.5
Commit: 79d9fcec884ae0f6ac423cdc30804e5550b55c91
Parents: 6808df1
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed May 22 10:49:50 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed May 22 10:49:50 2013 -0400

----------------------------------------------------------------------
 .../apache/blur/testsuite/SimpleQueryExample.java  |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/79d9fcec/src/blur-testsuite/src/main/java/org/apache/blur/testsuite/SimpleQueryExample.java
----------------------------------------------------------------------
diff --git a/src/blur-testsuite/src/main/java/org/apache/blur/testsuite/SimpleQueryExample.java
b/src/blur-testsuite/src/main/java/org/apache/blur/testsuite/SimpleQueryExample.java
index f6395dc..890c180 100644
--- a/src/blur-testsuite/src/main/java/org/apache/blur/testsuite/SimpleQueryExample.java
+++ b/src/blur-testsuite/src/main/java/org/apache/blur/testsuite/SimpleQueryExample.java
@@ -24,8 +24,6 @@ import org.apache.blur.thrift.generated.BlurException;
 import org.apache.blur.thrift.generated.BlurQuery;
 import org.apache.blur.thrift.generated.BlurResult;
 import org.apache.blur.thrift.generated.BlurResults;
-import org.apache.blur.thrift.generated.FetchResult;
-import org.apache.blur.thrift.generated.Selector;
 import org.apache.blur.thrift.generated.SimpleQuery;
 import org.apache.thrift.TException;
 
@@ -44,12 +42,9 @@ public class SimpleQueryExample {
     simpleQuery.setQueryStr(query);
     BlurResults results = client.query(tableName, blurQuery);
     System.out.println("Total Results: " + results.totalResults);
-    
+
     for (BlurResult result : results.getResults()) {
-      String locationId = result.getLocationId();
-      System.out.println(locationId);
-      FetchResult fetchRow = client.fetchRow(tableName, new Selector().setLocationId(locationId));
-      System.out.println(fetchRow);
+      System.out.println(result);
     }
   }
 }


Mime
View raw message