Table of Contents

Search

  1. Preface
  2. Transformations
  3. Source transformation
  4. Target transformation
  5. Aggregator transformation
  6. Cleanse transformation
  7. Data Masking transformation
  8. Data Services transformation
  9. Deduplicate transformation
  10. Expression transformation
  11. Filter transformation
  12. Hierarchy Builder transformation
  13. Hierarchy Parser transformation
  14. Hierarchy Processor transformation
  15. Input transformation
  16. Java transformation
  17. Java transformation API reference
  18. Joiner transformation
  19. Labeler transformation
  20. Lookup transformation
  21. Machine Learning transformation
  22. Mapplet transformation
  23. Normalizer transformation
  24. Output transformation
  25. Parse transformation
  26. Python transformation
  27. Rank transformation
  28. Router transformation
  29. Rule Specification transformation
  30. Sequence Generator transformation
  31. Sorter transformation
  32. SQL transformation
  33. Structure Parser transformation
  34. Transaction Control transformation
  35. Union transformation
  36. Velocity transformation
  37. Verifier transformation
  38. Web Services transformation

Transformations

Transformations

Partitioning examples

Partitioning examples

The following examples show how you can configure partitioning in a mapping.

Partitioning with a Flat File Source

You have a
mapping
task that uses a large, 1GB flat file source. You want to specify two partitions in the Source transformation to optimize performance.
On the
Partitions
tab for the Source transformation, you select fixed partitioning and enter the number of partitions, as shown in the following image:
On the Partitions tab of the Source transformation, the partitioning type is "Fixed" and the number of partitions is set to "2."

Key Range Partitioning with a Relational Database Source

You have customer names, addresses, and purchasing history in a relational database source. You decide to partition the source data into three partitions based on postal codes, using the following ranges:
  • First partition: Minimum value to 30000
  • Second partition: 30001 to 50000
  • Third partition: 50001 to maximum value
On the
Partitions
tab for the Source transformation, you select key range partitioning and choose the BILLINGPOSTALCODE field as the partition key. You add three key ranges to create three partitions, as shown in the following image:
On the Partitions tab for the Source transformation, the partitioning type is "Key Range" and the BILLINGPOSTALCODE column is selected as the partition key. The Start Range and End Range columns for each partition define the range of values for each partition. In the first partition, the start range is blank, so the minimum value is used as the starting value. In the third partition, the end range is blank, so the maximum value is used as the ending value.
Note that for the first partition, you leave the start value blank for the minimum value. In the last partition, you leave the end value blank for the maximum value.
Using these values, records with a postal code of 0 up to 30000 are processed in partition #1, records with a postal code of 30001 to 50000 are processed in partition #2, and records with a postal code of 50001 or higher are processed in partition #3.
After you configure the mapping, you save and run the mapping to validate the partitions.

0 COMMENTS

We’d like to hear from you!