flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dawidwys <...@git.apache.org>
Subject [GitHub] flink issue #4039: [FLINK-6783] Changed passing index of type argument while...
Date Fri, 02 Jun 2017 09:20:05 GMT
Github user dawidwys commented on the issue:

    Sure, with the arrays you provide index of the input/output parameters in lambdas. The
lambdaInputTypeArgumentIndices[0] is the argument index of lambda function. The lambdaInputTypeArgumentIndices[1]
is the index within the argument, if the argument is a generic type and so on.
    So for example if we have a functional interface like:
    public interface Dummy<IN, OUT> {
    OUT apply(Map<String, List<IN>> value)
    To extract inputType **IN** from lambda you need to provide array like `new int[] {0,1,0}`.

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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message