@InterfaceStability.Evolving
public class DataSourceOptions
extends Object
Constructor and Description |
---|
DataSourceOptions(java.util.Map<String,String> originalMap) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<String,String> |
asMap() |
static DataSourceOptions |
empty() |
java.util.Optional<String> |
get(String key)
Returns the option value to which the specified key is mapped, case-insensitively.
|
boolean |
getBoolean(String key,
boolean defaultValue)
Returns the boolean value to which the specified key is mapped,
or defaultValue if there is no mapping for the key.
|
double |
getDouble(String key,
double defaultValue)
Returns the double value to which the specified key is mapped,
or defaultValue if there is no mapping for the key.
|
int |
getInt(String key,
int defaultValue)
Returns the integer value to which the specified key is mapped,
or defaultValue if there is no mapping for the key.
|
long |
getLong(String key,
long defaultValue)
Returns the long value to which the specified key is mapped,
or defaultValue if there is no mapping for the key.
|
public DataSourceOptions(java.util.Map<String,String> originalMap)
public static DataSourceOptions empty()
public java.util.Map<String,String> asMap()
public java.util.Optional<String> get(String key)
public boolean getBoolean(String key, boolean defaultValue)
public int getInt(String key, int defaultValue)
public long getLong(String key, long defaultValue)
public double getDouble(String key, double defaultValue)