122123124125126127128129130131132
if ( true ) iBuff.incIndent() ; else iBuff.setFlatMode(true) ; query.serialize(iBuff) ; String x = iBuff.asString() ; _explain(logExec, message, x, true) ; } } // ---- Algebra
144145146147148149150151152153154
if ( true ) iBuff.incIndent() ; else iBuff.setFlatMode(true) ; op.output(iBuff) ; String x = iBuff.asString() ; _explain(logExec, message, x, true) ; } } // ---- BGP and quads
5657585960616263646566
// Step two - turn the SqlNode tree, with SqlSelectBlocks in it, // in an SQL string. SqlNodeVisitor v = makeVisitor(buff) ; sqlNode.visit(v) ; return buff.asString() ; } protected SqlNodeVisitor makeVisitor(IndentedLineBuffer buff) { return new GenerateSQLVisitor(buff) ;
12531254125512561257125812591260126112621263
public String dumpToString() { IndentedLineBuffer buff = new IndentedLineBuffer() ; output(buff) ; return buff.asString() ; } @Override public void output(IndentedWriter out)
167168169170171172173174175176177
public static String outputQuotedString(String string) { IndentedLineBuffer b = new IndentedLineBuffer() ; outputQuotedString(b, string) ; return b.asString() ; } private static boolean writeJavaScript = false ; /* \" \\ \/ \b \f \n \r \t
608609610611612613614615616617618
@Override public String toString() { IndentedLineBuffer buff = new IndentedLineBuffer() ; dump(buff) ; return buff.asString() ; } public void dump() { dump(IndentedWriter.stdout) ;
5455565758596061626364
@Override public String toString() { IndentedLineBuffer buff = new IndentedLineBuffer() ; output(buff) ; return buff.asString() ; } @Override public void output(IndentedWriter out) {
170171172173174175176177178179
PrefixMapping pmap = ((DatasetGraphTDB)dsg).getPrefixes().getPrefixMapping() ; Prologue prologue = new Prologue(pmap) ; IndentedLineBuffer buff = new IndentedLineBuffer() ; PrologueSerializer.output(buff, prologue) ; buff.append("\n") ; return buff.asString() ; } return "" ; } }
332333334335336337338339340341342
private String formatForLog(Query query) { IndentedLineBuffer out = new IndentedLineBuffer() ; out.setFlatMode(true) ; query.serialize(out) ; return out.asString() ; } /** * @param queryURI * @return
170171172173174175176177178179180
PrefixMapping pmap = ((DatasetGraphTDB)dsg).getPrefixes().getPrefixMapping() ; Prologue prologue = new Prologue(pmap) ; IndentedLineBuffer buff = new IndentedLineBuffer() ; PrologueSerializer.output(buff, prologue) ; buff.append("\n") ; return buff.asString() ; } return "" ; }