Updated Branches: refs/heads/1.5.1-SNAPSHOT 4f2516e6b -> 3c4f4f065
ACCUMULO-1673 fix 1.5 manual indexing example Signed-off-by: Josh Elser <[email protected]> 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/1.5.1-SNAPSHOT Commit: baf134c836dd90d581a71484544d5ced64a7e35a Parents: 4f2516e Author: Alex Moundalexis <[email protected]> Authored: Thu Sep 19 11:46:20 2013 -0400 Committer: Josh Elser <[email protected]> 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
