public class SimpleSchemaTranslator extends SchemaTranslator
| Modifier and Type | Field and Description |
|---|---|
static List<org.apache.flink.table.api.DataTypes.Field> |
METADATA_FIELDS |
| Constructor and Description |
|---|
SimpleSchemaTranslator() |
SimpleSchemaTranslator(boolean useExtendField) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.pulsar.common.schema.SchemaInfo |
emptySchemaInfo() |
boolean |
isUseExtendField() |
org.apache.flink.table.types.FieldsDataType |
pulsarSchemaToFieldsDataType(org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
org.apache.flink.table.api.TableSchema |
pulsarSchemaToTableSchema(org.apache.pulsar.common.schema.SchemaInfo pulsarSchema) |
org.apache.flink.table.types.DataType |
schemaInfo2SqlType(org.apache.pulsar.common.schema.SchemaInfo si) |
static org.apache.pulsar.shade.org.apache.avro.Schema |
sqlType2AvroSchema(org.apache.flink.table.types.DataType flinkType) |
static org.apache.pulsar.client.api.Schema |
sqlType2PulsarSchema(org.apache.flink.table.types.DataType flinkType) |
org.apache.pulsar.common.schema.SchemaInfo |
tableSchemaToPulsarSchema(org.apache.flink.table.api.TableSchema tableSchema) |
atomicType2PulsarSchemapublic static final List<org.apache.flink.table.api.DataTypes.Field> METADATA_FIELDS
public SimpleSchemaTranslator()
public SimpleSchemaTranslator(boolean useExtendField)
public org.apache.pulsar.common.schema.SchemaInfo tableSchemaToPulsarSchema(org.apache.flink.table.api.TableSchema tableSchema)
throws IncompatibleSchemaException
tableSchemaToPulsarSchema in class SchemaTranslatorIncompatibleSchemaExceptionpublic static org.apache.pulsar.client.api.Schema sqlType2PulsarSchema(org.apache.flink.table.types.DataType flinkType)
throws IncompatibleSchemaException
IncompatibleSchemaExceptionpublic static org.apache.pulsar.shade.org.apache.avro.Schema sqlType2AvroSchema(org.apache.flink.table.types.DataType flinkType)
throws IncompatibleSchemaException
IncompatibleSchemaExceptionpublic static org.apache.pulsar.common.schema.SchemaInfo emptySchemaInfo()
public org.apache.flink.table.api.TableSchema pulsarSchemaToTableSchema(org.apache.pulsar.common.schema.SchemaInfo pulsarSchema)
throws IncompatibleSchemaException
pulsarSchemaToTableSchema in class SchemaTranslatorIncompatibleSchemaExceptionpublic org.apache.flink.table.types.FieldsDataType pulsarSchemaToFieldsDataType(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
throws IncompatibleSchemaException
pulsarSchemaToFieldsDataType in class SchemaTranslatorIncompatibleSchemaExceptionpublic org.apache.flink.table.types.DataType schemaInfo2SqlType(org.apache.pulsar.common.schema.SchemaInfo si)
throws IncompatibleSchemaException
schemaInfo2SqlType in class SchemaTranslatorIncompatibleSchemaExceptionpublic boolean isUseExtendField()
Copyright © 2019–2022 The Apache Software Foundation. All rights reserved.