Skip to content

Commit c766a74

Browse files
committed
xindex.sgml 文件翻译完成
1 parent 8787bf8 commit c766a74

File tree

1 file changed

+48
-36
lines changed

1 file changed

+48
-36
lines changed

postgresql/doc/src/sgml/xindex.sgml

Lines changed: 48 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ ____________________________________________________________________________-->
695695
</tbody>
696696
</tgroup>
697697
</table>
698-
698+
699699
<!--==========================orignal english content==========================
700700
<para>
701701
Notice that all the operators listed above return Boolean values. In
@@ -861,15 +861,15 @@ ____________________________________________________________________________-->
861861
<!--==========================orignal english content==========================
862862
<row>
863863
<entry>
864-
Defines a set of options that are specific to this operator class
864+
Define options that are specific to this operator class
865865
(optional)
866866
</entry>
867867
<entry>5</entry>
868868
</row>
869869
____________________________________________________________________________-->
870870
<row>
871871
<entry>
872-
定义一组特定于此运算符类的选项(可选)
872+
定义特定于此运算符类的选项(可选)
873873
</entry>
874874
<entry>5</entry>
875875
</row>
@@ -939,15 +939,15 @@ ____________________________________________________________________________-->
939939
<!--==========================orignal english content==========================
940940
<row>
941941
<entry>
942-
Defines a set of options that are specific to this operator class
942+
Define options that are specific to this operator class
943943
(optional)
944944
</entry>
945945
<entry>3</entry>
946946
</row>
947947
____________________________________________________________________________-->
948948
<row>
949949
<entry>
950-
定义一组特定于此运算符类的选项(可选)
950+
定义特定于此运算符类的选项(可选)
951951
</entry>
952952
<entry>3</entry>
953953
</row>
@@ -957,13 +957,13 @@ ____________________________________________________________________________-->
957957

958958
<!--==========================orignal english content==========================
959959
<para>
960-
GiST indexes have ten support functions, three of which are optional,
960+
GiST indexes have eleven support functions, six of which are optional,
961961
as shown in <xref linkend="xindex-gist-support-table"/>.
962962
(For more information see <xref linkend="gist"/>.)
963963
</para>
964964
____________________________________________________________________________-->
965965
<para>
966-
如<xref linkend="xindex-gist-support-table"/>所示,GiST 索引有十个支持函数,其中三个是可选的(详见<xref linkend="gist"/>)。
966+
如<xref linkend="xindex-gist-support-table"/>所示,GiST 索引有11个支持函数,其中6个是可选的(详见<xref linkend="gist"/>)。
967967
</para>
968968

969969
<table tocentry="1" id="xindex-gist-support-table">
@@ -1019,26 +1019,26 @@ ____________________________________________________________________________-->
10191019
<row>
10201020
<entry><function>compress</function></entry>
10211021
<entry>compute a compressed representation of a key or value
1022-
to be indexed</entry>
1022+
to be indexed (optional)</entry>
10231023
<entry>3</entry>
10241024
</row>
10251025
____________________________________________________________________________-->
10261026
<row>
10271027
<entry><function>compress</function></entry>
1028-
<entry>计算一个要被索引的键或值的压缩表达</entry>
1028+
<entry>计算一个要被索引的键或值的压缩表达 (可选)</entry>
10291029
<entry>3</entry>
10301030
</row>
10311031
<!--==========================orignal english content==========================
10321032
<row>
10331033
<entry><function>decompress</function></entry>
10341034
<entry>compute a decompressed representation of a
1035-
compressed key</entry>
1035+
compressed key (optional)</entry>
10361036
<entry>4</entry>
10371037
</row>
10381038
____________________________________________________________________________-->
10391039
<row>
10401040
<entry><function>decompress</function></entry>
1041-
<entry>计算一个压缩键的解压表达</entry>
1041+
<entry>计算一个压缩键的解压表达 (可选)</entry>
10421042
<entry>4</entry>
10431043
</row>
10441044
<!--==========================orignal english content==========================
@@ -1069,13 +1069,13 @@ ____________________________________________________________________________-->
10691069
</row>
10701070
<!--==========================orignal english content==========================
10711071
<row>
1072-
<entry><function>equal</function></entry>
1072+
<entry><function>same</function></entry>
10731073
<entry>compare two keys and return true if they are equal</entry>
10741074
<entry>7</entry>
10751075
</row>
10761076
____________________________________________________________________________-->
10771077
<row>
1078-
<entry><function>equal</function></entry>
1078+
<entry><function>same</function></entry>
10791079
<entry>比较两个键并且在它们相等时返回真</entry>
10801080
<entry>7</entry>
10811081
</row>
@@ -1107,20 +1107,31 @@ ____________________________________________________________________________-->
11071107
<!--==========================orignal english content==========================
11081108
<row>
11091109
<entry><function>options</function></entry>
1110-
<entry>
1111-
Defines a set of options that are specific to this operator class
1112-
(optional)
1113-
</entry>
1110+
<entry>define options that are specific to this operator class
1111+
(optional)</entry>
11141112
<entry>10</entry>
11151113
</row>
11161114
____________________________________________________________________________-->
11171115
<row>
11181116
<entry><function>options</function></entry>
1119-
<entry>
1120-
定义一组特定于此运算符类的选项(可选)
1121-
</entry>
1117+
<entry>定义特定于此运算符类的选项
1118+
(可选)</entry>
11221119
<entry>10</entry>
11231120
</row>
1121+
<!--==========================orignal english content==========================
1122+
<row>
1123+
<entry><function>sortsupport</function></entry>
1124+
<entry>provide a sort comparator to be used in fast index builds
1125+
(optional)</entry>
1126+
<entry>11</entry>
1127+
</row>
1128+
____________________________________________________________________________-->
1129+
<row>
1130+
<entry><function>sortsupport</function></entry>
1131+
<entry>提供一个用于快速索引构建的排序比较器
1132+
(可选)</entry>
1133+
<entry>11</entry>
1134+
</row>
11241135
</tbody>
11251136
</tgroup>
11261137
</table>
@@ -1225,18 +1236,15 @@ ____________________________________________________________________________-->
12251236
<!--==========================orignal english content==========================
12261237
<row>
12271238
<entry><function>options</function></entry>
1228-
<entry>
1229-
Defines a set of options that are specific to this operator class
1230-
(optional)
1231-
</entry>
1239+
<entry>define options that are specific to this operator class
1240+
(optional)</entry>
12321241
<entry>6</entry>
12331242
</row>
12341243
____________________________________________________________________________-->
12351244
<row>
12361245
<entry><function>options</function></entry>
1237-
<entry>
1238-
定义一组特定于此运算符类的选项(可选)
1239-
</entry>
1246+
<entry>定义特定于此运算符类的选项
1247+
(可选)</entry>
12401248
<entry>6</entry>
12411249
</row>
12421250
</tbody>
@@ -1377,7 +1385,7 @@ ____________________________________________________________________________-->
13771385
<row>
13781386
<entry><function>options</function></entry>
13791387
<entry>
1380-
Defines a set of options that are specific to this operator class
1388+
define options that are specific to this operator class
13811389
(optional)
13821390
</entry>
13831391
<entry>7</entry>
@@ -1386,7 +1394,7 @@ ____________________________________________________________________________-->
13861394
<row>
13871395
<entry><function>options</function></entry>
13881396
<entry>
1389-
定义一组特定于此运算符类的选项(可选)
1397+
定义特定于此运算符类的选项(可选)
13901398
</entry>
13911399
<entry>7</entry>
13921400
</row>
@@ -1492,7 +1500,7 @@ ____________________________________________________________________________-->
14921500
<row>
14931501
<entry><function>options</function></entry>
14941502
<entry>
1495-
Defines a set of options that are specific to this operator class
1503+
define options that are specific to this operator class
14961504
(optional)
14971505
</entry>
14981506
<entry>5</entry>
@@ -1501,14 +1509,14 @@ ____________________________________________________________________________-->
15011509
<row>
15021510
<entry><function>options</function></entry>
15031511
<entry>
1504-
定义一组特定于此运算符类的选项(可选)
1512+
定义特定于此运算符类的选项(可选)
15051513
</entry>
15061514
<entry>5</entry>
15071515
</row>
15081516
</tbody>
15091517
</tgroup>
15101518
</table>
1511-
1519+
15121520
<!--==========================orignal english content==========================
15131521
<para>
15141522
Unlike search operators, support functions return whichever data
@@ -2201,7 +2209,7 @@ ____________________________________________________________________________-->
22012209
<para>
22022210
GiST、SP-GiST 和 GIN 索引没有任何明显的跨数据类型操作的概念。它们所支持的操作符集合就是一个给定操作符类能够处理的主要支持函数。
22032211
</para>
2204-
2212+
22052213
<!--==========================orignal english content==========================
22062214
<para>
22072215
In BRIN, the requirements depends on the framework that provides the
@@ -2563,11 +2571,15 @@ CREATE OPERATOR CLASS polygon_ops
25632571
STORAGE box;
25642572
</programlisting>
25652573

2566-
At present, only the GiST, GIN and BRIN index methods support a
2574+
At present, only the GiST, SP-GiST, GIN and BRIN index methods support a
25672575
<literal>STORAGE</literal> type that's different from the column data type.
25682576
The GiST <function>compress</function> and <function>decompress</function> support
25692577
routines must deal with data-type conversion when <literal>STORAGE</literal>
2570-
is used. In GIN, the <literal>STORAGE</literal> type identifies the type of
2578+
is used. SP-GiST likewise requires a <function>compress</function>
2579+
support function to convert to the storage type, when that is different;
2580+
if an SP-GiST opclass also supports retrieving data, the reverse
2581+
conversion must be handled by the <function>consistent</function> function.
2582+
In GIN, the <literal>STORAGE</literal> type identifies the type of
25712583
the <quote>key</quote> values, which normally is different from the type
25722584
of the indexed column &mdash; for example, an operator class for
25732585
integer-array columns might have keys that are just integers. The
@@ -2589,7 +2601,7 @@ CREATE OPERATOR CLASS polygon_ops
25892601
STORAGE box;
25902602
</programlisting>
25912603

2592-
当前,只有 GiST、GIN 和 BRIN 索引方法支持不同于列数据类型的<literal>STORAGE</literal>类型。在使用<literal>STORAGE</literal>时,GiST 的支持例程<function>compress</function>和<function>decompress</function>必须处理数据类型转换。在 GIN 中,<literal>STORAGE</literal>类型标识<quote>key</quote>值的类型,它通常不同于被索引列的类型 &mdash; 例如,一个用于整数数组列的操作符类可能具有整数键值。GIN 的支持例程<function>extractValue</function>和<function>extractQuery</function>负责从被索引值中抽取键。BRIN 类似于 GIN:<literal>STORAGE</literal>类型标识被存储的摘要值的类型,而操作符类的支持过程负责正确解释摘要值。
2604+
当前,只有 GiST、SP-GiST、GIN 和 BRIN 索引方法支持不同于列数据类型的<literal>STORAGE</literal>类型。在使用<literal>STORAGE</literal>时,GiST 的支持例程<function>compress</function>和<function>decompress</function>必须处理数据类型转换。SP-GiST 同样需要 <function>compress</function> 支持函数来转换为存储类型(当存储类型不同时); 如果 SP-GiST opclass 也支持检索数据,则反向转换必须由 <function>consistant</function> 函数处理。在 GIN 中,<literal>STORAGE</literal>类型标识<quote>key</quote>值的类型,它通常不同于被索引列的类型 &mdash; 例如,一个用于整数数组列的操作符类可能具有整数键值。GIN 的支持例程<function>extractValue</function>和<function>extractQuery</function>负责从被索引值中抽取键。BRIN 类似于 GIN:<literal>STORAGE</literal>类型标识被存储的摘要值的类型,而操作符类的支持过程负责正确解释摘要值。
25932605
</para>
25942606
</sect2>
25952607

0 commit comments

Comments
 (0)