public class SchemaUtil extends Object
Schema, Struct, and Field objects.| Modifier and Type | Class and Description |
|---|---|
private static class |
SchemaUtil.RecordWriter |
| Modifier | Constructor and Description |
|---|---|
private |
SchemaUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
asDetailedString(org.apache.kafka.connect.data.Field field)
Obtain a JSON string representation of the specified field.
|
static String |
asDetailedString(org.apache.kafka.connect.data.Schema schema)
Obtain a JSON string representation of the specified
Schema. |
static String |
asDetailedString(org.apache.kafka.connect.source.SourceRecord record)
Obtain a JSON string representation of the specified
SourceRecord. |
static String |
asDetailedString(org.apache.kafka.connect.data.Struct struct)
Obtain a JSON string representation of the specified
Struct. |
static String |
asString(org.apache.kafka.connect.data.Field field)
Obtain a JSON string representation of the specified field.
|
static String |
asString(Object field)
Obtain a JSON string representation of the specified field.
|
static String |
asString(org.apache.kafka.connect.data.Schema schema)
Obtain a JSON string representation of the specified
Schema. |
static String |
asString(org.apache.kafka.connect.source.SourceRecord record)
Obtain a JSON string representation of the specified
SourceRecord. |
static String |
asString(org.apache.kafka.connect.data.Struct struct)
Obtain a JSON string representation of the specified
Struct. |
public static String asString(Object field)
field - the field; may not be nullpublic static String asString(org.apache.kafka.connect.data.Field field)
field - the field; may not be nullpublic static String asString(org.apache.kafka.connect.data.Struct struct)
Struct.struct - the Struct; may not be nullpublic static String asString(org.apache.kafka.connect.data.Schema schema)
Schema.schema - the Schema; may not be nullpublic static String asString(org.apache.kafka.connect.source.SourceRecord record)
SourceRecord.record - the SourceRecord; may not be nullpublic static String asDetailedString(org.apache.kafka.connect.data.Field field)
field - the field; may not be nullpublic static String asDetailedString(org.apache.kafka.connect.data.Struct struct)
Struct.struct - the Struct; may not be nullpublic static String asDetailedString(org.apache.kafka.connect.data.Schema schema)
Schema.schema - the Schema; may not be nullpublic static String asDetailedString(org.apache.kafka.connect.source.SourceRecord record)
SourceRecord.record - the SourceRecord; may not be nullCopyright © 2019 JBoss by Red Hat. All rights reserved.