public interface DurationTokenSequence extends ScalarTokenSequence
TokenSequence containing duration valued data.TokenTypeConstant#DURATION| Modifier and Type | Method and Description |
|---|---|
Duration |
getDuration(int index)
Gets the value of the specified token as
a duration.
|
long |
getSeconds(int index)
Gets the value of the specified token as the number of seconds
in the duration.
|
int |
getSubsecondNanos(int index)
Gets the subsecond portion (in nanoseconds) of the duration
value of the specified token.
|
DurationValued |
getToken(int index)
Gets the value at the specified position.
|
void |
getValues(int start,
long[] secValues,
int[] nanoValues,
boolean[] nulls,
int offset,
int length)
Gets the values and null indicators for a range of tokens.
|
DurationValuedIterator |
newValueIterator()
Creates an iterator over the non-null values of this sequence.
|
getType, isNull, isZerocompareElement, compareElements, getElementComparator, hashCode, isNull, size, toStringDurationValued getToken(int index)
TokenSequencegetToken in interface ScalarTokenSequencegetToken in interface TokenSequenceindex - the index of the tokenDuration getDuration(int index)
index - the position of the token in the sequencenull is returned.long getSeconds(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.void getValues(int start,
long[] secValues,
int[] nanoValues,
boolean[] nulls,
int offset,
int length)
start - the starting index of the rangesecValues - an array into which to place the second values
of elementsnanoValues - an array into which to place the subsecond 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 getDurationValuedIterator newValueIterator()
TokenSequencenewValueIterator in interface ScalarTokenSequencenewValueIterator in interface TokenSequenceCopyright © 2020 Actian Corporation. All rights reserved.