public class BasicConfigurationResolver extends Object implements CommandTaskInfo.ConfigurationResolver
CommandTaskInfo
.Constructor and Description |
---|
BasicConfigurationResolver(List<String> tokens)
Creates a new instance.
|
BasicConfigurationResolver(String... tokens)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<CommandToken> |
apply(Map<String,String> configurations)
Resolves configurations into additional command arguments.
|
List<String> |
getTokens()
Returns the template tokens.
|
public BasicConfigurationResolver(List<String> tokens)
tokens
- the template tokens for each key-value pairpublic BasicConfigurationResolver(String... tokens)
tokens
- the template tokens for each key-value pairpublic List<CommandToken> apply(Map<String,String> configurations)
CommandTaskInfo.ConfigurationResolver
apply
in interface CommandTaskInfo.ConfigurationResolver
apply
in interface Function<Map<String,String>,List<CommandToken>>
configurations
- the extra configurations (treated as Hadoop configurations)Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.