MCPcopy Create free account
hub / github.com/apache/calcite / unparse

Method unparse

core/src/main/java/org/apache/calcite/sql/SqlNode.java:214–217  ·  view source on GitHub ↗

Writes a SQL representation of this node to a writer. The leftPrec and rightPrec parameters give us enough context to decide whether we need to enclose the expression in parentheses. For example, we need parentheses around "2 + 3" if preceded by "5 ". This is because th

(
      SqlWriter writer,
      int leftPrec,
      int rightPrec)

Source from the content-addressed store, hash-verified

212 * @param rightPrec The precedence of the {@link SqlNode} immediately
213 */
214 public abstract void unparse(
215 SqlWriter writer,
216 int leftPrec,
217 int rightPrec);
218
219 public void unparseWithParentheses(SqlWriter writer, int leftPrec,
220 int rightPrec, boolean parentheses) {

Callers 15

unparseMethod · 0.95
unparseMethod · 0.95
unparseMethod · 0.95
unparseMethod · 0.95
unparseMethod · 0.95
unparseMethod · 0.95
unparseSqlSetOptionMethod · 0.95
toSqlStringMethod · 0.95
unparseMethod · 0.95
unparseMethod · 0.95
unparseMethod · 0.95

Calls

no outgoing calls

Tested by 1

executeMethod · 0.76