[ https://issues.apache.org/jira/browse/ACCUMULO-384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13670403#comment-13670403 ]
Keith Turner commented on ACCUMULO-384: --------------------------------------- Took a look at patch v1. It seems to pull in all rows, it should just get a few. Should also get the first entry in each row and start scanning at current_string_token. Below is an example of how to set the scanner up for this. {code:java} Scanner scanner = shell.getConnector().createScanner(tableName, shell.getConnector().securityOperations().getUserAuthorizations(principal)); IteratorSetting iterConfig = new IteratorSetting(100, FirstEntryInRowIterator.class); scanner.addScanIterator(iterConfig); scanner.setRange(new Range(current_string_token, null)); {code} I tried using it, its really cool to press tab after typing scan -r and get a list of rows. > Add row completion in shell > --------------------------- > > Key: ACCUMULO-384 > URL: https://issues.apache.org/jira/browse/ACCUMULO-384 > Project: Accumulo > Issue Type: Improvement > Reporter: Keith Turner > Assignee: Sean Hickey > Labels: newbie > Attachments: ACCUMULO-384.v1.patch > > > It would be nice to have row completion in the shell for commands that take a > row as an arguments. Could display the first 10 or 20 rows that match the > given prefix. For large rows (lots of columns) would probably need to use an > iterator to efficiently skip from one row to the next. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira