/Users/asorokin/Documents/workspaceC/Decima/ts/tsoperators.c File Reference

#include "postgres.h"
#include <float.h>
#include <math.h>
#include "access/gist.h"
#include "access/skey.h"
#include "utils/builtins.h"
#include "lib/stringinfo.h"
#include "utils/array.h"
#include "tsdata.h"

Go to the source code of this file.

Defines

#define FALSE   0
#define TRUE   1

Functions

bool ts_uoverlap (TS *a, TS *b)
 overlap from top: a &> b means a[i].l >= b[i].l & a[i].l <= b[i].u for all i=1.
bool ts_loverlap (TS *a, TS *b)
 overlap from bottom: a &< b means a[i].u<= b[i].u & a[i].u >= b[i].l for all i=1.
bool ts_contained (TS *a, TS *b)
 contained (a <@ b) : a[i].u < b[i].u & a[i].l>b[i].l for all i=1.
bool ts_contains (TS *a, TS *b)
 contains (a > b) : a[i].u > b[i].u & a[i].l < b[i].l for all i=1.
bool ts_intersect (TS *a, TS *b)
 intersect ( a >< b) a is neither greater nor less than b;
bool ts_greater (TS *a, TS *b)
 greater (a>b) - lower bound of a is always higher than upper bound of b (a[i].l >= b[i].u for all i=1.
bool ts_less (TS *a, TS *b)
 less (a<b) - is equivalent of b>a (a[i].u <= b[i].l for all i=1.
bool ts_wcontained (TS *a, TS *b)
bool ts_wcontains (TS *a, TS *b)


Define Documentation

#define FALSE   0

Definition at line 41 of file tsoperators.c.

#define TRUE   1

Definition at line 42 of file tsoperators.c.


Function Documentation

bool ts_contained ( TS a,
TS b 
)

contained (a <@ b) : a[i].u < b[i].u & a[i].l>b[i].l for all i=1.

.N; this is equivalent of ((a &> b) & (b &< a))

Definition at line 72 of file tsoperators.c.

bool ts_contains ( TS a,
TS b 
)

contains (a > b) : a[i].u > b[i].u & a[i].l < b[i].l for all i=1.

.N; is equivalent of b <@ a

Definition at line 77 of file tsoperators.c.

bool ts_greater ( TS a,
TS b 
)

greater (a>b) - lower bound of a is always higher than upper bound of b (a[i].l >= b[i].u for all i=1.

.N );

Definition at line 86 of file tsoperators.c.

bool ts_intersect ( TS a,
TS b 
)

intersect ( a >< b) a is neither greater nor less than b;

Definition at line 81 of file tsoperators.c.

bool ts_less ( TS a,
TS b 
)

less (a<b) - is equivalent of b>a (a[i].u <= b[i].l for all i=1.

.N);

Definition at line 97 of file tsoperators.c.

bool ts_loverlap ( TS a,
TS b 
)

overlap from bottom: a &< b means a[i].u<= b[i].u & a[i].u >= b[i].l for all i=1.

.N

Definition at line 62 of file tsoperators.c.

bool ts_uoverlap ( TS a,
TS b 
)

overlap from top: a &> b means a[i].l >= b[i].l & a[i].l <= b[i].u for all i=1.

.N

Definition at line 51 of file tsoperators.c.

bool ts_wcontained ( TS a,
TS b 
)

Definition at line 107 of file tsoperators.c.

bool ts_wcontains ( TS a,
TS b 
)

Definition at line 130 of file tsoperators.c.


Generated on Fri Jul 24 12:11:26 2009 for Decima by  doxygen 1.5.9