h1. ModulusPartitionLookup
As the name implies this partition lookup module just takes a column value and computes the modulus with a predefined value.
For non-numeric column types a simple checksum of the string value is calculated.
For detailed information take a look at the sources.
h2. Configuration options
|| Option: | *partitionLookupModule* |
|| Value: | optivo.hscale.modulusPartitionLookup |
|| Required: | (*) |
|| Option: | *tableKeyColumns* |
|| Description: | A map with table name as key and column name as value. Each pair marks a partitioned table and the column that is used for partitioning. |
|| Example: | {code}
config.tableKeyColumns = {
["tbl_a"] = "category",
["tbl_b"] = "folder"
}
{code} |
|| Required: | (*) |
|| Option: | *partitionsPerTable* |
|| Description: | The number of partitions to be used per table. (This is the modulus value). |
|| Example: | 3 |
|| Required: | (*) |
As the name implies this partition lookup module just takes a column value and computes the modulus with a predefined value.
For non-numeric column types a simple checksum of the string value is calculated.
For detailed information take a look at the sources.
h2. Configuration options
|| Option: | *partitionLookupModule* |
|| Value: | optivo.hscale.modulusPartitionLookup |
|| Required: | (*) |
|| Option: | *tableKeyColumns* |
|| Description: | A map with table name as key and column name as value. Each pair marks a partitioned table and the column that is used for partitioning. |
|| Example: | {code}
config.tableKeyColumns = {
["tbl_a"] = "category",
["tbl_b"] = "folder"
}
{code} |
|| Required: | (*) |
|| Option: | *partitionsPerTable* |
|| Description: | The number of partitions to be used per table. (This is the modulus value). |
|| Example: | 3 |
|| Required: | (*) |