JoinedFlatTable { public static String generateDropTableStatement(IJoinedFlatTableDesc flatDesc) { StringBuilder ddl = new StringBuilder(); ddl.append("DROP TABLE IF EXISTS " + flatDesc.getTableName() + ";").append("\n"); return ddl.toString(); }  static String getTableDir(IJoinedFlatTableDesc flatDesc, String storageDfsDir); static String generateHiveInitStatements(String flatTableDatabase); static String generateCreateTableStatement(IJoinedFlatTableDesc flatDesc, String storageDfsDir); static String generateCreateTableStatement(IJoinedFlatTableDesc flatDesc, String storageDfsDir,
            String storageFormat); static String generateCreateTableStatement(IJoinedFlatTableDesc flatDesc, String storageDfsDir,
            String storageFormat, String fieldDelimiter); static String generateDropTableStatement(IJoinedFlatTableDesc flatDesc); static String generateInsertDataStatement(IJoinedFlatTableDesc flatDesc); static String generateSelectDataStatement(IJoinedFlatTableDesc flatDesc); static String generateSelectDataStatement(IJoinedFlatTableDesc flatDesc, boolean singleLine,
                                                     String[] skipAs, SqlDialect sqlDialect); static String colName(TblColRef col); static String colName(TblColRef col, boolean useAlias); static String generateRedistributeFlatTableStatement(IJoinedFlatTableDesc flatDesc, CubeDesc cubeDesc); static String getQuotedColExpressionInSourceDB(IJoinedFlatTableDesc flatDesc, TblColRef col, SqlDialect sqlDialect); static final String TEXTFILE; static final String SEQUENCEFILE; }
@Test public void testGenDropTableDDL() { String ddl = JoinedFlatTable.generateDropTableStatement(flatTableDesc); System.out.println(ddl); assertEquals(101, ddl.length()); }