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, isZerocompareElement, compareElements, getElementComparator, hashCode, isNull, size, toStringObjectValued<O> getToken(int index)
TokenSequencegetToken in interface ScalarTokenSequencegetToken in interface TokenSequenceindex - the index of the tokenObjectTokenType<O> getType()
ScalarTokenSequencegetType in interface ObjectTyped<O>getType in interface ScalarTokenSequencegetType in interface ScalarTypedgetType in interface TokenTypedO 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()
TokenSequencenewValueIterator in interface ScalarTokenSequencenewValueIterator in interface TokenSequenceCopyright © 2016 Actian Corporation. All rights reserved.