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, toString
ScalarTokenType getType()
getType
in interface ScalarTyped
getType
in interface TokenTyped
ScalarValued getToken(int index)
TokenSequence
getToken
in interface TokenSequence
index
- the index of the tokenScalarValuedIterator newValueIterator()
TokenSequence
newValueIterator
in interface TokenSequence
boolean isNull()
boolean isZero(int index)
index
- the index of the tokentrue
if the element is zero,
false
otherwiseCopyright © 2016 Actian Corporation. All rights reserved.