public interface ScalarTokenSequence extends TokenSequence, ScalarTyped
TokenSequence containing scalar typed tokens.
The scalar token types are enumerated in TokenTypeConstant.| Modifier and Type | Method and Description |
|---|---|
ScalarValued |
getToken(int index)
Gets the value at the specified position.
|
ScalarTokenType |
getType()
Gets the data type of the tokens in the sequence.
|
boolean |
isNull()
Returns whether all elements are null.
|
boolean |
isZero(int index)
Indicates whether the specified token has a zero value.
|
ScalarValuedIterator |
newValueIterator()
Creates an iterator over the non-null values of this sequence.
|
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toStringScalarTokenType getType()
getType in interface ScalarTypedgetType in interface TokenTypedScalarValued getToken(int index)
TokenSequencegetToken in interface TokenSequenceindex - the index of the tokenScalarValuedIterator newValueIterator()
TokenSequencenewValueIterator in interface TokenSequenceboolean isNull()
boolean isZero(int index)
index - the index of the tokentrue if the element is zero,
false otherwiseCopyright © 2020 Actian Corporation. All rights reserved.