本文整理汇总了Java中org.apache.hadoop.fs.slive.ArgumentParser.ParsedOutput类的典型用法代码示例。如果您正苦于以下问题:Java ParsedOutput类的具体用法?Java ParsedOutput怎么用?Java ParsedOutput使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ParsedOutput类属于org.apache.hadoop.fs.slive.ArgumentParser包,在下文中一共展示了ParsedOutput类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getTestConfig
import org.apache.hadoop.fs.slive.ArgumentParser.ParsedOutput; //导入依赖的package包/类
private ConfigExtractor getTestConfig(boolean sleep) throws Exception {
ArgumentParser parser = new ArgumentParser(getTestArgs(sleep));
ParsedOutput out = parser.parse();
assertTrue(!out.shouldOutputHelp());
ConfigMerger merge = new ConfigMerger();
Configuration cfg = merge.getMerged(out, getBaseConfig());
ConfigExtractor extractor = new ConfigExtractor(cfg);
return extractor;
}
示例2: getMerged
import org.apache.hadoop.fs.slive.ArgumentParser.ParsedOutput; //导入依赖的package包/类
/**
* Merges the given command line parsed output with the given configuration
* object and returns the new configuration object with the correct options
* overwritten
*
* @param opts
* the parsed command line option output
* @param base
* the base configuration to merge with
* @return merged configuration object
* @throws ConfigException
* when configuration errors or verification occur
*/
Configuration getMerged(ParsedOutput opts, Configuration base)
throws ConfigException {
return handleOptions(opts, base);
}