Table of Contents

Search

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