com.cloudera.sqoop.orm
Class CompilationManager
java.lang.Object
com.cloudera.sqoop.orm.CompilationManager
public class CompilationManager
- extends java.lang.Object
Manages the compilation of a bunch of .java files into .class files
and eventually a jar.
Also embeds this program's jar into the lib/ directory inside the compiled
jar to ensure that the job runs correctly.
Field Summary |
static org.apache.commons.logging.Log |
LOG
|
Method Summary |
void |
addSourceFile(java.lang.String sourceName)
|
void |
compile()
Compile the .java files into .class files via embedded javac call. |
java.lang.String |
getJarFilename()
|
void |
jar()
Create an output jar file to use when executing MapReduce jobs. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
public static final org.apache.commons.logging.Log LOG
CompilationManager
public CompilationManager(SqoopOptions opts)
addSourceFile
public void addSourceFile(java.lang.String sourceName)
compile
public void compile()
throws java.io.IOException
- Compile the .java files into .class files via embedded javac call.
- Throws:
java.io.IOException
getJarFilename
public java.lang.String getJarFilename()
- Returns:
- the complete filename of the .jar file to generate.
jar
public void jar()
throws java.io.IOException
- Create an output jar file to use when executing MapReduce jobs.
- Throws:
java.io.IOException
Copyright © 2010 Cloudera, Inc.