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
A
MutableTokenSequence containing numeric valued data.- See Also:
-
TokenTypeConstant#NUMERIC
-
Method Summary
Modifier and TypeMethodDescriptionvoidappend(BigDecimal value) Appends the specified BigDecimal to this sequence.voidappend(BigDecimal value, int count) Appends the specified BigDecimal to this sequence multiple times.voidappendDouble(double value) Appends the specified double to this sequence.voidappendLong(long value) Appends the specified long to this sequence.getTokenSetter(int index) Returns a mutator for the given index.voidsetBigDecimal(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, getModificationCountMethods inherited from interface com.pervasive.datarush.sequences.MutableTokenSequence
appendNull, appendNull, appendZero, appendZero, fillValue, reset, setNull, setNull, setValue, setValues, setZero, setZeroMethods inherited from interface com.pervasive.datarush.sequences.scalar.NumericTokenSequence
getBigDecimal, getToken, getValues, newValueIteratorMethods inherited from interface com.pervasive.datarush.sequences.scalar.ScalarTokenSequence
getType, isNull, isZeroMethods inherited from interface com.pervasive.datarush.sequences.TokenAppendable
append, append, append, appendMethods inherited from interface com.pervasive.datarush.sequences.TokenSequence
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
-
Method Details
-
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
Appends the specified BigDecimal to this sequence.- Parameters:
value- the value to append. Ifnull, this is equivalent toappendNull().
-
append
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
Sets the token at the specified position to the given value.- Parameters:
index- the position to modifyvalue- the new value
-
getTokenSetter
Description copied from interface:MutableTokenSequenceReturns a mutator for the given index.- Specified by:
getTokenSetterin interfaceMutableScalarTokenSequence- Specified by:
getTokenSetterin interfaceMutableTokenSequence- Parameters:
index- the position- Returns:
- a mutator for the given index.
-