SPL File Functions.spl

Kafka Toolkit > com.ibm.streamsx.kafka 2.2.1 > com.ibm.streamsx.kafka > Functions.spl

Content

Functions

Functions

rstring createMessageRemoveTopicPartition(list<Control.TopicPartition> topicPartitionsToRemove)

Creates the JSON message to remove multiple topic-partitions from the operator.

Parameters

Returns

rstring createMessageAddTopicPartition(list<Control.TopicPartitionOffset> topicPartitionsToAdd)

Creates the JSON message to add multiple topic-partitions to the operator. The operator will begin consuming from the topic-partitions at their specified offset.

  • To begin consuming from the end of a topic-partition, set the offset value to -1
  • To begin consuming from the beginning of a topic-partition, set the offset value to -2
  • To begin consuming from the default position, set the offset value to -3

Parameters

Returns

rstring createMessageAddTopicPartition(list<Control.TopicPartition> topicPartitionsToAdd)

Creates the JSON message to add multiple topic-partitions to the operator. The operator will begin consuming all partitions from the default positions.

Parameters

Returns

rstring createMessageRemoveTopicPartition(rstring topic, int32 partition)

Creates the JSON message to remove a single topic-partition from the operator.

Parameters

Returns

rstring createMessageAddTopicPartition(rstring topic, int32 partition, int64 offset)

Creates the JSON message to add a single topic-partition to the operator and to begin consuming at the specified offset.

  • To begin consuming from the end of a topic-partition, set the offset value to -1
  • To begin consuming from the beginning of a topic-partition, set the offset value to -2
  • To begin consuming from the default position, set the offset value to -3

Parameters

Returns

rstring createMessageAddTopicPartition(rstring topic, int32 partition)

Creates the JSON message to add a single topic-partition to the operator and to begin consuming at the default position.

Parameters

Returns