Esempio n. 1
0
    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)
Esempio n. 2
0
 def get(self, block=True, timeout=None):
     """Read. Block/timeout are there for Queue compat."""
     raise AbstractError(self.get)
Esempio n. 3
0
 def put(self, data, block=True, timeout=None):
     """Write. Block/timeout are there for Queue compat."""
     raise AbstractError(self.put)
Esempio n. 4
0
 def map(self, value):
     raise AbstractError(self.map)
Esempio n. 5
0
 def extract(self):
     raise AbstractError(self.extract)
Esempio n. 6
0
 def split(self, field):
     raise AbstractError(self.split)
Esempio n. 7
0
 def initialize(self, harness, debug, profile):
     """Initialize status."""
     raise AbstractError(self.initialize)
Esempio n. 8
0
 def loop(self):
     raise AbstractError(self.loop)
Esempio n. 9
0
    def map_item(self, item):
        """Convert one matched XML item to a dictionary.

        """
        raise AbstractError(self.map_item)
Esempio n. 10
0
 def transform(self, hash, channel=STDIN):
     """Core transformation method that will be called for each input data row."""
     raise AbstractError(self.transform)
Esempio n. 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)
Esempio n. 12
0
 def update(self, harness, debug, profile):
     raise AbstractError(self.update)
Esempio n. 13
0
 def finalize(self, harness, debug, profile):
     """Finalize status."""
     raise AbstractError(self.finalize)
Esempio n. 14
0
 def update(self, harness, debug, profile):
     """update this status"""
     raise AbstractError(self.update)
Esempio n. 15
0
 def __call__(self):
     """Actual harness run."""
     raise AbstractError(self.__call__)
Esempio n. 16
0
 def get_unicode_stats(self, debug=False, profile=False):
     raise AbstractError(self.get_unicode_stats)
Esempio n. 17
0
 def add(self, transform):
     raise AbstractError(self.add)
Esempio n. 18
0
 def filter(self, hash, channel=STDIN):
     raise AbstractError(self.filter)
Esempio n. 19
0
 def validate(self, hash, channel=STDIN):
     raise AbstractError(self.validate)
Esempio n. 20
0
 def sql(self, hash, channel):
     raise AbstractError(self.sql)