#NEWLINE# def __init__( self , dbh , utilization_percent , cycle_time , state_database , state_table , fh , size , checksum ) : #NEWLINE# #INDENT# 'Constructor. Use _PrepareFile() to get the file handle/size/checksum.\n\n    Args:\n      dbh: pylib.db handle to the database\n      utilization_percent: percent of database time to try to use\n      cycle_time: duration of a cycle of insert/sleeps\n      state_database: database name to store the state table in\n      state_table: table name to store our state in\n      fh: handle to the file to trickle statements from\n      size: size of the open file in bytes\n      checksum: checksum of the open file\n    ' #NEWLINE# trickle_lib . TrickledOperation . __init__ ( self , utilization_percent , cycle_time ) #NEWLINE# self . _db = dbh #NEWLINE# self . _filename = fh . name #NEWLINE# self . _fh = fh #NEWLINE# self . _size = size #NEWLINE# self . _checksum = checksum #NEWLINE# self . _offset_bytes = 0 #NEWLINE# self . _state_database = state_database #NEWLINE# self . _state_table = utilization_percent #NEWLINE# self . _VerifyStateDatabase ( )