public interface MutableTokenSequence extends TokenSequence, TokenAppendable
TokenSequence
.Modifier and Type | Method and Description |
---|---|
void |
appendNull()
Appends a null value to this sequence.
|
void |
appendNull(int count)
Appends the specified number of null values to this sequence.
|
void |
appendZero()
Appends a zero value to this sequence.
|
void |
appendZero(int count)
Appends the specified number of zero values to this sequence.
|
void |
fillValue(int start,
int length,
TokenValued value)
Sets the tokens in the specified subsequence to the given value.
|
TokenSettable |
getTokenSetter(int index)
Returns a mutator for the given index.
|
void |
reset()
Removes all elements from the sequence.
|
void |
setNull(int index)
Sets the token at the specified position to be null valued.
|
void |
setNull(int start,
int length)
Sets the tokens in the specified subsequence to be null valued.
|
void |
setValue(int index,
TokenValued value)
Sets the token at the specified position to the given value.
|
void |
setValues(int start,
TokenSequence values,
int offset,
int length)
Sets the tokens in the specified subsequence of the array
to the corresponding values from a subsequence of the given source
sequence.
|
void |
setZero(int index)
Sets the token at the specified position to be zero valued.
|
void |
setZero(int start,
int length)
Sets the tokens in the specified subsequence to be zero valued.
|
compareElement, compareElements, getElementComparator, getToken, hashCode, isNull, newValueIterator, size, toString
getType
append, append, append, append
void setNull(int index)
index
- the position of the token in the arrayvoid setNull(int start, int length)
start
- the starting index of the subsequence in the arraylength
- the length of the subsequencevoid setZero(int index)
index
- the position of the token in the arrayvoid setZero(int start, int length)
start
- the starting index of the subsequence in the arraylength
- the length of the subsequencevoid setValue(int index, TokenValued value)
index
- the position of the token in the arrayvalue
- the value to which to set the token. This value
must be of an appropriate type for the array.void fillValue(int start, int length, TokenValued value)
start
- the starting index of the subsequence in the arraylength
- the length of the subsequencevalue
- the value to which to set the tokens. This value
must be of an appropriate type for the arrayvoid setValues(int start, TokenSequence values, int offset, int length)
start
- the starting index of the subsequence in the arrayvalues
- the source sequence. This sequence must be
of an appropriate type for the array.offset
- the starting index in the source sequence.
Corresponding values will be taken relative to this position.
That is, the value of the token at position offset
in
values
will be assigned to the token at position
start
, and so on.length
- the number of tokens to copyvoid appendZero()
void appendZero(int count)
count
- the number of zero values to appendvoid appendNull()
void appendNull(int count)
count
- the number of null values to appendvoid reset()
TokenSettable getTokenSetter(int index)
index
- the positionCopyright © 2021 Actian Corporation. All rights reserved.