org.apache.pig.impl.util
Class PropertiesUtil
java.lang.Object
org.apache.pig.impl.util.PropertiesUtil
public class PropertiesUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertiesUtil
public PropertiesUtil()
loadDefaultProperties
public static void loadDefaultProperties(Properties properties)
- Loads the default properties from pig-default.properties and
pig.properties.
- Parameters:
properties
- Properties object that needs to be loaded with the
properties' values.
loadPropertiesFromFile
public static void loadPropertiesFromFile(Properties properties,
String fileName)
- Loads the properties from a given file.
- Parameters:
properties
- Properties object that is to be loaded.fileName
- file name of the file that contains the properties.
loadDefaultProperties
public static Properties loadDefaultProperties()
- Loads default properties.
- Returns:
- default properties
Copyright © 2012 The Apache Software Foundation