Tabnine Logo
SqlDialect.unparseSqlIntervalQualifier
Code IndexAdd Tabnine to your IDE (free)

How to use
unparseSqlIntervalQualifier
method
in
org.apache.calcite.sql.SqlDialect

Best Java code snippets using org.apache.calcite.sql.SqlDialect.unparseSqlIntervalQualifier (Showing top 4 results out of 315)

origin: Qihoo360/Quicksql

public void unparse(
  SqlWriter writer,
  int leftPrec,
  int rightPrec) {
 writer.getDialect()
   .unparseSqlIntervalQualifier(writer, this, RelDataTypeSystem.DEFAULT);
}
origin: org.apache.calcite/calcite-core

public void unparse(
  SqlWriter writer,
  int leftPrec,
  int rightPrec) {
 writer.getDialect()
   .unparseSqlIntervalQualifier(writer, this, RelDataTypeSystem.DEFAULT);
}
origin: Qihoo360/Quicksql

/** Converts an interval literal to a SQL string. The default implementation
 * returns strings such as
 * <code>INTERVAL '1 2:3:4' DAY(4) TO SECOND(4)</code>. */
public void unparseSqlIntervalLiteral(SqlWriter writer,
  SqlIntervalLiteral literal, int leftPrec, int rightPrec) {
 SqlIntervalLiteral.IntervalValue interval =
   (SqlIntervalLiteral.IntervalValue) literal.getValue();
 writer.keyword("INTERVAL");
 if (interval.getSign() == -1) {
  writer.print("-");
 }
 writer.literal("'" + literal.getValue().toString() + "'");
 unparseSqlIntervalQualifier(writer, interval.getIntervalQualifier(),
   RelDataTypeSystem.DEFAULT);
}
origin: org.apache.calcite/calcite-core

/** Converts an interval literal to a SQL string. The default implementation
 * returns strings such as
 * <code>INTERVAL '1 2:3:4' DAY(4) TO SECOND(4)</code>. */
public void unparseSqlIntervalLiteral(SqlWriter writer,
  SqlIntervalLiteral literal, int leftPrec, int rightPrec) {
 SqlIntervalLiteral.IntervalValue interval =
   (SqlIntervalLiteral.IntervalValue) literal.getValue();
 writer.keyword("INTERVAL");
 if (interval.getSign() == -1) {
  writer.print("-");
 }
 writer.literal("'" + literal.getValue().toString() + "'");
 unparseSqlIntervalQualifier(writer, interval.getIntervalQualifier(),
   RelDataTypeSystem.DEFAULT);
}
org.apache.calcite.sqlSqlDialectunparseSqlIntervalQualifier

Javadoc

Converts an interval qualifier to a SQL string. The default implementation returns strings such as INTERVAL '1 2:3:4' DAY(4) TO SECOND(4).

Popular methods of SqlDialect

  • quoteStringLiteral
    Converts a string into a string literal. For example, can't run becomes 'can''t run'.
  • unparseCall
  • <init>
    Creates a SqlDialect.
  • 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
  • getCalendarPolicy,
  • getCastSpec,
  • getDatabaseProduct,
  • getNullCollation,
  • hasImplicitTableAlias,
  • identifierNeedsToBeQuoted,
  • quoteStringLiteralUnicode,
  • quoteTimestampLiteral,
  • rewriteSingleValueExpr,
  • supportsAliasedValues

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JTextField (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top 12 Jupyter Notebook extensions
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