| Modifier and Type | Field and Description |
|---|---|
| private final long | dateValue
A bit field with bits for the year, month, and day (see DateTimeUtils for encoding) |
| public static final int | DEFAULT_PRECISION
The default precision and display size of the textual representation of a timestamp. |
| public static final int | DEFAULT_SCALE
The default scale for timestamps. |
| public static final int | MAXIMUM_PRECISION
The maximum precision and display size of the textual representation of a timestamp. |
| public static final int | MAXIMUM_SCALE
The maximum scale for timestamps. |
| private final long | timeNanos
The nanoseconds since midnight. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Value | |
| public int | compareTypeSafe(Value
the other value o, CompareMode the compare mode mode, CastDataProvider the cast information provider provider)Implements abstract org. Compare this value against another value given that the values are of the same data type. |
| public boolean | equals(Object
the other value other)Implements abstract org. Check if the two values have the same hash code. |
| public static ValueTimestamp | Returns: the valuethe date value, a bit field with bits for the year,
month, and day dateValue, long the nanoseconds since midnight timeNanos)Get or create a date value for the given date. |
| public long | Returns: the data valueA bit field with bits for the year, month, and day (see DateTimeUtils for encoding). |
| public String | |
| public int | |
| public StringBuilder | getSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Implements org. Appends the SQL statement of this object to the specified builder. |
| public String | |
| public long | |
| public TypeInfo | getType()
Implements abstract org. Implements org. Returns the data type. |
| public int | |
| public int | hashCode()
Implements abstract org. Returns a hash code value for this object. |
| public static ValueTimestamp | Returns: the datethe string to parse s, CastDataProvider the cast information provider, may be provider)null for
literals without time zoneParse a string to a ValueTimestamp, using the given |
| public Value | subtract(Value
the value to subtract v)Overrides org. Subtract a value and return the result. |
| private StringBuilder |
| dateValue | back to summary |
|---|---|
| private final long dateValue A bit field with bits for the year, month, and day (see DateTimeUtils for encoding) | |
| DEFAULT_PRECISION | back to summary |
|---|---|
| public static final int DEFAULT_PRECISION The default precision and display size of the textual representation of a timestamp. Example: 2001-01-01 23:59:59.123456 | |
| DEFAULT_SCALE | back to summary |
|---|---|
| public static final int DEFAULT_SCALE The default scale for timestamps. | |
| MAXIMUM_PRECISION | back to summary |
|---|---|
| public static final int MAXIMUM_PRECISION The maximum precision and display size of the textual representation of a timestamp. Example: 2001-01-01 23:59:59.123456789 | |
| MAXIMUM_SCALE | back to summary |
|---|---|
| public static final int MAXIMUM_SCALE The maximum scale for timestamps. | |
| timeNanos | back to summary |
|---|---|
| private final long timeNanos The nanoseconds since midnight. | |
| ValueTimestamp | back to summary |
|---|---|
| private ValueTimestamp(long dateValue, long timeNanos) | |
| add | back to summary |
|---|---|
| public Value add(Value v) Overrides org. Doc from org. Add a value and return the result. | |
| compareTypeSafe | back to summary |
|---|---|
| public int compareTypeSafe(Value o, CompareMode mode, CastDataProvider provider) Implements abstract org. Doc from org. Compare this value against another value given that the values are of the same data type.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Implements abstract org. Doc from org. Check if the two values have the same hash code. No data conversion is made; this method returns false if the other object is not of the same class. For some values, compareTo may return 0 even if equals return false. Example: ValueDecimal 0.0 and 0.00. | |
| fromDateValueAndNanos | back to summary |
|---|---|
| public static ValueTimestamp fromDateValueAndNanos(long dateValue, long timeNanos) Get or create a date value for the given date.
| |
| getDateValue | back to summary |
|---|---|
| public long getDateValue() A bit field with bits for the year, month, and day (see DateTimeUtils for encoding).
| |
| getISOString | back to summary |
|---|---|
| public String getISOString() Returns value as string in ISO format.
| |
| getMemory | back to summary |
|---|---|
| public int getMemory() Overrides org. Doc from org. Get the memory used by this object.
| |
| getSQL | back to summary |
|---|---|
| public StringBuilder getSQL(StringBuilder builder, int sqlFlags) Implements org. Doc from org. Appends the SQL statement of this object to the specified builder.
| |
| getString | back to summary |
|---|---|
| public String getString() Implements abstract org. Doc from org. Get the value as a string. | |
| getTimeNanos | back to summary |
|---|---|
| public long getTimeNanos() The nanoseconds since midnight.
| |
| getType | back to summary |
|---|---|
| public TypeInfo getType() Implements abstract org. Implements org. Doc from org. Returns the data type. | |
| getValueType | back to summary |
|---|---|
| public int getValueType() Implements abstract org. Doc from org. Get the value type.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parse | back to summary |
|---|---|
| public static ValueTimestamp parse(String s, CastDataProvider provider) Parse a string to a ValueTimestamp, using the given
| |
| subtract | back to summary |
|---|---|
| public Value subtract(Value v) Overrides org. Doc from org. Subtract a value and return the result. | |
| toString | back to summary |
|---|---|
| private StringBuilder toString(StringBuilder builder, boolean iso) | |