zendesk / scala-flow

A lightweight library intended to make developing Google DataFlow jobs in Scala easier.
Apache License 2.0
14 stars 1 forks source link

Custom Case Class Coders #3

Closed bcasey-zd closed 7 years ago

bcasey-zd commented 7 years ago
dasch commented 7 years ago

I'd be interested in exploring the use of bijections at a higher level – I already have an example of inferring a coder given a bijection between A and B and an implicit coder for B. If we can provide bijections between any case class of a given arity (using the ProductN base types) and an N-tuple, we may get everything for free...

bcasey-zd commented 7 years ago

It's certainly worth exploring. Akka Http does something similar to marshal return types to HttpResponse.