public class ParameterSubstitutionPreprocessor extends Object
Constructor and Description |
---|
ParameterSubstitutionPreprocessor(int limit) |
ParameterSubstitutionPreprocessor(PreprocessorContext pc) |
Modifier and Type | Method and Description |
---|---|
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) |
public ParameterSubstitutionPreprocessor(int limit)
limit
- - max number of parameters to expect. Smaller values would
would not cause incorrect behavior but would impact performancepublic ParameterSubstitutionPreprocessor(PreprocessorContext pc)
public void genSubstitutedFile(BufferedReader pigInput, Writer pigOutput) throws org.apache.pig.tools.parameters.ParseException
pigInput
- - input stream that contains pig filepigOutput
- - stream where transformed file is writtenparamVal
- - map of parameter names to valuesorg.apache.pig.tools.parameters.ParseException
public void genSubstitutedFile(BufferedReader pigInput, Writer pigOutput, String[] params, String[] paramFiles) throws org.apache.pig.tools.parameters.ParseException
org.apache.pig.tools.parameters.ParseException
Copyright © 2007-2012 The Apache Software Foundation