protected static InMemoryJarfile addDDLToCatalog ( Catalog oldCatalog , InMemoryJarfile jarfile , String [ ] adhocDDLStmts , boolean isXDCR ) throws IOException , VoltCompilerException { StringBuilder sb = new StringBuilder ( ) ; compilerLog . info ( "Applying the following DDL to cluster:" ) ; for ( String stmt : adhocDDLStmts ) { compilerLog . info ( "\t" + stmt ) ; sb . append ( stmt ) ; sb . append ( ";\n" ) ; } String newDDL = sb . toString ( ) ; compilerLog . trace ( "Adhoc-modified DDL:\n" + newDDL ) ; VoltCompiler compiler = new VoltCompiler ( isXDCR ) ; compiler . compileInMemoryJarfileWithNewDDL ( jarfile , newDDL , oldCatalog ) ; return jarfile ; }
Append the supplied adhoc DDL to the current catalog s DDL and recompile the jarfile