net.quasardb.kafka.common.resolver.TopicResolver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-connect-qdb Show documentation
Show all versions of kafka-connect-qdb Show documentation
Kafka Connect plugin for the QuasarDB database
package net.quasardb.kafka.common.resolver;
import java.util.Collection;
import java.util.Map;
import java.util.HashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.kafka.connect.sink.SinkRecord;
import org.apache.kafka.connect.errors.DataException;
public class TopicResolver extends Resolver {
private static final Logger log = LoggerFactory.getLogger(TopicResolver.class);
public TopicResolver() {
log.info("Initializing topic table resolver");
}
@Override
public String resolve(SinkRecord record) throws DataException {
return record.topic();
}
}