Skip to content

Commit

Permalink
awesome row objects
Browse files Browse the repository at this point in the history
  • Loading branch information
ahirreddy committed Apr 15, 2014
1 parent 55d1c76 commit 725c91e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1387,10 +1387,12 @@ def _jrdd(self):
def _is_pipelinable(self):
return not (self.is_cached or self.is_checkpointed)

class Row:
class Row(dict):

def __init__(self, d):
self.__dict__ = dict(self.__dict__.items() + d.items())
d.update(self.__dict__)
self.__dict__ = d
dict.__init__(self, d)

class SchemaRDD:

Expand Down

0 comments on commit 725c91e

Please sign in to comment.