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
AMutableTokenSequence
containing duration valued data.- See Also:
TokenTypeConstant#DURATION
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
append(Duration value)
Appends the specified duration to this sequence.void
append(Duration value, int count)
Appends the specified duration to this sequence multiple times.void
appendDuration(long seconds, int subsecondNanos)
Appends the duration specified in seconds to this sequence.void
appendDuration(long seconds, int subsecondNanos, int count)
Appends the duration specified in seconds to this sequence multiple times.DurationSettable
getTokenSetter(int index)
Returns a mutator for the given index.void
set(int index, Duration value)
Sets the token at the specified position to the given value.void
setDuration(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, newValueIterator
-
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.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
-
append
void append(Duration value)
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
void append(Duration value, int count)
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
void set(int index, Duration value)
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
DurationSettable 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.
-
-