org.apache.pig.tools.parameters
Class ParameterSubstitutionPreprocessor
java.lang.Object
org.apache.pig.tools.parameters.ParameterSubstitutionPreprocessor
public class ParameterSubstitutionPreprocessor
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
genSubstitutedFile
public void genSubstitutedFile(BufferedReader pigInput,
Writer pigOutput,
String[] args,
String[] argFiles)
throws ParseException
- This is the main API that takes script template and produces pig script
- Parameters:
pigInput
- - input stream that contains pig filepigOutput
- - stream where transformed file is writtenargs
- - command line arguments in the order they appear on the command line; format: key=valargFiles
- - list of configuration files in the order they appear on the command line
- Throws:
ParseException
Copyright © 2012 The Apache Software Foundation