public class PulsarTableOptionUtils extends Object
It contains the following functionalities.
| Modifier and Type | Method and Description |
|---|---|
static int[] |
createKeyFormatProjection(org.apache.flink.configuration.ReadableConfig options,
org.apache.flink.table.types.DataType physicalDataType)
Creates an array of indices that determine which physical fields of the table schema to
include in the key format and the order that those fields have in the key format.
|
static int[] |
createValueFormatProjection(org.apache.flink.configuration.ReadableConfig options,
org.apache.flink.table.types.DataType physicalDataType) |
static org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> |
getKeyDecodingFormat(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper) |
static org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> |
getKeyEncodingFormat(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper) |
static long |
getMessageDelayMillis(org.apache.flink.configuration.ReadableConfig readableConfig) |
static Properties |
getPulsarProperties(Map<String,String> configs) |
static Properties |
getPulsarProperties(org.apache.flink.configuration.ReadableConfig tableOptions) |
static StartCursor |
getStartCursor(org.apache.flink.configuration.ReadableConfig tableOptions) |
static org.apache.pulsar.client.api.SubscriptionType |
getSubscriptionType(org.apache.flink.configuration.ReadableConfig tableOptions) |
static List<String> |
getTopicListFromOptions(org.apache.flink.configuration.ReadableConfig tableOptions) |
static TopicRouter<org.apache.flink.table.data.RowData> |
getTopicRouter(org.apache.flink.configuration.ReadableConfig readableConfig,
ClassLoader classLoader) |
static TopicRoutingMode |
getTopicRoutingMode(org.apache.flink.configuration.ReadableConfig readableConfig) |
static org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> |
getValueDecodingFormat(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper) |
static org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> |
getValueEncodingFormat(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper) |
protected static StartCursor |
parseMessageIdStartCursor(String config) |
protected static StartCursor |
parseMessageIdString(String config) |
protected static StartCursor |
parsePublishTimeStartCursor(Long config) |
@Nullable public static org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> getKeyDecodingFormat(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper)
@Nullable public static org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> getKeyEncodingFormat(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper)
public static org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> getValueDecodingFormat(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper)
public static org.apache.flink.table.connector.format.EncodingFormat<org.apache.flink.api.common.serialization.SerializationSchema<org.apache.flink.table.data.RowData>> getValueEncodingFormat(org.apache.flink.table.factories.FactoryUtil.TableFactoryHelper helper)
public static int[] createKeyFormatProjection(org.apache.flink.configuration.ReadableConfig options,
org.apache.flink.table.types.DataType physicalDataType)
public static int[] createValueFormatProjection(org.apache.flink.configuration.ReadableConfig options,
org.apache.flink.table.types.DataType physicalDataType)
public static List<String> getTopicListFromOptions(org.apache.flink.configuration.ReadableConfig tableOptions)
public static Properties getPulsarProperties(org.apache.flink.configuration.ReadableConfig tableOptions)
public static Properties getPulsarProperties(Map<String,String> configs)
public static StartCursor getStartCursor(org.apache.flink.configuration.ReadableConfig tableOptions)
public static org.apache.pulsar.client.api.SubscriptionType getSubscriptionType(org.apache.flink.configuration.ReadableConfig tableOptions)
protected static StartCursor parseMessageIdStartCursor(String config)
protected static StartCursor parseMessageIdString(String config)
protected static StartCursor parsePublishTimeStartCursor(Long config)
public static TopicRouter<org.apache.flink.table.data.RowData> getTopicRouter(org.apache.flink.configuration.ReadableConfig readableConfig, ClassLoader classLoader)
public static TopicRoutingMode getTopicRoutingMode(org.apache.flink.configuration.ReadableConfig readableConfig)
public static long getMessageDelayMillis(org.apache.flink.configuration.ReadableConfig readableConfig)
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.