Fixed with ACCUMULO-4100 On Mon, Nov 30, 2015 at 4:53 PM Josh Elser <[email protected]> wrote:
> Hi Kent, > > Thanks for letting us know. You're more than welcome to create an issue > on JIRA [1] for Accumulo for documentation. > > As always, we're even happier to get a patch to fix it too :). The > usermanual can be found in the docs/ directory [2]. We probably have the > typo in all actively maintained Git branches, too (1.6, 1.7 and master). > > [1] https://issues.apache.org/jira/secure/CreateIssue!default.jspa > [2] https://github.com/apache/accumulo/tree/1.7/docs/src/main/asciidoc > > Kent McHenry wrote: > > Hi, > > > > I'm not sure how to report a typo in the documentation, but here goes: > > > > On this page: > > https://accumulo.apache.org/1.7/accumulo_user_manual.html#_batchscanner > > > > In the following code sample "bscan" is created in the first line, but in > > the ending for loop it is incorrectly referenced by "scan" (without the > b): > > > > ArrayList<Range> ranges = new ArrayList<Range>(); // populate list of > > ranges ... BatchScanner bscan = conn.createBatchScanner("table", auths, > 10); > > bscan.setRanges(ranges); bscan.fetchColumnFamily("attributes"); > > for(Entry<Key,Value> > > entry : scan) { System.out.println(entry.getValue()); } > > > > Cheers, > > Kent > > >
