You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2019/07/15 15:53:00 UTC

[jira] [Updated] (FLINK-12826) Unify FunctionInterfacesWithException implementations

     [ https://issues.apache.org/jira/browse/FLINK-12826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Metzger updated FLINK-12826:
-----------------------------------
    Component/s: API / DataStream

> Unify FunctionInterfacesWithException implementations
> -----------------------------------------------------
>
>                 Key: FLINK-12826
>                 URL: https://issues.apache.org/jira/browse/FLINK-12826
>             Project: Flink
>          Issue Type: Improvement
>          Components: API / DataStream
>    Affects Versions: 1.9.0
>            Reporter: TisonKun
>            Assignee: TisonKun
>            Priority: Major
>             Fix For: 1.9.0
>
>
> An elegant FunctionInterfacesWithException is like {{BiConsumerWithException}}, which contains
> 1. Functional method, e.g., {{#accept}}
> 2. Unchecked adapter static method.
> Current {{org.apache.flink.util.function}} use 3 strategies to implement point 2.
> 1). As above
> 2). Use another class, e.g., {{CheckedSupplier}}. This is quite tricky because we have both {{ThrowingSupplier}} and {{CheckedSupplier}} and the latter is no more than a static factory wrapper...
> 3). {{FunctionUtils#uncheckedXXX}} Yet another approach.
> I propose to unify these 3 ways into the first way, especially giving {{ThrowingSupplier}} and some others are marked as {{Public}}.
> cc [~GJL] [~StephanEwen]



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)