All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.quasardb.kafka.common.resolver.TopicResolver Maven / Gradle / Ivy

There is a newer version: 3.14.1
Show newest version
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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy