Class DelegateConfiguration
java.lang.Object
io.trino.tempto.internal.configuration.DelegateConfiguration
- All Implemented Interfaces:
Configuration
- Direct Known Subclasses:
YamlConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()booleangetBoolean(String key) booleanbooleangetBooleanMandatory(String key, String errorMessage) protected abstract ConfigurationdoublegetDoubleMandatory(String key) doublegetDoubleMandatory(String key, String errorMessage) intgetIntMandatory(String key) intgetIntMandatory(String key, String errorMessage) getStringList(String key) getStringListMandatory(String key, String errorMessage) getStringMandatory(String key) getStringMandatory(String key, String errorMessage) getStringOrList(String key) Gets value under key and returns as list.getSubconfiguration(String keyPrefix) Returns configuration containing all keys starting with given prefix.inthashCode()booleanlistKeys()Lists all keys in configurationLists configuration key prefixes of length=1
-
Constructor Details
-
DelegateConfiguration
public DelegateConfiguration()
-
-
Method Details
-
getDelegate
-
get
- Specified by:
getin interfaceConfiguration
-
getString
- Specified by:
getStringin interfaceConfiguration
-
getStringMandatory
- Specified by:
getStringMandatoryin interfaceConfiguration
-
getStringMandatory
- Specified by:
getStringMandatoryin interfaceConfiguration
-
getInt
- Specified by:
getIntin interfaceConfiguration
-
getIntMandatory
- Specified by:
getIntMandatoryin interfaceConfiguration
-
getIntMandatory
- Specified by:
getIntMandatoryin interfaceConfiguration
-
getDouble
- Specified by:
getDoublein interfaceConfiguration
-
getDoubleMandatory
- Specified by:
getDoubleMandatoryin interfaceConfiguration
-
getDoubleMandatory
- Specified by:
getDoubleMandatoryin interfaceConfiguration
-
getBoolean
- Specified by:
getBooleanin interfaceConfiguration
-
getBooleanMandatory
- Specified by:
getBooleanMandatoryin interfaceConfiguration
-
getBooleanMandatory
- Specified by:
getBooleanMandatoryin interfaceConfiguration
-
isList
- Specified by:
isListin interfaceConfiguration
-
getStringList
- Specified by:
getStringListin interfaceConfiguration
-
getStringListMandatory
- Specified by:
getStringListMandatoryin interfaceConfiguration
-
getStringListMandatory
- Specified by:
getStringListMandatoryin interfaceConfiguration
-
getStringOrList
Description copied from interface:ConfigurationGets value under key and returns as list. If value is not a list, singleton list is returned. If value is missing, empty list is returned.- Specified by:
getStringOrListin interfaceConfiguration
-
listKeys
Description copied from interface:ConfigurationLists all keys in configuration- Specified by:
listKeysin interfaceConfiguration- Returns:
- List of keys
-
listPrefixes
Description copied from interface:ConfigurationLists configuration key prefixes of length=1E.g. for configuration with keys: a.b.c a.d.e b
listPrefixes() would return ["a", "b"]
- Specified by:
listPrefixesin interfaceConfiguration
-
getSubconfiguration
Description copied from interface:ConfigurationReturns configuration containing all keys starting with given prefix. Keys for returned configuration are stripped of this prefix.- Specified by:
getSubconfigurationin interfaceConfiguration- Parameters:
keyPrefix- Prefix to search for- Returns:
- Configuration containing all keys starting with given prefix.
-
asMap
- Specified by:
asMapin interfaceConfiguration
-
hashCode
public int hashCode() -
equals
-