public class ParameterSubstitutionPreprocessor
extends java.lang.Object
Constructor and Description |
---|
ParameterSubstitutionPreprocessor(int limit) |
ParameterSubstitutionPreprocessor(PreprocessorContext pc) |
Modifier and Type | Method and Description |
---|---|
void |
genSubstitutedFile(java.io.BufferedReader pigInput,
java.io.Writer pigOutput)
This is the main API that takes script template and produces pig script
|
void |
genSubstitutedFile(java.io.BufferedReader pigInput,
java.io.Writer pigOutput,
java.lang.String[] params,
java.lang.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(java.io.BufferedReader pigInput, java.io.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(java.io.BufferedReader pigInput, java.io.Writer pigOutput, java.lang.String[] params, java.lang.String[] paramFiles) throws org.apache.pig.tools.parameters.ParseException
org.apache.pig.tools.parameters.ParseException
Copyright © 2007-2012 The Apache Software Foundation