|
||||||||||
| 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)
|
|
| Method Summary | |
|---|---|
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)
|
| 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 performance| Method Detail |
|---|
public void processShellCmd(String key,
String val)
key - - parameter nameval - - string containing command to be executed
public void processOrdLine(String key,
String val)
key - - parameter nameval - - value supplied for the key
public void processShellCmd(String key,
String val,
Boolean overwrite)
key - - parameter nameval - - string containing command to be executed
public void processOrdLine(String key,
String val,
Boolean overwrite)
key - - parameter nameval - - value supplied for the keyoverwrite - - specifies whether the value should be replaced if it already existspublic String substitute(String line)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||