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

Zili Chen closed FLINK-12826.
-----------------------------
    Fix Version/s:     (was: 1.10.0)
       Resolution: Won't Do

> 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: Zili Chen
>            Assignee: Zili Chen
>            Priority: Minor
>
> 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
(v8.3.4#803005)

Reply via email to