Component-specific settings for tPartition
The following table describes the Job script functions and parameters that you can define in the setSettings {} function of the component.
Function/parameter | Description | Mandatory? |
---|---|---|
NBPARTITIONS |
Specify the number of partitions you want to split the input dataset up into. The default value is 4. |
No |
PARTITION_KEY {} |
Include in this function one or more sets of the following parameters to define the key or keys to be used for the partitioning.
|
Yes |
CUSTOMPARTITIONER |
Set this parameter to true to use a Spark partitioner you need to import from outside the Studio. Then, you need to provide the following information:
|
No |
SORTINPARTITION |
Set this parameter to true to sort the records within each partition. Then use the COMPARATOR parameter to define the type of sorting. Acceptable values of the COMPARATOR parameter :
|
No |
LABEL |
Use this parameter to specify a text label for the component. |
No |