public interface CharTokenSequence extends ScalarTokenSequence, CharSequence
TokenSequence containing character valued data.TokenTypeConstant#CHAR| Modifier and Type | Method and Description |
|---|---|
char |
getChar(int index)
Gets the value of the specified token as
a
char. |
String |
getString(int start,
int length)
Gets a subsequence of tokens as a string.
|
CharValued |
getToken(int index)
Gets the value at the specified position.
|
void |
getValues(int start,
char[] values,
boolean[] nulls,
int offset,
int length)
Gets the values and null indicators for a range of tokens.
|
CharValuedIterator |
newValueIterator()
Creates an iterator over the non-null values of this sequence.
|
getType, isNull, isZerocompareElement, compareElements, getElementComparator, hashCode, isNull, size, toStringcharAt, chars, codePoints, length, subSequence, toStringCharValued getToken(int index)
TokenSequencegetToken in interface ScalarTokenSequencegetToken in interface TokenSequenceindex - the index of the tokenchar getChar(int index)
char.index - the position of the token in the sequenceCharacter.MAX_VALUE
is returned.void getValues(int start,
char[] values,
boolean[] nulls,
int offset,
int length)
start - the starting index of the rangevalues - an array into which to place element valuesnulls - 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 getString getString(int start, int length)
Character.MAX_VALUE.start - the index of the first token in the
subsequencelength - the length of the subsequenceCharValuedIterator newValueIterator()
TokenSequencenewValueIterator in interface ScalarTokenSequencenewValueIterator in interface TokenSequenceCopyright © 2020 Actian Corporation. All rights reserved.