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)
           
ParameterSubstitutionPreprocessor(PreprocessorContext pc)
           
 
Method Summary
 void genSubstitutedFile(BufferedReader pigInput, Writer pigOutput)
          This is the main API that takes script template and produces pig script
 void genSubstitutedFile(BufferedReader pigInput, Writer pigOutput, String[] params, String[] paramFiles)
           
 
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

ParameterSubstitutionPreprocessor

public ParameterSubstitutionPreprocessor(PreprocessorContext pc)
Method Detail

genSubstitutedFile

public void genSubstitutedFile(BufferedReader pigInput,
                               Writer pigOutput)
                        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
paramVal - - map of parameter names to values
Throws:
org.apache.pig.tools.parameters.ParseException

genSubstitutedFile

public void genSubstitutedFile(BufferedReader pigInput,
                               Writer pigOutput,
                               String[] params,
                               String[] paramFiles)
                        throws org.apache.pig.tools.parameters.ParseException
Throws:
org.apache.pig.tools.parameters.ParseException


Copyright © 2007-2012 The Apache Software Foundation