public interface PeriodTokenSequence extends ScalarTokenSequence
TokenSequence
containing period valued data.TokenTypeConstant#PERIOD
Modifier and Type | Method and Description |
---|---|
int |
getDays(int index)
Gets the day portion of the value of the specified token.
|
int |
getMonths(int index)
Gets the month portion of the value of the specified token.
|
Period |
getPeriod(int index)
Gets the value of the specified token as
a period.
|
PeriodValued |
getToken(int index)
Gets the value at the specified position.
|
void |
getValues(int start,
int[] yearValues,
int[] monthValues,
int[] dayValues,
boolean[] nulls,
int offset,
int length)
Gets the values and null indicators for a range of tokens.
|
int |
getYears(int index)
Gets the year portion of the value of the specified token.
|
PeriodValuedIterator |
newValueIterator()
Creates an iterator over the non-null values of this sequence.
|
getType, isNull, isZero
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
PeriodValued getToken(int index)
TokenSequence
getToken
in interface ScalarTokenSequence
getToken
in interface TokenSequence
index
- the index of the tokenPeriod getPeriod(int index)
index
- the position of the token in the sequencenull
is returned.int getYears(int index)
index
- the position of the token in the sequence0
is returned.int getMonths(int index)
index
- the position of the token in the sequence0
is returned.int getDays(int index)
index
- the position of the token in the sequence0
is returned.void getValues(int start, int[] yearValues, int[] monthValues, int[] dayValues, boolean[] nulls, int offset, int length)
start
- the starting index of the rangeyearValues
- an array into which to place the year values
of elementsmonthValues
- an array into which to place the month values
of elementsdayValues
- an array into which to place the day 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 getPeriodValuedIterator newValueIterator()
TokenSequence
newValueIterator
in interface ScalarTokenSequence
newValueIterator
in interface TokenSequence
Copyright © 2024 Actian Corporation. All rights reserved.