Skip to content

Answer a value MEOS writes through a pointer to a pointer - #29

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:feat/wrapped-out-parameters
Sep 3, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:feat/wrapped-out-parameters

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

Some accessors answer a value that is itself a MEOS value: set_value_n on a
set of geometries writes a GSERIALIZED **, ttext_value_at_timestamptz a
text **, and their kin the same for a circular buffer, a network point, a
pose and a jsonb. The buffer holds the ADDRESS of the value rather than the
value, so the reader takes that address out of it and wraps it in the class the
model gives the type — the same wrap a return of that type gets. 19 accessors
reach the object layer that way, so GeomSet.ValueN answers a Geo and
TText.ValueAtTimestamptz a Text, each null where MEOS says the value does
not exist. 1190 methods against 1171, 105 deferred against 124.

Two tests read both answers: a geometry set answers the geometry at an index
and null past the end, and a temporal text answers its value inside its span
and null outside.

Some accessors answer a value that is itself a MEOS value: `set_value_n` on a
set of geometries writes a `GSERIALIZED **`, `ttext_value_at_timestamptz` a
`text **`, and their kin the same for a circular buffer, a network point, a
pose and a jsonb. The buffer holds the ADDRESS of the value rather than the
value, so the reader takes that address out of it and wraps it in the class the
model gives the type — the same wrap a return of that type gets. 19 accessors
reach the object layer that way, so `GeomSet.ValueN` answers a `Geo` and
`TText.ValueAtTimestamptz` a `Text`, each null where MEOS says the value does
not exist. 1190 methods against 1171, 105 deferred against 124.

Two tests read both answers: a geometry set answers the geometry at an index
and null past the end, and a temporal text answers its value inside its span
and null outside.
@estebanzimanyi
estebanzimanyi merged commit b2e701c into MobilityDB:main Sep 3, 2026
1 check passed
@estebanzimanyi
estebanzimanyi deleted the feat/wrapped-out-parameters branch September 3, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant