def __init__(self, rdd, fields, name='', field_types=None): DerivedRDD.__init__(self, rdd) self.name = name if isinstance(fields, str): fields = [n.strip() for n in fields.split(',')] self.fields = fields self.field_types = field_types
def __init__(self, rdd, fields, name='', field_types=None): DerivedRDD.__init__(self, rdd) self.name = name if isinstance(fields, str): fields = [n.strip() for n in fields.split(',')] self.fields = fields self.field_types = field_types self._repr = '<Table(%s) from %s>' % (','.join(fields), rdd)
def __init__(self, rdd, fields, name=''): DerivedRDD.__init__(self, rdd) self.name = name if isinstance(fields, str): fields = [n.strip() for n in fields.split(',')] self.fields = fields