class Tango::ETL::OperatorInterface
Interface of an operator that implements ETL
pattern
@author Mckomo
Public Class Methods
extract( element )
click to toggle source
Extract resource params
@param element [Object] Element from witch resources should be extracted @return [Object] Extracted resource or array with resources
# File lib/tango/etl/operator_interface.rb, line 14 def self.extract( element ) raise NotImplementedError end
load( resources )
click to toggle source
Load resources into a storage
@param resources [Array] Batch of resources to load
# File lib/tango/etl/operator_interface.rb, line 29 def self.load( resources ) raise NotImplementedError end
transform( resource )
click to toggle source
Transform resource params to desired state
@param resource [Object] Resource
or array with resources @return [Object] Transformed resource or array with resources
# File lib/tango/etl/operator_interface.rb, line 22 def self.transform( resource ) raise NotImplementedError end