public static enum CommonConnectorConfig.BinaryHandlingMode extends Enum<CommonConnectorConfig.BinaryHandlingMode> implements EnumeratedValue
| Enum Constant and Description |
|---|
BASE64
Represent binary values as base64-encoded string
|
BYTES
Represent binary values as byte array
|
HEX
Represents binary values as hex-encoded (base16) string
|
| Modifier and Type | Field and Description |
|---|---|
private Supplier<org.apache.kafka.connect.data.SchemaBuilder> |
schema |
private String |
value |
| Modifier and Type | Method and Description |
|---|---|
org.apache.kafka.connect.data.SchemaBuilder |
getSchema() |
String |
getValue()
Returns the string representation of this value
|
static CommonConnectorConfig.BinaryHandlingMode |
parse(String value)
Determine if the supplied values is one of the predefined options
|
static CommonConnectorConfig.BinaryHandlingMode |
parse(String value,
String defaultValue)
Determine if the supplied values is one of the predefined options
|
static CommonConnectorConfig.BinaryHandlingMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonConnectorConfig.BinaryHandlingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommonConnectorConfig.BinaryHandlingMode BYTES
public static final CommonConnectorConfig.BinaryHandlingMode BASE64
public static final CommonConnectorConfig.BinaryHandlingMode HEX
private final String value
private final Supplier<org.apache.kafka.connect.data.SchemaBuilder> schema
public static CommonConnectorConfig.BinaryHandlingMode[] values()
for (CommonConnectorConfig.BinaryHandlingMode c : CommonConnectorConfig.BinaryHandlingMode.values()) System.out.println(c);
public static CommonConnectorConfig.BinaryHandlingMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
EnumeratedValuegetValue in interface EnumeratedValuepublic org.apache.kafka.connect.data.SchemaBuilder getSchema()
public static CommonConnectorConfig.BinaryHandlingMode parse(String value)
value - the configuration property value ; may not be nullpublic static CommonConnectorConfig.BinaryHandlingMode parse(String value, String defaultValue)
value - the configuration property value ; may not be nulldefaultValue - the default value ; may be nullCopyright © 2021 JBoss by Red Hat. All rights reserved.