예제 #1
0
파일: table.py 프로젝트: DYFeng/dpark
 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
예제 #2
0
파일: table.py 프로젝트: douban/dpark
 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)
예제 #3
0
 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