Package io.trino.tempto.configuration
Interface Configuration
- All Known Implementing Classes:
AbstractConfiguration,DelegateConfiguration,EmptyConfiguration,HierarchicalConfiguration,MapConfiguration,YamlConfiguration
public interface Configuration
-
Method Summary
Modifier and TypeMethodDescriptionasMap()getBoolean(String key) booleanbooleangetBooleanMandatory(String key, String errorMessage) doublegetDoubleMandatory(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.booleanlistKeys()Lists all keys in configurationLists configuration key prefixes of length=1
-
Method Details
-
get
-
getString
-
getStringMandatory
-
getStringMandatory
-
getInt
-
getIntMandatory
-
getIntMandatory
-
getDouble
-
getDoubleMandatory
-
getDoubleMandatory
-
getBoolean
-
getBooleanMandatory
-
getBooleanMandatory
-
isList
-
getStringList
-
getStringListMandatory
-
getStringListMandatory
-
getStringOrList
Gets 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. -
listKeys
Lists all keys in configuration- Returns:
- List of keys
-
listPrefixes
Lists configuration key prefixes of length=1E.g. for configuration with keys: a.b.c a.d.e b
listPrefixes() would return ["a", "b"]
-
getSubconfiguration
Returns configuration containing all keys starting with given prefix. Keys for returned configuration are stripped of this prefix.- Parameters:
keyPrefix- Prefix to search for- Returns:
- Configuration containing all keys starting with given prefix.
-
asMap
-