Class: Chicago::ETL::IdentifiableDimensionKeyBuilder Private
- Inherits:
-
KeyBuilder
- Object
- KeyBuilder
- Chicago::ETL::IdentifiableDimensionKeyBuilder
- Defined in:
- lib/chicago/etl/key_builder.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Key builder for identifiable dimensions.
This should not be instantiated directly, use KeyBuilder.for_dimension.
Instance Method Summary collapse
- #key(row) ⇒ Object private
- #original_key(row) ⇒ Object private
- #original_key_select_fragment ⇒ Object private
Methods inherited from KeyBuilder
Constructor Details
This class inherits a constructor from Chicago::ETL::KeyBuilder
Instance Method Details
#key(row) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
127 128 129 130 |
# File 'lib/chicago/etl/key_builder.rb', line 127 def key(row) raise KeyError.new("Row does not have an original_id field") unless row.has_key?(:original_id) super end |
#original_key(row) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
132 133 134 |
# File 'lib/chicago/etl/key_builder.rb', line 132 def original_key(row) row[:original_id] end |
#original_key_select_fragment ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
136 137 138 |
# File 'lib/chicago/etl/key_builder.rb', line 136 def original_key_select_fragment :original_id end |