Examples of OptionalDefaultMode


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
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.