org.apache.pig.tools.parameters
Class ParameterSubstitutionPreprocessor

java.lang.Object
  extended by org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor

public class ParameterSubstitutionPreprocessor
extends Object


Constructor Summary
ParameterSubstitutionPreprocessor(int limit)
           
 
Method Summary
 void genSubstitutedFile(BufferedReader pigInput, Writer pigOutput, String[] args, String[] argFiles)
          This is the main API that takes script template and produces pig script
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParameterSubstitutionPreprocessor

public ParameterSubstitutionPreprocessor(int limit)
Parameters:
limit - - max number of parameters to expect. Smaller values would would not cause incorrect behavior but would impact performance
Method Detail

genSubstitutedFile

public void genSubstitutedFile(BufferedReader pigInput,
                               Writer pigOutput,
                               String[] args,
                               String[] argFiles)
                        throws org.apache.pig.tools.parameters.ParseException
This is the main API that takes script template and produces pig script

Parameters:
pigInput - - input stream that contains pig file
pigOutput - - stream where transformed file is written
args - - command line arguments in the order they appear on the command line; format: key=val
argFiles - - list of configuration files in the order they appear on the command line
Throws:
org.apache.pig.tools.parameters.ParseException


Copyright © 2007-2012 The Apache Software Foundation