Q:

How to serialize CharSequence in Dataflow?

Is there an existing coder I can use to serialize/deserialize CharSequence objects? Do I need to create a custom coder.
I have a bunch of functions that use CharSequence as inputs and outputs. I want to create a generic Dataflow transform that I can use to turn this functions into DoFns. 

A:

My custom coder CharSequenceCoder worked.
This coder is based on StringUtf8Coder. The changes I made were

Change the base class to AtomicCoder<CharSequence>
Add a couple of conversions from CharSequence to String

