congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SqlDialect.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.calcite.sql.SqlDialect
constructor

Best Java code snippets using org.apache.calcite.sql.SqlDialect.<init> (Showing top 3 results out of 315)

origin: Qihoo360/Quicksql

DatabaseProduct(String databaseProductName, String quoteString,
  NullCollation nullCollation) {
 Objects.requireNonNull(databaseProductName);
 Objects.requireNonNull(nullCollation);
 dialect = Suppliers.memoize(() -> {
  final SqlDialect dialect =
    SqlDialectFactoryImpl.simple(DatabaseProduct.this);
  if (dialect != null) {
   return dialect;
  }
  return new SqlDialect(SqlDialect.EMPTY_CONTEXT
    .withDatabaseProduct(DatabaseProduct.this)
    .withDatabaseProductName(databaseProductName)
    .withIdentifierQuoteString(quoteString)
    .withNullCollation(nullCollation));
 })::get;
}
origin: org.apache.calcite/calcite-core

DatabaseProduct(String databaseProductName, String quoteString,
  NullCollation nullCollation) {
 Objects.requireNonNull(databaseProductName);
 Objects.requireNonNull(nullCollation);
 dialect = Suppliers.memoize(() -> {
  final SqlDialect dialect =
    SqlDialectFactoryImpl.simple(DatabaseProduct.this);
  if (dialect != null) {
   return dialect;
  }
  return new SqlDialect(SqlDialect.EMPTY_CONTEXT
    .withDatabaseProduct(DatabaseProduct.this)
    .withDatabaseProductName(databaseProductName)
    .withIdentifierQuoteString(quoteString)
    .withNullCollation(nullCollation));
 })::get;
}
origin: dremio/dremio-oss

final String viewSql = createView.getQuery().toSqlString(new SqlDialect(SqlDialect.CALCITE.getDatabaseProduct(), SqlDialect.CALCITE.getDatabaseProduct().name(), ParserConfig.QUOTING.string)).getSql();
final ConvertedRelNode convertedRelNode = PrelTransformer.validateAndConvert(config, createView.getQuery());
final RelDataType validatedRowType = convertedRelNode.getValidatedRowType();
org.apache.calcite.sqlSqlDialect<init>

Javadoc

Creates a SqlDialect.

Popular methods of SqlDialect

  • quoteStringLiteral
    Converts a string into a string literal. For example, can't run becomes 'can''t run'.
  • unparseCall
  • quoteIdentifier
    Quotes a multi-part identifier.
  • supportsAggregateFunction
  • supportsCharSet
    Returns whether the dialect supports character set names as part of a data type, for instance VARCHA
  • allowsAs
  • containsNonAscii
    Returns whether the string contains any characters outside the comfortable 7-bit ASCII range (32 thr
  • defaultNullDirection
    Returns whether NULL values are sorted first or last, in this dialect, in an ORDER BY item of a give
  • emulateNullDirection
    Returns the SqlNode for emulating the null direction for the given field or null if no emulation ne
  • getCalendarPolicy
  • getCastSpec
  • getDatabaseProduct
    Returns the database this dialect belongs to, SqlDialect.DatabaseProduct#UNKNOWN if not known, never
  • getCastSpec,
  • getDatabaseProduct,
  • getNullCollation,
  • hasImplicitTableAlias,
  • identifierNeedsToBeQuoted,
  • quoteStringLiteralUnicode,
  • quoteTimestampLiteral,
  • rewriteSingleValueExpr,
  • supportsAliasedValues

Popular in Java

  • Making http post requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • JOptionPane (javax.swing)
  • Option (scala)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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