Interface RecordGrouper
-
- All Known Implementing Classes:
KeyAndTopicPartitionRecordGrouper,KeyRecordGrouper,TopicPartitionKeyRecordGrouper
public interface RecordGrouperThe interface for classes that associatesSinkRecords with files by some criteria.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRecordGrouper.Rotator<T>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclear()Clear all records.voidput(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
-
-