public class MessageQueueSchemaUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MessageQueueSchemaUtils.ConsumerWrapper
Wrap the consumer for different message queues.
|
Modifier and Type | Field and Description |
---|---|
static org.apache.flink.configuration.ConfigOption<String> |
SCHEMA_REGISTRY_URL |
Constructor and Description |
---|
MessageQueueSchemaUtils() |
Modifier and Type | Method and Description |
---|---|
static Schema |
getSchema(MessageQueueSchemaUtils.ConsumerWrapper consumer,
DataFormat dataFormat,
TypeMapping typeMapping)
Retrieves the Kafka schema for a given topic.
|
public static final org.apache.flink.configuration.ConfigOption<String> SCHEMA_REGISTRY_URL
public static Schema getSchema(MessageQueueSchemaUtils.ConsumerWrapper consumer, DataFormat dataFormat, TypeMapping typeMapping) throws SyncTableActionBase.SchemaRetrievalException
consumer
- The wrapper of message queue consumer to fetch messages.dataFormat
- The data format for the messages in the message queue.typeMapping
- Data type mapping options.SyncTableActionBase.SchemaRetrievalException
- If unable to retrieve the schema after max retries.Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.