[
https://issues.apache.org/jira/browse/FLINK-3118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15066577#comment-15066577
]
ASF GitHub Bot commented on FLINK-3118:
---------------------------------------
Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/1471#discussion_r48155988
--- Diff:
flink-java/src/main/java/org/apache/flink/api/java/typeutils/TypeExtractor.java
---
@@ -340,6 +340,15 @@ protected TypeExtractor() {
}
return ti;
}
+
+ @SuppressWarnings("unchecked")
+ public static <OUT> TypeInformation<OUT> createTypeInfo(Class<?>
baseClass, Class<?> clazz, int returnParamPos, Object instance) {
+ if (instance != null && instance instanceof
ResultTypeQueryable) {
--- End diff --
`x instanceof T` is automatically false if `x == null`.
> Check if MessageFunction implements ResultTypeQueryable
> -------------------------------------------------------
>
> Key: FLINK-3118
> URL: https://issues.apache.org/jira/browse/FLINK-3118
> Project: Flink
> Issue Type: Bug
> Components: Gelly
> Reporter: Martin Junghanns
> Assignee: Martin Junghanns
>
> To generalize message values in vertex centric computations, it is necessary
> to let the user define the {{TypeInformation}} via {{ResultTypeQueryable}}.
> This needs to be checked in {{VertexCentricIteration}}.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)