Package com.adgear.anoa.avro.encode

Examples of com.adgear.anoa.avro.encode.ValueEncoder


   * @param recordSchema The Schema of the records returned by the given upstream Provider.
   */
  public AvroGenericToValue(Provider<GenericRecord> provider, Schema recordSchema) {
    super(provider,
          recordSchema,
          new ValueEncoder(),
          new GenericDatumTextWriter<GenericRecord>(recordSchema));
    writer.withFieldNames();
  }
View Full Code Here


public class AvroSpecificToValue<R extends IndexedRecord> extends AvroToSchemalessBase<R, Value> {

  public AvroSpecificToValue(AvroProvider<R> provider) {
    super(provider,
          provider.getAvroSchema(),
          new ValueEncoder(),
          new SpecificDatumTextWriter<R>(provider.getAvroSchema()));
    writer.withFieldNames();
  }
View Full Code Here

   * @param recordClass The class object of the records returned by the given upstream Provider.
   */
  public AvroSpecificToValue(Provider<R> provider, Class<R> recordClass) {
    super(provider,
          SpecificData.get().getSchema(recordClass),
          new ValueEncoder(),
          new SpecificDatumTextWriter<R>(recordClass));
    writer.withFieldNames();
  }
View Full Code Here

TOP

Related Classes of com.adgear.anoa.avro.encode.ValueEncoder

Copyright © 2018 www.massapicom. 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.