Package com.facebook.presto.kafka

Examples of com.facebook.presto.kafka.KafkaPlugin


        return properties;
    }

    public static void installKafkaPlugin(EmbeddedKafka embeddedKafka, QueryRunner queryRunner, Map<SchemaTableName, KafkaTopicDescription> topicDescriptions)
    {
        KafkaPlugin kafkaPlugin = new KafkaPlugin();
        kafkaPlugin.setTableDescriptionSupplier(Suppliers.ofInstance(topicDescriptions));
        queryRunner.installPlugin(kafkaPlugin);

        Map<String, String> kafkaConfig = ImmutableMap.of(
                "kafka.nodes", embeddedKafka.getConnectString(),
                "kafka.table-names", Joiner.on(",").join(topicDescriptions.keySet()),
View Full Code Here

TOP

Related Classes of com.facebook.presto.kafka.KafkaPlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.