Class TransactionPartitioner

    • Constructor Detail

      • TransactionPartitioner

        public TransactionPartitioner()
    • Method Detail

      • getPartitionId

        public int getPartitionId​(StreamElement element)
        Description copied from interface: Partitioner
        Retrieve partition ID for the specified ingest. All ingests that have the same partition ID are guaranteed to be written to the same Kafka partition.
        Specified by:
        getPartitionId in interface Partitioner
        Parameters:
        element - element to calculate partition for
        Returns:
        ID of partition (can be negative)