예제 #1
0
파일: __init__.py 프로젝트: yelord/rdc.etl
    def join(self, hash, channel=STDIN):
        """
        Abtract method that must be implemented in concrete subclasses, to return the data that should be joined with
        the given row.

        It should be iterable, or equivalent to False in a test.

        If the result is iterable and its length is superior to 0, the result of this transform will be a cartesian
        product between this method result and the original input row.

        If the result is false or iterable but 0-length, the result of this transform will depend on the join type,
        determined by the is_outer attribute.

        - If is_outer == True, the transform output will be a simple union between the input row and the result of
          self.get_default_outer_join_data()
        - If is_outer == False, this row will be sinked, and will not generate any output from this transform.

        Default join type is inner, to preserve backward compatibility.

        """
        raise AbstractError(self.join)
예제 #2
0
 def get(self, block=True, timeout=None):
     """Read. Block/timeout are there for Queue compat."""
     raise AbstractError(self.get)
예제 #3
0
 def put(self, data, block=True, timeout=None):
     """Write. Block/timeout are there for Queue compat."""
     raise AbstractError(self.put)
예제 #4
0
파일: __init__.py 프로젝트: yelord/rdc.etl
 def map(self, value):
     raise AbstractError(self.map)
예제 #5
0
파일: __init__.py 프로젝트: yelord/rdc.etl
 def extract(self):
     raise AbstractError(self.extract)
예제 #6
0
파일: split.py 프로젝트: yelord/rdc.etl
 def split(self, field):
     raise AbstractError(self.split)
예제 #7
0
파일: __init__.py 프로젝트: yelord/rdc.etl
 def initialize(self, harness, debug, profile):
     """Initialize status."""
     raise AbstractError(self.initialize)
예제 #8
0
 def loop(self):
     raise AbstractError(self.loop)
예제 #9
0
    def map_item(self, item):
        """Convert one matched XML item to a dictionary.

        """
        raise AbstractError(self.map_item)
예제 #10
0
 def transform(self, hash, channel=STDIN):
     """Core transformation method that will be called for each input data row."""
     raise AbstractError(self.transform)
예제 #11
0
 def transform(self, hash, channel=STDIN):
     """All input rows that comes to one of this transform's input channels will be passed to this method. If you
     only have one input channel, you can safely ignore the channel value, although you'll need it in method
     prototype."""
     raise AbstractError(self.transform)
예제 #12
0
파일: __init__.py 프로젝트: yelord/rdc.etl
 def update(self, harness, debug, profile):
     raise AbstractError(self.update)
예제 #13
0
파일: __init__.py 프로젝트: yelord/rdc.etl
 def finalize(self, harness, debug, profile):
     """Finalize status."""
     raise AbstractError(self.finalize)
예제 #14
0
파일: __init__.py 프로젝트: yelord/rdc.etl
 def update(self, harness, debug, profile):
     """update this status"""
     raise AbstractError(self.update)
예제 #15
0
 def __call__(self):
     """Actual harness run."""
     raise AbstractError(self.__call__)
예제 #16
0
파일: stat.py 프로젝트: yelord/rdc.etl
 def get_unicode_stats(self, debug=False, profile=False):
     raise AbstractError(self.get_unicode_stats)
예제 #17
0
 def add(self, transform):
     raise AbstractError(self.add)
예제 #18
0
 def filter(self, hash, channel=STDIN):
     raise AbstractError(self.filter)
예제 #19
0
 def validate(self, hash, channel=STDIN):
     raise AbstractError(self.validate)
예제 #20
0
파일: sql.py 프로젝트: yelord/rdc.etl
 def sql(self, hash, channel):
     raise AbstractError(self.sql)