org.apache.hadoop.record.compiler
Class JFile
java.lang.Object
org.apache.hadoop.record.compiler.JFile
public class JFile
- extends java.lang.Object
Container for the Hadoop Record DDL.
The main components of the file are filename, list of included files,
and records defined in that file.
Constructor Summary |
JFile(java.lang.String name,
java.util.ArrayList<JFile> inclFiles,
java.util.ArrayList<JRecord> recList)
Creates a new instance of JFile |
Method Summary |
int |
genCode(java.lang.String language,
java.lang.String destDir,
java.util.ArrayList<java.lang.String> options)
Generate record code in given language. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JFile
public JFile(java.lang.String name,
java.util.ArrayList<JFile> inclFiles,
java.util.ArrayList<JRecord> recList)
- Creates a new instance of JFile
- Parameters:
name
- possibly full pathname to the fileinclFiles
- included files (as JFile)recList
- List of records defined within this file
genCode
public int genCode(java.lang.String language,
java.lang.String destDir,
java.util.ArrayList<java.lang.String> options)
throws java.io.IOException
- Generate record code in given language. Language should be all
lowercase.
- Throws:
java.io.IOException
Copyright © 2009 The Apache Software Foundation