|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.tools.parameters.PreprocessorContext
public class PreprocessorContext
Constructor Summary | |
---|---|
PreprocessorContext(int limit)
|
|
PreprocessorContext(Map<String,String> paramVal)
|
Method Summary | |
---|---|
Map<String,String> |
getParamVal()
|
void |
loadParamVal(List<String> params,
List<String> paramFiles)
|
void |
processOrdLine(String key,
String val)
This method generates value for the specified key by performing substitution if needed within the value first. |
void |
processOrdLine(String key,
String val,
Boolean overwrite)
This method generates value for the specified key by performing substitution if needed within the value first. |
void |
processShellCmd(String key,
String val)
This method generates parameter value by running specified command |
void |
processShellCmd(String key,
String val,
Boolean overwrite)
This method generates parameter value by running specified command |
String |
substitute(String line)
|
String |
substitute(String line,
String parentKey)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreprocessorContext(int limit)
limit
- - max number of parameters. Passing
smaller number only impacts performancepublic PreprocessorContext(Map<String,String> paramVal)
Method Detail |
---|
public Map<String,String> getParamVal()
public void processShellCmd(String key, String val) throws ParameterSubstitutionException
key
- - parameter nameval
- - string containing command to be executed
ParameterSubstitutionException
public void processOrdLine(String key, String val) throws ParameterSubstitutionException
key
- - parameter nameval
- - value supplied for the key
ParameterSubstitutionException
public void processShellCmd(String key, String val, Boolean overwrite) throws ParameterSubstitutionException
key
- - parameter nameval
- - string containing command to be executed
ParameterSubstitutionException
public void processOrdLine(String key, String val, Boolean overwrite) throws ParameterSubstitutionException
key
- - parameter nameval
- - value supplied for the keyoverwrite
- - specifies whether the value should be replaced if it already exists
ParameterSubstitutionException
public void loadParamVal(List<String> params, List<String> paramFiles) throws IOException, org.apache.pig.tools.parameters.ParseException
IOException
org.apache.pig.tools.parameters.ParseException
public String substitute(String line) throws ParameterSubstitutionException
ParameterSubstitutionException
public String substitute(String line, String parentKey) throws ParameterSubstitutionException
ParameterSubstitutionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |