org.apache.pig.tools.parameters
Class PreprocessorContext

java.lang.Object
  extended by org.apache.pig.tools.parameters.PreprocessorContext

public class PreprocessorContext
extends Object


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

PreprocessorContext

public PreprocessorContext(int limit)
Parameters:
limit - - max number of parameters. Passing smaller number only impacts performance
Method Detail

processShellCmd

public void processShellCmd(String key,
                            String val)
This method generates parameter value by running specified command

Parameters:
key - - parameter name
val - - string containing command to be executed

processOrdLine

public void processOrdLine(String key,
                           String val)
This method generates value for the specified key by performing substitution if needed within the value first.

Parameters:
key - - parameter name
val - - value supplied for the key

processShellCmd

public void processShellCmd(String key,
                            String val,
                            Boolean overwrite)
This method generates parameter value by running specified command

Parameters:
key - - parameter name
val - - string containing command to be executed

processOrdLine

public 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.

Parameters:
key - - parameter name
val - - value supplied for the key
overwrite - - specifies whether the value should be replaced if it already exists

substitute

public String substitute(String line)


Copyright © 2012 The Apache Software Foundation