org.apache.avro.specific
Class SpecificCompiler
java.lang.Object
org.apache.avro.specific.SpecificCompiler
public class SpecificCompiler
- extends Object
Generate specific Java interfaces and classes for protocols and schemas.
Java reserved keywords are mangled to preserve compilation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecificCompiler
public SpecificCompiler(Protocol protocol)
SpecificCompiler
public SpecificCompiler(Schema schema)
compileProtocol
public static void compileProtocol(File src,
File dest)
throws IOException
- Generates Java interface and classes for a protocol.
- Parameters:
src
- the source Avro protocol filedest
- the directory to place generated files in
- Throws:
IOException
compileSchema
public static void compileSchema(File src,
File dest)
throws IOException
- Generates Java classes for a schema.
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2010 The Apache Software Foundation