Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple sinks cannot be implemented #311

Open
380828801 opened this issue Oct 7, 2023 · 0 comments
Open

Multiple sinks cannot be implemented #311

380828801 opened this issue Oct 7, 2023 · 0 comments

Comments

@380828801
Copy link

 StreamBuilder builder = new StreamBuilder("wordCount");

    RStream<JSONObject> source = builder.source("stream-topic-1", total -> {
        String value = new String(total, StandardCharsets.UTF_8);
        JSONObject jsonObject = JSON.parseObject(value);
        return new Pair<>(null, jsonObject);
    });

    source.print();
    source.sink("stream-topic-sink",new KVJsonSerializer<>());

    TopologyBuilder topologyBuilder = builder.build();

In TopologyBuilder, public Processor build(String topicName) is executed in node order and cannot implement multiple sinks. The above code can only execute the first sink.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant