| Package | Description |
|---|---|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| org.apache.calcite.sql |
Provides a SQL parser and object model.
|
| org.apache.calcite.util |
Provides utility classes.
|
| Modifier and Type | Method and Description |
|---|---|
RexLiteral |
RexBuilder.makeTimestampLiteral(TimestampString timestamp,
int precision)
Creates a Timestamp literal.
|
RexLiteral |
RexBuilder.makeTimestampWithLocalTimeZoneLiteral(TimestampString timestamp,
int precision)
Creates a Timestamp with local time-zone literal.
|
| Modifier and Type | Method and Description |
|---|---|
protected TimestampString |
SqlAbstractDateTimeLiteral.getTimestamp()
Converts this literal to a
TimestampString. |
| Modifier and Type | Method and Description |
|---|---|
static SqlTimestampLiteral |
SqlLiteral.createTimestamp(TimestampString ts,
int precision,
SqlParserPos pos) |
| Constructor and Description |
|---|
SqlTimestampLiteral(TimestampString ts,
int precision,
boolean hasTimeZone,
SqlParserPos pos) |
| Modifier and Type | Field and Description |
|---|---|
(package private) TimestampString |
TimestampWithTimeZoneString.localDateTime |
| Modifier and Type | Method and Description |
|---|---|
static TimestampString |
TimestampString.fromCalendarFields(Calendar calendar)
Creates a TimestampString from a Calendar.
|
static TimestampString |
TimestampString.fromMillisSinceEpoch(long millis)
Creates a TimestampString that is a given number of milliseconds since
the epoch.
|
TimestampString |
TimestampWithTimeZoneString.getLocalTimestampString() |
TimestampString |
TimestampString.round(int precision) |
TimestampString |
TimestampString.withFraction(String fraction)
Sets the fraction field of a
TimestampString. |
TimestampString |
TimestampString.withMillis(int millis)
Sets the fraction field of a
TimestampString to a given number
of milliseconds. |
TimestampString |
TimestampString.withNanos(int nanos)
Sets the fraction field of a
TimestampString to a given number
of nanoseconds. |
| Modifier and Type | Method and Description |
|---|---|
int |
TimestampString.compareTo(TimestampString o) |
| Constructor and Description |
|---|
TimestampWithTimeZoneString(TimestampString localDateTime,
TimeZone timeZone)
Creates a TimestampWithTimeZoneString.
|
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.