test_class.declarator: tmp = new TemporaryFolder()
test_class.modifier: @Rule
  	public
test_class.original_string: @Rule
  	public TemporaryFolder tmp = new TemporaryFolder();
test_class.type: TemporaryFolder
test_class.var_name: tmp
test_class.file: flink-java/src/test/java/org/apache/flink/api/java/utils/ParameterToolTest.java
test_class.identifier: ParameterToolTest
test_case.body: @Test
  	public void testFromPropertiesFile() throws IOException {
  		File propertiesFile = tmp.newFile();
  		Properties props = new Properties();
  		props.setProperty("input", "myInput");
  		props.setProperty("expectedCount", "15");
  		props.store(new FileOutputStream(propertiesFile), "Test properties");
  		ParameterTool parameter = ParameterTool.fromPropertiesFile(propertiesFile.getAbsolutePath());
  		Assert.assertEquals(2, parameter.getNumberOfParameters());
  		validate(parameter);
  	}
test_case.class_method_signature: ParameterToolTest.testFromPropertiesFile()
test_case.full_signature: @Test public void testFromPropertiesFile()
test_case.identifier: testFromPropertiesFile
test_case.invocations: newFile setProperty setProperty store fromPropertiesFile getAbsolutePath assertEquals getNumberOfParameters validate
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFromPropertiesFile()
focal_class.declarator: serialVersionUID = 1L
focal_class.modifier: private static final
focal_class.original_string: private static final long serialVersionUID = 1L;
focal_class.type: long
focal_class.var_name: serialVersionUID
focal_class.declarator: NO_VALUE_KEY = "__NO_VALUE_KEY"
focal_class.modifier: protected static
focal_class.original_string: protected static String NO_VALUE_KEY = "__NO_VALUE_KEY";
focal_class.type: String
focal_class.var_name: NO_VALUE_KEY
focal_class.declarator: DEFAULT_UNDEFINED = "<undefined>"
focal_class.modifier: protected static
focal_class.original_string: protected static String DEFAULT_UNDEFINED = "<undefined>";
focal_class.type: String
focal_class.var_name: DEFAULT_UNDEFINED
focal_class.declarator: data
focal_class.modifier: protected final
focal_class.original_string: protected final Map<String, String> data;
focal_class.type: Map<String, String>
focal_class.var_name: data
focal_class.declarator: defaultData
focal_class.modifier: protected final
focal_class.original_string: protected final HashMap<String, String> defaultData;
focal_class.type: HashMap<String, String>
focal_class.var_name: defaultData
focal_class.file: flink-java/src/main/java/org/apache/flink/api/java/utils/ParameterTool.java
focal_class.identifier: ParameterTool
focal_class.interfaces: implements Serializable, Cloneable
focal_class.class_method_signature: ParameterTool.fromArgs(String[] args)
focal_class.full_signature: public static ParameterTool fromArgs(String[] args)
focal_class.identifier: fromArgs
focal_class.modifiers: public static
focal_class.parameters: (String[] args)
focal_class.return: ParameterTool
focal_class.signature: ParameterTool fromArgs(String[] args)
focal_class.class_method_signature: ParameterTool.fromPropertiesFile(String path)
focal_class.full_signature: public static ParameterTool fromPropertiesFile(String path)
focal_class.identifier: fromPropertiesFile
focal_class.modifiers: public static
focal_class.parameters: (String path)
focal_class.return: ParameterTool
focal_class.signature: ParameterTool fromPropertiesFile(String path)
focal_class.class_method_signature: ParameterTool.fromMap(Map<String, String> map)
focal_class.full_signature: public static ParameterTool fromMap(Map<String, String> map)
focal_class.identifier: fromMap
focal_class.modifiers: public static
focal_class.parameters: (Map<String, String> map)
focal_class.return: ParameterTool
focal_class.signature: ParameterTool fromMap(Map<String, String> map)
focal_class.class_method_signature: ParameterTool.fromSystemProperties()
focal_class.full_signature: public static ParameterTool fromSystemProperties()
focal_class.identifier: fromSystemProperties
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: ParameterTool
focal_class.signature: ParameterTool fromSystemProperties()
focal_class.class_method_signature: ParameterTool.fromGenericOptionsParser(String[] args)
focal_class.full_signature: @PublicEvolving public static ParameterTool fromGenericOptionsParser(String[] args)
focal_class.identifier: fromGenericOptionsParser
focal_class.modifiers: @PublicEvolving public static
focal_class.parameters: (String[] args)
focal_class.return: ParameterTool
focal_class.signature: ParameterTool fromGenericOptionsParser(String[] args)
focal_class.class_method_signature: ParameterTool.ParameterTool(Map<String, String> data)
focal_class.full_signature: private  ParameterTool(Map<String, String> data)
focal_class.identifier: ParameterTool
focal_class.modifiers: private
focal_class.parameters: (Map<String, String> data)
focal_class.signature:  ParameterTool(Map<String, String> data)
focal_class.class_method_signature: ParameterTool.getNumberOfParameters()
focal_class.full_signature: public int getNumberOfParameters()
focal_class.identifier: getNumberOfParameters
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumberOfParameters()
focal_class.class_method_signature: ParameterTool.get(String key)
focal_class.full_signature: public String get(String key)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String get(String key)
focal_class.class_method_signature: ParameterTool.getRequired(String key)
focal_class.full_signature: public String getRequired(String key)
focal_class.identifier: getRequired
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: String
focal_class.signature: String getRequired(String key)
focal_class.class_method_signature: ParameterTool.get(String key, String defaultValue)
focal_class.full_signature: public String get(String key, String defaultValue)
focal_class.identifier: get
focal_class.modifiers: public
focal_class.parameters: (String key, String defaultValue)
focal_class.return: String
focal_class.signature: String get(String key, String defaultValue)
focal_class.class_method_signature: ParameterTool.has(String value)
focal_class.full_signature: public boolean has(String value)
focal_class.identifier: has
focal_class.modifiers: public
focal_class.parameters: (String value)
focal_class.return: boolean
focal_class.signature: boolean has(String value)
focal_class.class_method_signature: ParameterTool.getInt(String key)
focal_class.full_signature: public int getInt(String key)
focal_class.identifier: getInt
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: int
focal_class.signature: int getInt(String key)
focal_class.class_method_signature: ParameterTool.getInt(String key, int defaultValue)
focal_class.full_signature: public int getInt(String key, int defaultValue)
focal_class.identifier: getInt
focal_class.modifiers: public
focal_class.parameters: (String key, int defaultValue)
focal_class.return: int
focal_class.signature: int getInt(String key, int defaultValue)
focal_class.class_method_signature: ParameterTool.getLong(String key)
focal_class.full_signature: public long getLong(String key)
focal_class.identifier: getLong
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: long
focal_class.signature: long getLong(String key)
focal_class.class_method_signature: ParameterTool.getLong(String key, long defaultValue)
focal_class.full_signature: public long getLong(String key, long defaultValue)
focal_class.identifier: getLong
focal_class.modifiers: public
focal_class.parameters: (String key, long defaultValue)
focal_class.return: long
focal_class.signature: long getLong(String key, long defaultValue)
focal_class.class_method_signature: ParameterTool.getFloat(String key)
focal_class.full_signature: public float getFloat(String key)
focal_class.identifier: getFloat
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: float
focal_class.signature: float getFloat(String key)
focal_class.class_method_signature: ParameterTool.getFloat(String key, float defaultValue)
focal_class.full_signature: public float getFloat(String key, float defaultValue)
focal_class.identifier: getFloat
focal_class.modifiers: public
focal_class.parameters: (String key, float defaultValue)
focal_class.return: float
focal_class.signature: float getFloat(String key, float defaultValue)
focal_class.class_method_signature: ParameterTool.getDouble(String key)
focal_class.full_signature: public double getDouble(String key)
focal_class.identifier: getDouble
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: double
focal_class.signature: double getDouble(String key)
focal_class.class_method_signature: ParameterTool.getDouble(String key, double defaultValue)
focal_class.full_signature: public double getDouble(String key, double defaultValue)
focal_class.identifier: getDouble
focal_class.modifiers: public
focal_class.parameters: (String key, double defaultValue)
focal_class.return: double
focal_class.signature: double getDouble(String key, double defaultValue)
focal_class.class_method_signature: ParameterTool.getBoolean(String key)
focal_class.full_signature: public boolean getBoolean(String key)
focal_class.identifier: getBoolean
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: boolean
focal_class.signature: boolean getBoolean(String key)
focal_class.class_method_signature: ParameterTool.getBoolean(String key, boolean defaultValue)
focal_class.full_signature: public boolean getBoolean(String key, boolean defaultValue)
focal_class.identifier: getBoolean
focal_class.modifiers: public
focal_class.parameters: (String key, boolean defaultValue)
focal_class.return: boolean
focal_class.signature: boolean getBoolean(String key, boolean defaultValue)
focal_class.class_method_signature: ParameterTool.getShort(String key)
focal_class.full_signature: public short getShort(String key)
focal_class.identifier: getShort
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: short
focal_class.signature: short getShort(String key)
focal_class.class_method_signature: ParameterTool.getShort(String key, short defaultValue)
focal_class.full_signature: public short getShort(String key, short defaultValue)
focal_class.identifier: getShort
focal_class.modifiers: public
focal_class.parameters: (String key, short defaultValue)
focal_class.return: short
focal_class.signature: short getShort(String key, short defaultValue)
focal_class.class_method_signature: ParameterTool.getByte(String key)
focal_class.full_signature: public byte getByte(String key)
focal_class.identifier: getByte
focal_class.modifiers: public
focal_class.parameters: (String key)
focal_class.return: byte
focal_class.signature: byte getByte(String key)
focal_class.class_method_signature: ParameterTool.getByte(String key, byte defaultValue)
focal_class.full_signature: public byte getByte(String key, byte defaultValue)
focal_class.identifier: getByte
focal_class.modifiers: public
focal_class.parameters: (String key, byte defaultValue)
focal_class.return: byte
focal_class.signature: byte getByte(String key, byte defaultValue)
focal_class.class_method_signature: ParameterTool.addToDefaults(String key, String value)
focal_class.full_signature: protected void addToDefaults(String key, String value)
focal_class.identifier: addToDefaults
focal_class.modifiers: protected
focal_class.parameters: (String key, String value)
focal_class.return: void
focal_class.signature: void addToDefaults(String key, String value)
focal_class.class_method_signature: ParameterTool.getConfiguration()
focal_class.full_signature: public Configuration getConfiguration()
focal_class.identifier: getConfiguration
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Configuration
focal_class.signature: Configuration getConfiguration()
focal_class.class_method_signature: ParameterTool.getProperties()
focal_class.full_signature: public Properties getProperties()
focal_class.identifier: getProperties
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Properties
focal_class.signature: Properties getProperties()
focal_class.class_method_signature: ParameterTool.createPropertiesFile(String pathToFile)
focal_class.full_signature: public void createPropertiesFile(String pathToFile)
focal_class.identifier: createPropertiesFile
focal_class.modifiers: public
focal_class.parameters: (String pathToFile)
focal_class.return: void
focal_class.signature: void createPropertiesFile(String pathToFile)
focal_class.class_method_signature: ParameterTool.createPropertiesFile(String pathToFile, boolean overwrite)
focal_class.full_signature: public void createPropertiesFile(String pathToFile, boolean overwrite)
focal_class.identifier: createPropertiesFile
focal_class.modifiers: public
focal_class.parameters: (String pathToFile, boolean overwrite)
focal_class.return: void
focal_class.signature: void createPropertiesFile(String pathToFile, boolean overwrite)
focal_class.class_method_signature: ParameterTool.clone()
focal_class.full_signature: @Override protected Object clone()
focal_class.identifier: clone
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: Object
focal_class.signature: Object clone()
focal_class.class_method_signature: ParameterTool.mergeWith(ParameterTool other)
focal_class.full_signature: public ParameterTool mergeWith(ParameterTool other)
focal_class.identifier: mergeWith
focal_class.modifiers: public
focal_class.parameters: (ParameterTool other)
focal_class.return: ParameterTool
focal_class.signature: ParameterTool mergeWith(ParameterTool other)
focal_class.class_method_signature: ParameterTool.toMap()
focal_class.full_signature: @Override public Map<String, String> toMap()
focal_class.identifier: toMap
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Map<String, String>
focal_class.signature: Map<String, String> toMap()
focal_class.superclass: extends ExecutionConfig.GlobalJobParameters
focal_method.body: public static ParameterTool fromPropertiesFile(String path) throws IOException {
  		File propertiesFile = new File(path);
  		if(!propertiesFile.exists()) {
  			throw new FileNotFoundException("Properties file "+path+" does not exist");
  		}
  		Properties props = new Properties();
  		FileInputStream fis = new FileInputStream(propertiesFile);
  		props.load(fis);
  		fis.close();
  		return fromMap((Map)props);
  	}
focal_method.class_method_signature: ParameterTool.fromPropertiesFile(String path)
focal_method.full_signature: public static ParameterTool fromPropertiesFile(String path)
focal_method.identifier: fromPropertiesFile
focal_method.invocations: exists load close fromMap
focal_method.modifiers: public static
focal_method.parameters: (String path)
focal_method.return: ParameterTool
focal_method.signature: ParameterTool fromPropertiesFile(String path)