Class SummarizerConfiguration
java.lang.Object
org.apache.accumulo.core.client.summary.SummarizerConfiguration
This class encapsulates the configuration needed to instantiate a 
Summarizer. It also
 provides methods and documentation for setting the table properties that configure a Summarizer.- Since:
- 2.0.0
- 
Nested Class SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptionbuilder(Class<? extends Summarizer> clazz) Call this method to initiate a chain of fluent method calls to a create an immutableSummarizerConfigurationbooleanCompares the classname and options to determine equality.static Collection<SummarizerConfiguration>fromTableProperties(Iterable<Map.Entry<String, String>> props) static Collection<SummarizerConfiguration>fromTableProperties(Map<String, String> props) Decodes table properties with the prefixtable.summarizerintoSummarizerConfigurationobjects.The propertyId is used when creating table properties for a summarizer.inthashCode()Hashes the classname and options to create a hashcode.toString()Converts this configuration to Accumulo per table properties.toTableProperties(Collection<SummarizerConfiguration> configurations) Encodes each configuration in the same way astoTableProperties().toTableProperties(SummarizerConfiguration... configurations) Encodes each configuration in the same way astoTableProperties().
- 
Method Details- 
getClassName- Returns:
- the name of a class that implements @link Summarizer.
 
- 
getOptions- Returns:
- custom options for a {link @Summarizer}
 
- 
getPropertyIdThe propertyId is used when creating table properties for a summarizer. It's not used for equality or hashCode for this class.
- 
toString
- 
equalsCompares the classname and options to determine equality.
- 
hashCodepublic int hashCode()Hashes the classname and options to create a hashcode.
- 
toTablePropertiesConverts this configuration to Accumulo per table properties. The returned map has the following key values. The<configId>below is fromgetPropertyId(). The<optionKey>and<optionValue>below are derived from the key values ofgetOptions().table.summarizer.<configId>=<classname> table.summarizer.<configId>.opt.<optionKey1>=<optionValue1> table.summarizer.<configId>.opt.<optionKey2>=<optionValue2> . . . table.summarizer.<configId>.opt.<optionKeyN>=<optionValueN>
- 
toTablePropertiesEncodes each configuration in the same way astoTableProperties().- Throws:
- IllegalArgumentException- when there are duplicate values for- getPropertyId()
 
- 
toTablePropertiespublic static Map<String,String> toTableProperties(Collection<SummarizerConfiguration> configurations) Encodes each configuration in the same way astoTableProperties().- Throws:
- IllegalArgumentException- when there are duplicate values for- getPropertyId()
 
- 
fromTablePropertiesDecodes table properties with the prefixtable.summarizerintoSummarizerConfigurationobjects. Table properties with prefixes other thantable.summarizerare ignored.
- 
fromTablePropertiespublic static Collection<SummarizerConfiguration> fromTableProperties(Iterable<Map.Entry<String, String>> props) - See Also:
 
- 
builderCall this method to initiate a chain of fluent method calls to a create an immutableSummarizerConfiguration- Parameters:
- className- The fully qualified name of a class that implements- Summarizer.
 
- 
builder- See Also:
 
 
-