Package org.apache.avro.compiler.specific

Examples of org.apache.avro.compiler.specific.SpecificCompiler


      Idl parser = new Idl(new File(sourceDirectory, filename), projPathLoader);
      Protocol p = parser.CompilationUnit();
      String json = p.toString(true);
      Protocol protocol = Protocol.parse(json);
      SpecificCompiler compiler = new SpecificCompiler(protocol);
      compiler.setStringType(GenericData.StringType.valueOf(stringType));
      compiler.setTemplateDir(templateDirectory);
      compiler.compileToDestination(null, outputDirectory);
    } catch (ParseException e) {
      throw new IOException(e);
    } catch (DependencyResolutionRequiredException drre) {
      throw new IOException(drre);
    }
View Full Code Here


  @Override
  protected void doCompile(String filename, File sourceDirectory, File outputDirectory) throws IOException {
    File src = new File(sourceDirectory, filename);
    Schema.Parser parser = new Schema.Parser();
    Schema schema = parser.parse(src);
    SpecificCompiler compiler = new SpecificCompiler(schema);
    compiler.setTemplateDir(templateDirectory);
    compiler.setStringType(StringType.valueOf(stringType));
    compiler.compileToDestination(src, outputDirectory);
  }
View Full Code Here

  @Override
  protected void doCompile(String filename, File sourceDirectory, File outputDirectory) throws IOException {
    File src = new File(sourceDirectory, filename);
    Schema.Parser parser = new Schema.Parser();
    Schema schema = parser.parse(src);
    SpecificCompiler compiler = new SpecificCompiler(schema);
    compiler.setStringType(StringType.valueOf(stringType));
    compiler.compileToDestination(src, outputDirectory);
  }
View Full Code Here

 
  @Override
  protected void doCompile(String filename, File sourceDirectory, File outputDirectory) throws IOException {
    File src = new File(sourceDirectory, filename);
    Protocol protocol = Protocol.parse(src);
    SpecificCompiler compiler = new SpecificCompiler(protocol);
    compiler.setStringType(StringType.valueOf(stringType));
    compiler.compileToDestination(src, outputDirectory);
  }
View Full Code Here

TOP

Related Classes of org.apache.avro.compiler.specific.SpecificCompiler

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.