private void createOrUpdateTable ( String tablename , HTableDescriptor hTableDescriptor ) { try { if ( admin . isTableAvailable ( tablename ) ) { admin . modifyTable ( tablename , hTableDescriptor ) ; } else { admin . createTable ( hTableDescriptor ) ; } } catch ( IOException ioex ) { logger . error ( "Either table isn't in enabled state or some network problem, Caused by: " , ioex ) ; throw new SchemaGenerationException ( ioex , "Either table isn't in enabled state or some network problem." ) ; } }
Creates the or update table .