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

Method unparse

core/src/main/java/org/apache/calcite/sql/SqlDelete.java:142–159  ·  view source on GitHub ↗
(SqlWriter writer, int leftPrec, int rightPrec)

Source from the content-addressed store, hash-verified

140 }
141
142 @Override public void unparse(SqlWriter writer, int leftPrec, int rightPrec) {
143 final SqlWriter.Frame frame =
144 writer.startList(SqlWriter.FrameTypeEnum.SELECT, "DELETE FROM", "");
145 final int opLeft = getOperator().getLeftPrec();
146 final int opRight = getOperator().getRightPrec();
147 targetTable.unparse(writer, opLeft, opRight);
148 SqlIdentifier alias = this.alias;
149 if (alias != null) {
150 writer.keyword("AS");
151 alias.unparse(writer, opLeft, opRight);
152 }
153 SqlNode condition = this.condition;
154 if (condition != null) {
155 writer.sep("WHERE");
156 condition.unparse(writer, opLeft, opRight);
157 }
158 writer.endList(frame);
159 }
160
161 @Override public void validate(SqlValidator validator, SqlValidatorScope scope) {
162 validator.validateDelete(this);

Callers

nothing calls this directly

Calls 9

getOperatorMethod · 0.95
unparseMethod · 0.95
unparseMethod · 0.95
getLeftPrecMethod · 0.80
getRightPrecMethod · 0.80
startListMethod · 0.65
keywordMethod · 0.65
sepMethod · 0.65
endListMethod · 0.65

Tested by

no test coverage detected