Class OptionDescriber.IteratorOptions
java.lang.Object
org.apache.accumulo.core.iterators.OptionDescriber.IteratorOptions
- Enclosing interface:
- OptionDescriber
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNamedOption
(String name, String description) void
addUnnamedOption
(String description) getName()
void
setDescription
(String description) void
void
setNamedOptions
(Map<String, String> namedOptions) void
setUnnamedOptionDescriptions
(List<String> unnamedOptionDescriptions)
-
Field Details
-
namedOptions
-
unnamedOptionDescriptions
-
name
-
description
-
-
Constructor Details
-
IteratorOptions
public IteratorOptions(String name, String description, Map<String, String> namedOptions, List<String> unnamedOptionDescriptions) IteratorOptions holds the name, description, and option information for an iterator.- Parameters:
name
- is the distinguishing name for the iterator or filterdescription
- is a description of the iterator or filternamedOptions
- is a map from specifically named options to their descriptions (null if unused) e.g., the AgeOffFilter requires a parameter called "ttl", so its namedOptions = Collections.singletonMap("ttl", "time to live (milliseconds)")unnamedOptionDescriptions
- is a list of descriptions of additional options that don't have fixed names (null if unused). The descriptions are intended to describe a category, and the user will provide parameter names and values in that category; e.g., the FilteringIterator needs a list of Filters intended to be named by their priority numbers, so it's
unnamedOptionDescriptions = Collections
.singletonList("<filterPriorityNumber> <ageoff|regex|filterClass>")
-
-
Method Details
-
getNamedOptions
-
getUnnamedOptionDescriptions
-
getName
-
getDescription
-
setNamedOptions
-
setUnnamedOptionDescriptions
-
setName
-
setDescription
-
addNamedOption
-
addUnnamedOption
-