Class DescriptorProperties
Note to implementers: Please try to reuse key names as much as possible. Key-names should be hierarchical and lower case. Use "-" instead of dots or camel case. E.g., connector.schema.start-from = from-earliest. Try not to use the higher level in a key-name. E.g., instead of connector.kafka.kafka-version use connector.kafka.version.
Properties with key normalization enabled contain only lower-case keys.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated.static final StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasMap()Deprecated.Returns the properties as a map copy.asPrefixedMap(String prefix) Deprecated.Returns the properties as a map copy with a prefix key.booleancontainsKey(String key) Deprecated.Returns if the given key is contained.booleanDeprecated.<E> List<E>Deprecated.Returns all array elements under a given existing key.getBigDecimal(String key) Deprecated.Returns a big decimal value under the given existing key.booleangetBoolean(String key) Deprecated.Returns a boolean value under the given existing key.byteDeprecated.Returns a byte value under the given existing key.getCharacter(String key) Deprecated.Returns a character value under the given existing key.<T> Class<T>Deprecated.Returns a class value under the given existing key.getDataType(String key) Deprecated.Returns the DataType under the given existing key.doubleDeprecated.Returns a double value under the given existing key.getDuration(String key) Deprecated.Returns a javaDurationunder the given existing key.getFixedIndexedProperties(String key, List<String> subKeys) Deprecated.Returns the property keys of fixed indexed properties.floatDeprecated.Returns a float value under the given given existing key.getIndexedProperty(String key, String subKey) Deprecated.Returns all properties under a given key that contains an index in between.intDeprecated.Returns an integer value under the given existing key.longDeprecated.Returns a long value under the given existing key.org.apache.flink.configuration.MemorySizegetMemorySize(String key) Deprecated.Returns a FlinkMemorySizeunder the given existing key.getOptionalArray(String key, Function<String, E> keyMapper) Deprecated.Returns all array elements under a given key if it exists.Deprecated.Returns a big decimal value under the given key if it exists.getOptionalBoolean(String key) Deprecated.Returns a boolean value under the given key if it exists.getOptionalByte(String key) Deprecated.Returns a byte value under the given key if it exists.Deprecated.Returns a character value under the given key if it exists.getOptionalClass(String key, Class<T> superClass) Deprecated.Returns a class value under the given key if it exists.Deprecated.Returns the DataType under the given key if it exists.getOptionalDouble(String key) Deprecated.Returns a double value under the given key if it exists.Deprecated.Returns a JavaDurationunder the given key if it exists.getOptionalFloat(String key) Deprecated.Returns a float value under the given key if it exists.getOptionalInt(String key) Deprecated.Returns an integer value under the given key if it exists.getOptionalLong(String key) Deprecated.Returns a long value under the given key if it exists.Optional<org.apache.flink.configuration.MemorySize>Deprecated.Returns a FlinkMemorySizeunder the given key if it exists.getOptionalShort(String key) Deprecated.Returns a short value under the given key if it exists.getOptionalString(String key) Deprecated.Returns a string value under the given key if it exists.Deprecated.Returns a table schema under the given key if it exists.Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>>getOptionalType(String key) Deprecated.Returns the type information under the given key if it exists.Deprecated.Returns partition keys.getPropertiesWithPrefix(String prefix) Deprecated.Returns a map of properties whose key starts with the given prefix, and the prefix is removed upon return.shortDeprecated.Returns a short value under the given existing key.Deprecated.Returns a string value under the given existing key.getTableSchema(String key) Deprecated.Returns a table schema under the given existing key.org.apache.flink.api.common.typeinfo.TypeInformation<?>Deprecated.Returns the type information under the given existing key.getVariableIndexedProperties(String key, List<String> requiredSubKeys) Deprecated.Returns the property keys of variable indexed properties.inthashCode()Deprecated.booleanDeprecated.Returns if a given prefix exists in the properties.booleanDeprecated.Returns if a value under key is exactly equal to the given value.Deprecated.Returns an empty validation logic.voidputBoolean(String key, boolean b) Deprecated.Adds a boolean under the given key.voidputCharacter(String key, char c) Deprecated.Adds a character under the given key.voidDeprecated.Adds a class under the given key.voidDeprecated.Adds an indexed sequence of properties (with sub-properties) under a common key.voidDeprecated.Adds an indexed sequence of properties (with sub-properties) under a common key.voidDeprecated.Adds an indexed mapping of properties under a common key.voidDeprecated.Adds an integer under the given key.voidDeprecated.Adds a long under the given key.voidputMemorySize(String key, org.apache.flink.configuration.MemorySize size) Deprecated.Adds a FlinkMemorySizeunder the given key.voidputPartitionKeys(List<String> keys) Deprecated.Adds table partition keys.voidputProperties(Map<String, String> properties) Deprecated.Adds a set of properties.voidputProperties(DescriptorProperties otherProperties) Deprecated.Adds a set of descriptor properties.voidputPropertiesWithPrefix(String prefix, Map<String, String> prop) Deprecated.Adds a properties map by appending the given prefix to element keys with a dot.voidDeprecated.Adds a string under the given key.voidputTableSchema(String key, TableSchema schema) Deprecated.Adds a table schema under the given key.toString()Deprecated.static StringDeprecated.static StringDeprecated.static StringDeprecated.voidvalidateArray(String key, Consumer<String> elementValidation, int minLength) Deprecated.Validates an array of values.voidvalidateArray(String key, Consumer<String> elementValidation, int minLength, int maxLength) Deprecated.Validates an array of values.voidvalidateBigDecimal(String key, boolean isOptional) Deprecated.Validates a big decimal property.voidvalidateBigDecimal(String key, boolean isOptional, BigDecimal min, BigDecimal max) Deprecated.Validates a big decimal property.voidvalidateBoolean(String key, boolean isOptional) Deprecated.Validates that a boolean value is present under the given key.voidvalidateByte(String key, boolean isOptional) Deprecated.Validates a byte property.voidvalidateByte(String key, boolean isOptional, byte min) Deprecated.Validates a byte property.voidvalidateByte(String key, boolean isOptional, byte min, byte max) Deprecated.Validates a byte property.voidvalidateDataType(String key, String fallbackKey, boolean isOptional) Deprecated.Validates a data type property.voidvalidateDouble(String key, boolean isOptional) Deprecated.Validates a double property.voidvalidateDouble(String key, boolean isOptional, double min) Deprecated.Validates a double property.voidvalidateDouble(String key, boolean isOptional, double min, double max) Deprecated.Validates a double property.voidvalidateDuration(String key, boolean isOptional, int precision) Deprecated.Validates a JavaDuration.voidvalidateDuration(String key, boolean isOptional, int precision, long min) Deprecated.Validates a JavaDuration.voidvalidateDuration(String key, boolean isOptional, int precision, long min, long max) Deprecated.Validates a JavaDuration.voidDeprecated.Validates an enum property with a set of validation logic for each enum value.voidvalidateEnumValues(String key, boolean isOptional, List<String> values) Deprecated.Validates an enum property with a set of enum values.voidvalidateExclusion(String key) Deprecated.Validates that the given key is not included in these properties.voidvalidateFixedIndexedProperties(String key, boolean allowEmpty, Map<String, Consumer<String>> subKeyValidation) Deprecated.Validation for fixed indexed properties.voidvalidateFloat(String key, boolean isOptional) Deprecated.Validates a float property.voidvalidateFloat(String key, boolean isOptional, float min) Deprecated.Validates a float property.voidvalidateFloat(String key, boolean isOptional, float min, float max) Deprecated.Validates a float property.voidvalidateInt(String key, boolean isOptional) Deprecated.Validates an integer property.voidvalidateInt(String key, boolean isOptional, int min) Deprecated.Validates an integer property.voidvalidateInt(String key, boolean isOptional, int min, int max) Deprecated.Validates an integer property.voidvalidateLong(String key, boolean isOptional) Deprecated.Validates an long property.voidvalidateLong(String key, boolean isOptional, long min) Deprecated.Validates an long property.voidvalidateLong(String key, boolean isOptional, long min, long max) Deprecated.Validates an long property.voidvalidateMemorySize(String key, boolean isOptional, int precision) Deprecated.Validates a FlinkMemorySize.voidvalidateMemorySize(String key, boolean isOptional, int precision, long min) Deprecated.Validates a FlinkMemorySize.voidvalidateMemorySize(String key, boolean isOptional, int precision, long min, long max) Deprecated.Validates a FlinkMemorySize.voidvalidatePrefixExclusion(String prefix) Deprecated.Validates that the given prefix is not included in these properties.voidvalidateShort(String key, boolean isOptional) Deprecated.Validates a short property.voidvalidateShort(String key, boolean isOptional, short min) Deprecated.Validates a short property.voidvalidateShort(String key, boolean isOptional, short min, short max) Deprecated.Validates a short property.voidvalidateString(String key, boolean isOptional) Deprecated.Validates a string property.voidvalidateString(String key, boolean isOptional, int minLen) Deprecated.Validates a string property.voidvalidateString(String key, boolean isOptional, int minLen, int maxLen) Deprecated.Validates a string property.voidvalidateTableSchema(String key, boolean isOptional) Deprecated.Validates a table schema property.voidvalidateType(String key, boolean isOptional, boolean requireRow) Deprecated.Validates a type property.voidvalidateValue(String key, String value, boolean isOptional) Deprecated.Validates that a certain value is present under the given key.withoutKeys(List<String> keys) Deprecated.Returns a new properties instance with the given keys removed.
-
Field Details
-
NAME
Deprecated.- See Also:
-
TYPE
Deprecated.- See Also:
-
DATA_TYPE
Deprecated.- See Also:
-
EXPR
Deprecated.- See Also:
-
METADATA
Deprecated.- See Also:
-
VIRTUAL
Deprecated.- See Also:
-
PARTITION_KEYS
Deprecated.- See Also:
-
WATERMARK
Deprecated.- See Also:
-
WATERMARK_ROWTIME
Deprecated.- See Also:
-
WATERMARK_STRATEGY
Deprecated.- See Also:
-
WATERMARK_STRATEGY_EXPR
Deprecated.- See Also:
-
WATERMARK_STRATEGY_DATA_TYPE
Deprecated.- See Also:
-
PRIMARY_KEY_NAME
Deprecated.- See Also:
-
PRIMARY_KEY_COLUMNS
Deprecated.- See Also:
-
COMMENT
Deprecated.- See Also:
-
-
Constructor Details
-
DescriptorProperties
public DescriptorProperties(boolean normalizeKeys) Deprecated. -
DescriptorProperties
public DescriptorProperties()Deprecated.
-
-
Method Details
-
putProperties
Deprecated.Adds a set of properties. -
putProperties
Deprecated.Adds a set of descriptor properties. -
putPropertiesWithPrefix
Deprecated.Adds a properties map by appending the given prefix to element keys with a dot.For example: for prefix "flink" and a map of a single property with key "k" and value "v". The added property will be as key "flink.k" and value "v".
-
putClass
Deprecated.Adds a class under the given key. -
putString
Deprecated.Adds a string under the given key. -
putBoolean
Deprecated.Adds a boolean under the given key. -
putLong
Deprecated.Adds a long under the given key. -
putInt
Deprecated.Adds an integer under the given key. -
putCharacter
Deprecated.Adds a character under the given key. -
putTableSchema
Deprecated.Adds a table schema under the given key. -
putPartitionKeys
Deprecated.Adds table partition keys. -
putMemorySize
Deprecated.Adds a FlinkMemorySizeunder the given key. -
putIndexedFixedProperties
public void putIndexedFixedProperties(String key, List<String> subKeys, List<List<String>> subKeyValues) Deprecated.Adds an indexed sequence of properties (with sub-properties) under a common key.For example:
schema.fields.0.type = INT, schema.fields.0.name = test schema.fields.1.type = LONG, schema.fields.1.name = test2The arity of each subKeyValues must match the arity of propertyKeys.
-
putIndexedOptionalProperties
public void putIndexedOptionalProperties(String key, List<String> subKeys, List<List<String>> subKeyValues) Deprecated.Adds an indexed sequence of properties (with sub-properties) under a common key. Different withputIndexedFixedProperties(java.lang.String, java.util.List<java.lang.String>, java.util.List<java.util.List<java.lang.String>>), this method supports the properties value to be null, which would be ignore. The sub-properties should at least have one non-null value.For example:
schema.fields.0.type = INT, schema.fields.0.name = test schema.fields.1.type = LONG, schema.fields.1.name = test2 schema.fields.2.type = LONG, schema.fields.2.name = test3, schema.fields.2.expr = test2 + 1The arity of each subKeyValues must match the arity of propertyKeys.
-
putIndexedVariableProperties
Deprecated.Adds an indexed mapping of properties under a common key.For example:
schema.fields.0.type = INT, schema.fields.0.name = test schema.fields.1.name = test2The arity of the subKeyValues can differ.
-
getOptionalString
Deprecated.Returns a string value under the given key if it exists. -
getString
Deprecated.Returns a string value under the given existing key. -
getOptionalCharacter
Deprecated.Returns a character value under the given key if it exists. -
getCharacter
Deprecated.Returns a character value under the given existing key. -
getOptionalClass
Deprecated.Returns a class value under the given key if it exists. -
getClass
Deprecated.Returns a class value under the given existing key. -
getOptionalBigDecimal
Deprecated.Returns a big decimal value under the given key if it exists. -
getBigDecimal
Deprecated.Returns a big decimal value under the given existing key. -
getOptionalBoolean
Deprecated.Returns a boolean value under the given key if it exists. -
getBoolean
Deprecated.Returns a boolean value under the given existing key. -
getOptionalByte
Deprecated.Returns a byte value under the given key if it exists. -
getByte
Deprecated.Returns a byte value under the given existing key. -
getOptionalDouble
Deprecated.Returns a double value under the given key if it exists. -
getDouble
Deprecated.Returns a double value under the given existing key. -
getOptionalFloat
Deprecated.Returns a float value under the given key if it exists. -
getFloat
Deprecated.Returns a float value under the given given existing key. -
getOptionalInt
Deprecated.Returns an integer value under the given key if it exists. -
getInt
Deprecated.Returns an integer value under the given existing key. -
getOptionalLong
Deprecated.Returns a long value under the given key if it exists. -
getLong
Deprecated.Returns a long value under the given existing key. -
getOptionalShort
Deprecated.Returns a short value under the given key if it exists. -
getShort
Deprecated.Returns a short value under the given existing key. -
getOptionalType
public Optional<org.apache.flink.api.common.typeinfo.TypeInformation<?>> getOptionalType(String key) Deprecated.Returns the type information under the given key if it exists. -
getType
Deprecated.Returns the type information under the given existing key. -
getOptionalDataType
Deprecated.Returns the DataType under the given key if it exists. -
getDataType
Deprecated.Returns the DataType under the given existing key. -
getOptionalTableSchema
Deprecated.Returns a table schema under the given key if it exists. -
getTableSchema
Deprecated.Returns a table schema under the given existing key. -
getPartitionKeys
Deprecated.Returns partition keys. -
getOptionalMemorySize
Deprecated.Returns a FlinkMemorySizeunder the given key if it exists. -
getMemorySize
Deprecated.Returns a FlinkMemorySizeunder the given existing key. -
getOptionalDuration
Deprecated.Returns a JavaDurationunder the given key if it exists. -
getDuration
Deprecated.Returns a javaDurationunder the given existing key. -
getFixedIndexedProperties
Deprecated.Returns the property keys of fixed indexed properties.For example:
schema.fields.0.type = INT, schema.fields.0.name = test schema.fields.1.type = LONG, schema.fields.1.name = test2getFixedIndexedProperties("schema.fields", List("type", "name")) leads to:
0: Map("type" -> "schema.fields.0.type", "name" -> "schema.fields.0.name") 1: Map("type" -> "schema.fields.1.type", "name" -> "schema.fields.1.name") -
getVariableIndexedProperties
public List<Map<String,String>> getVariableIndexedProperties(String key, List<String> requiredSubKeys) Deprecated.Returns the property keys of variable indexed properties.For example:
schema.fields.0.type = INT, schema.fields.0.name = test schema.fields.1.type = LONGgetFixedIndexedProperties("schema.fields", List("type")) leads to:
0: Map("type" -> "schema.fields.0.type", "name" -> "schema.fields.0.name") 1: Map("type" -> "schema.fields.1.type") -
getIndexedProperty
Deprecated.Returns all properties under a given key that contains an index in between.E.g. rowtime.0.name -> returns all rowtime.#.name properties
-
getOptionalArray
Deprecated.Returns all array elements under a given key if it exists.For example:
primary-key.0 = field1 primary-key.1 = field2leads to: List(field1, field2)
or:
primary-key = field1leads to: List(field1)
The key mapper gets the key of the current value e.g. "primary-key.1".
-
getArray
Deprecated.Returns all array elements under a given existing key. -
isValue
Deprecated.Returns if a value under key is exactly equal to the given value. -
getPropertiesWithPrefix
Deprecated.Returns a map of properties whose key starts with the given prefix, and the prefix is removed upon return.For example, for prefix "flink" and a map of a single property with key "flink.k" and value "v", this method will return it as key "k" and value "v" by identifying and removing the prefix "flink".
-
validateString
Deprecated.Validates a string property. -
validateString
Deprecated.Validates a string property. The boundaries are inclusive. -
validateString
Deprecated.Validates a string property. The boundaries are inclusive. -
validateInt
Deprecated.Validates an integer property. -
validateInt
Deprecated.Validates an integer property. The boundaries are inclusive. -
validateInt
Deprecated.Validates an integer property. The boundaries are inclusive. -
validateLong
Deprecated.Validates an long property. -
validateLong
Deprecated.Validates an long property. The boundaries are inclusive. -
validateLong
Deprecated.Validates an long property. The boundaries are inclusive. -
validateValue
Deprecated.Validates that a certain value is present under the given key. -
validateBoolean
Deprecated.Validates that a boolean value is present under the given key. -
validateDouble
Deprecated.Validates a double property. -
validateDouble
Deprecated.Validates a double property. The boundaries are inclusive. -
validateDouble
Deprecated.Validates a double property. The boundaries are inclusive. -
validateBigDecimal
Deprecated.Validates a big decimal property. -
validateBigDecimal
Deprecated.Validates a big decimal property. The boundaries are inclusive. -
validateByte
Deprecated.Validates a byte property. -
validateByte
Deprecated.Validates a byte property. The boundaries are inclusive. -
validateByte
Deprecated.Validates a byte property. The boundaries are inclusive. -
validateFloat
Deprecated.Validates a float property. -
validateFloat
Deprecated.Validates a float property. The boundaries are inclusive. -
validateFloat
Deprecated.Validates a float property. The boundaries are inclusive. -
validateShort
Deprecated.Validates a short property. -
validateShort
Deprecated.Validates a short property. The boundaries are inclusive. -
validateShort
Deprecated.Validates a short property. The boundaries are inclusive. -
validateFixedIndexedProperties
public void validateFixedIndexedProperties(String key, boolean allowEmpty, Map<String, Consumer<String>> subKeyValidation) Deprecated.Validation for fixed indexed properties.For example:
schema.fields.0.data-type = INT, schema.fields.0.name = test schema.fields.1.data-type = BIGINT, schema.fields.1.name = test2The subKeyValidation map must define e.g. "data-type" and "name" and a validation logic for the given full key.
-
validateTableSchema
Deprecated.Validates a table schema property. -
validateMemorySize
Deprecated.Validates a FlinkMemorySize.The precision defines the allowed minimum unit in bytes (e.g. 1024 would only allow KB).
-
validateMemorySize
Deprecated.Validates a FlinkMemorySize. The boundaries are inclusive and in bytes.The precision defines the allowed minimum unit in bytes (e.g. 1024 would only allow KB).
-
validateMemorySize
Deprecated.Validates a FlinkMemorySize. The boundaries are inclusive and in bytes.The precision defines the allowed minimum unit in bytes (e.g. 1024 would only allow KB).
-
validateDuration
Deprecated.Validates a JavaDuration.The precision defines the allowed minimum unit in milliseconds (e.g. 1000 would only allow seconds).
-
validateDuration
Deprecated.Validates a JavaDuration. The boundaries are inclusive and in milliseconds.The precision defines the allowed minimum unit in milliseconds (e.g. 1000 would only allow seconds).
-
validateDuration
Deprecated.Validates a JavaDuration. The boundaries are inclusive and in milliseconds.The precision defines the allowed minimum unit in milliseconds (e.g. 1000 would only allow seconds).
-
validateEnum
public void validateEnum(String key, boolean isOptional, Map<String, Consumer<String>> enumValidation) Deprecated.Validates an enum property with a set of validation logic for each enum value. -
validateEnumValues
Deprecated.Validates an enum property with a set of enum values. -
validateType
Deprecated.Validates a type property. -
validateDataType
Deprecated.Validates a data type property. -
validateArray
Deprecated.Validates an array of values.For example:
primary-key.0 = field1 primary-key.1 = field2leads to: List(field1, field2)
or:
primary-key = field1The validation consumer gets the key of the current value e.g. "primary-key.1".
-
validateArray
public void validateArray(String key, Consumer<String> elementValidation, int minLength, int maxLength) Deprecated.Validates an array of values.For example:
primary-key.0 = field1 primary-key.1 = field2leads to: List(field1, field2)
or:
primary-key = field1The validation consumer gets the key of the current value e.g. "primary-key.1".
-
validatePrefixExclusion
Deprecated.Validates that the given prefix is not included in these properties. -
validateExclusion
Deprecated.Validates that the given key is not included in these properties. -
containsKey
Deprecated.Returns if the given key is contained. -
hasPrefix
Deprecated.Returns if a given prefix exists in the properties. -
asMap
Deprecated.Returns the properties as a map copy. -
asPrefixedMap
Deprecated.Returns the properties as a map copy with a prefix key. -
withoutKeys
Deprecated.Returns a new properties instance with the given keys removed. -
toString
Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
noValidation
Deprecated.Returns an empty validation logic. -
toString
Deprecated. -
toString
Deprecated. -
toString
Deprecated.
-
DynamicTableFactoryis based onConfigOptionand catalogs useCatalogPropertiesUtil.