Module datarush.library
Interface MutableTimestampTokenSequence
- All Superinterfaces:
MutableScalarTokenSequence,MutableTokenSequence,ScalarTokenAppendable,ScalarTokenSequence,ScalarTyped,TimestampTokenSequence,TokenAppendable,TokenSequence,TokenTyped
- All Known Implementing Classes:
SparseTimestampTokenList,TimestampTokenList
public interface MutableTimestampTokenSequence
extends TimestampTokenSequence, MutableScalarTokenSequence
A
MutableTokenSequence containing timestamp valued data.- See Also:
-
TokenTypeConstant#TIMESTAMP
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppends the specified timestamp to this sequence.voidAppends the specified timestamp to this sequence multiple times.voidappendEpochTime(long epochSeconds, int subsecondNanos, int offsetSeconds) Appends the timestamp specified in epoch time to this sequence.voidappendEpochTime(long epochSeconds, int subsecondNanos, int offsetSeconds, int count) Appends the timestamp specified in epoch time to this sequence multiple times.getTokenSetter(int index) Returns a mutator for the given index.voidsetEpochSeconds(int index, long epochSeconds, int subsecondNanos, int offsetSeconds) 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.ScalarTokenSequence
getType, isNull, isZeroMethods inherited from interface com.pervasive.datarush.sequences.scalar.TimestampTokenSequence
getEpochSeconds, getOffsetSeconds, getSubsecondNanos, getTimestamp, getToken, getValues, newValueIteratorMethods 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 timestamp to this sequence.- Parameters:
value- the value to append. Ifnull, this is equivalent toappendNull().
-
appendEpochTime
void appendEpochTime(long epochSeconds, int subsecondNanos, int offsetSeconds) Appends the timestamp specified in epoch time to this sequence.- Parameters:
epochSeconds- the number of seconds elapsed since January 1, 1970 00:00:00 GMT.subsecondNanos- the subsecond portion of the timestamp in nanoseconds.offsetSeconds- the offset in seconds, including both time zone and daylight savings adjustments, from GMT.
-
append
Appends the specified timestamp to this sequence multiple times.- Parameters:
value- the value to append. Ifnull, this is equivalent toappendNull().count- the number of copies to append.
-
appendEpochTime
void appendEpochTime(long epochSeconds, int subsecondNanos, int offsetSeconds, int count) Appends the timestamp specified in epoch time to this sequence multiple times.- Parameters:
epochSeconds- the number of seconds elapsed since January 1, 1970 00:00:00 GMT.subsecondNanos- the subsecond portion of the timestamp in nanoseconds.offsetSeconds- the offset in seconds, including both time zone and daylight savings adjustments, from GMT.count- the number of copies to append.
-
setEpochSeconds
void setEpochSeconds(int index, long epochSeconds, int subsecondNanos, int offsetSeconds) Sets the token at the specified position to the given value.- Parameters:
index- the position to modifyepochSeconds- the number of seconds elapsed since January 1, 1970 00:00:00 GMT.subsecondNanos- the subsecond portion of the timestamp in nanoseconds.offsetSeconds- the offset in seconds, including both time zone and daylight savings adjustments, from GMT.
-
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.
-