setNull
アクティブまたはパッシブJavaトランスフォーメーションの出力カラムの値をNULLに設定します。出力カラムをNULLに設定すると、出力行を生成するまで値は変更できません。
[パッケージのインポート]を除くJavaエディタのすべてのセクションでsetNullを使用します。
以下の構文を使用します。
setNull(String strColName);
引数 | データ型 | 入出力 | 説明 |
---|
strColName | 文字列型 | 入力 | 出力カラムの名前。 |
以下のJavaコードを使用すると、入力カラムの値がチェックされ、出力カラムに対応する値がNULlに設定されます。
// Check the value of Q3RESULTS input column.
if(isNull("Q3RESULTS")) {
// Set the value of output column to null.
setNull("RESULTS");
}
または
// Check the value of Q3RESULTS input column.
String strColName = "Q3RESULTS";
if(isNull(strColName)) {
// Set the value of output column to null.
setNull(strColName);
}