public class Enum extends Object
Modifier and Type | Field and Description |
---|---|
static String |
LOGICAL_NAME |
static String |
VALUES_FIELD |
Constructor and Description |
---|
Enum() |
Modifier and Type | Method and Description |
---|---|
static org.apache.kafka.connect.data.SchemaBuilder |
builder(String allowedValues)
Returns a
SchemaBuilder for an enumeration. |
static org.apache.kafka.connect.data.Schema |
schema(String allowedValues)
Returns a
SchemaBuilder for an enumeration, with all other default Schema settings. |
public static final String LOGICAL_NAME
public static final String VALUES_FIELD
public static org.apache.kafka.connect.data.SchemaBuilder builder(String allowedValues)
SchemaBuilder
for an enumeration. You can use the resulting SchemaBuilder
to set additional schema settings such as required/optional, default value, and documentation.allowedValues
- the comma separated list of allowed values; may not be nullpublic static org.apache.kafka.connect.data.Schema schema(String allowedValues)
SchemaBuilder
for an enumeration, with all other default Schema settings.allowedValues
- the comma separated list of allowed values; may not be nullbuilder(String)
Copyright © 2018 JBoss by Red Hat. All rights reserved.