public final class TableSchemaHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
compatibleSchema(org.apache.pulsar.common.schema.SchemaInfo s1,
org.apache.pulsar.common.schema.SchemaInfo s2) |
static void |
deletePulsarSchema(org.apache.pulsar.client.admin.PulsarAdmin admin,
String topic) |
static org.apache.pulsar.common.schema.SchemaInfo |
generateSchemaInfo(Map<String,String> properties) |
static Map<String,String> |
generateTableProperties(org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
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 void |
uploadPulsarSchema(org.apache.pulsar.client.admin.PulsarAdmin admin,
String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
public static org.apache.pulsar.common.schema.SchemaInfo generateSchemaInfo(Map<String,String> properties) throws org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonProcessingException
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonProcessingExceptionpublic static Map<String,String> generateTableProperties(org.apache.pulsar.common.schema.SchemaInfo schemaInfo) throws IOException
IOExceptionpublic static void uploadPulsarSchema(org.apache.pulsar.client.admin.PulsarAdmin admin,
String topic,
org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
public static void deletePulsarSchema(org.apache.pulsar.client.admin.PulsarAdmin admin,
String topic)
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 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 © 2014–2022 The Apache Software Foundation. All rights reserved.