case AVRO:
sink = new AvroSink<GenericRecord>(out, schema).appendAll(avroProvider);
return avroProvider;
case MSGPACK: {
Provider<byte[]> codec = new ValueToBytes(new AvroGenericToValue(avroProvider));
sink = new BytesSink(out).appendAll(codec);
return codec;
}
case JSON: {
Provider<byte[]> codec = new ValueToJsonBytes(new AvroGenericToValue(avroProvider));
sink = new BytesLineSink(out).appendAll(codec);