Provides a wrapper for the JobConf object.
Simple JobConf wrapper to cache type-converted items.
Use the [] operator to get the original conf string value for property k.
Parameters: | k – name of the property. |
---|---|
Raises KeyError: | |
if the requested property doesn’t exist. |
Return the original conf string, if k exists in the configuration. Else return the value of the argument default.
Parameters: |
|
---|
Fetch the property named k and convert it to a bool.
The values ‘t’, ‘true’, and ‘1’ (upper or lower case) are accepted for True. Similarly, ‘f’, ‘false’ and ‘0’ are accepted for False.
Parameters: |
|
---|---|
Raises ValueError: | |
if the value can’t be converted to a bool. |
Fetch the property named k and convert it to a float.
Parameters: |
|
---|---|
Raises ValueError: | |
if the value can’t be converted to a float. |
Fetch the property named k and convert it to an int.
Parameters: |
|
---|---|
Raises ValueError: | |
if the value can’t be converted to an int. |
Test for the presence of the property k in the configuration.
Parameters: | k – name of the property. |
---|