Tabnine Logo
SqlString.toString
Code IndexAdd Tabnine to your IDE (free)

How to use
toString
method
in
org.apache.calcite.sql.util.SqlString

Best Java code snippets using org.apache.calcite.sql.util.SqlString.toString (Showing top 4 results out of 315)

origin: com.alibaba.blink/flink-sql-parser

protected static String toSqlString(SqlNode node) {
  return node.toSqlString(DUMMY).toString();
}
origin: qubole/quark

 /**
  * Strips namespace from identifiers of sql
  *
  * @param node
  * @param namespace
  * @param dialect
  * @return
  */
 private String stripNamespace(final SqlNode node,
                final String namespace,
                final SqlDialect dialect) {
  final SqlNode transformedNode = node.accept(
    new SqlShuttle() {
     @Override
     public SqlNode visit(SqlIdentifier id) {
      if (id.names.size() > 1
        && id.names.get(0).toUpperCase().equals(namespace.toUpperCase())) {
       return id.getComponent(1, id.names.size());
      } else {
       return id;
      }
     }
    });
  String result = transformedNode.toSqlString(dialect).toString();
  return result.replace("\n", " ");
 }
}
origin: org.apache.calcite/calcite-core

  new SqlPrettyWriter(CalciteSqlDialect.DEFAULT);
op.unparse(writer, call, 0, 0);
final String s = writer.toSqlString().toString();
if (s.startsWith("OVERLAY(")
  || s.contains(" / 0")
origin: Qihoo360/Quicksql

  new SqlPrettyWriter(CalciteSqlDialect.DEFAULT);
op.unparse(writer, call, 0, 0);
final String s = writer.toSqlString().toString();
if (s.startsWith("OVERLAY(")
  || s.contains(" / 0")
org.apache.calcite.sql.utilSqlStringtoString

Javadoc

Returns the SQL string.

Popular methods of SqlString

  • getSql
    Returns the SQL string.
  • <init>
    Creates a SqlString. The SQL might contain dynamic parameters, dynamicParameters designate the order
  • getDialect
    Returns the dialect.
  • getDynamicParameters
    Returns indices of dynamic parameters.

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • setContentView (Activity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now