public static final boolean createTableIfNotExists ( final AmazonDynamoDB dynamo , final CreateTableRequest createTableRequest ) { try { dynamo . createTable ( createTableRequest ) ; return true ; } catch ( final ResourceInUseException e ) { if ( LOG . isTraceEnabled ( ) ) { LOG . trace ( "Table " + createTableRequest . getTableName ( ) + " already exists" , e ) ; } } return false ; }
Creates the table and ignores any errors if it already exists .