org.apache.accumulo.core.iterators
Interface OptionDescriber

All Known Implementing Classes:
AgeOffFilter, AgeOffFilter, AggregatingIterator, ColumnAgeOffFilter, ColumnAgeOffFilter, ColumnQualifierFilter, Combiner, DeleteFilter, Filter, FilteringIterator, FirstEntryInRowIterator, LargeRowFilter, LargeRowFilter, LongCombiner, MaxCombiner, MinCombiner, NoLabelFilter, NoLabelIterator, RegExFilter, RegExFilter, RegExIterator, ReqVisFilter, SortedKeyIterator, SummingArrayCombiner, SummingCombiner, TimestampFilter, TypedValueCombiner, VersioningIterator, VersioningIterator, VisibilityFilter

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

describeOptions

OptionDescriber.IteratorOptions describeOptions()
Gets an iterator options object that contains information needed to configure this iterator. This object will be used by the accumulo shell to prompt the user to input the appropriate information.

Returns:
an iterator options object

validateOptions

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.

Parameters:
options - a map of option names to option values
Returns:
true if options are valid, false otherwise


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.