system.kafka.listTopicPartitions
This function is used in Python Scripting.
Descriptionβ
Returns a list of records that match the filter.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.kafka.listTopicPartitions(connector, topic, groupId, [options])
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | connector | The name of the Kafka connector. |
| String | topic | The name of the Kafka topic. |
| String | groupId | The unique string of the consumer group the consumer belongs to. |
| Dictionary | options | Custom options specific to the consumer, with key value string pairs. Optional. |
Returnsβ
List - A list of records that match the filter.
Scopeβ
Gateway
Code Examplesβ
Example #1
# Returns a list of records according to the parameter filters.
system.kafka.listTopicPartitions("MyKafkaConnector", "MyKafkaTopic", "consumer-group-one")