本文整理汇总了Java中org.apache.calcite.sql.SqlWriter.startFunCall方法的典型用法代码示例。如果您正苦于以下问题:Java SqlWriter.startFunCall方法的具体用法?Java SqlWriter.startFunCall怎么用?Java SqlWriter.startFunCall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.calcite.sql.SqlWriter
的用法示例。
在下文中一共展示了SqlWriter.startFunCall方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: unparse
import org.apache.calcite.sql.SqlWriter; //导入方法依赖的package包/类
public void unparse(
SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) {
final SqlWriter.Frame frame = writer.startFunCall(getName());
call.operand(0).unparse(writer, leftPrec, rightPrec);
writer.sep("FROM");
call.operand(1).unparse(writer, leftPrec, rightPrec);
if (3 == call.operandCount()) {
writer.sep("FOR");
call.operand(2).unparse(writer, leftPrec, rightPrec);
}
writer.endFunCall(frame);
}
示例2: unparse
import org.apache.calcite.sql.SqlWriter; //导入方法依赖的package包/类
public void unparse(
SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) {
final SqlWriter.Frame frame = writer.startFunCall(getName());
call.operand(0).unparse(writer, leftPrec, rightPrec);
writer.sep("PLACING");
call.operand(1).unparse(writer, leftPrec, rightPrec);
writer.sep("FROM");
call.operand(2).unparse(writer, leftPrec, rightPrec);
if (4 == call.operandCount()) {
writer.sep("FOR");
call.operand(3).unparse(writer, leftPrec, rightPrec);
}
writer.endFunCall(frame);
}
示例3: unparse
import org.apache.calcite.sql.SqlWriter; //导入方法依赖的package包/类
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec,
int rightPrec) {
final SqlWriter.Frame frame = writer.startFunCall(getName());
if (call.operandCount() == 2) {
call.operand(0).unparse(writer, 0, 100);
writer.sep("TO");
call.operand(1).unparse(writer, 100, 0);
} else {
call.operand(0).unparse(writer, 0, 0);
}
writer.endFunCall(frame);
}
示例4: unparse
import org.apache.calcite.sql.SqlWriter; //导入方法依赖的package包/类
public void unparse(
SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) {
final SqlWriter.Frame frame = writer.startFunCall(getName());
call.operand(0).unparse(writer, 0, 0);
writer.sep("FROM");
call.operand(1).unparse(writer, 0, 0);
writer.endFunCall(frame);
}
示例5: unparse
import org.apache.calcite.sql.SqlWriter; //导入方法依赖的package包/类
public void unparse(
SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) {
final SqlWriter.Frame frame = writer.startFunCall(getName());
call.operand(0).unparse(writer, leftPrec, rightPrec);
writer.sep("IN");
call.operand(1).unparse(writer, leftPrec, rightPrec);
if (3 == call.operandCount()) {
writer.sep("FROM");
call.operand(2).unparse(writer, leftPrec, rightPrec);
}
writer.endFunCall(frame);
}
示例6: unparse
import org.apache.calcite.sql.SqlWriter; //导入方法依赖的package包/类
@Override public void unparse(SqlWriter writer, SqlCall call, int leftPrec,
int rightPrec) {
final SqlWriter.Frame frame = writer.startFunCall("TRANSLATE");
for (SqlNode sqlNode : call.getOperandList()) {
writer.sep(",");
sqlNode.unparse(writer, leftPrec, rightPrec);
}
writer.endFunCall(frame);
}
示例7: unparse
import org.apache.calcite.sql.SqlWriter; //导入方法依赖的package包/类
public void unparse(
SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) {
final SqlWriter.Frame frame = writer.startFunCall(getName());
call.operand(0).unparse(writer, 0, 0);
writer.endFunCall(frame);
}
示例8: unparse
import org.apache.calcite.sql.SqlWriter; //导入方法依赖的package包/类
public void unparse(
SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec) {
final SqlWriter.Frame frame = writer.startFunCall(getName());
call.operand(0).unparse(writer, leftPrec, rightPrec);
writer.sep("USING");
call.operand(1).unparse(writer, leftPrec, rightPrec);
writer.endFunCall(frame);
}