public class ConfigurationCopy extends AccumuloConfiguration
AccumuloConfiguration
which holds a flat copy of properties defined in another configurationAccumuloConfiguration.MatchFilter, AccumuloConfiguration.PrefixFilter, AccumuloConfiguration.PropertyFilter
Constructor and Description |
---|
ConfigurationCopy()
Creates a new empty configuration.
|
ConfigurationCopy(Iterable<Map.Entry<String,String>> config)
Creates a new configuration.
|
ConfigurationCopy(Map<String,String> config)
Creates a new configuration.
|
Modifier and Type | Method and Description |
---|---|
String |
get(Property property)
Gets a property value from this configuration.
|
void |
getProperties(Map<String,String> props,
com.google.common.base.Predicate<String> filter)
Returns property key/value pairs in this configuration.
|
void |
set(Property prop,
String value)
Sets a property in this configuration.
|
void |
set(String key,
String value)
Sets a property in this configuration.
|
get, getAllPropertiesWithPrefix, getBoolean, getCount, getDefaultConfiguration, getFraction, getFraction, getMaxFilesPerTablet, getMemoryInBytes, getMemoryInBytes, getPath, getPort, getTableConfiguration, getTimeInMillis, getTimeInMillis, instantiateClassProperty, invalidateCache, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public ConfigurationCopy(Map<String,String> config)
config
- configuration property key/value pairs to copypublic ConfigurationCopy(Iterable<Map.Entry<String,String>> config)
config
- configuration property iterable to use for copyingpublic ConfigurationCopy()
public String get(Property property)
AccumuloConfiguration
get
in class AccumuloConfiguration
property
- property to getpublic void getProperties(Map<String,String> props, com.google.common.base.Predicate<String> filter)
AccumuloConfiguration
getProperties
in class AccumuloConfiguration
props
- properties object to populatefilter
- filter for accepting properties from this configurationpublic void set(Property prop, String value)
prop
- property to setvalue
- property valueCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.