Examples of BytesSink


Examples of com.adgear.anoa.sink.serialized.BytesSink

      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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.