public class Pulsar
extends org.apache.flink.table.descriptors.ConnectorDescriptor
| Constructor and Description |
|---|
Pulsar() |
| Modifier and Type | Method and Description |
|---|---|
Pulsar |
properties(Properties properties)
Sets the configuration properties for the Pulsar consumer.
|
Pulsar |
property(String key,
String value)
Adds a configuration properties for the Pulsar consumer.
|
Pulsar |
startFromEarliest() |
Pulsar |
startFromExternalSubscription(String externalSubscriptionName) |
Pulsar |
startFromExternalSubscription(String externalSubscriptionName,
String subscriptionPosition) |
Pulsar |
startFromLatest() |
Pulsar |
startFromSpecificOffset(String partition,
org.apache.pulsar.client.api.MessageId specificOffset) |
Pulsar |
startFromSpecificOffsets(Map<String,org.apache.pulsar.client.api.MessageId> specificOffsets) |
protected Map<String,String> |
toConnectorProperties() |
Pulsar |
topic(String topic)
Sets the topic from which the table is read.
|
Pulsar |
urls(String serviceUrl,
String adminUrl) |
Pulsar |
useExtendField(boolean useExtendField) |
public Pulsar topic(String topic)
topic - The topic from which the table is read.public Pulsar properties(Properties properties)
properties - The configuration properties for the Pulsar consumer.public Pulsar useExtendField(boolean useExtendField)
public Pulsar property(String key, String value)
key - property key for the Pulsar consumervalue - property value for the Pulsar consumerpublic Pulsar startFromEarliest()
public Pulsar startFromLatest()
public Pulsar startFromSpecificOffsets(Map<String,org.apache.pulsar.client.api.MessageId> specificOffsets)
public Pulsar startFromSpecificOffset(String partition, org.apache.pulsar.client.api.MessageId specificOffset)
public Pulsar startFromExternalSubscription(String externalSubscriptionName)
public Pulsar startFromExternalSubscription(String externalSubscriptionName, String subscriptionPosition)
Copyright © 2019–2021 The Apache Software Foundation. All rights reserved.