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  RecordGrouper.Rotator<T>  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clear all records.
      void put​(org.apache.kafka.connect.sink.SinkRecord record)
      Associate the record with the appropriate file.
      java.util.Map<java.lang.String,​java.util.List<org.apache.kafka.connect.sink.SinkRecord>> records()
      Get all records associated with files, grouped by the file name.
    • Method Detail

      • 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

        java.util.Map<java.lang.String,​java.util.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