You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kafka subproject has a KafkaDataSource implementation that will return the KafkaSream(s) as Iterators via the MultiThreadedDataSource implementation, allowing KafkaStream(s) to be aggregated in parallel. Note that each stream will carry its own aggregation.
The KafkaDataSource takes as argument a Transform instance that allows you to plug in any message format support to the data source.
e.g.
new KafkaDataSource(streamsList, new Transform<Message>{
Object[] apply(Message m){
new Object[]{getName(m), getURL(m)}
}
});