数値形式を変更 - 8.0

Talend Data Preparationユーザーガイド

Version
8.0
Language
日本語
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Data Preparation
Content
データクオリティとプレパレーション > データクレンジング
Last publication date
2024-03-26

世界で使われている数値形式は同一ではないため、数値を含むカラムで使用する形式を変更しなければならない場合があります。

アプリケーションが最適に動作するよう、このファンクションで形式変更できる値の最大値はJavaのMAX_VALUE、つまり1.7976931348623157E308にデフォルトで設定されています。

ただし、<Installation_Path>/dataprep/transformation/actions/configuration/math/math.propertiesファイルの次のパラメーターを編集すれば、この値を変更できます。

# Set a String value compatible with the BigDecimal constructor
max.number.value=1.7976931348623157E308
# If you set this value to TRUE and the the above "max.number.value" is not valid
# the default value from sun.misc.FloatingDecimal.Double.MAX_VALUE will be used
max.number.limit=true
# If you set "max.number.value" to TRUE and "max.number.value.replace" to true
# the cell with too big numbers will be fill by "max.number.value.replacement"
max.number.value.replace=false
max.number.value.replacement=

手順

  1. 数値形式を変更するカラムを選択します。
  2. ファンクションパネルFormat Numberと入力し、結果をクリックして関連するファンクションのオプションを開きます。
  3. [Current separators] (現在の区切り)リストで、選択したカラムで使用されている数値形式を選択します。以下のような処理が可能です。
    • 事前定義済みの区切りを使う
    • customで定義する
    • Talend Data Preparationに自動的に形式を推測させる
  4. [Target Format] (ターゲット形式)リストで、選択したカラムで使用されている数値形式を選択します。
  5. [Submit] (送信)をクリックします。

    このファンクションの結果を新しいカラムに出力するには、[Create new column] (新しいカラムを作成)チェックボックスをオンにします。

タスクの結果

選択したカラムで数値形式が変更されます。