accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/3] git commit: ACCUMULO-1673 fix 1.5 manual indexing example
Date Thu, 19 Sep 2013 17:42:08 GMT
Updated Branches:
  refs/heads/master fe85c92d2 -> c16539486


ACCUMULO-1673 fix 1.5 manual indexing example

Signed-off-by: Josh Elser <elserj@rpi.edu>


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

Branch: refs/heads/master
Commit: baf134c836dd90d581a71484544d5ced64a7e35a
Parents: 4f2516e
Author: Alex Moundalexis <alexm@cloudera.com>
Authored: Thu Sep 19 11:46:20 2013 -0400
Committer: Josh Elser <elserj@rpi.edu>
Committed: Thu Sep 19 12:46:01 2013 -0400

----------------------------------------------------------------------
 .../latex/accumulo_user_manual/chapters/table_design.tex     | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/baf134c8/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex
----------------------------------------------------------------------
diff --git a/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex b/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex
index a5cc771..1f6deb5 100644
--- a/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex
+++ b/docs/src/main/latex/accumulo_user_manual/chapters/table_design.tex
@@ -151,22 +151,22 @@ sorted order, as is the case with the basic Scanner interface.
 
 Text term = new Text("mySearchTerm");
 
-HashSet<Text> matchingRows = new HashSet<Text>();
+HashSet<Range> matchingRows = new HashSet<Range>();
 
 Scanner indexScanner = createScanner("index", auths);
 indexScanner.setRange(new Range(term, term));
 
 // we retrieve the matching rowIDs and create a set of ranges
 for(Entry<Key,Value> entry : indexScanner)
-    matchingRows.add(new Text(entry.getKey().getColumnQualifier()));
+    matchingRows.add(new Range(entry.getKey().getColumnQualifier()));
 
 // now we pass the set of rowIDs to the batch scanner to retrieve them
 BatchScanner bscan = conn.createBatchScanner("table", auths, 10);
 
 bscan.setRanges(matchingRows);
-bscan.fetchFamily("attributes");
+bscan.fetchColumnFamily("attributes");
 
-for(Entry<Key,Value> entry : scan)
+for(Entry<Key,Value> entry : bscan)
     System.out.println(entry.getValue());
 \end{verbatim}
 \normalsize


Mime
View raw message