azkaban.utils.Props.putLocal()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(86)

本文整理了Java中azkaban.utils.Props.putLocal()方法的一些代码示例,展示了Props.putLocal()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Props.putLocal()方法的具体详情如下:
包路径:azkaban.utils.Props
类名称:Props
方法名:putLocal

Props.putLocal介绍

[英]Puts only the local props from p into the current properties
[中]仅将p中的本地道具放入当前属性

代码示例

代码示例来源:origin: azkaban/azkaban

/**
 * Load job schedules from the given directories
 *
 * @param dirs The directories to check for properties
 * @param suffixes The suffixes to load
 * @return The properties
 */
public static Props loadPropsInDirs(final List<File> dirs, final String... suffixes) {
 final Props props = new Props();
 for (final File dir : dirs) {
  props.putLocal(loadPropsInDir(dir, suffixes));
 }
 return props;
}

代码示例来源:origin: com.linkedin.azkaban/az-core

/**
 * Load job schedules from the given directories
 *
 * @param dirs The directories to check for properties
 * @param suffixes The suffixes to load
 * @return The properties
 */
public static Props loadPropsInDirs(final List<File> dirs, final String... suffixes) {
 final Props props = new Props();
 for (final File dir : dirs) {
  props.putLocal(loadPropsInDir(dir, suffixes));
 }
 return props;
}

代码示例来源:origin: com.linkedin.azkaban/azkaban

/**
 * Load job schedules from the given directories
 * 
 * @param dirs
 *            The directories to check for properties
 * @param suffixes
 *            The suffixes to load
 * @return The properties
 */
public static Props loadPropsInDirs(List<File> dirs, String... suffixes) {
  Props props = new Props();
  for (File dir : dirs) {
    props.putLocal(loadPropsInDir(dir, suffixes));
  }
  return props;
}

相关文章