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