org.apache.pig
Class Main

java.lang.Object
  extended by org.apache.pig.Main

@InterfaceAudience.LimitedPrivate(value="Oozie")
@InterfaceStability.Stable
public class Main
extends Object

Main class for Pig engine.


Constructor Summary
Main()
           
 
Method Summary
static boolean dryrun(String scriptFile, PigContext pigContext)
           
static void main(String[] args)
          The Main-Class for the Pig Jar that will provide a shell and setup a classpath appropriate for executing Jar files.
static void printProperties()
           
static void usage()
          Print usage string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(String[] args)
The Main-Class for the Pig Jar that will provide a shell and setup a classpath appropriate for executing Jar files. Warning, this method calls System.exit().

Parameters:
args - -jar can be used to add additional jar files (colon separated). - will start a shell. -e will execute the rest of the command line as if it was input to the shell.
Throws:
IOException

dryrun

public static boolean dryrun(String scriptFile,
                             PigContext pigContext)
                      throws org.antlr.runtime.RecognitionException,
                             IOException
Throws:
org.antlr.runtime.RecognitionException
IOException

usage

public static void usage()
Print usage string.


printProperties

public static void printProperties()


Copyright © 2012 The Apache Software Foundation