accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-384) Add row completion in shell
Date Thu, 30 May 2013 15:19:20 GMT


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.

      Scanner scanner = shell.getConnector().createScanner(tableName, shell.getConnector().securityOperations().getUserAuthorizations(principal));
      IteratorSetting iterConfig = new IteratorSetting(100, FirstEntryInRowIterator.class);
      scanner.setRange(new Range(current_string_token, null));

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:
>             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:

View raw message