Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit29c964e

Browse files
author
Vladlen Popolitov
committed
README.md updates
1 parent3743936 commit29c964e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ You can check the version in the current database with psql command:
301301

302302
###1.4
303303

304-
The support of anyarray RUM indexes removed from RUM extension andmove to
304+
The support of anyarray RUM indexes removed from RUM extension andmoved to
305305
[anyarray extension](https://github.com/postgrespro/anyarray).
306306

307307
##Extensibility

‎docs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ All it takes to get a RUM access method working is to implement a few user-defin
2424
```
2525
int rum_compare(Datum a, Datum b)
2626
```
27+
Compares two keys (not indexed items!) and returns an integer less than zero, zero, or greater than zero, indicating whether the first key is less than, equal to, or greater than the second. Null keys are never passed to this function.
28+
29+
Alternatively, if the operator class does not provide a compare method, RUM will look up the default btree operator class for the index key data type, and use its comparison function. It is recommended to specify the comparison function in a RUM operator class that is meant for just one data type, as looking up the btree operator class costs a few cycles. However, polymorphic RUM operator classes (such as array_ops) typically cannot specify a single comparison function.
2730

2831
###Function 2 rum_extract_value
2932
```
@@ -59,9 +62,6 @@ On success, `*recheck` should be set to true if the heap tuple needs to be reche
5962
```
6063
int32 rum_compare_prefix(Datum a, Datum b,StrategyNumber n,void *addInfo)
6164
```
62-
Compares two keys (not indexed items!) and returns an integer less than zero, zero, or greater than zero, indicating whether the first key is less than, equal to, or greater than the second. Null keys are never passed to this function.
63-
64-
Alternatively, if the operator class does not provide a compare method, RUM will look up the default btree operator class for the index key data type, and use its comparison function. It is recommended to specify the comparison function in a RUM operator class that is meant for just one data type, as looking up the btree operator class costs a few cycles. However, polymorphic RUM operator classes (such as array_ops) typically cannot specify a single comparison function.
6565

6666
###Function 6 rum_config (used names: RUM_CONFIG_PROC configFn)
6767
```
@@ -114,11 +114,11 @@ If operator class defines rum_pre_consistent function, it is called before rum_c
114114
115115
### Function 8 rum_ordering_distance (used names: RUM_ORDERING_PROC orderingFn)
116116
```
117-
double rum_ordering_distance(bool check[],?StrategyNumber n,?Datum query, int32 nkeys,?Pointer extra_data[],
118-
?bool *recheck,?Datum queryKeys[],?boolnullFlags[], Datum **addInfo, bool **nullFlagsAddInfo)
117+
double rum_ordering_distance(bool check[], StrategyNumber n, Datum query, int32 nkeys, Pointer extra_data[],
118+
bool *recheck, Datum queryKeys[], boolqueryCategories[], Datum **addInfo, bool **nullFlagsAddInfo)
119119
double rum_ordering_distance(Datum curKey, Datum query, StrategyNumber n)
120120
```
121-
Operator class defines rum_ordering_distance function, if it can provide distance based on index data. If distance calculations can be done using key and query value, 3 parameters function should be defined. If distance calculation can be done using addInfo data (f.e, if addInfosores value of array size needed for distance calculation), 10 parameters function should be defined.
121+
Operator class defines rum_ordering_distance function, if it can provide distance based on index data. If distance calculations can be done using key and query value, 3 parameters function should be defined. If distance calculation can be done using addInfo data (f.e, if addInfostores value of array size needed for distance calculation), 10 parameters function should be defined.
122122
123123
124124
### Function 9 rum_outer_distance (used names: RUM_OUTER_ORDERING_PROC outerOrderingFn)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp