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

Flink Jira Bot updated FLINK-9264:
----------------------------------
    Labels: stale-assigned stale-minor  (was: stale-minor)

> Add method Writer[A]#contramap[B](f: B => A): Writer[B]
> -------------------------------------------------------
>
>                 Key: FLINK-9264
>                 URL: https://issues.apache.org/jira/browse/FLINK-9264
>             Project: Flink
>          Issue Type: Task
>          Components: FileSystems
>    Affects Versions: 1.5.0
>            Reporter: Josh Lemer
>            Assignee: vinoyang
>            Priority: Minor
>              Labels: stale-assigned, stale-minor
>
> Similar to https://issues.apache.org/jira/browse/FLINK-9221, it would be very 
> handy to have a `Add method Writer[A]#contramap[B](f: B => A): Writer[B]` 
> method, which would allow reuse of existing writers, with a "formatting" 
> function placed infront of it. For example:
> val stringWriter = new StringWriter[String]()
> val intWriter: Writer[Int] = stringWriter.contraMap[Int](_.toString) 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to