-
- All Superinterfaces:
TokenAppendable
,TokenSequence
,TokenTyped
- All Known Subinterfaces:
MutableBinaryTokenSequence
,MutableBooleanTokenSequence
,MutableCharTokenSequence
,MutableDateTokenSequence
,MutableDoubleTokenSequence
,MutableDurationTokenSequence
,MutableFloatTokenSequence
,MutableIntTokenSequence
,MutableIp4AddressTokenSequence
,MutableIp6AddressTokenSequence
,MutableLongTokenSequence
,MutableMoneyTokenSequence
,MutableNumericTokenSequence
,MutableObjectTokenSequence<O>
,MutablePeriodTokenSequence
,MutableRecordTokenSequence
,MutableScalarTokenSequence
,MutableStringTokenSequence
,MutableTimestampTokenSequence
,MutableTimeTokenSequence
- All Known Implementing Classes:
AbstractScalarTokenSequence
,BinaryTokenList
,BooleanTokenList
,CharTokenList
,DateTokenList
,DoubleTokenList
,DurationTokenList
,FloatTokenList
,IntTokenList
,Ip4AddressTokenList
,Ip6AddressTokenList
,LongTokenList
,MoneyTokenList
,NumericTokenList
,ObjectTokenList
,PeriodTokenList
,RecordTokenList
,SparseBinaryTokenList
,SparseBooleanTokenList
,SparseCharTokenList
,SparseDateTokenList
,SparseDoubleTokenList
,SparseDurationTokenList
,SparseFloatTokenList
,SparseIntTokenList
,SparseIp4AddressTokenList
,SparseIp6AddressTokenList
,SparseLongTokenList
,SparseMoneyTokenList
,SparseNumericTokenList
,SparseObjectTokenList
,SparsePeriodTokenList
,SparseRecordTokenList
,SparseStringTokenList
,SparseTimestampTokenList
,SparseTimeTokenList
,StringTokenList
,TimestampTokenList
,TimeTokenList
public interface MutableTokenSequence extends TokenSequence, TokenAppendable
A mutableTokenSequence
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.pervasive.datarush.sequences.TokenAppendable
append, append, append, append
-
Methods inherited from interface com.pervasive.datarush.sequences.TokenSequence
compareElement, compareElements, getElementComparator, getToken, hashCode, isNull, newValueIterator, size, toString
-
Methods inherited from interface com.pervasive.datarush.types.TokenTyped
getType
-
-
-
-
Method Detail
-
setNull
void setNull(int index)
Sets the token at the specified position to be null valued.- Parameters:
index
- the position of the token in the array
-
setNull
void setNull(int start, int length)
Sets the tokens in the specified subsequence to be null valued.- Parameters:
start
- the starting index of the subsequence in the arraylength
- the length of the subsequence
-
setZero
void setZero(int index)
Sets the token at the specified position to be zero valued.- Parameters:
index
- the position of the token in the array
-
setZero
void setZero(int start, int length)
Sets the tokens in the specified subsequence to be zero valued.- Parameters:
start
- the starting index of the subsequence in the arraylength
- the length of the subsequence
-
setValue
void setValue(int index, TokenValued value)
Sets the token at the specified position to the given value.- Parameters:
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.
-
fillValue
void fillValue(int start, int length, TokenValued value)
Sets the tokens in the specified subsequence to the given value.- Parameters:
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 array
-
setValues
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.- Parameters:
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 positionoffset
invalues
will be assigned to the token at positionstart
, and so on.length
- the number of tokens to copy
-
appendZero
void appendZero()
Appends a zero value to this sequence.
-
appendZero
void appendZero(int count)
Appends the specified number of zero values to this sequence.- Parameters:
count
- the number of zero values to append
-
appendNull
void appendNull()
Appends a null value to this sequence.
-
appendNull
void appendNull(int count)
Appends the specified number of null values to this sequence.- Parameters:
count
- the number of null values to append
-
reset
void reset()
Removes all elements from the sequence.
-
getTokenSetter
TokenSettable getTokenSetter(int index)
Returns a mutator for the given index.- Parameters:
index
- the position- Returns:
- a mutator for the given index.
-
-