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
AMutableTokenSequence
containing timestamp valued data.- See Also:
TokenTypeConstant#TIMESTAMP
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
append(Timestamp value)
Appends the specified timestamp to this sequence.void
append(Timestamp value, int count)
Appends the specified timestamp to this sequence multiple times.void
appendEpochTime(long epochSeconds, int subsecondNanos, int offsetSeconds)
Appends the timestamp specified in epoch time to this sequence.void
appendEpochTime(long epochSeconds, int subsecondNanos, int offsetSeconds, int count)
Appends the timestamp specified in epoch time to this sequence multiple times.TimestampSettable
getTokenSetter(int index)
Returns a mutator for the given index.void
setEpochSeconds(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, 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.scalar.TimestampTokenSequence
getEpochSeconds, getOffsetSeconds, getSubsecondNanos, getTimestamp, getToken, getValues, newValueIterator
-
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(Timestamp value)
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
void append(Timestamp value, int count)
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
TimestampSettable 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.
-
-