Package org.apache.accumulo.core.conf
Class DefaultConfiguration
- java.lang.Object
-
- org.apache.accumulo.core.conf.AccumuloConfiguration
-
- org.apache.accumulo.core.conf.DefaultConfiguration
-
public class DefaultConfiguration extends AccumuloConfiguration
AnAccumuloConfigurationthat contains only default values for properties. This class is a singleton.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.accumulo.core.conf.AccumuloConfiguration
AccumuloConfiguration.Deriver<T>, AccumuloConfiguration.ScanExecutorConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringget(Property property)Gets a property value from this configuration.static DefaultConfigurationgetInstance()Gets a default configuration.voidgetProperties(Map<String,String> props, Predicate<String> filter)Returns property key/value pairs in this configuration.booleanisPropertySet(Property prop, boolean cacheAndWatch)-
Methods inherited from class org.apache.accumulo.core.conf.AccumuloConfiguration
get, getAllPropertiesWithPrefix, getAllPropertiesWithPrefixStripped, getAsBytes, getBoolean, getCount, getFraction, getMaxFilesPerTablet, getPath, getPort, getScanExecutors, getTimeInMillis, getUpdateCount, invalidateCache, iterator, newDeriver, resolve
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getInstance
public static DefaultConfiguration getInstance()
Gets a default configuration.- Returns:
- default configuration
-
get
public String get(Property property)
Description copied from class:AccumuloConfigurationGets a property value from this configuration.- Specified by:
getin classAccumuloConfiguration- Parameters:
property- property to get- Returns:
- property value
-
getProperties
public void getProperties(Map<String,String> props, Predicate<String> filter)
Description copied from class:AccumuloConfigurationReturns property key/value pairs in this configuration. The pairs include those defined in this configuration which pass the given filter, and those supplied from the parent configuration which are not included from here.- Specified by:
getPropertiesin classAccumuloConfiguration- Parameters:
props- properties object to populatefilter- filter for accepting properties from this configuration
-
isPropertySet
public boolean isPropertySet(Property prop, boolean cacheAndWatch)
- Overrides:
isPropertySetin classAccumuloConfiguration
-
-