Class SummarizerConfiguration.Builder
java.lang.Object
org.apache.accumulo.core.client.summary.SummarizerConfiguration.Builder
- Enclosing class:
- SummarizerConfiguration
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionAdds an option that Summarizers can use when constructing Collectors and Combiners.Adds an option that Summarizers can use when constructing Collectors and Combiners.addOptions
(String... keyValuePairs) Convenience method for adding multiple options.addOptions
(Map<String, String> options) build()
setPropertyId
(String propId) Sets the id used when generating table properties.
-
Method Details
-
setPropertyId
Sets the id used when generating table properties. Setting this is optional. If not set, an id is generated using hashing that will likely be unique.- Parameters:
propId
- This id is used when converting aSummarizerConfiguration
to table properties. Since tables can have multiple summarizers, make sure its unique.- See Also:
-
addOption
Adds an option that Summarizers can use when constructing Collectors and Combiners.- Returns:
- this
- See Also:
-
addOption
Adds an option that Summarizers can use when constructing Collectors and Combiners.- Returns:
- this
- See Also:
-
addOptions
Convenience method for adding multiple options. The followingbuilder.addOptions("opt1", "val1", "opt2", "val2", "opt3", "val3")
is equivalent to
builder.addOption("opt1", "val1"); builder.addOption("opt2", "val2"); builder.addOption("opt3", "val3");
- Parameters:
keyValuePairs
- This array must have an even and positive number of elements.- Returns:
- this
- See Also:
-
addOptions
- Parameters:
options
- Each entry in the map is passed toaddOption(String, String)
- Returns:
- this
- See Also:
-
build
-