congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SqlTypeAssignmentRules
Code IndexAdd Tabnine to your IDE (free)

How to use
SqlTypeAssignmentRules
in
org.apache.calcite.sql.type

Best Java code snippets using org.apache.calcite.sql.type.SqlTypeAssignmentRules (Showing top 9 results out of 315)

origin: Qihoo360/Quicksql

@Deprecated
public boolean canCastFrom(
  SqlTypeName to,
  SqlTypeName from,
  boolean coerce) {
 return instance(coerce).canCastFrom(to, from);
}
origin: org.apache.calcite/calcite-core

/** Returns an instance that does not coerce. */
public static synchronized SqlTypeAssignmentRules instance() {
 return instance(false);
}
origin: Qihoo360/Quicksql

/** Returns an instance that does not coerce. */
public static synchronized SqlTypeAssignmentRules instance() {
 return instance(false);
}
origin: org.apache.calcite/calcite-core

@Deprecated
public boolean canCastFrom(
  SqlTypeName to,
  SqlTypeName from,
  boolean coerce) {
 return instance(coerce).canCastFrom(to, from);
}
origin: Qihoo360/Quicksql

if (SqlTypeAssignmentRules.instance(false)
  .canCastFrom(toType.getSqlTypeName(), fromType.getSqlTypeName())) {
 for (RexLiteral literal : map.get(fromType.getSqlTypeName())) {
  final RexNode cast = rexBuilder.makeCast(toType, literal);
origin: org.apache.calcite/calcite-core

if (SqlTypeAssignmentRules.instance(false)
  .canCastFrom(toType.getSqlTypeName(), fromType.getSqlTypeName())) {
 for (RexLiteral literal : map.get(fromType.getSqlTypeName())) {
  final RexNode cast = rexBuilder.makeCast(toType, literal);
origin: Qihoo360/Quicksql

SqlTypeAssignmentRules rules = SqlTypeAssignmentRules.instance(coerce);
return rules.canCastFrom(toTypeName, fromTypeName);
origin: org.apache.kylin/atopcalcite

SqlTypeAssignmentRules rules = SqlTypeAssignmentRules.instance();
return rules.canCastFrom(toTypeName, fromTypeName, coerce);
origin: org.apache.calcite/calcite-core

SqlTypeAssignmentRules rules = SqlTypeAssignmentRules.instance(coerce);
return rules.canCastFrom(toTypeName, fromTypeName);
org.apache.calcite.sql.typeSqlTypeAssignmentRules

Javadoc

Rules that determine whether a type is assignable from another type.

Most used methods

  • canCastFrom
  • instance
    Returns an instance.

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • startActivity (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Vim 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