Java Code Examples for org.apache.calcite.rel.rel2sql.SqlImplementor#SimpleContext

The following examples show how to use org.apache.calcite.rel.rel2sql.SqlImplementor#SimpleContext . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Lattice.java    From Bats with Apache License 2.0 5 votes vote down vote up
SqlWriter(Lattice lattice, SqlDialect dialect, StringBuilder buf,
    SqlImplementor.SimpleContext context) {
  this.lattice = lattice;
  this.context = context;
  this.buf = buf;
  this.dialect = dialect;
}
 
Example 2
Source File: Lattice.java    From calcite with Apache License 2.0 5 votes vote down vote up
SqlWriter(Lattice lattice, SqlDialect dialect, StringBuilder buf,
    SqlImplementor.SimpleContext context) {
  this.lattice = lattice;
  this.context = context;
  this.buf = buf;
  this.dialect = dialect;
}
 
Example 3
Source File: Lattice.java    From Bats with Apache License 2.0 4 votes vote down vote up
/** Creates a context to which SQL can be generated. */
public SqlWriter createSqlWriter(SqlDialect dialect, StringBuilder buf,
    IntFunction<SqlNode> field) {
  return new SqlWriter(this, dialect, buf,
      new SqlImplementor.SimpleContext(dialect, field));
}
 
Example 4
Source File: Lattice.java    From calcite with Apache License 2.0 4 votes vote down vote up
/** Creates a context to which SQL can be generated. */
public SqlWriter createSqlWriter(SqlDialect dialect, StringBuilder buf,
    IntFunction<SqlNode> field) {
  return new SqlWriter(this, dialect, buf,
      new SqlImplementor.SimpleContext(dialect, field));
}