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

  • Finding current android device location
  • compareTo (BigDecimal)
  • setContentView (Activity)
  • getResourceAsStream (ClassLoader)
  • Menu (java.awt)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Path (java.nio.file)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • 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