lib/partitioned/multi_level.rb in partitioned-0.8.0 vs lib/partitioned/multi_level.rb in partitioned-1.0.1
- old
+ new
@@ -1,15 +1,17 @@
module Partitioned
#
- # table partitioning by a referenced id column which itself is partitioned
+ # Table partitioning by a referenced id column which itself is partitioned
# further weekly by a date column.
#
class MultiLevel < PartitionedBase
self.abstract_class = true
#
# Normalize the values for the each of using class.
#
+ # @param [Array<Object>] value the partition key values
+ # @return [Array<Object>] the normalized values for the key values passed in
def self.partition_normalize_key_value(values)
normalized_values = []
[*values].each_with_index do |value,index|
normalized_values << configurator.using_class(index).partition_normalize_key_value(value)
end