Table des matières

Search

  1. Preface
  2. Introduction aux transformations
  3. Ports de transformation
  4. Caches de transformation
  5. Transformation Outil de validation des adresses
  6. Transformation Agrégation
  7. Transformation Association
  8. Transformation Exception d'enregistrements incorrects
  9. Transformation Convertisseur de casse
  10. Transformation Classeur
  11. Transformation Comparaison
  12. Transformation Consolidation
  13. Transformation Masquage des données
  14. Transformation Processeur de données
  15. Transformation Décision
  16. Transformation Exception d'enregistrements dupliqués
  17. Transformation Expression
  18. Transformation filtre
  19. Transformation Hiérarchique à relationnel
  20. Transformation Java
  21. Référence de l'API de transformation Java
  22. Expressions Java
  23. Transformation jointure
  24. Transformation Générateur de clés
  25. Transformation Libellé
  26. Transformation Recherche
  27. Caches de recherche
  28. Cache de recherche dynamique
  29. Transformation Correspondance
  30. Transformations Correspondance dans l'analyse de champ
  31. Transformations de correspondance dans l'analyse d'identité
  32. Transformation Fusion
  33. Transformation Normaliseur
  34. Transformation Analyseur
  35. Transformation Python
  36. Transformation Rang
  37. Transformation Lecture
  38. Transformation Relationnel à hiérarchique
  39. Transformation Consommateur de service Web REST
  40. Transformation Routeur
  41. Transformation Générateur de séquence
  42. Transformation Trieur
  43. Transformation SQL
  44. Transformation Normalisation
  45. Transformation Union
  46. Transformation Stratégie de mise à jour
  47. Transformation Consommateur de service Web
  48. Analyse des messages SOAP du service Web
  49. Génération des messages SOAP du service Web
  50. Transformation moyenne pondérée
  51. Transformation Écriture
  52. Délimiteurs de transformation

Developer Transformation Guide

Developer Transformation Guide

Java Transformation Advanced Properties

Java Transformation Advanced Properties

The Java transformation includes advanced properties for both the transformation code and the transformation.
When you use the transformation in a mapping, you can override the transformation properties.
You can define the following advanced properties for the Java transformation on the
Advanced
tab:
Niveau de traçage
Quantité de détails affichés dans le journal pour cette transformation. Vous pouvez choisir entre : Bref, Normal, Initialisation des commentaires prolixes ou Données des commentaires prolixes. La valeur par défaut est Normal.
Partitionable
La transformation peut être traitée avec plusieurs threads. Décochez cette option si vous voulez que le service d'intégration de données utilise un thread pour traiter la transformation. Le service d'intégration de données peut utiliser plusieurs threads pour traiter les étapes restantes du pipeline de mappage.
Disable partitioning for a Java transformation when the Java code requires that the transformation be processed with one thread.
Enable high precision
Processes a decimal data type port with a precision less than or equal to 38 as a Java BigDecimal data type port.
Disable high precision to process a decimal data type port as a Java Double data type port.
The following table shows how a Java transformation treats a value in a decimal data type input port based on whether you have enabled or disabled the high precision option:
Example
High Precision Processing Enabled
High Precision Processing Disabled
A decimal type input port receives a value of 40012030304957666903.
The Java transformation leaves the value as is.
The Java transformation converts the value to the following value:
4.00120303049577 x 10^19
Use nanoseconds in
Date/Time
Converts
date/time
datatype ports to Java BigDecimal datatype ports with nanosecond precision.
Disable nanosecond processing so that the generated Java code converts
date/time
datatype ports to Java Long datatype ports with millisecond precision.
Classpath
Sets the classpath for jar or class file directories that are associated with non-standard Java packages that you import on the
Imports
tab.
The jar or class file directories must be accessible on the Developer tool client machine for compilation of the Java code.
Based on the operating system, separate classpath entries as follows:
  • On UNIX, use a colon to separate classpath entries.
  • On Windows, use a semicolon to separate classpath entries.
For example, if you import the Java converter package on the
Imports
tab and you define the package in converter.jar, you must add the location of the converter.jar file to the classpath before you compile the Java code for the Java transformation.
You do not need to set the classpath for built-in Java packages. For example, because java.io is a built-in Java package, you do not need to set the classpath for java.io.
Is Active
The transformation can generate more than one output row for each input row.
You cannot change this property after you create the Java transformation. If you need to change this property, create a new Java transformation.
Transformation Scope
Defines the method that the Data Integration Service uses to apply the transformation logic to incoming data. You can choose one of the following values:
  • Row. Applies the transformation logic to one row of data at a time. Choose Row when the results of the procedure depend on a single row of data.
  • Transaction. Applies the transformation logic to all rows in a transaction. Choose Transaction when the results of the procedure depend on all rows in the same transaction, but not on rows in other transactions. When you choose Transaction, you must connect all input groups to the same transaction control point.
  • All Input. Applies the transformation logic to all incoming data. when you choose All Input, the Data Integration Service drops transaction boundaries. Choose All Input when the results of the procedure depend on all rows of data in the source.
The Transformation Scope property is valid only in a Hive environment.
Stateless
Permet de conserver l'ordre des lignes des données d'entrée pour la transformation. Sélectionnez cette option si le service d'intégration de données ne doit procéder à aucune optimisation susceptible de modifier l'ordre des lignes.
Lorsque le service d'intégration de données effectue des optimisations, il peut perdre un ordre établi précédemment dans le mappage. Vous pouvez établir l'ordre dans un mappage avec une source de fichier plat triée, une source relationnelle triée ou une transformation Trieur. Si vous configurez une transformation pour conserver l'ordre des lignes, le service d'intégration de données tient compte de cette configuration lorsqu'il effectue des optimisations du mappage. Le service d'intégration de données effectue des optimisations pour la transformation uniquement si l'ordre des lignes est conservé.