tillrohrmann commented on a change in pull request #19:
URL:
https://github.com/apache/flink-statefun-playground/pull/19#discussion_r797656588
##########
File path:
java/connected-components/src/main/java/org/apache/flink/statefun/playground/java/connectedcomponents/ConnectedComponentsFn.java
##########
@@ -0,0 +1,133 @@
+package org.apache.flink.statefun.playground.java.connectedcomponents;
+
+import
org.apache.flink.statefun.playground.java.connectedcomponents.types.Types;
+import
org.apache.flink.statefun.playground.java.connectedcomponents.types.Vertex;
+import
org.apache.flink.statefun.playground.java.connectedcomponents.types.generated.VertexComponentChange;
+import org.apache.flink.statefun.sdk.java.Context;
+import org.apache.flink.statefun.sdk.java.StatefulFunction;
+import org.apache.flink.statefun.sdk.java.StatefulFunctionSpec;
+import org.apache.flink.statefun.sdk.java.TypeName;
+import org.apache.flink.statefun.sdk.java.ValueSpec;
+import org.apache.flink.statefun.sdk.java.io.KafkaEgressMessage;
+import org.apache.flink.statefun.sdk.java.message.Message;
+import org.apache.flink.statefun.sdk.java.message.MessageBuilder;
+
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.Set;
+import java.util.concurrent.CompletableFuture;
+
+/**
+ * A stateful function that computes the connected component for a stream of
vertices.
Review comment:
I think this is a good idea. Will dig some link up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]