Modifier and Type | Field and Description |
---|---|
static String |
PAIMON_PREFIX |
Modifier and Type | Method and Description |
---|---|
static boolean |
canBePrefixMap(ConfigOption<?> configOption)
Maps can be represented in two ways.
|
static <E extends Enum<?>> |
convertToEnum(Object o,
Class<E> clazz) |
static Map<String,String> |
convertToPropertiesPrefixKey(Iterable<Map.Entry<String,String>> confData,
String prefixKey,
java.util.function.Predicate<String> valuePredicate) |
static Map<String,String> |
convertToPropertiesPrefixKey(Map<String,String> confData,
String prefixKey) |
static <T> T |
convertValue(Object rawValue,
Class<?> clazz)
Tries to convert the raw value into the provided type.
|
static boolean |
filterPrefixMapKey(String key,
String candidate)
Filter condition for prefix map keys.
|
public static final String PAIMON_PREFIX
public static <T> T convertValue(Object rawValue, Class<?> clazz)
T
- type of the resultrawValue
- rawValue to convert into the provided type clazzclazz
- clazz specifying the target typeIllegalArgumentException
- if the rawValue cannot be converted in the specified target
type clazzpublic static boolean canBePrefixMap(ConfigOption<?> configOption)
With constant key space:
avro-confluent.properties = schema: 1, other-prop: 2
Or with variable key space (i.e. prefix notation):
avro-confluent.properties.schema = 1 avro-confluent.properties.other-prop = 2
public static boolean filterPrefixMapKey(String key, String candidate)
public static Map<String,String> convertToPropertiesPrefixKey(Map<String,String> confData, String prefixKey)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.