public class SchemaTranslator extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SINGLE_FIELD_FIELD_NAME |
| Constructor and Description |
|---|
SchemaTranslator(boolean useMetadataFields) |
| Modifier and Type | Method and Description |
|---|---|
String |
decideDefaultFlinkFormat(org.apache.pulsar.common.schema.SchemaInfo pulsarSchemaInfo)
This method is used to determine the Flink format to use for a native table.
|
static org.apache.flink.table.types.DataType |
protoDescriptorToSqlType(com.google.protobuf.Descriptors.Descriptor descriptor) |
org.apache.flink.table.api.Schema |
pulsarSchemaToFlinkSchema(org.apache.pulsar.common.schema.SchemaInfo pulsarSchema) |
org.apache.flink.table.types.DataType |
pulsarSchemaToPhysicalFields(org.apache.pulsar.common.schema.SchemaInfo schemaInfo) |
org.apache.flink.table.types.DataType |
schemaInfo2SqlType(org.apache.pulsar.common.schema.SchemaInfo si) |
public static final String SINGLE_FIELD_FIELD_NAME
public org.apache.flink.table.api.Schema pulsarSchemaToFlinkSchema(org.apache.pulsar.common.schema.SchemaInfo pulsarSchema)
throws IncompatibleSchemaException
IncompatibleSchemaExceptionpublic org.apache.flink.table.types.DataType pulsarSchemaToPhysicalFields(org.apache.pulsar.common.schema.SchemaInfo schemaInfo)
throws IncompatibleSchemaException
IncompatibleSchemaExceptionpublic org.apache.flink.table.types.DataType schemaInfo2SqlType(org.apache.pulsar.common.schema.SchemaInfo si)
throws IncompatibleSchemaException
IncompatibleSchemaExceptionpublic static org.apache.flink.table.types.DataType protoDescriptorToSqlType(com.google.protobuf.Descriptors.Descriptor descriptor)
throws IncompatibleSchemaException
IncompatibleSchemaExceptionpublic String decideDefaultFlinkFormat(org.apache.pulsar.common.schema.SchemaInfo pulsarSchemaInfo)
pulsarSchemaInfo - Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.