{{/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */}}
Config Type 配置格式参考
Integer
正则表达式:[-+]? [0-9]+

示例:100
Long
正则表达式:[-+]? [0-9]+

示例:100
Float
正则表达式:[-+]? ( \. [0-9]+ | [0-9]+ ( \. [0-9]* )? ) ( [eE] [-+]? [0-9]+ )?

示例:100.1
Double
正则表达式:[-+]? ( \. [0-9]+ | [0-9]+ ( \. [0-9]* )? ) ( [eE] [-+]? [0-9]+ )?

示例:100.1
Boolean
正则表达式:true | True | TRUE | false | False | FALSE

示例:true
String
任意字符

Note:如果 value 按字符串处理,且字符串中包含YAML中的 特殊字符, 则必须使用单引号或者双引号对其进行转义.
Map<String, String>
  • Flow Style:
    • 说明:使用花括号 "{}" 括起来,并且键值对之间由逗号 "," 分隔。在映射内部,键和值之间由冒号 ":" 分隔,并且在冒号后跟一个空格。
    • 示例:{k1: v1, k2: v2}
  • Block Style:
    • 说明:使用缩进来表示数据结构的层次关系,键和值之间用冒号 ":" 和一个空格分隔。
    • 示例:
      k1: v1
      k2: v2
  • Flink Legacy Map Pattern:
    • 说明:键值对之间由逗号 "," 分隔。在映射内部,键和值之间由冒号 ":" 分隔。
    • 示例:k1:v1,k2:v2
注意:对于value中带有特殊字符的情况,需要考虑转义,详情可见 Config Type: String 的描述。
List
  • Flow Style:
    • 说明:使用方括号 "[]" 来表示,并且列表中的元素由逗号 "," 分隔。
    • 示例:[a, b, c]
  • Block Style:
    • 说明:使用缩进和短横线 "-" 来表示列表的条目。
    • 示例:
      - a
      - b
      - c
  • Flink Legacy Map Pattern:
    • 说明:列表中的元素由分号 ";" 分隔。
    • 示例:a;b;c
注意:对于value中带有特殊字符的情况,需要考虑转义,详情可见 Config Type: String 的描述。
MemorySize
正则表达式:[0-9]+ (b | kb | kibibytes | m | mb | mebibytes | g | gb | gibibytes | t | tb | tebibytes)?

示例:100 mb
Boolean
正则表达式:[0-9]+ (d | day | h | hour | m | min | minute | s | sec | second | ms | milli | millisecond | us | micro | microsecond | ns | nano | nanosecond)?

示例:10 s
Enum
枚举类常量