public interface DateTokenSequence extends ScalarTokenSequence
TokenSequence
containing date valued data.TokenTypeConstant#DATE
Modifier and Type | Method and Description |
---|---|
CalendarDate |
getCalendarDate(int index)
Gets the value of the specified token as
a calendar date.
|
Date |
getDate(int index)
Deprecated.
since 6.1; use
getCalendarDate(int) instead to
obtain an object representation of the date |
Date |
getDate(int index,
TimeZone tz)
Deprecated.
since 6.1; use
getCalendarDate(int) instead to
obtain an object representation of the date |
long |
getEpochDays(int index)
Get the value of the specified token as the number
of days elapsed since January 1, 1970 00:00:00 GMT.
|
DateValued |
getToken(int index)
Gets the value at the specified position.
|
void |
getValues(int start,
long[] values,
boolean[] nulls,
int offset,
int length)
Gets the values and null indicators for a range of tokens.
|
DateValuedIterator |
newValueIterator()
Creates an iterator over the non-null values of this sequence.
|
getType, isNull, isZero
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
DateValued getToken(int index)
TokenSequence
getToken
in interface ScalarTokenSequence
getToken
in interface TokenSequence
index
- the index of the token@Deprecated Date getDate(int index)
getCalendarDate(int)
instead to
obtain an object representation of the dateindex
- the position of the token in the sequencenull
is returned.@Deprecated Date getDate(int index, TimeZone tz)
getCalendarDate(int)
instead to
obtain an object representation of the dateindex
- the index of the tokentz
- the timezone relative to which to
interpret the date.null
is returned.long getEpochDays(int index)
index
- the index of the token0
is returned.CalendarDate getCalendarDate(int index)
index
- the position of the token in the sequencenull
is returned.void getValues(int start, long[] values, boolean[] nulls, int offset, int length)
start
- the starting index of the rangevalues
- an array into which to place element values,
represented as epoch daysnulls
- 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 getgetEpochDays(int)
DateValuedIterator newValueIterator()
TokenSequence
newValueIterator
in interface ScalarTokenSequence
newValueIterator
in interface TokenSequence
Copyright © 2016 Actian Corporation. All rights reserved.