public class SummarizerConfiguration extends Object
Summarizer
. It also
provides methods and documentation for setting the table properties that configure a Summarizer.Modifier and Type | Class and Description |
---|---|
static class |
SummarizerConfiguration.Builder |
Modifier and Type | Method and Description |
---|---|
static SummarizerConfiguration.Builder |
builder(Class<? extends Summarizer> clazz) |
static SummarizerConfiguration.Builder |
builder(String className)
Call this method to initiate a chain of fluent method calls to a create an immutable
SummarizerConfiguration |
boolean |
equals(Object o)
Compares 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 prefix
table.summarizer into
SummarizerConfiguration objects. |
String |
getClassName() |
Map<String,String> |
getOptions() |
String |
getPropertyId()
The propertyId is used to when creating table properties for a summarizer.
|
int |
hashCode()
Hashes the classname and options to create a hashcode.
|
String |
toString() |
Map<String,String> |
toTableProperties()
Converts this configuration to Accumulo per table properties.
|
static Map<String,String> |
toTableProperties(Collection<SummarizerConfiguration> configurations)
Encodes each configuration in the same way as
toTableProperties() . |
static Map<String,String> |
toTableProperties(SummarizerConfiguration... configurations)
Encodes each configuration in the same way as
toTableProperties() . |
public String getClassName()
Summarizer
.public String getPropertyId()
public boolean equals(Object o)
public int hashCode()
public Map<String,String> toTableProperties()
<configId>
below is from getPropertyId()
. The
<optionKey>
and <optionValue>
below are derived from the key values of
getOptions()
.
table.summarizer.<configId>=<classname>
table.summarizer.<configId>.opt.<optionKey1>=<optionValue1>
table.summarizer.<configId>.opt.<optionKey2>=<optionValue2>
.
.
.
table.summarizer.<configId>.opt.<optionKeyN>=<optionValueN>
public static Map<String,String> toTableProperties(SummarizerConfiguration... configurations)
toTableProperties()
.IllegalArgumentException
- when there are duplicate values for getPropertyId()
public static Map<String,String> toTableProperties(Collection<SummarizerConfiguration> configurations)
toTableProperties()
.IllegalArgumentException
- when there are duplicate values for getPropertyId()
public static Collection<SummarizerConfiguration> fromTableProperties(Map<String,String> props)
table.summarizer
into
SummarizerConfiguration
objects. Table properties with prefixes other than
table.summarizer
are ignored.public static Collection<SummarizerConfiguration> fromTableProperties(Iterable<Map.Entry<String,String>> props)
fromTableProperties(Map)
public static SummarizerConfiguration.Builder builder(String className)
SummarizerConfiguration
className
- The fully qualified name of a class that implements Summarizer
.public static SummarizerConfiguration.Builder builder(Class<? extends Summarizer> clazz)
builder(String)
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.