Module datarush.library
Interface MutableNumericTokenSequence
-
- All Superinterfaces:
MutableScalarTokenSequence
,MutableTokenSequence
,NumericTokenSequence
,ScalarTokenAppendable
,ScalarTokenSequence
,ScalarTyped
,TokenAppendable
,TokenSequence
,TokenTyped
- All Known Implementing Classes:
NumericTokenList
,SparseNumericTokenList
public interface MutableNumericTokenSequence extends NumericTokenSequence, MutableScalarTokenSequence
AMutableTokenSequence
containing numeric valued data.- See Also:
TokenTypeConstant#NUMERIC
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
append(BigDecimal value)
Appends the specified BigDecimal to this sequence.void
append(BigDecimal value, int count)
Appends the specified BigDecimal to this sequence multiple times.void
appendDouble(double value)
Appends the specified double to this sequence.void
appendLong(long value)
Appends the specified long to this sequence.NumericSettable
getTokenSetter(int index)
Returns a mutator for the given index.void
setBigDecimal(int index, BigDecimal value)
Sets the token at the specified position to the given value.-
Methods inherited from interface com.pervasive.datarush.sequences.scalar.MutableScalarTokenSequence
ensureCanonical, getModificationCount
-
Methods inherited from interface com.pervasive.datarush.sequences.MutableTokenSequence
appendNull, appendNull, appendZero, appendZero, fillValue, reset, setNull, setNull, setValue, setValues, setZero, setZero
-
Methods inherited from interface com.pervasive.datarush.sequences.scalar.NumericTokenSequence
getBigDecimal, getToken, getValues, newValueIterator
-
Methods inherited from interface com.pervasive.datarush.sequences.scalar.ScalarTokenSequence
getType, isNull, isZero
-
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, hashCode, isNull, size, toString
-
-
-
-
Method Detail
-
appendLong
void appendLong(long value)
Appends the specified long to this sequence.- Parameters:
value
- the value to append.
-
appendDouble
void appendDouble(double value)
Appends the specified double to this sequence.- Parameters:
value
- the value to append. IfDouble.NaN
, this is equivalent toappendNull()
.
-
append
void append(BigDecimal value)
Appends the specified BigDecimal to this sequence.- Parameters:
value
- the value to append. Ifnull
, this is equivalent toappendNull()
.
-
append
void append(BigDecimal value, int count)
Appends the specified BigDecimal to this sequence multiple times.- Parameters:
value
- the value to append. Ifnull
, this is equivalent toappendNull(count)
.count
- the number of copies to append.
-
setBigDecimal
void setBigDecimal(int index, BigDecimal value)
Sets the token at the specified position to the given value.- Parameters:
index
- the position to modifyvalue
- the new value
-
getTokenSetter
NumericSettable getTokenSetter(int index)
Description copied from interface:MutableTokenSequence
Returns a mutator for the given index.- Specified by:
getTokenSetter
in interfaceMutableScalarTokenSequence
- Specified by:
getTokenSetter
in interfaceMutableTokenSequence
- Parameters:
index
- the position- Returns:
- a mutator for the given index.
-
-