public abstract class ConfigurationUtils
extends java.lang.ObjectConfiguration 操作のための再利用可能なユーティリティクラス。| コンストラクターと説明 |
|---|
ConfigurationUtils() |
| 修飾子と型 | メソッドと説明 |
|---|---|
static void | addArchives(org.apache.hadoop.conf.Configuration configuration, org.springframework.core.io.Resource... archives) |
static void | addFiles(org.apache.hadoop.conf.Configuration configuration, org.springframework.core.io.Resource... files) |
static void | addLibs(org.apache.hadoop.conf.Configuration configuration, org.springframework.core.io.Resource... libs) |
static void | addProperties(org.apache.hadoop.conf.Configuration configuration, java.util.Properties properties) 指定されたプロパティを指定された Configuration オブジェクトに追加します。 |
static java.util.Properties | asProperties(org.apache.hadoop.conf.Configuration configuration) 指定された構成の静的 Properties コピーを返します。 |
static org.apache.hadoop.conf.Configuration | createFrom(org.apache.hadoop.conf.Configuration original, java.util.Properties properties) 指定された引数に基づいて新しい Configuration を作成します。 |
static org.apache.hadoop.conf.Configuration | merge(org.apache.hadoop.conf.Configuration one, org.apache.hadoop.conf.Configuration two) 指定された構成をマージして新しい Configuration を作成します。 |
public static void addProperties(org.apache.hadoop.conf.Configuration configuration,
java.util.Properties properties)Configuration オブジェクトに追加します。configuration - 操作する構成。null にしないでください。properties - 構成に追加するプロパティ。null の場合もあります。public static org.apache.hadoop.conf.Configuration createFrom(org.apache.hadoop.conf.Configuration original,
java.util.Properties properties)Configuration を作成します。original - 読み取る初期構成。null の場合もあります。properties - 新しく作成された構成に追加するプロパティオブジェクト。null の場合もあります。public static java.util.Properties asProperties(org.apache.hadoop.conf.Configuration configuration)
Properties コピーを返します。configuration - Hadoop 構成 public static org.apache.hadoop.conf.Configuration merge(org.apache.hadoop.conf.Configuration one,
org.apache.hadoop.conf.Configuration two)Configuration を作成します。順序は重要です。2 番目の構成は最初の構成の値を上書きします。one - 読み取る構成。null の場合もあります。two - 読み取る構成。null の場合もあります。public static void addLibs(org.apache.hadoop.conf.Configuration configuration,
org.springframework.core.io.Resource... libs)public static void addFiles(org.apache.hadoop.conf.Configuration configuration,
org.springframework.core.io.Resource... files)public static void addArchives(org.apache.hadoop.conf.Configuration configuration,
org.springframework.core.io.Resource... archives)