MobilityDB  1.0

◆ tfunc_tsequence_base_discont()

static int tfunc_tsequence_base_discont ( TSequence **  result,
const TSequence seq,
Datum  value,
LiftedFunctionInfo lfinfo 
)
static

Applies the function to the temporal value and the base value when the function has instantaneuous discontinuties.

Parameters
[out]resultArray on which the pointers of the newly constructed sequences are stored
[in]seqTemporal value
[in]valueBase value
[in]lfinfoInformation about the lifted function
Note
The current version of the function supposes that the basetypid is passed by value and thus it is not necessary to create and pfree each pair of instants used for constructing a segment of the result. Similarly, it is not necessary to pfree the values resulting from the function func.