Skip to content

meos.js


meos.js / TIntSeqSet

Class: TIntSeqSet ​

Defined in: core/types/basic/tint/TIntSeqSet.ts:18

Temporal integer — SequenceSet subtype.

A set of disjoint stepwise sequences. Wraps a MEOS TIntSeqSet pointer.

Example ​

ts
const s1 = TIntSeq.fromInstants([i1, i2]);
const s2 = TIntSeq.fromInstants([i3, i4]);
const ss = TIntSeqSet.fromSequences([s1, s2]);

Extends ​

Constructors ​

Constructor ​

ts
new TIntSeqSet(inner): TIntSeqSet;

Defined in: core/types/basic/tint/TInt.ts:85

Parameters ​

inner ​

number

Returns ​

TIntSeqSet

Inherited from ​

TInt.constructor

Accessors ​

inner ​

Get Signature ​

ts
get inner(): number;

Defined in: core/types/temporal/Temporal.ts:232

Raw WASM pointer. Use when passing this value to low-level functions.

Returns ​

number

Inherited from ​

TInt.inner

Methods ​

[dispose]() ​

ts
dispose: void;

Defined in: core/types/temporal/Temporal.ts:250

Explicit Resource Management support. Allows using t = TBool.fromString(...) to free automatically.

Returns ​

void

Inherited from ​

TInt.[dispose]


abs() ​

ts
abs(): this;

Defined in: core/types/basic/tnumber/TNumber.ts:76

Returns a new temporal with each value replaced by its absolute value. MEOS: tnumber_abs

Returns ​

this

Inherited from ​

TInt.abs


add() ​

ts
add(i): TInt;

Defined in: core/types/basic/tint/TInt.ts:222

Add a constant integer to every instant. MEOS: add_tint_int

Parameters ​

i ​

number

Returns ​

TInt

Inherited from ​

TInt.add


addTemporal() ​

ts
addTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:133

Adds another TNumber to this one instant-by-instant. MEOS: add_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TInt.addTemporal


alwaysEq() ​

ts
alwaysEq(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:300

Returns true if the value is always equal to i. MEOS: always_eq_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.alwaysEq


alwaysGe() ​

ts
alwaysGe(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:320

Returns true if the value is always >= i. MEOS: always_ge_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.alwaysGe


alwaysGt() ​

ts
alwaysGt(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:316

Returns true if the value is always greater than i. MEOS: always_gt_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.alwaysGt


alwaysLe() ​

ts
alwaysLe(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:312

Returns true if the value is always <= i. MEOS: always_le_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.alwaysLe


alwaysLt() ​

ts
alwaysLt(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:308

Returns true if the value is always less than i. MEOS: always_lt_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.alwaysLt


alwaysNe() ​

ts
alwaysNe(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:304

Returns true if the value is always not equal to i. MEOS: always_ne_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.alwaysNe


appendInstant() ​

ts
appendInstant(
   inst, 
   maxdist?, 
   maxt?, 
   expand?): this;

Defined in: core/types/temporal/Temporal.ts:606

Appends an instant to this temporal, returning a new temporal. MEOS: temporal_append_tinstant

Parameters ​

inst ​

this

The instant to append (same subtype as this).

maxdist? ​

number = 0

Maximum distance gap allowed (0 = no limit).

maxt? ​

number = 0

Maximum time gap as interval pointer (0 = no limit).

expand? ​

boolean = false

Whether to expand the sequence in-place.

Returns ​

this

Inherited from ​

TInt.appendInstant


appendSequence() ​

ts
appendSequence(seq, expand?): this;

Defined in: core/types/temporal/Temporal.ts:616

Appends a sequence to this temporal, returning a new temporal. MEOS: temporal_append_tsequence

Parameters ​

seq ​

this

expand? ​

boolean = false

Returns ​

this

Inherited from ​

TInt.appendSequence


asBinary() ​

ts
asBinary(variant?): Uint8Array;

Defined in: core/types/temporal/Temporal.ts:273

Returns the Well-Known Binary (WKB) representation.

The default variant 0 writes plain WKB in the native byte order; 0x08 (WKB_NDR) and 0x10 (WKB_XDR) choose the byte order. The spatial types write their SRID through asEWKB.

MEOS: temporal_as_wkb

Parameters ​

variant? ​

number = 0

Returns ​

Uint8Array

Inherited from ​

TInt.asBinary


asHexWKB() ​

ts
asHexWKB(variant?): string;

Defined in: core/types/temporal/Temporal.ts:286

Returns the hex-encoded Well-Known Binary (WKB) representation.

The default variant 0 writes plain WKB in the native byte order; 0x08 (WKB_NDR) and 0x10 (WKB_XDR) choose the byte order. The spatial types write their SRID through asHexEWKB.

MEOS: temporal_as_hexwkb

Parameters ​

variant? ​

number = 0

Returns ​

string

Inherited from ​

TInt.asHexWKB


asMFJSON() ​

ts
asMFJSON(
   withBbox?, 
   flags?, 
   precision?, 
   srs?): string;

Defined in: core/types/temporal/Temporal.ts:303

Returns the MF-JSON representation.

The hand-written wrapper converts an empty srs string to C NULL so that callers can omit the SRS without passing a null pointer directly.

MEOS: temporal_as_mfjson

Parameters ​

withBbox? ​

boolean = true

Include bounding box in the output (default true)

flags? ​

number = 3

Output flags (default 3)

precision? ​

number = 6

Coordinate decimal precision (default 6)

srs? ​

string | null

Spatial Reference System string, or null to omit

Returns ​

string

Inherited from ​

TInt.asMFJSON


at() ​

ts
at(i): TInt;

Defined in: core/types/basic/tint/TInt.ts:258

Restrict to instants where the value equals i. MEOS: tint_at_value

Parameters ​

i ​

number

Returns ​

TInt

Inherited from ​

TInt.at


atMax() ​

ts
atMax(): this;

Defined in: core/types/temporal/Temporal.ts:455

Restricts to instants where the value is the maximum. MEOS: temporal_at_max

Returns ​

this

Inherited from ​

TInt.atMax


atMin() ​

ts
atMin(): this;

Defined in: core/types/temporal/Temporal.ts:450

Restricts to instants where the value is the minimum. MEOS: temporal_at_min

Returns ​

this

Inherited from ​

TInt.atMin


atSpan() ​

ts
atSpan(span): this;

Defined in: core/types/basic/tnumber/TNumber.ts:111

Restricts to instants whose value falls in span. MEOS: tnumber_at_span

Parameters ​

span ​

number

Returns ​

this

Inherited from ​

TInt.atSpan


atSpanSet() ​

ts
atSpanSet(ss): this;

Defined in: core/types/basic/tnumber/TNumber.ts:114

Restricts to instants whose value falls in ss. MEOS: tnumber_at_spanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TInt.atSpanSet


atTBox() ​

ts
atTBox(box): this;

Defined in: core/types/basic/tnumber/TNumber.ts:117

Restricts to the value-time region defined by box. MEOS: tnumber_at_tbox

Parameters ​

box ​

number

Returns ​

this

Inherited from ​

TInt.atTBox


atTsTzSet() ​

ts
atTsTzSet(s): this;

Defined in: core/types/temporal/Temporal.ts:474

Restricts to the given timestamp set. MEOS: temporal_at_tstzset

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

TInt.atTsTzSet


atTsTzSpan() ​

ts
atTsTzSpan(s): this;

Defined in: core/types/temporal/Temporal.ts:479

Restricts to the given timestamp span. MEOS: temporal_at_tstzspan

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

TInt.atTsTzSpan


atTsTzSpanSet() ​

ts
atTsTzSpanSet(ss): this;

Defined in: core/types/temporal/Temporal.ts:484

Restricts to the given timestamp span set. MEOS: temporal_at_tstzspanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TInt.atTsTzSpanSet


avgValue() ​

ts
avgValue(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:68

Returns the average value. MEOS: tnumber_avg_value

Returns ​

number

Inherited from ​

TInt.avgValue


copy() ​

ts
copy(): this;

Defined in: core/types/temporal/Temporal.ts:258

Returns a deep copy of this temporal value. MEOS: temporal_copy

Returns ​

this

Inherited from ​

TInt.copy


deltaValue() ​

ts
deltaValue(): this;

Defined in: core/types/basic/tnumber/TNumber.ts:82

Returns a new temporal where each value is the difference from the previous instant's value (first instant gets 0). MEOS: tnumber_delta_value

Returns ​

this

Inherited from ​

TInt.deltaValue


distanceScalar() ​

ts
distanceScalar(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:177

Returns the temporal distance between this and a scalar value. Result is a TFloat with the instantaneous distance at each timestamp. MEOS: tdistance_tint_int / tdistance_tfloat_float

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TInt.distanceScalar


distanceTemporal() ​

ts
distanceTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:185

Returns the temporal distance between this and another TNumber. MEOS: tdistance_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TInt.distanceTemporal


div() ​

ts
div(i): TInt;

Defined in: core/types/basic/tint/TInt.ts:246

Divide every instant by a constant integer. MEOS: div_tint_int

Parameters ​

i ​

number

Returns ​

TInt

Inherited from ​

TInt.div


divTemporal() ​

ts
divTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:148

Divides this by another TNumber. MEOS: div_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TInt.divTemporal


durationMs() ​

ts
durationMs(ignoreGaps?): number;

Defined in: core/types/temporal/Temporal.ts:433

Returns the total duration as a number of milliseconds, through the parts of the interval MEOS answers (interval_to_timedelta); an interval with months, which has no fixed length, is refused.

Pass ignoreGaps=true to sum only sequence durations, ignoring the time gaps between sequences in a SequenceSet.

MEOS: temporal_duration

Parameters ​

ignoreGaps? ​

boolean = false

Returns ​

number

Inherited from ​

TInt.durationMs


endInstant() ​

ts
endInstant(): this;

Defined in: core/types/temporal/Temporal.ts:349

Returns the last instant as a new instance of the same subtype. MEOS: temporal_end_instant

Returns ​

this

Inherited from ​

TInt.endInstant


endTimestamp() ​

ts
endTimestamp(): bigint;

Defined in: core/types/temporal/Temporal.ts:414

Returns the last timestamp as microseconds since 2000-01-01 UTC. MEOS: temporal_end_timestamptz

Returns ​

bigint

Inherited from ​

TInt.endTimestamp


endValue() ​

ts
endValue(): number;

Defined in: core/types/basic/tint/TInt.ts:182

Ending value of the temporal. MEOS: tint_end_value

Returns ​

number

Inherited from ​

TInt.endValue


equals() ​

ts
equals(other): boolean;

Defined in: core/types/temporal/Temporal.ts:636

Pointer-based identity check. For value equality, use the generated teq_* / temporal_eq functions.

Parameters ​

other ​

Temporal<number>

Returns ​

boolean

Inherited from ​

TInt.equals


everEq() ​

ts
everEq(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:275

Returns true if the value is ever equal to i. MEOS: ever_eq_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.everEq


everGe() ​

ts
everGe(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:295

Returns true if the value is ever >= i. MEOS: ever_ge_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.everGe


everGt() ​

ts
everGt(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:291

Returns true if the value is ever greater than i. MEOS: ever_gt_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.everGt


everLe() ​

ts
everLe(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:287

Returns true if the value is ever <= i. MEOS: ever_le_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.everLe


everLt() ​

ts
everLt(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:283

Returns true if the value is ever less than i. MEOS: ever_lt_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.everLt


everNe() ​

ts
everNe(i): boolean;

Defined in: core/types/basic/tint/TInt.ts:279

Returns true if the value is ever not equal to i. MEOS: ever_ne_tint_int

Parameters ​

i ​

number

Returns ​

boolean

Inherited from ​

TInt.everNe


free() ​

ts
free(): void;

Defined in: core/types/temporal/Temporal.ts:242

Frees the underlying MEOS allocation.

After calling free(), the instance must not be used. Calls the hand-written meos_free wrapper from res/bindings_c_header.txt.

Returns ​

void

Inherited from ​

TInt.free


instantN() ​

ts
instantN(n): this;

Defined in: core/types/temporal/Temporal.ts:380

Returns the n-th instant (0-based index), MEOS's 1-based n + 1.

MEOS: temporal_instant_n

Parameters ​

n ​

number

Returns ​

this

Inherited from ​

TInt.instantN


integral() ​

ts
integral(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:62

Returns the temporal integral (area under the curve). MEOS: tnumber_integral

Returns ​

number

Inherited from ​

TInt.integral


interpolation() ​

ts
interpolation(): TInterpolation;

Defined in: core/types/temporal/Temporal.ts:311

Returns the interpolation mode of this temporal value. MEOS: temporal_interp

Returns ​

TInterpolation

Inherited from ​

TInt.interpolation


maxInstant() ​

ts
maxInstant(): this;

Defined in: core/types/temporal/Temporal.ts:369

Returns the instant with the maximum value. MEOS: temporal_max_instant

Returns ​

this

Inherited from ​

TInt.maxInstant


maxValue() ​

ts
maxValue(): number;

Defined in: core/types/basic/tint/TInt.ts:198

Maximum value over the entire temporal. MEOS: tint_max_value

Returns ​

number

Inherited from ​

TInt.maxValue


merge() ​

ts
merge(other): this;

Defined in: core/types/temporal/Temporal.ts:624

Merges this temporal with another, returning a new temporal. MEOS: temporal_merge

Parameters ​

other ​

this

Returns ​

this

Inherited from ​

TInt.merge


minInstant() ​

ts
minInstant(): this;

Defined in: core/types/temporal/Temporal.ts:359

Returns the instant with the minimum value. MEOS: temporal_min_instant

Returns ​

this

Inherited from ​

TInt.minInstant


minus() ​

ts
minus(i): TInt;

Defined in: core/types/basic/tint/TInt.ts:266

Restrict to instants where the value differs from i. MEOS: tint_minus_value

Parameters ​

i ​

number

Returns ​

TInt

Inherited from ​

TInt.minus


minusMax() ​

ts
minusMax(): this;

Defined in: core/types/temporal/Temporal.ts:465

Excludes instants where the value is the maximum. MEOS: temporal_minus_max

Returns ​

this

Inherited from ​

TInt.minusMax


minusMin() ​

ts
minusMin(): this;

Defined in: core/types/temporal/Temporal.ts:460

Excludes instants where the value is the minimum. MEOS: temporal_minus_min

Returns ​

this

Inherited from ​

TInt.minusMin


minusSpan() ​

ts
minusSpan(span): this;

Defined in: core/types/basic/tnumber/TNumber.ts:120

Excludes instants whose value falls in span. MEOS: tnumber_minus_span

Parameters ​

span ​

number

Returns ​

this

Inherited from ​

TInt.minusSpan


minusSpanSet() ​

ts
minusSpanSet(ss): this;

Defined in: core/types/basic/tnumber/TNumber.ts:123

Excludes instants whose value falls in ss. MEOS: tnumber_minus_spanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TInt.minusSpanSet


minusTBox() ​

ts
minusTBox(box): this;

Defined in: core/types/basic/tnumber/TNumber.ts:126

Excludes the value-time region defined by box. MEOS: tnumber_minus_tbox

Parameters ​

box ​

number

Returns ​

this

Inherited from ​

TInt.minusTBox


minusTsTzSet() ​

ts
minusTsTzSet(s): this;

Defined in: core/types/temporal/Temporal.ts:489

Excludes the given timestamp set. MEOS: temporal_minus_tstzset

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

TInt.minusTsTzSet


minusTsTzSpan() ​

ts
minusTsTzSpan(s): this;

Defined in: core/types/temporal/Temporal.ts:494

Excludes the given timestamp span. MEOS: temporal_minus_tstzspan

Parameters ​

s ​

number

Returns ​

this

Inherited from ​

TInt.minusTsTzSpan


minusTsTzSpanSet() ​

ts
minusTsTzSpanSet(ss): this;

Defined in: core/types/temporal/Temporal.ts:499

Excludes the given timestamp span set. MEOS: temporal_minus_tstzspanset

Parameters ​

ss ​

number

Returns ​

this

Inherited from ​

TInt.minusTsTzSpanSet


minValue() ​

ts
minValue(): number;

Defined in: core/types/basic/tint/TInt.ts:190

Minimum value over the entire temporal. MEOS: tint_min_value

Returns ​

number

Inherited from ​

TInt.minValue


mult() ​

ts
mult(i): TInt;

Defined in: core/types/basic/tint/TInt.ts:238

Multiply every instant by a constant integer. MEOS: mul_tint_int

Parameters ​

i ​

number

Returns ​

TInt

Inherited from ​

TInt.mult


multTemporal() ​

ts
multTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:143

Multiplies this by another TNumber. MEOS: mul_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TInt.multTemporal


nad() ​

ts
nad(scalar): number;

Defined in: core/types/basic/tnumber/TNumber.ts:194

Nearest approach distance to a scalar value. MEOS: nad_tint_int / nad_tfloat_float

Parameters ​

scalar ​

number

Returns ​

number

Inherited from ​

TInt.nad


nadTBox() ​

ts
nadTBox(box): number;

Defined in: core/types/basic/tnumber/TNumber.ts:200

Nearest approach distance to a TBox. MEOS: nad_tint_tbox / nad_tfloat_tbox

Parameters ​

box ​

number

Returns ​

number

Inherited from ​

TInt.nadTBox


nadTemporal() ​

ts
nadTemporal(other): number;

Defined in: core/types/basic/tnumber/TNumber.ts:197

Nearest approach distance to another TNumber. MEOS: nad_tint_tint / nad_tfloat_tfloat

Parameters ​

other ​

TNumber

Returns ​

number

Inherited from ​

TInt.nadTemporal


numInstants() ​

ts
numInstants(): number;

Defined in: core/types/temporal/Temporal.ts:326

Returns the number of distinct instants in this temporal value. MEOS: temporal_num_instants

Returns ​

number

Inherited from ​

TInt.numInstants


numTimestamps() ​

ts
numTimestamps(): number;

Defined in: core/types/temporal/Temporal.ts:388

Returns the number of distinct timestamps. MEOS: temporal_num_timestamps

Returns ​

number

Inherited from ​

TInt.numTimestamps


radd() ​

ts
radd(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:157

Returns scalar + this instant-by-instant. MEOS: add_int_tint / add_float_tfloat

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TInt.radd


rdiv() ​

ts
rdiv(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:166

Returns scalar / this instant-by-instant. MEOS: div_int_tint / div_float_tfloat

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TInt.rdiv


rmul() ​

ts
rmul(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:163

Returns scalar * this instant-by-instant. MEOS: mul_int_tint / mul_float_tfloat

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TInt.rmul


rsub() ​

ts
rsub(scalar): this;

Defined in: core/types/basic/tnumber/TNumber.ts:160

Returns scalar - this instant-by-instant. MEOS: sub_int_tint / sub_float_tfloat

Parameters ​

scalar ​

number

Returns ​

this

Inherited from ​

TInt.rsub


scaleTime() ​

ts
scaleTime(duration): this;

Defined in: core/types/temporal/Temporal.ts:526

Scales the temporal domain to last duration, a Postgres interval string (e.g. '10 minutes') or a raw interval Ptr. MEOS: temporal_scale_time

Parameters ​

duration ​

string | number

Returns ​

this

Inherited from ​

TInt.scaleTime


scaleValue() ​

ts
scaleValue(width): TInt;

Defined in: core/types/basic/tint/TInt.ts:399

Returns a new temporal with the value range scaled to width. MEOS: tint_scale_value

Parameters ​

width ​

number

Returns ​

TInt

Inherited from ​

TInt.scaleValue


setInterp() ​

ts
setInterp(interp): this;

Defined in: core/types/temporal/Temporal.ts:556

Returns a new temporal with the interpolation changed to interp. Pass TInterpolation values as numbers: Discrete=0, Stepwise=1, Linear=2. MEOS: temporal_set_interp

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

TInt.setInterp


shiftScaleTime() ​

ts
shiftScaleTime(shift, duration): this;

Defined in: core/types/temporal/Temporal.ts:540

Shifts then scales the temporal domain. shift and duration may each be a Postgres interval string (e.g. '1 hour', '10 minutes') or a raw Ptr. MEOS: temporal_shift_scale_time

Parameters ​

shift ​

string | number

duration ​

string | number

Returns ​

this

Inherited from ​

TInt.shiftScaleTime


shiftScaleValue() ​

ts
shiftScaleValue(shift, width): TInt;

Defined in: core/types/basic/tint/TInt.ts:407

Returns a new temporal with the value range shifted by shift and scaled to width. MEOS: tint_shift_scale_value

Parameters ​

shift ​

number

width ​

number

Returns ​

TInt

Inherited from ​

TInt.shiftScaleValue


shiftTime() ​

ts
shiftTime(shift): this;

Defined in: core/types/temporal/Temporal.ts:512

Shifts the temporal domain by shift, a Postgres interval string (e.g. '1 hour', '-30 minutes') or a raw interval Ptr. MEOS: temporal_shift_time

Parameters ​

shift ​

string | number

Returns ​

this

Inherited from ​

TInt.shiftTime


shiftValue() ​

ts
shiftValue(shift): TInt;

Defined in: core/types/basic/tint/TInt.ts:391

Returns a new temporal with every value shifted by shift. MEOS: tint_shift_value

Parameters ​

shift ​

number

Returns ​

TInt

Inherited from ​

TInt.shiftValue


startInstant() ​

ts
startInstant(): this;

Defined in: core/types/temporal/Temporal.ts:339

Returns the first instant as a new instance of the same subtype. MEOS: temporal_start_instant

Returns ​

this

Inherited from ​

TInt.startInstant


startTimestamp() ​

ts
startTimestamp(): bigint;

Defined in: core/types/temporal/Temporal.ts:401

Returns the first timestamp as microseconds since 2000-01-01 UTC. MEOS: temporal_start_timestamptz

Returns ​

bigint

Inherited from ​

TInt.startTimestamp


startValue() ​

ts
startValue(): number;

Defined in: core/types/basic/tint/TInt.ts:174

Starting value of the temporal. MEOS: tint_start_value

Returns ​

number

Inherited from ​

TInt.startValue


sub() ​

ts
sub(i): TInt;

Defined in: core/types/basic/tint/TInt.ts:230

Subtract a constant integer from every instant. MEOS: sub_tint_int

Parameters ​

i ​

number

Returns ​

TInt

Inherited from ​

TInt.sub


subTemporal() ​

ts
subTemporal(other): this;

Defined in: core/types/basic/tnumber/TNumber.ts:138

Subtracts another TNumber from this one. MEOS: sub_tnumber_tnumber

Parameters ​

other ​

TNumber

Returns ​

this

Inherited from ​

TInt.subTemporal


temporalEq() ​

ts
temporalEq(i): TBool;

Defined in: core/types/basic/tint/TInt.ts:329

Returns a TBool that is true at each instant where this == i. MEOS: teq_tint_int

Parameters ​

i ​

number

Returns ​

TBool

Inherited from ​

TInt.temporalEq


temporalGe() ​

ts
temporalGe(i): TBool;

Defined in: core/types/basic/tint/TInt.ts:349

Returns a TBool that is true at each instant where this >= i. MEOS: tge_tint_int

Parameters ​

i ​

number

Returns ​

TBool

Inherited from ​

TInt.temporalGe


temporalGt() ​

ts
temporalGt(i): TBool;

Defined in: core/types/basic/tint/TInt.ts:345

Returns a TBool that is true at each instant where this > i. MEOS: tgt_tint_int

Parameters ​

i ​

number

Returns ​

TBool

Inherited from ​

TInt.temporalGt


temporalLe() ​

ts
temporalLe(i): TBool;

Defined in: core/types/basic/tint/TInt.ts:341

Returns a TBool that is true at each instant where this <= i. MEOS: tle_tint_int

Parameters ​

i ​

number

Returns ​

TBool

Inherited from ​

TInt.temporalLe


temporalLt() ​

ts
temporalLt(i): TBool;

Defined in: core/types/basic/tint/TInt.ts:337

Returns a TBool that is true at each instant where this < i. MEOS: tlt_tint_int

Parameters ​

i ​

number

Returns ​

TBool

Inherited from ​

TInt.temporalLt


temporalNe() ​

ts
temporalNe(i): TBool;

Defined in: core/types/basic/tint/TInt.ts:333

Returns a TBool that is true at each instant where this != i. MEOS: tne_tint_int

Parameters ​

i ​

number

Returns ​

TBool

Inherited from ​

TInt.temporalNe


timeWeightedAverage() ​

ts
timeWeightedAverage(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:65

Returns the time-weighted average. MEOS: tnumber_twavg

Returns ​

number

Inherited from ​

TInt.timeWeightedAverage


toInstant() ​

ts
toInstant(): this;

Defined in: core/types/temporal/Temporal.ts:567

Converts to TInstant (must already be an instant). MEOS: temporal_as_tinstant

Returns ​

this

Inherited from ​

TInt.toInstant


toSequence() ​

ts
toSequence(interp): this;

Defined in: core/types/temporal/Temporal.ts:572

Converts to TSequence with the given interpolation. MEOS: temporal_as_tsequence

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

TInt.toSequence


toSequenceSet() ​

ts
toSequenceSet(interp): this;

Defined in: core/types/temporal/Temporal.ts:583

Converts to TSequenceSet with the given interpolation. MEOS: temporal_as_tsequenceset

Parameters ​

interp ​

TInterpolation

Returns ​

this

Inherited from ​

TInt.toSequenceSet


toString() ​

ts
toString(): string;

Defined in: core/types/basic/tint/TInt.ts:166

WKT string representation. MEOS: temporal_out

Returns ​

string

Inherited from ​

TInt.toString


toTBox() ​

ts
toTBox(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:104

Returns the temporal bounding box as a raw TBox pointer. MEOS: tnumber_to_tbox

Returns ​

number

Inherited from ​

TInt.toTBox


toTFloat() ​

ts
toTFloat(): number;

Defined in: core/types/basic/tint/TInt.ts:210

Convert to a TFloat (step interpolation preserved).

Returns Ptr rather than TFloat to avoid a circular import between TInt and TFloat. Wrap the result manually: new TFloat(t.toTFloat()).

MEOS: tint_to_tfloat

Returns ​

number

Inherited from ​

TInt.toTFloat


toValueSpan() ​

ts
toValueSpan(): number;

Defined in: core/types/basic/tnumber/TNumber.ts:98

Returns the value span (range) of this temporal as a raw pointer. MEOS: tnumber_to_span

Returns ​

number

Inherited from ​

TInt.toValueSpan


trend() ​

ts
trend(): this;

Defined in: core/types/basic/tnumber/TNumber.ts:88

Returns +1 / 0 / -1 at each instant indicating whether the value is increasing, constant, or decreasing. MEOS: tnumber_trend

Returns ​

this

Inherited from ​

TInt.trend


valueAtTimestamp() ​

ts
valueAtTimestamp(t): number | null;

Defined in: core/types/basic/tint/TInt.ts:375

Evaluates the temporal at a specific timestamp. Returns null when the timestamp is outside the temporal's domain.

Parameters ​

t ​

bigint

Timestamp in microseconds since 2000-01-01 UTC.

Returns ​

number | null

Inherited from ​

TInt.valueAtTimestamp


valueN() ​

ts
valueN(n): number;

Defined in: core/types/basic/tint/TInt.ts:362

Returns the n-th distinct integer value (0-based index) across all instants.

Parameters ​

n ​

number

0-based index (MEOS internally uses 1-based indexing). MEOS: tint_value_n

Returns ​

number

Inherited from ​

TInt.valueN


fromBaseTemporal() ​

ts
static fromBaseTemporal(i, domain): TInt;

Defined in: core/types/basic/tint/TInt.ts:125

Create a TInt with constant value i spanning the same domain as domain. MEOS: tint_from_base_temp

Parameters ​

i ​

number

domain ​

TInt

Returns ​

TInt

Inherited from ​

TInt.fromBaseTemporal


fromBaseTime() ​

ts
static fromBaseTime(
   i, 
   time, 
   type): TInt;

Defined in: core/types/basic/tint/TInt.ts:134

Create a TInt with constant value i over a time object. Accepts a raw Ptr to a TsTzSet, TsTzSpan, or TsTzSpanSet. MEOS: tintseq_from_base_tstzset / tstzspan / tintseqset_from_base_tstzspanset

Parameters ​

i ​

number

time ​

number

type ​

"tstzset" | "tstzspan" | "tstzspanset"

Returns ​

TInt

Inherited from ​

TInt.fromBaseTime


fromBinary() ​

ts
static fromBinary(wkb): TInt;

Defined in: core/types/basic/tint/TInt.ts:117

Reads a TInt from its WKB bytes, as asBinary writes them. MEOS: temporal_from_wkb

Parameters ​

wkb ​

Uint8Array

Returns ​

TInt

Inherited from ​

TInt.fromBinary


fromHexWKB() ​

ts
static fromHexWKB(hexwkb): TInt;

Defined in: core/types/basic/tint/TInt.ts:109

Reads a TInt from its hex-encoded WKB, as asHexWKB writes it. MEOS: temporal_from_hexwkb

Parameters ​

hexwkb ​

string

Returns ​

TInt

Inherited from ​

TInt.fromHexWKB


fromInstant() ​

ts
static fromInstant(value, timestamp): TInt;

Defined in: core/types/basic/tint/TInt.ts:150

Create a TIntInst from an integer value and a timestamp.

Parameters ​

value ​

number

The integer value.

timestamp ​

bigint

Microseconds since 2000-01-01 UTC (TimestampTz).

MEOS: tintinst_make

Returns ​

TInt

Inherited from ​

TInt.fromInstant


fromMFJSON() ​

ts
static fromMFJSON(mfjson): TInt;

Defined in: core/types/basic/tint/TInt.ts:101

Parse a TInt from a MF-JSON string. MEOS: tint_from_mfjson

Parameters ​

mfjson ​

string

Returns ​

TInt

Inherited from ​

TInt.fromMFJSON


fromSequences() ​

ts
static fromSequences(sequences, normalize?): TIntSeqSet;

Defined in: core/types/basic/tint/TIntSeqSet.ts:30

Builds a TIntSeqSet from an array of sequences.

Parameters ​

sequences ​

TInt[]

Ordered, disjoint array of TInt sequences.

normalize? ​

boolean = true

Merge adjacent sequences with equal values (default true). MEOS: tsequenceset_make

Returns ​

TIntSeqSet


fromString() ​

ts
static fromString(wkt): TInt;

Defined in: core/types/basic/tint/TInt.ts:93

Parse a TInt from a WKT string. MEOS: tint_in

Parameters ​

wkt ​

string

Returns ​

TInt

Inherited from ​

TInt.fromString