public class SiteConfiguration extends AccumuloConfiguration
AccumuloConfiguration
which first loads any properties set on the command-line (using
the -o option) and then from accumulo.properties. This implementation supports defaulting
undefined property values to a parent configuration's definitions.
The system property "accumulo.properties" can be used to specify the location of the properties file on the classpath or filesystem if the path is prefixed with 'file://'. If the system property is not defined, it defaults to "accumulo.properties" and will look on classpath for file.
This class is a singleton.
Note: Client code should not use this class, and it may be deprecated in the future.
AccumuloConfiguration.ScanExecutorConfig
Constructor and Description |
---|
SiteConfiguration() |
SiteConfiguration(File accumuloPropsFile) |
SiteConfiguration(File accumuloPropsFile,
Map<String,String> overrides) |
SiteConfiguration(URL accumuloPropsLocation) |
SiteConfiguration(URL accumuloPropsLocation,
Map<String,String> overrides) |
Modifier and Type | Method and Description |
---|---|
String |
get(Property property)
Gets a property value from this configuration.
|
static URL |
getAccumuloPropsLocation() |
protected org.apache.hadoop.conf.Configuration |
getHadoopConfiguration() |
void |
getProperties(Map<String,String> props,
Predicate<String> filter)
Returns property key/value pairs in this configuration.
|
void |
getProperties(Map<String,String> props,
Predicate<String> filter,
boolean useDefaults) |
boolean |
isPropertySet(Property prop) |
void |
set(Property property,
String value)
Sets a property.
|
void |
set(String key,
String value)
Sets a property.
|
get, getAllPropertiesWithPrefix, getAsBytes, getBoolean, getCount, getFraction, getMaxFilesPerTablet, getPath, getPort, getScanExecutors, getTimeInMillis, getUpdateCount, invalidateCache, iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SiteConfiguration()
public SiteConfiguration(File accumuloPropsFile)
public SiteConfiguration(URL accumuloPropsLocation)
public static URL getAccumuloPropsLocation()
public String get(Property property)
AccumuloConfiguration
get
in class AccumuloConfiguration
property
- property to getpublic boolean isPropertySet(Property prop)
isPropertySet
in class AccumuloConfiguration
public void getProperties(Map<String,String> props, Predicate<String> filter)
AccumuloConfiguration
getProperties
in class AccumuloConfiguration
props
- properties object to populatefilter
- filter for accepting properties from this configurationpublic void getProperties(Map<String,String> props, Predicate<String> filter, boolean useDefaults)
protected org.apache.hadoop.conf.Configuration getHadoopConfiguration()
public void set(Property property, String value)
property
- property to setvalue
- property valueCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.