#NEWLINE# def __init__( self , name , key , read_units , write_units , columns , name_in_db = None ) : #NEWLINE# #INDENT# columns . append ( Table . VERSION_COLUMN ) #NEWLINE# for c in columns : #NEWLINE# #INDENT# c . table = columns #NEWLINE# #UNINDENT# self . name = name #NEWLINE# self . name_in_db = ( name_in_db if name_in_db else name ) #NEWLINE# self . key = key #NEWLINE# self . _VerifyColumns ( columns ) #NEWLINE# self . _all_column_names = [ c . name for c in columns ] #NEWLINE# self . _column_names = [ c . name for c in columns if ( not isinstance ( c , IndexTermsColumn ) ) ] #NEWLINE# self . _columns = dict ( [ ( c . name , c ) for c in columns ] ) #NEWLINE# self . _key_to_name = dict ( [ ( c . key , c . name ) for c in columns ] ) #NEWLINE# self . read_units = read_units #NEWLINE# self . write_units = write_units #NEWLINE# self . hash_key_col = columns [ 0 ] #NEWLINE# self . hash_key_schema = db_client . DBKeySchema ( name = self . hash_key_col . key , value_type = self . hash_key_col . value_type ) #NEWLINE# if ( ( len ( columns ) > 1 ) and isinstance ( columns [ 1 ] , RangeKeyColumn ) ) : #NEWLINE# #INDENT# self . range_key_col = columns [ 1 ] #NEWLINE# self . range_key_schema = db_client . DBKeySchema ( name = self . range_key_col . key , value_type = self . range_key_col . value_type ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . range_key_col = None #NEWLINE# self . range_key_schema = None