public interface TimestampTokenSequence extends ScalarTokenSequence
TokenSequence
containing timestamp valued data.TokenTypeConstant#TIMESTAMP
Modifier and Type | Method and Description |
---|---|
long |
getEpochSeconds(int index)
Gets the value of the specified token as the number of seconds
elapsed since January 1, 1970 00:00:00 GMT.
|
int |
getOffsetSeconds(int index)
Gets the time zone plus daylight savings time offset (in seconds)
of the timestamp value of the specified token.
|
int |
getSubsecondNanos(int index)
Gets the subsecond portion (in nanoseconds) of the timestamp
value of the specified token.
|
Timestamp |
getTimestamp(int index)
Gets the value of the specified token as
a timestamp.
|
TimestampValued |
getToken(int index)
Gets the value at the specified position.
|
void |
getValues(int start,
long[] secValues,
int[] nanoValues,
int[] offsetValues,
boolean[] nulls,
int offset,
int length)
Gets the values and null indicators for a range of tokens.
|
TimestampValuedIterator |
newValueIterator()
Creates an iterator over the non-null values of this sequence.
|
getType, isNull, isZero
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
TimestampValued getToken(int index)
TokenSequence
getToken
in interface ScalarTokenSequence
getToken
in interface TokenSequence
index
- the index of the tokenTimestamp getTimestamp(int index)
index
- the position of the token in the sequencenull
is returned.long getEpochSeconds(int index)
index
- the position of the token in the sequence0
is returned.int getSubsecondNanos(int index)
index
- the position of the token in the sequence0
is returned.int getOffsetSeconds(int index)
index
- the position of the token in the sequence0
is returned.void getValues(int start, long[] secValues, int[] nanoValues, int[] offsetValues, boolean[] nulls, int offset, int length)
start
- the starting index of the rangesecValues
- an array into which to place the epoch second values
of elementsnanoValues
- an array into which to place the subsecond values
of elementsoffsetValues
- an array into which to place the offset seconds values
of elementsnulls
- an array into which to place null indicator valuesoffset
- the starting offset into the target arrays. That is,
elements[offset]
and nulls[offset]
will get the
value and null indicator respectively of the token at position
start
, and so on.length
- number of tokens to getTimestampValuedIterator newValueIterator()
TokenSequence
newValueIterator
in interface ScalarTokenSequence
newValueIterator
in interface TokenSequence
Copyright © 2016 Actian Corporation. All rights reserved.