tillrohrmann commented on a change in pull request #19:
URL: 
https://github.com/apache/flink-statefun-playground/pull/19#discussion_r797656048



##########
File path: 
java/connected-components/src/main/java/org/apache/flink/statefun/playground/java/connectedcomponents/types/Types.java
##########
@@ -0,0 +1,38 @@
+package org.apache.flink.statefun.playground.java.connectedcomponents.types;
+
+import 
org.apache.flink.statefun.playground.java.connectedcomponents.types.generated.VertexComponentChange;
+import org.apache.flink.statefun.sdk.java.TypeName;
+import org.apache.flink.statefun.sdk.java.types.SimpleType;
+import org.apache.flink.statefun.sdk.java.types.Type;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+import java.util.Set;
+
+public final class Types {
+
+  private Types() {}
+
+  private static final ObjectMapper JSON_OBJ_MAPPER = new ObjectMapper();
+  private static final String TYPES_NAMESPACE = "connected-components.types";
+
+  /**
+   * Type denoting a new vertex coming from the input source.
+   */
+  public static final Type<Vertex> VERTEX_INIT_TYPE =
+      SimpleType.simpleImmutableTypeFrom(
+          TypeName.typeNameOf(TYPES_NAMESPACE, Vertex.class.getName()),

Review comment:
       True. Yes, will use a string constant.




-- 
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]


Reply via email to