Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-129

shell requires iterators to implement OptionDescriber

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.3.5-incubating
    • 1.4.0
    • client
    • None

    Description

      Jim Klucar writes:

      Currently the org.apache.accumulo.core.util.shell.commands.SetIterCommand
      requires that the iterator implement the OptionDescriber interface (line
      128). This prevents using some useful iterators at the shell, for instance
      the DebugIterator. A nice way to learn how iterators work is to set this
      iterator, use "debug on" at the shell and start scanning different ways.

      There are two possible solutions that I see. One is to make all iterators
      delivered with Accumulo implement OptionDescriber, and document this shell
      quirk, or to use reflection in the shell code to see if the iterator class
      implements OptionDescriber, otherwise just ensure it implements
      SortedKeyValueIterator.

      Attachments

        Activity

          People

            billie Billie Rinaldi
            ecn Eric C. Newton
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: