Module datarush.library
Interface MutableDurationTokenSequence
- All Superinterfaces:
DurationTokenSequence,MutableScalarTokenSequence,MutableTokenSequence,ScalarTokenAppendable,ScalarTokenSequence,ScalarTyped,TokenAppendable,TokenSequence,TokenTyped
- All Known Implementing Classes:
DurationTokenList,SparseDurationTokenList
public interface MutableDurationTokenSequence
extends DurationTokenSequence, MutableScalarTokenSequence
A
MutableTokenSequence containing duration valued data.- See Also:
-
TokenTypeConstant#DURATION
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppends the specified duration to this sequence.voidAppends the specified duration to this sequence multiple times.voidappendDuration(long seconds, int subsecondNanos) Appends the duration specified in seconds to this sequence.voidappendDuration(long seconds, int subsecondNanos, int count) Appends the duration specified in seconds to this sequence multiple times.getTokenSetter(int index) Returns a mutator for the given index.voidSets the token at the specified position to the given value.voidsetDuration(int index, long seconds, int subsecondNanos) Sets the token at the specified position to the given value.Methods inherited from interface com.pervasive.datarush.sequences.scalar.DurationTokenSequence
getDuration, getSeconds, getSubsecondNanos, getToken, getValues, newValueIteratorMethods 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.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
-
append
Appends the specified duration to this sequence.- Parameters:
value- the value to append. Ifnull, this is equivalent toappendNull().
-
appendDuration
void appendDuration(long seconds, int subsecondNanos) Appends the duration specified in seconds to this sequence.- Parameters:
seconds- the number of seconds in the duration.subsecondNanos- the subsecond portion of the duration in nanoseconds.
-
append
Appends the specified duration to this sequence multiple times.- Parameters:
value- the value to append. Ifnull, this is equivalent toappendNull().count- the number of copies to append.
-
appendDuration
void appendDuration(long seconds, int subsecondNanos, int count) Appends the duration specified in seconds to this sequence multiple times.- Parameters:
seconds- the number of seconds in the duration.subsecondNanos- the subsecond portion of the duration in nanoseconds.count- the number of copies to append.
-
set
Sets the token at the specified position to the given value.- Parameters:
index- the position to modify.value- the duration to which to set the token.
-
setDuration
void setDuration(int index, long seconds, int subsecondNanos) Sets the token at the specified position to the given value.- Parameters:
index- the position to modify.seconds- the number of seconds in the duration.subsecondNanos- the subsecond portion of the duration in nanoseconds.
-
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.
-