public interface BinaryTokenSequence extends ScalarTokenSequence
TokenSequence
containing binary valued data.TokenTypeConstant#BINARY
Modifier and Type | Method and Description |
---|---|
byte[] |
getBinary(int index)
Gets the value of the specified token as
a binary value.
|
byte[] |
getBinaryRef(int index)
Gets the value of the specified token as
a binary value.
|
BinaryValued |
getToken(int index)
Gets the value at the specified position.
|
void |
getValues(int start,
byte[][] values,
boolean[] nulls,
int offset,
int length)
Gets the values and null indicators for a range of tokens.
|
BinaryValuedIterator |
newValueIterator()
Creates an iterator over the non-null values of this sequence.
|
getType, isNull, isZero
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
BinaryValued getToken(int index)
TokenSequence
getToken
in interface ScalarTokenSequence
getToken
in interface TokenSequence
index
- the index of the tokenbyte[] getBinary(int index)
A copy of the value is returned.
index
- the position of the token in the sequencenull
is returned.byte[] getBinaryRef(int index)
A reference to the value of the token is returned. Modifying this reference modifies the value of the token in the sequence.
index
- the position of the token in the sequencenull
is returned.void getValues(int start, byte[][] values, boolean[] nulls, int offset, int length)
References to the values of the tokens are returned. Modifying these references modify 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 getBinaryValuedIterator newValueIterator()
TokenSequence
newValueIterator
in interface ScalarTokenSequence
newValueIterator
in interface TokenSequence
Copyright © 2021 Actian Corporation. All rights reserved.