org.apache.gora.compiler
Class GoraCompiler

java.lang.Object
  extended by org.apache.gora.compiler.GoraCompiler

public class GoraCompiler
extends Object

Generate specific Java interfaces and classes for protocols and schemas.


Method Summary
static void compileProtocol(File src, File dest)
          Generates Java interface and classes for a protocol.
static void compileSchema(File src, File dest)
          Generates Java classes for a schema.
static void main(String[] args)
           
static String type(org.apache.avro.Schema schema)
           
static String unbox(org.apache.avro.Schema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 file
dest - 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

type

public static String type(org.apache.avro.Schema schema)

unbox

public static String unbox(org.apache.avro.Schema schema)

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.