Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/415#discussion_r25085047
--- Diff:
flink-core/src/main/java/org/apache/flink/api/common/typeutils/CompositeType.java
---
@@ -132,7 +133,31 @@ public CompositeType(Class<T> typeClass) {
}
return getNewComparator(config);
}
-
+
+ //
--------------------------------------------------------------------------------------------
+
+ /**
+ * Debugging utility to understand the hierarchy of serializers created
by the Java API.
+ */
+ public static <T> String getSerializerTree(TypeInformation<T> ti) {
+ return getSerializerTree(ti, 0);
+ }
+
+ private static <T> String getSerializerTree(TypeInformation<T> ti, int
indent) {
+ String ret = "";
+ if(ti instanceof CompositeType) {
+ ret += ti.toString()+"\n";
--- End diff --
Should the ```toString``` method not already print the whole tree? Thus,
the information would be redundant.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---