Class SplitParameters


  • public class SplitParameters
    extends Object
    • Constructor Detail

      • SplitParameters

        public SplitParameters​(String topic,
                               int partition,
                               long startOffset,
                               long endOffset)
        These parameters need to be set while creating the split and will be used when retrieving records in RecordHandler class.
        Parameters:
        topic -
        partition -
        startOffset -
        endOffset -
    • Method Detail

      • debug

        public String debug()
        For debug insight. To know what happens in the RecordHandler across in all the splits. We write log message as comma separated value with intention to create a csv. Simply in the Cloudwatch log we will search by SplitParameters then we will get these related log messages in once place and download as csv, great! The header of the csv file is: debug,topic,partition,start_offset,end_offset,pulled,spilled,missing,info Note that the header missing means - we should not spill these