Interface RecordGrouper

All Known Implementing Classes:
KeyRecordGrouper

public interface RecordGrouper
The interface for classes that associates SinkRecords with files by some criteria.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clear all records.
    void
    put(org.apache.kafka.connect.sink.SinkRecord record)
    Associate the record with the appropriate file.
    Map<String,List<org.apache.kafka.connect.sink.SinkRecord>>
    Get all records associated with files, grouped by the file name.
  • Method Details

    • put

      void put(org.apache.kafka.connect.sink.SinkRecord record)
      Associate the record with the appropriate file.
      Parameters:
      record - - record to group
    • clear

      void clear()
      Clear all records.
    • records

      Map<String,List<org.apache.kafka.connect.sink.SinkRecord>> records()
      Get all records associated with files, grouped by the file name.
      Returns:
      map of records assotiated with files