public class SchemaUtils extends Object
| Constructor and Description |
|---|
SchemaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.pulsar.common.schema.SchemaInfo |
buildRowSchema(org.apache.flink.table.types.DataType dataType,
RecordSchemaType recordSchemaType) |
static <T> org.apache.pulsar.client.api.Schema<T> |
buildSchemaForRecordClazz(Class<T> recordClazz,
RecordSchemaType recordSchemaType) |
static boolean |
compatibleSchema(org.apache.pulsar.common.schema.SchemaInfo s1,
org.apache.pulsar.common.schema.SchemaInfo s2) |
static org.apache.pulsar.client.impl.schema.SchemaInfoImpl |
emptySchemaInfo() |
static org.apache.avro.Schema |
getAvroSchema(org.apache.flink.table.types.DataType dataType) |
static org.apache.pulsar.client.impl.schema.SchemaInfoImpl |
getSchemaInfo(org.apache.pulsar.common.schema.SchemaType type,
org.apache.flink.table.types.DataType dataType) |
static org.apache.pulsar.common.schema.SchemaInfo |
tableSchemaToSchemaInfo(String format,
org.apache.flink.table.types.DataType dataType,
org.apache.flink.configuration.Configuration configuration) |
static void |
uploadPulsarSchema(org.apache.pulsar.client.admin.PulsarAdmin admin,
String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
public static void uploadPulsarSchema(org.apache.pulsar.client.admin.PulsarAdmin admin,
String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
public static boolean compatibleSchema(org.apache.pulsar.common.schema.SchemaInfo s1,
org.apache.pulsar.common.schema.SchemaInfo s2)
public static org.apache.pulsar.client.impl.schema.SchemaInfoImpl emptySchemaInfo()
public static org.apache.pulsar.common.schema.SchemaInfo buildRowSchema(org.apache.flink.table.types.DataType dataType,
RecordSchemaType recordSchemaType)
public static <T> org.apache.pulsar.client.api.Schema<T> buildSchemaForRecordClazz(Class<T> recordClazz, RecordSchemaType recordSchemaType)
public static org.apache.pulsar.common.schema.SchemaInfo tableSchemaToSchemaInfo(String format, org.apache.flink.table.types.DataType dataType, org.apache.flink.configuration.Configuration configuration) throws IncompatibleSchemaException
IncompatibleSchemaExceptionpublic static org.apache.pulsar.client.impl.schema.SchemaInfoImpl getSchemaInfo(org.apache.pulsar.common.schema.SchemaType type,
org.apache.flink.table.types.DataType dataType)
public static org.apache.avro.Schema getAvroSchema(org.apache.flink.table.types.DataType dataType)
Copyright © 2019–2021 The Apache Software Foundation. All rights reserved.