Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo, mail # dev - Shell setiter/setscaniter commands


Copy link to this message
-
Shell setiter/setscaniter commands
Jim Klucar 2011-11-08, 20:05
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.