|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.impl.util.UDFContext
public class UDFContext
Method Summary | |
---|---|
void |
addJobConf(org.apache.hadoop.conf.Configuration conf)
Adds the JobConf to this singleton. |
void |
deserialize()
Populate the udfConfs field. |
Properties |
getClientSystemProps()
Get the System Properties (Read only) as on the client machine from where Pig was launched. |
org.apache.hadoop.conf.Configuration |
getJobConf()
Get the JobConf. |
static UDFContext |
getUDFContext()
|
Properties |
getUDFProperties(Class c)
Get a properties object that is specific to this UDF. |
Properties |
getUDFProperties(Class c,
String[] args)
Get a properties object that is specific to this UDF. |
boolean |
isUDFConfEmpty()
|
void |
reset()
|
void |
serialize(org.apache.hadoop.conf.Configuration conf)
Serialize the UDF specific information into an instance of JobConf. |
void |
setClientSystemProps(Properties properties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static UDFContext getUDFContext()
public void setClientSystemProps(Properties properties)
public Properties getClientSystemProps()
public void addJobConf(org.apache.hadoop.conf.Configuration conf)
public org.apache.hadoop.conf.Configuration getJobConf()
public Properties getUDFProperties(Class c, String[] args)
c
- of the UDF obtaining the properties object.args
- String arguments that make this instance of
the UDF unique.
public Properties getUDFProperties(Class c)
c
- of the UDF obtaining the properties object.
public void serialize(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- JobConf to serialize into
IOException
- if underlying serialization throws itpublic void deserialize() throws IOException
IOException
- if underlying deseralization throws itpublic void reset()
public boolean isUDFConfEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |