Package com.clickhouse.config
Class ClickHouseDefaultOption
java.lang.Object
com.clickhouse.config.ClickHouseDefaultOption
- All Implemented Interfaces:
ClickHouseOption,Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionClickHouseDefaultOption(String name, T defaultValue) ClickHouseDefaultOption(String name, T defaultValue, boolean sensitive) -
Method Summary
Modifier and TypeMethodDescriptionGets default value of the option.Gets description of the option.getKey()Gets key of the option.Class<? extends Serializable>Gets value type of the option.booleanChecks whether the option is sensitive or not.name()Gets name of the option.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.clickhouse.config.ClickHouseOption
getDefaultValueFromEnvVar, getDefaultValueFromSysProp, getEffectiveDefaultValue, getEffectiveValue, getEnvironmentVariable, getPrefix, getSystemProperty
-
Constructor Details
-
ClickHouseDefaultOption
-
ClickHouseDefaultOption
-
-
Method Details
-
getDefaultValue
Description copied from interface:ClickHouseOptionGets default value of the option.- Specified by:
getDefaultValuein interfaceClickHouseOption- Returns:
- default value of the option
-
getDescription
Description copied from interface:ClickHouseOptionGets description of the option.- Specified by:
getDescriptionin interfaceClickHouseOption- Returns:
- description of the option
-
getKey
Description copied from interface:ClickHouseOptionGets key of the option.- Specified by:
getKeyin interfaceClickHouseOption- Returns:
- key of the option
-
getValueType
Description copied from interface:ClickHouseOptionGets value type of the option.- Specified by:
getValueTypein interfaceClickHouseOption- Returns:
- value type of the option, defaults to String
-
isSensitive
public boolean isSensitive()Description copied from interface:ClickHouseOptionChecks whether the option is sensitive or not. A sensitive option should be used carefully and be masked in logging for security reason.- Specified by:
isSensitivein interfaceClickHouseOption- Returns:
- true if the option is sensitive; false otherwise
-
name
Description copied from interface:ClickHouseOptionGets name of the option.- Specified by:
namein interfaceClickHouseOption- Returns:
- name of the option
-