| Modifier and Type | Method and Description |
|---|---|
PulsarSourceBuilder<OUT> |
PulsarSourceBuilder.setStartCursor(StartCursor startCursor)
Specify from which offsets the PulsarSource should start consume from by providing an
StartCursor. |
| Constructor and Description |
|---|
PulsarSource(SourceConfiguration sourceConfiguration,
PulsarSubscriber subscriber,
RangeGenerator rangeGenerator,
StartCursor startCursor,
StopCursor stopCursor,
org.apache.flink.api.connector.source.Boundedness boundedness,
PulsarDeserializationSchema<OUT> deserializationSchema,
org.apache.pulsar.client.api.CryptoKeyReader cryptoKeyReader)
The constructor for PulsarSource, it's package protected for forcing using
PulsarSourceBuilder. |
| Constructor and Description |
|---|
PulsarSourceEnumerator(PulsarSubscriber subscriber,
StartCursor startCursor,
RangeGenerator rangeGenerator,
SourceConfiguration sourceConfiguration,
org.apache.flink.api.connector.source.SplitEnumeratorContext<PulsarPartitionSplit> context,
SplitAssigner splitAssigner) |
| Modifier and Type | Method and Description |
|---|---|
static StartCursor |
StartCursor.defaultStartCursor() |
static StartCursor |
StartCursor.earliest() |
static StartCursor |
StartCursor.fromMessageId(org.apache.pulsar.client.api.MessageId messageId)
Find the available message id and start consuming from it.
|
static StartCursor |
StartCursor.fromMessageId(org.apache.pulsar.client.api.MessageId messageId,
boolean inclusive) |
static StartCursor |
StartCursor.fromPublishTime(long timestamp) |
static StartCursor |
StartCursor.latest() |
| Modifier and Type | Class and Description |
|---|---|
class |
MessageIdStartCursor
This cursor would leave pulsar start consuming from a specific message id.
|
class |
PublishTimestampStartCursor
This cursor make pulsar start consuming from a specific publish timestamp.
|
| Modifier and Type | Method and Description |
|---|---|
static StartCursor |
PulsarTableOptionUtils.getStartCursor(org.apache.flink.configuration.ReadableConfig tableOptions) |
protected static StartCursor |
PulsarTableOptionUtils.parseMessageIdStartCursor(String config) |
protected static StartCursor |
PulsarTableOptionUtils.parseMessageIdString(String config) |
protected static StartCursor |
PulsarTableOptionUtils.parsePublishTimeStartCursor(Long config) |
| Constructor and Description |
|---|
PulsarTableSource(PulsarTableDeserializationSchemaFactory deserializationSchemaFactory,
org.apache.flink.table.connector.format.DecodingFormat<org.apache.flink.api.common.serialization.DeserializationSchema<org.apache.flink.table.data.RowData>> decodingFormatForReadingMetadata,
List<String> topics,
Properties properties,
StartCursor startCursor,
org.apache.pulsar.client.api.SubscriptionType subscriptionType) |
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.