public interface MutableDurationTokenSequence extends DurationTokenSequence, MutableScalarTokenSequence
MutableTokenSequence
containing duration valued data.TokenTypeConstant#DURATION
Modifier and Type | Method and 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.
|
getDuration, getSeconds, getSubsecondNanos, getToken, getValues, newValueIterator
ensureCanonical, getModificationCount
getType, isNull, isZero
appendNull, appendNull, appendZero, appendZero, fillValue, reset, setNull, setNull, setValue, setValues, setZero, setZero
compareElement, compareElements, getElementComparator, hashCode, isNull, size, toString
append, append, append, append
void append(Duration value)
value
- the value to append. If null
,
this is equivalent to appendNull()
.void appendDuration(long seconds, int subsecondNanos)
seconds
- the number of seconds in the duration.subsecondNanos
- the subsecond portion of the duration
in nanoseconds.void append(Duration value, int count)
value
- the value to append. If null
,
this is equivalent to appendNull()
.count
- the number of copies to append.void appendDuration(long seconds, int subsecondNanos, int count)
seconds
- the number of seconds in the duration.subsecondNanos
- the subsecond portion of the duration
in nanoseconds.count
- the number of copies to append.void set(int index, Duration value)
index
- the position to modify.value
- the duration to which to set the token.void setDuration(int index, long seconds, int subsecondNanos)
index
- the position to modify.seconds
- the number of seconds in the duration.subsecondNanos
- the subsecond portion of the duration
in nanoseconds.DurationSettable getTokenSetter(int index)
MutableTokenSequence
getTokenSetter
in interface MutableScalarTokenSequence
getTokenSetter
in interface MutableTokenSequence
index
- the positionCopyright © 2021 Actian Corporation. All rights reserved.