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
AnAccumuloConfiguration
that 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 String
get(Property property)
Gets a property value from this configuration.static DefaultConfiguration
getInstance()
Gets a default configuration.void
getProperties(Map<String,String> props, Predicate<String> filter)
Returns property key/value pairs in this configuration.boolean
isPropertySet(Property prop)
-
Methods inherited from class org.apache.accumulo.core.conf.AccumuloConfiguration
get, getAllCryptoProperties, getAllPropertiesWithPrefix, getAllPropertiesWithPrefixStripped, getAsBytes, getBoolean, getCount, getFraction, getMaxFilesPerTablet, getParent, getPath, getPort, getPortStream, getScanExecutors, getTimeInMillis, getUpdateCount, invalidateCache, iterator, newDeriver, resolve, stream
-
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:AccumuloConfiguration
Gets a property value from this configuration.- Specified by:
get
in classAccumuloConfiguration
- Parameters:
property
- property to get- Returns:
- property value
-
getProperties
public void getProperties(Map<String,String> props, Predicate<String> filter)
Description copied from class:AccumuloConfiguration
Returns 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:
getProperties
in classAccumuloConfiguration
- Parameters:
props
- properties object to populatefilter
- filter for accepting properties from this configuration
-
isPropertySet
public boolean isPropertySet(Property prop)
- Specified by:
isPropertySet
in classAccumuloConfiguration
-
-