|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OptionDescriber
The OptionDescriber interface allows you to set up iterator properties interactively in the accumulo shell. If your iterator and/or filter must implement
this interface for the interactive part. The alternative would be to manually set configuration options with the config -t tableName property=value. If you
go the manual route, be careful to use the correct structure for the property and to set all the properties required for the iterator.
OptionDescribers will need to implement two methods: describeOptions()
which returns an instance of OptionDescriber.IteratorOptions
and
validateOptions(Map<String,String> options)
which is intended to throw an exception or return false if the options are not acceptable.
Nested Class Summary | |
---|---|
static class |
OptionDescriber.IteratorOptions
|
Method Summary | |
---|---|
OptionDescriber.IteratorOptions |
describeOptions()
Gets an iterator options object that contains information needed to configure this iterator. |
boolean |
validateOptions(Map<String,String> options)
Check to see if an options map contains all options required by an iterator and that the option values are in the expected formats. |
Method Detail |
---|
OptionDescriber.IteratorOptions describeOptions()
boolean validateOptions(Map<String,String> options)
options
- a map of option names to option values
IllegalArgumentException
- if there are problems with the options
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |