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
ParameterSubstitutionPreprocessor
public ParameterSubstitutionPreprocessor(PreprocessorContext pc)
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 filepigOutput
- - stream where transformed file is writtenparamVal
- - 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