O
- the type of Java objects in the sequencepublic interface ObjectTokenSequence<O> extends ScalarTokenSequence, ObjectTyped<O>
TokenSequence
containing object valued data.TokenTypeConstant#OBJECT(Class)
Modifier and Type | Method and Description |
---|---|
O |
getObject(int index)
Gets the value of the specified token as an object.
|
ObjectValued<O> |
getToken(int index)
Gets the value at the specified position.
|
ObjectTokenType<O> |
getType()
Gets the data type of the tokens in the sequence.
|
void |
getValues(int start,
O[] values,
boolean[] nulls,
int offset,
int length)
Gets the values and null indicators for a range of tokens.
|
ObjectValuedIterator<O> |
newValueIterator()
Creates an iterator over the non-null values of this sequence.
|
isNull, isZero
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
ObjectValued<O> getToken(int index)
TokenSequence
getToken
in interface ScalarTokenSequence
getToken
in interface TokenSequence
index
- the index of the tokenObjectTokenType<O> getType()
ScalarTokenSequence
getType
in interface ObjectTyped<O>
getType
in interface ScalarTokenSequence
getType
in interface ScalarTyped
getType
in interface TokenTyped
O getObject(int index)
This is a reference to the object representing the value. If the object is mutable, changing it modifies the value of the token in the sequence.
index
- the position of the token in the sequencenull
is returned.void getValues(int start, O[] values, boolean[] nulls, int offset, int length)
References to the objects representing the token values are returned. If these objects are mutable, changing any modifies the values of the tokens in the sequence.
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 getObjectValuedIterator<O> newValueIterator()
TokenSequence
newValueIterator
in interface ScalarTokenSequence
newValueIterator
in interface TokenSequence
Copyright © 2024 Actian Corporation. All rights reserved.