Josh Lemer created FLINK-9264:
---------------------------------

             Summary: 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: FileSystem
    Affects Versions: 1.5.0
            Reporter: Josh Lemer


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
(v7.6.3#76005)

Reply via email to