<s> """<STR_LIT>""" <EOL> from dfvfs . lib import definitions <EOL> from dfvfs . path import factory <EOL> from dfvfs . path import path_spec <EOL> class SQLiteBlobPathSpec ( path_spec . PathSpec ) : <EOL> """<STR_LIT>""" <EOL> TYPE_INDICATOR = definitions . TYPE_INDICATOR_SQLITE_BLOB <EOL> def __init__ ( <EOL> self , column_name = None , parent = None , row_condition = None , <EOL> row_index = None , table_name = None , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if not table_name or not column_name or not parent : <EOL> raise ValueError ( u'<STR_LIT>' ) <EOL> if ( row_condition and ( <EOL> not isinstance ( row_condition , tuple ) or len ( row_condition ) != <NUM_LIT:3> ) ) : <EOL> raise ValueError ( ( <EOL> u'<STR_LIT>' <EOL> u'<STR_LIT>' ) ) <EOL> super ( SQLiteBlobPathSpec , self ) . __init__ ( parent = parent , ** kwargs ) <EOL> self . table_name = table_name <EOL> self . column_name = column_name <EOL> self . row_condition = row_condition <EOL> self . row_index = row_index <EOL> @ property <EOL> def comparable ( self ) : <EOL> """<STR_LIT>""" <EOL> string_parts = [ ] <EOL> string_parts . append ( u'<STR_LIT>' . format ( self . table_name ) ) <EOL> string_parts . append ( u'<STR_LIT>' . format ( self . column_name ) ) <EOL> if self . row_condition is not None : <EOL> row_condition_string = u'<STR_LIT:U+0020>' . join ( [ <EOL> u'<STR_LIT>' . format ( value ) for value in self . row_condition ] ) <EOL> string_parts . append ( u'<STR_LIT>' . format ( <EOL> row_condition_string ) ) <EOL> if self . row_index is not None : <EOL> string_parts . append ( u'<STR_LIT>' . format ( self . row_index ) ) <EOL> return self . _GetComparable ( sub_comparable_string = u'<STR_LIT:U+002CU+0020>' . join ( string_parts ) ) <EOL> factory . Factory . RegisterPathSpec ( SQLiteBlobPathSpec ) </s>
