@@ -16,137 +16,137 @@ typedef unsigned char uchar;
16
16
#define SCKEY_IN 2 /* first key contains second key */
17
17
#define SCKEY_SAME 3 /* keys are equal */
18
18
19
- uchar spherekey_interleave (const int32 * k1 , const int32 * k2 );
19
+ uchar spherekey_interleave (const int32 * k1 , const int32 * k2 );
20
20
21
21
/*
22
22
* For given "query" of "pgstype" of PGS_DATA_TYPES type, puts key of cached
23
23
* query into "key" pointer. Returns true when given query is equal to
24
24
* current query.
25
25
*/
26
- bool gq_cache_get_value (unsigned pgstype , const void * query , int32 * * key );
26
+ bool gq_cache_get_value (unsigned pgstype , const void * query , int32 * * key );
27
27
28
28
/*
29
29
* Copy current query, type and its key value to cache.
30
30
*/
31
- void gq_cache_set_value (unsigned pgstype , const void * query , const int32 * key );
31
+ void gq_cache_set_value (unsigned pgstype , const void * query , const int32 * key );
32
32
33
33
/*
34
34
* Input function of key value. Just a dummy. But PostgreSQL need this
35
35
* function to create a data type.
36
36
*/
37
- Datum spherekey_in (PG_FUNCTION_ARGS );
37
+ Datum spherekey_in (PG_FUNCTION_ARGS );
38
38
39
39
/*
40
40
* Output function of key value. Just a dummy. But PostgreSQL need this
41
41
* function to create a data type.
42
42
*/
43
- Datum spherekey_out (PG_FUNCTION_ARGS );
43
+ Datum spherekey_out (PG_FUNCTION_ARGS );
44
44
45
45
/*
46
46
* GIST's decompress method. This function does nothing.
47
47
*/
48
- Datum g_spherekey_decompress (PG_FUNCTION_ARGS );
48
+ Datum g_spherekey_decompress (PG_FUNCTION_ARGS );
49
49
50
50
/*
51
- * GIST's compress method for circle. Creates the key value from spherical
51
+ * GIST's compress method for circle. Creates the key value from a spherical
52
52
* circle.
53
53
*/
54
- Datum g_scircle_compress (PG_FUNCTION_ARGS );
54
+ Datum g_scircle_compress (PG_FUNCTION_ARGS );
55
55
56
56
/*
57
- * GIST's compress method for point. Creates the key value from spherical point.
57
+ * GIST's compress method for point. Creates the key value from a spherical point.
58
58
*/
59
- Datum g_spoint_compress (PG_FUNCTION_ARGS );
59
+ Datum g_spoint_compress (PG_FUNCTION_ARGS );
60
60
61
61
/*
62
- * GIST's compress method for line. Creates the key value from spherical line.
62
+ * GIST's compress method for line. Creates the key value from a spherical line.
63
63
*/
64
- Datum g_sline_compress (PG_FUNCTION_ARGS );
64
+ Datum g_sline_compress (PG_FUNCTION_ARGS );
65
65
66
66
/*
67
- * GIST's compress method for path. Creates the key value from spherical path.
67
+ * GIST's compress method for path. Creates the key value from a spherical path.
68
68
*/
69
- Datum g_spath_compress (PG_FUNCTION_ARGS );
69
+ Datum g_spath_compress (PG_FUNCTION_ARGS );
70
70
71
71
/*
72
- * GIST's compress method for polygon. Creates the key value from spherical
72
+ * GIST's compress method for polygon. Creates the key value from a spherical
73
73
* polygon.
74
74
*/
75
- Datum g_spoly_compress (PG_FUNCTION_ARGS );
75
+ Datum g_spoly_compress (PG_FUNCTION_ARGS );
76
76
77
77
/*
78
- * GIST's compress method for ellipse. Creates the key value from spherical
78
+ * GIST's compress method for ellipse. Creates the key value from a spherical
79
79
* ellipse.
80
80
*/
81
- Datum g_sellipse_compress (PG_FUNCTION_ARGS );
81
+ Datum g_sellipse_compress (PG_FUNCTION_ARGS );
82
82
83
83
/*
84
- * GIST's compress method for box. Creates the key value from spherical box.
84
+ * GIST's compress method for box. Creates the key value from a spherical box.
85
85
*/
86
- Datum g_sbox_compress (PG_FUNCTION_ARGS );
86
+ Datum g_sbox_compress (PG_FUNCTION_ARGS );
87
87
88
88
/*
89
89
* The GiST Union method for boxes. Returns the minimal bounding box that
90
90
* encloses all the entries in entryvec.
91
91
*/
92
- Datum g_spherekey_union (PG_FUNCTION_ARGS );
92
+ Datum g_spherekey_union (PG_FUNCTION_ARGS );
93
93
94
94
/*
95
95
* GIST's equality method.
96
96
*/
97
- Datum g_spherekey_same (PG_FUNCTION_ARGS );
97
+ Datum g_spherekey_same (PG_FUNCTION_ARGS );
98
98
99
99
/*
100
- * GIST's consistent method for point.
100
+ * GIST's consistent method for a point.
101
101
*/
102
- Datum g_spoint_consistent (PG_FUNCTION_ARGS );
102
+ Datum g_spoint_consistent (PG_FUNCTION_ARGS );
103
103
104
104
/*
105
- * GIST's consistent method for circle.
105
+ * GIST's consistent method for a circle.
106
106
*/
107
- Datum g_scircle_consistent (PG_FUNCTION_ARGS );
107
+ Datum g_scircle_consistent (PG_FUNCTION_ARGS );
108
108
109
109
/*
110
- * GIST's consistent method for line.
110
+ * GIST's consistent method for a line.
111
111
*/
112
- Datum g_sline_consistent (PG_FUNCTION_ARGS );
112
+ Datum g_sline_consistent (PG_FUNCTION_ARGS );
113
113
114
114
/*
115
- * GIST's consistent method for path.
115
+ * GIST's consistent method for a path.
116
116
*/
117
- Datum g_spath_consistent (PG_FUNCTION_ARGS );
117
+ Datum g_spath_consistent (PG_FUNCTION_ARGS );
118
118
119
119
/*
120
- * GIST's consistent method for polygon.
120
+ * GIST's consistent method for a polygon.
121
121
*/
122
- Datum g_spoly_consistent (PG_FUNCTION_ARGS );
122
+ Datum g_spoly_consistent (PG_FUNCTION_ARGS );
123
123
124
124
/*
125
- * GIST's consistent method for ellipse.
125
+ * GIST's consistent method for an ellipse.
126
126
*/
127
- Datum g_sellipse_consistent (PG_FUNCTION_ARGS );
127
+ Datum g_sellipse_consistent (PG_FUNCTION_ARGS );
128
128
129
129
/*
130
- * GIST's consistent method for box.
130
+ * GIST's consistent method for a box.
131
131
*/
132
- Datum g_sbox_consistent (PG_FUNCTION_ARGS );
132
+ Datum g_sbox_consistent (PG_FUNCTION_ARGS );
133
133
134
134
/*
135
135
* GIST's penalty method.
136
136
*/
137
- Datum g_spherekey_penalty (PG_FUNCTION_ARGS );
137
+ Datum g_spherekey_penalty (PG_FUNCTION_ARGS );
138
138
139
139
/*
140
140
* GIST's picksplit method. This method is using the double sorting node
141
141
* splitting algorithm for R-Trees. See "A new double sorting-based node
142
142
* splitting algorithm for R-tree", A. Korotkov.
143
143
*/
144
- Datum g_spherekey_picksplit (PG_FUNCTION_ARGS );
144
+ Datum g_spherekey_picksplit (PG_FUNCTION_ARGS );
145
145
146
- Datum pointkey_in (PG_FUNCTION_ARGS );
147
- Datum pointkey_out (PG_FUNCTION_ARGS );
148
- Datum pointkey_volume (PG_FUNCTION_ARGS );
149
- Datum pointkey_area (PG_FUNCTION_ARGS );
150
- Datum pointkey_perimeter (PG_FUNCTION_ARGS );
146
+ Datum pointkey_in (PG_FUNCTION_ARGS );
147
+ Datum pointkey_out (PG_FUNCTION_ARGS );
148
+ Datum pointkey_volume (PG_FUNCTION_ARGS );
149
+ Datum pointkey_area (PG_FUNCTION_ARGS );
150
+ Datum pointkey_perimeter (PG_FUNCTION_ARGS );
151
151
152
152
#endif
0 commit comments