#NEWLINE# def _SetupTrickle( self ) : #NEWLINE# #INDENT# 'Determine the current file offset based on our state table.\n\n    Called once before the first call to _PerformTrickle().\n    ' #NEWLINE# row = self . _db . ExecuteOrDie ( ( 'SELECT Offset FROM %s.%s WHERE Filename = "%s"' % ( self . _state_database , self . _state_table , self . _filename ) ) ) #NEWLINE# assert ( ( len ( row ) == 1 ) and ( len ( row [ 0 ] ) == 1 ) ) #NEWLINE# self . _offset_bytes = long ( row [ 0 ] [ 'Offset' ] )