-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTestBulkHandler.py
27 lines (20 loc) · 983 Bytes
/
TestBulkHandler.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from pystratum_middle.BulkHandler import BulkHandler
class TestBulkHandler(BulkHandler):
# ------------------------------------------------------------------------------------------------------------------
def __init__(self):
"""
Object constructor.
"""
self.count = 0
# ------------------------------------------------------------------------------------------------------------------
def row(self, row):
self.count += 1
print(self.count)
# ------------------------------------------------------------------------------------------------------------------
def start(self):
self.count = 0
print('start')
# ------------------------------------------------------------------------------------------------------------------
def stop(self):
print('stop')
# ----------------------------------------------------------------------------------------------------------------------