Class TaskParameters
- java.lang.Object
-
- com.snowflake.connectors.common.task.TaskParameters
-
public class TaskParameters extends Object
Class representing additional task parameters.
-
-
Constructor Summary
Constructors Constructor Description TaskParameters(Map<String,String> parameters)Creates a newTaskParametersinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>getParameter(String parameter)Returns the value of the specified task parameter.booleanisNotEmpty()Returns whether there are any additional task parameters.Stream<Map.Entry<String,String>>stream()Returns a stream iterating over entries of the parameters map.
-
-
-
Constructor Detail
-
TaskParameters
public TaskParameters(Map<String,String> parameters)
Creates a newTaskParametersinstance.- Parameters:
parameters- task parameters
-
-
Method Detail
-
getParameter
public Optional<String> getParameter(String parameter)
Returns the value of the specified task parameter.- Parameters:
parameter- task parameter name- Returns:
- value of the specified task parameter
-
isNotEmpty
public boolean isNotEmpty()
Returns whether there are any additional task parameters.- Returns:
- whether there are any additional task parameters
-
-