Sha256: a59b4290f3cde77e514548260741a123e0234c9c2e5fe631ea0927e73986b8a9

Contents?: true

Size: 706 Bytes

Versions: 21

Compression:

Stored size: 706 Bytes

Contents

module 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
      return normalized_values
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
partitioned-2.1.0 lib/partitioned/multi_level.rb
partitioned-2.0.0 lib/partitioned/multi_level.rb
partitioned-1.3.5 lib/partitioned/multi_level.rb
partitioned-1.3.4 lib/partitioned/multi_level.rb
partitioned-1.3.3 lib/partitioned/multi_level.rb
partitioned-1.3.2 lib/partitioned/multi_level.rb
partitioned-1.3.1 lib/partitioned/multi_level.rb
partitioned-1.3.0 lib/partitioned/multi_level.rb
partitioned-1.2.1 lib/partitioned/multi_level.rb
partitioned-1.2.0 lib/partitioned/multi_level.rb
partitioned-1.1.11 lib/partitioned/multi_level.rb
partitioned-1.1.10 lib/partitioned/multi_level.rb
partitioned-1.1.9 lib/partitioned/multi_level.rb
partitioned-1.1.8 lib/partitioned/multi_level.rb
partitioned-1.1.7 lib/partitioned/multi_level.rb
partitioned-1.1.6 lib/partitioned/multi_level.rb
partitioned-1.1.5 lib/partitioned/multi_level.rb
partitioned-1.1.3 lib/partitioned/multi_level.rb
partitioned-1.1.1 lib/partitioned/multi_level.rb
partitioned-1.1.0 lib/partitioned/multi_level.rb