Skip to content

Commit

Permalink
Added app (stage 0) bytes_read and records_read
Browse files Browse the repository at this point in the history
  • Loading branch information
cemsbr committed Aug 25, 2016
1 parent 2fa7a92 commit fe8a0c0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sparklogstats/logparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@ def __init__(self):
self.name = None
self.filename = None

@property
def bytes_read(self):
"""Input size."""
return self.stages[0].bytes_read

@property
def records_read(self):
"""Number of lines read from input."""
return self.stages[0].records_read


class Job(Timed):
def __init__(self):
Expand Down

0 comments on commit fe8a0c0

Please sign in to comment.