public interface MutableBinaryTokenSequence extends BinaryTokenSequence, MutableScalarTokenSequence
MutableTokenSequence containing binary valued data.TokenTypeConstant#BINARY| Modifier and Type | Method and Description |
|---|---|
void |
append(byte[] value)
Appends the specified binary value to this sequence.
|
void |
append(byte[] value,
int count)
Appends the specified binary value to this sequence
multiple times.
|
void |
appendReference(byte[] value)
Appends the specified binary value to this sequence.
|
void |
appendReference(byte[] value,
int count)
Appends the specified binary value to this sequence
multiple times.
|
BinarySettable |
getTokenSetter(int index)
Returns a mutator for the given index.
|
void |
set(int index,
byte[] value)
Sets the token at the specified position to the given binary value.
|
void |
setRef(int index,
byte[] value)
Sets the token at the specified position to the given byte array reference.
|
getBinary, getBinaryRef, getToken, getValues, newValueIteratorensureCanonical, getModificationCountgetType, isNull, isZeroappendNull, appendNull, appendZero, appendZero, fillValue, reset, setNull, setNull, setValue, setValues, setZero, setZerocompareElement, compareElements, getElementComparator, hashCode, isNull, size, toStringappend, append, append, appendvoid append(byte[] value)
A copy of the input will be made.
value - the value to append. If null,
this is equivalent to appendNull().void appendReference(byte[] value)
A reference to the input value will be stored; subsequent modification of the input modifies the stored value.
value - the value to append. If null,
this is equivalent to appendNull().void append(byte[] value,
int count)
A copy of the input will be made.
value - the value to append. If null,
this is equivalent to appendNull(count).count - the number of copies to append.void appendReference(byte[] value,
int count)
A reference to the input value will be stored; subsequent modification of the input modifies the stored value.
value - the value to append. If null,
this is equivalent to appendNull(count).count - the number of copies to append.void set(int index,
byte[] value)
The input array is copied to prevent later modification of the value
that is set. To avoid this overhead and prevent the data copy,
use the setRef(int,byte[]) method instead.
index - the position of the token in the arrayvalue - the binary value to which to set the token.
Passing null is equivalent to calling setNull(index).void setRef(int index,
byte[] value)
While this call avoids the overhead seen with set(int,byte[]),
subsequent modification of the value will modify the token value in the array.
index - the position of the token in the arrayvalue - the binary value to which to set the token.
Passing null is equivalent to calling setNull(index).BinarySettable getTokenSetter(int index)
MutableTokenSequencegetTokenSetter in interface MutableScalarTokenSequencegetTokenSetter in interface MutableTokenSequenceindex - the positionCopyright © 2024 Actian Corporation. All rights reserved.