Package com.linkedin.data.avro

Examples of com.linkedin.data.avro.OptionalDefaultMode


  {
    final AvroSchemaGenerator generator = new AvroSchemaGenerator(new Config(resolverPath));

    if (optionalDefault != null)
    {
      final OptionalDefaultMode optionalDefaultMode = OptionalDefaultMode.valueOf(optionalDefault.toUpperCase());
      generator.getDataToAvroSchemaTranslationOptions().setOptionalDefaultMode(optionalDefaultMode);
    }

    generator.generate(targetDirectoryPath, sources);
  }
View Full Code Here

TOP

Related Classes of com.linkedin.data.avro.OptionalDefaultMode

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.