rroonga 0.9.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +5 -0
- data/NEWS.ja.rdoc +114 -0
- data/NEWS.rdoc +116 -0
- data/README.ja.rdoc +65 -0
- data/README.rdoc +66 -0
- data/Rakefile +206 -0
- data/benchmark/common.rb +49 -0
- data/benchmark/read-write-many-small-items.rb +144 -0
- data/benchmark/write-many-small-items.rb +135 -0
- data/example/bookmark.rb +161 -0
- data/example/index-html.rb +89 -0
- data/example/search/config.ru +230 -0
- data/example/search/public/css/groonga.css +122 -0
- data/ext/.gitignore +2 -0
- data/ext/groonga/extconf.rb +93 -0
- data/ext/groonga/rb-grn-accessor.c +52 -0
- data/ext/groonga/rb-grn-array-cursor.c +36 -0
- data/ext/groonga/rb-grn-array.c +210 -0
- data/ext/groonga/rb-grn-column.c +573 -0
- data/ext/groonga/rb-grn-context.c +662 -0
- data/ext/groonga/rb-grn-database.c +472 -0
- data/ext/groonga/rb-grn-encoding-support.c +64 -0
- data/ext/groonga/rb-grn-encoding.c +257 -0
- data/ext/groonga/rb-grn-exception.c +1110 -0
- data/ext/groonga/rb-grn-expression-builder.c +75 -0
- data/ext/groonga/rb-grn-expression.c +731 -0
- data/ext/groonga/rb-grn-fix-size-column.c +166 -0
- data/ext/groonga/rb-grn-hash-cursor.c +38 -0
- data/ext/groonga/rb-grn-hash.c +294 -0
- data/ext/groonga/rb-grn-index-column.c +488 -0
- data/ext/groonga/rb-grn-logger.c +504 -0
- data/ext/groonga/rb-grn-object.c +1369 -0
- data/ext/groonga/rb-grn-operation.c +198 -0
- data/ext/groonga/rb-grn-patricia-trie-cursor.c +39 -0
- data/ext/groonga/rb-grn-patricia-trie.c +488 -0
- data/ext/groonga/rb-grn-procedure.c +52 -0
- data/ext/groonga/rb-grn-query.c +260 -0
- data/ext/groonga/rb-grn-record.c +40 -0
- data/ext/groonga/rb-grn-snippet.c +334 -0
- data/ext/groonga/rb-grn-table-cursor-key-support.c +69 -0
- data/ext/groonga/rb-grn-table-cursor.c +247 -0
- data/ext/groonga/rb-grn-table-key-support.c +714 -0
- data/ext/groonga/rb-grn-table.c +1977 -0
- data/ext/groonga/rb-grn-type.c +181 -0
- data/ext/groonga/rb-grn-utils.c +769 -0
- data/ext/groonga/rb-grn-variable-size-column.c +36 -0
- data/ext/groonga/rb-grn-variable.c +108 -0
- data/ext/groonga/rb-grn-view-accessor.c +53 -0
- data/ext/groonga/rb-grn-view-cursor.c +35 -0
- data/ext/groonga/rb-grn-view-record.c +41 -0
- data/ext/groonga/rb-grn-view.c +421 -0
- data/ext/groonga/rb-grn.h +698 -0
- data/ext/groonga/rb-groonga.c +107 -0
- data/extconf.rb +130 -0
- data/html/bar.svg +153 -0
- data/html/developer.html +117 -0
- data/html/developer.svg +469 -0
- data/html/download.svg +253 -0
- data/html/favicon.ico +0 -0
- data/html/favicon.xcf +0 -0
- data/html/footer.html.erb +28 -0
- data/html/head.html.erb +4 -0
- data/html/header.html.erb +17 -0
- data/html/index.html +147 -0
- data/html/install.svg +636 -0
- data/html/logo.xcf +0 -0
- data/html/ranguba.css +250 -0
- data/html/tutorial.svg +559 -0
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga.rb +90 -0
- data/lib/groonga/context.rb +184 -0
- data/lib/groonga/expression-builder.rb +324 -0
- data/lib/groonga/patricia-trie.rb +85 -0
- data/lib/groonga/record.rb +311 -0
- data/lib/groonga/schema.rb +1191 -0
- data/lib/groonga/view-record.rb +56 -0
- data/license/GPL +340 -0
- data/license/LGPL +504 -0
- data/license/RUBY +59 -0
- data/misc/grnop2ruby.rb +49 -0
- data/pkg-config.rb +333 -0
- data/rroonga-build.rb +57 -0
- data/test-unit/Rakefile +40 -0
- data/test-unit/TODO +5 -0
- data/test-unit/bin/testrb +5 -0
- data/test-unit/html/classic.html +15 -0
- data/test-unit/html/index.html +25 -0
- data/test-unit/html/index.html.ja +27 -0
- data/test-unit/lib/test/unit.rb +323 -0
- data/test-unit/lib/test/unit/assertionfailederror.rb +25 -0
- data/test-unit/lib/test/unit/assertions.rb +1230 -0
- data/test-unit/lib/test/unit/attribute.rb +125 -0
- data/test-unit/lib/test/unit/autorunner.rb +360 -0
- data/test-unit/lib/test/unit/collector.rb +36 -0
- data/test-unit/lib/test/unit/collector/descendant.rb +23 -0
- data/test-unit/lib/test/unit/collector/dir.rb +108 -0
- data/test-unit/lib/test/unit/collector/load.rb +144 -0
- data/test-unit/lib/test/unit/collector/objectspace.rb +34 -0
- data/test-unit/lib/test/unit/color-scheme.rb +102 -0
- data/test-unit/lib/test/unit/color.rb +96 -0
- data/test-unit/lib/test/unit/diff.rb +724 -0
- data/test-unit/lib/test/unit/error.rb +130 -0
- data/test-unit/lib/test/unit/exceptionhandler.rb +39 -0
- data/test-unit/lib/test/unit/failure.rb +136 -0
- data/test-unit/lib/test/unit/fixture.rb +176 -0
- data/test-unit/lib/test/unit/notification.rb +129 -0
- data/test-unit/lib/test/unit/omission.rb +191 -0
- data/test-unit/lib/test/unit/pending.rb +150 -0
- data/test-unit/lib/test/unit/priority.rb +180 -0
- data/test-unit/lib/test/unit/runner/console.rb +52 -0
- data/test-unit/lib/test/unit/runner/emacs.rb +8 -0
- data/test-unit/lib/test/unit/runner/tap.rb +8 -0
- data/test-unit/lib/test/unit/testcase.rb +476 -0
- data/test-unit/lib/test/unit/testresult.rb +89 -0
- data/test-unit/lib/test/unit/testsuite.rb +110 -0
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +14 -0
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +466 -0
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +63 -0
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +92 -0
- data/test-unit/lib/test/unit/ui/testrunner.rb +28 -0
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +77 -0
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +41 -0
- data/test-unit/lib/test/unit/util/backtracefilter.rb +41 -0
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +28 -0
- data/test-unit/lib/test/unit/util/observable.rb +90 -0
- data/test-unit/lib/test/unit/util/procwrapper.rb +48 -0
- data/test-unit/lib/test/unit/version.rb +7 -0
- data/test-unit/sample/adder.rb +13 -0
- data/test-unit/sample/subtracter.rb +12 -0
- data/test-unit/sample/test_adder.rb +20 -0
- data/test-unit/sample/test_subtracter.rb +20 -0
- data/test-unit/sample/test_user.rb +23 -0
- data/test-unit/test/collector/test-descendant.rb +133 -0
- data/test-unit/test/collector/test-load.rb +442 -0
- data/test-unit/test/collector/test_dir.rb +406 -0
- data/test-unit/test/collector/test_objectspace.rb +100 -0
- data/test-unit/test/run-test.rb +15 -0
- data/test-unit/test/test-attribute.rb +86 -0
- data/test-unit/test/test-color-scheme.rb +67 -0
- data/test-unit/test/test-color.rb +47 -0
- data/test-unit/test/test-diff.rb +518 -0
- data/test-unit/test/test-emacs-runner.rb +60 -0
- data/test-unit/test/test-fixture.rb +287 -0
- data/test-unit/test/test-notification.rb +33 -0
- data/test-unit/test/test-omission.rb +81 -0
- data/test-unit/test/test-pending.rb +70 -0
- data/test-unit/test/test-priority.rb +119 -0
- data/test-unit/test/test-testcase.rb +544 -0
- data/test-unit/test/test_assertions.rb +1151 -0
- data/test-unit/test/test_error.rb +26 -0
- data/test-unit/test/test_failure.rb +33 -0
- data/test-unit/test/test_testresult.rb +113 -0
- data/test-unit/test/test_testsuite.rb +129 -0
- data/test-unit/test/testunit-test-util.rb +14 -0
- data/test-unit/test/ui/test_testrunmediator.rb +20 -0
- data/test-unit/test/util/test-method-owner-finder.rb +38 -0
- data/test-unit/test/util/test_backtracefilter.rb +41 -0
- data/test-unit/test/util/test_observable.rb +102 -0
- data/test-unit/test/util/test_procwrapper.rb +36 -0
- data/test/.gitignore +1 -0
- data/test/groonga-test-utils.rb +134 -0
- data/test/run-test.rb +58 -0
- data/test/test-array.rb +90 -0
- data/test/test-column.rb +316 -0
- data/test/test-context-select.rb +93 -0
- data/test/test-context.rb +73 -0
- data/test/test-database.rb +113 -0
- data/test/test-encoding.rb +33 -0
- data/test/test-exception.rb +93 -0
- data/test/test-expression-builder.rb +217 -0
- data/test/test-expression.rb +134 -0
- data/test/test-fix-size-column.rb +65 -0
- data/test/test-gqtp.rb +72 -0
- data/test/test-hash.rb +305 -0
- data/test/test-index-column.rb +81 -0
- data/test/test-logger.rb +37 -0
- data/test/test-patricia-trie.rb +205 -0
- data/test/test-procedure.rb +37 -0
- data/test/test-query.rb +22 -0
- data/test/test-record.rb +243 -0
- data/test/test-remote.rb +54 -0
- data/test/test-schema-view.rb +90 -0
- data/test/test-schema.rb +459 -0
- data/test/test-snippet.rb +130 -0
- data/test/test-table-cursor.rb +153 -0
- data/test/test-table-offset-and-limit.rb +102 -0
- data/test/test-table-select-normalize.rb +53 -0
- data/test/test-table-select.rb +150 -0
- data/test/test-table.rb +594 -0
- data/test/test-type.rb +71 -0
- data/test/test-variable-size-column.rb +98 -0
- data/test/test-variable.rb +28 -0
- data/test/test-vector-column.rb +76 -0
- data/test/test-version.rb +31 -0
- data/test/test-view.rb +72 -0
- data/text/TUTORIAL.ja.rdoc +392 -0
- data/text/expression.rdoc +284 -0
- metadata +276 -0
@@ -0,0 +1,284 @@
|
|
1
|
+
|
2
|
+
= grn式 (grn_expr)
|
3
|
+
|
4
|
+
|
5
|
+
== 名前
|
6
|
+
|
7
|
+
grn式 - 検索条件やデータベースへの操作を表現する文字列の形式。(読み方:"ぐるんしき")
|
8
|
+
|
9
|
+
|
10
|
+
== 書式
|
11
|
+
|
12
|
+
grn式はquery形式とscript形式のいずれかによって表現することができます。
|
13
|
+
|
14
|
+
query形式
|
15
|
+
|
16
|
+
[条件式]
|
17
|
+
以下の条件式が使用できます。
|
18
|
+
|
19
|
+
[文字列]
|
20
|
+
全文検索条件(デフォルト検索対象カラムの値が指定された文字列を含んでいる)
|
21
|
+
|
22
|
+
["文字列"]
|
23
|
+
フレーズ検索条件(デフォルト検索対象カラムの値が指定されたフレーズを含んでいる)
|
24
|
+
|
25
|
+
[カラム名:値]
|
26
|
+
一致条件(カラム値 == 値)
|
27
|
+
|
28
|
+
[カラム名:!値]
|
29
|
+
不一致条件(カラム値 != 値)
|
30
|
+
|
31
|
+
[カラム名:<値]
|
32
|
+
比較条件(カラム値 < 値)
|
33
|
+
|
34
|
+
[カラム名:>値]
|
35
|
+
比較条件(カラム値 > 値)
|
36
|
+
|
37
|
+
[カラム名:<=値]
|
38
|
+
比較条件(カラム値 <= 値)
|
39
|
+
|
40
|
+
[カラム名:>=値]
|
41
|
+
比較条件(カラム値 >= 値)
|
42
|
+
|
43
|
+
[カラム名:@文字列]
|
44
|
+
全文検索条件(カラム値が指定された文字列を含んでいる)
|
45
|
+
|
46
|
+
[補助演算子 [1]]
|
47
|
+
全文検索条件の挙動を制御する以下の演算子が指定できます。
|
48
|
+
|
49
|
+
[~文字列]
|
50
|
+
文字列を含んでいた場合は、そのレコードのスコアを下げます。
|
51
|
+
|
52
|
+
[<文字列]
|
53
|
+
文字列を含んでいた場合に加算されるスコアの値を小さくします。
|
54
|
+
|
55
|
+
[>文字列]
|
56
|
+
文字列を含んでいた場合に加算されるスコアの値を大きくします。
|
57
|
+
|
58
|
+
[文字列*]
|
59
|
+
文字列に前方一致する条件を示します。
|
60
|
+
|
61
|
+
[*S[数値]"文字列"]
|
62
|
+
文字列と関連する文書を検索します。文字列から抽出する特徴語の数を数値に指定します。
|
63
|
+
|
64
|
+
[*N[数値]"文字列"]
|
65
|
+
文字列に含まれる複数の語が、近傍に含まれる文書を検索します。近傍の範囲の上限とな
|
66
|
+
る語数を数値に指定します。N-gramの場合は、文字数を指定します。
|
67
|
+
|
68
|
+
[結合演算子]
|
69
|
+
複数の条件式を結合するために以下の演算子が使用できる。演算子を伴わずに複数の条件式 が空白('
|
70
|
+
')区切りで指定された場合は、デフォルトの結合演算子が指定されたものとみな される。
|
71
|
+
|
72
|
+
[a OR b]
|
73
|
+
論理和(aとbといずれかの条件がマッチする)
|
74
|
+
|
75
|
+
[a + b]
|
76
|
+
論理積(aとbの両方がマッチする)
|
77
|
+
|
78
|
+
[a - b]
|
79
|
+
aにマッチし、bにはマッチしない
|
80
|
+
|
81
|
+
[( )]
|
82
|
+
複数の条件をまとめる
|
83
|
+
|
84
|
+
[プラグマ [2]]
|
85
|
+
query形式文字列の先頭に、処理方法を指定するプラグマを埋め込むことができます。
|
86
|
+
|
87
|
+
プラグマは必ずクエリ文字列の冒頭に存在しなければなりません。(先頭に空白を入れては いけません)
|
88
|
+
|
89
|
+
一つのクエリに複数のプラグマを指定することができます。
|
90
|
+
|
91
|
+
複数のプラグマを指定する場合は、間に空白を入れてはいけません。
|
92
|
+
|
93
|
+
[*E数値1[,数値2]]
|
94
|
+
検索結果の数が数値1よりも小さい場合、完全一致→非わかち書き→部分一致の順に自動
|
95
|
+
的に検索処理方法を切り替えます。完全一致でヒットした文書と比べて非わかち書き一致、
|
96
|
+
部分一致でヒットした文書には数値2分だけ小さいスコアを付与します。数値2を省略した
|
97
|
+
場合は既定値(=2)と解釈されます。数値1に負の数を指定した場合は以下のように処理し ます。
|
98
|
+
|
99
|
+
-1
|
100
|
+
|
101
|
+
完全一致検索のみを行う
|
102
|
+
|
103
|
+
-2
|
104
|
+
|
105
|
+
非わかち書き検索のみを行う
|
106
|
+
|
107
|
+
-3
|
108
|
+
|
109
|
+
完全一致検索と非わかち書き検索のみを行う
|
110
|
+
|
111
|
+
-4
|
112
|
+
|
113
|
+
部分一致検索のみを行う
|
114
|
+
|
115
|
+
-5
|
116
|
+
|
117
|
+
完全一致検索と部分一致検索のみを行う
|
118
|
+
|
119
|
+
-6
|
120
|
+
|
121
|
+
非わかち書き検索と部分一致検索のみを行う
|
122
|
+
|
123
|
+
-7
|
124
|
+
|
125
|
+
完全一致検索,非わかち書き検索,部分一致検索の全てを行う
|
126
|
+
|
127
|
+
例:
|
128
|
+
|
129
|
+
*E10,3
|
130
|
+
|
131
|
+
検索結果数が10件以下だった場合に検索処理方法を順次切り替え、スコアを3ずつ小さ くします。
|
132
|
+
|
133
|
+
[*D演算子]
|
134
|
+
結合演算子の既定値(演算子を省略した場合にどの演算を行うか)を指定します。指定できる演 算子は、OR, +, - のいずれかです。
|
135
|
+
|
136
|
+
例1:
|
137
|
+
|
138
|
+
*D+ abc def
|
139
|
+
|
140
|
+
abcとdefを両方含む文書を検索します。
|
141
|
+
|
142
|
+
例2:
|
143
|
+
|
144
|
+
*DOR abc def
|
145
|
+
|
146
|
+
abcとdefのいずれかを含む文書を検索します。
|
147
|
+
|
148
|
+
[*W[数値[:重み][,数値[:重み]]...]
|
149
|
+
数値で指定されたセクション番号のみを対象に検索します。セクションごとに検索スコア
|
150
|
+
の倍数を指定することができます。重みは、省略された場合1となります。負の重みも指 定することができます。
|
151
|
+
|
152
|
+
script形式 [3]
|
153
|
+
|
154
|
+
ECMAScript風の構文で検索条件やレコードへの操作を記述します。
|
155
|
+
|
156
|
+
式中のIDENTIFIER(識別子)は、以下のいずれかを指します。
|
157
|
+
|
158
|
+
[引数名]
|
159
|
+
grn式が受け取る引数の名前
|
160
|
+
|
161
|
+
[カラム名]
|
162
|
+
操作対象としているレコードのカラム名
|
163
|
+
|
164
|
+
[型名・関数名・テーブル名]
|
165
|
+
データベースに定義された型・テーブル・関数の名前
|
166
|
+
|
167
|
+
|
168
|
+
== 説明
|
169
|
+
|
170
|
+
grn式は、検索条件やデータベースへの操作を表現するために使用される文字列の形式です。
|
171
|
+
|
172
|
+
selectやloadなどのいくつかの組込コマンドや、API関数grn_table_select()などで使用されます。grn式はquery
|
173
|
+
形式とscript形式という2種類の方式で記述することができます。query形式は、多くのweb検索エンジンなどで検索フォームにユーザが指定
|
174
|
+
可能なクエリ文字列の書式に合わせた形式です。script形式は、ECMAScriptの構文から式(expression)以下の構文要素を抜粋
|
175
|
+
した形式になっており、文(statement)や制御構造などは表現できません。
|
176
|
+
|
177
|
+
query形式のgrn式もscript形式のgrn式も、共通の中間形式に翻訳された上で処理されますので、処理速度や効率には差違はありません。
|
178
|
+
記述できる処理の範囲はscript形式の方がquery形式より広くなっています。たとえば更新系の操作はscript形式のみで記述できます。
|
179
|
+
|
180
|
+
DB-APIレイヤでは、異なる形式で記述された複数のgrn式を結合することも可能です。
|
181
|
+
|
182
|
+
|
183
|
+
== 例
|
184
|
+
|
185
|
+
query形式でcolumn1の値が'hoge'に等しいという条件
|
186
|
+
|
187
|
+
column1:hoge
|
188
|
+
|
189
|
+
script形式でcolumn1の値が'hoge'に等しいという条件
|
190
|
+
|
191
|
+
column1 == "hoge"
|
192
|
+
|
193
|
+
|
194
|
+
== 構文
|
195
|
+
|
196
|
+
query形式のgrn式で有効な式の構文を拡張BNF記法で示します。
|
197
|
+
|
198
|
+
query ::= query_element
|
199
|
+
| ( query query_element )
|
200
|
+
| ( query "+" query_element )
|
201
|
+
| ( query "-" query_element )
|
202
|
+
| ( query "OR" query_element )
|
203
|
+
query_element ::= STRING
|
204
|
+
| ( "(" query ")" )
|
205
|
+
| ( IDENTIFIER relative_operator query_element )
|
206
|
+
relative_operator ::= ( ":" | ":!" | ":<" | ":>" | ":<=" | ":>=" | ":@" )
|
207
|
+
|
208
|
+
script形式のgrn式で有効な式の構文を拡張BNF記法で示します。
|
209
|
+
|
210
|
+
expression ::= assignment_expression
|
211
|
+
expression ::= ( expression "," assignment_expression )
|
212
|
+
assignment_expression ::= conditional_expression
|
213
|
+
| ( lefthand_side_expression assign_operator assignment_expression )
|
214
|
+
assign_operator ::= ( "=" | "*=" | "/=" | "%=" | "+=" | "-=" | "<<=" | ">>=" | ">>>=" | "&=" | "^=" | "|=" )
|
215
|
+
conditional_expression ::= logical_or_expression
|
216
|
+
| ( logical_or_expression "?" assignment_expression ":" assignment_expression )
|
217
|
+
logical_or_expression ::= logical_and_expression
|
218
|
+
| ( logical_or_expression "||" logical_and_expression )
|
219
|
+
logical_and_expression ::= bitwise_or_expression
|
220
|
+
| ( logical_and_expression logical_and_operator bitwise_or_expression )
|
221
|
+
logical_and_operator ::= ( "&&" | "&!" )
|
222
|
+
bitwise_or_expression ::= bitwise_xor_expression
|
223
|
+
| ( bitwise_or_expression "|" bitwise_xor_expression )
|
224
|
+
bitwise_xor_expression ::= bitwise_and_expression
|
225
|
+
| ( bitwise_xor_expression "^" bitwise_and_expression )
|
226
|
+
bitwise_and_expression ::= equality_expression
|
227
|
+
| bitwise_and_expression "&" equality_expression )
|
228
|
+
equality_expression ::= relational_expression
|
229
|
+
| ( equality_expression equality_operator relational_expression )
|
230
|
+
equality_operator ::= ( "==" | "!=" )
|
231
|
+
relational_expression ::= shift_expression
|
232
|
+
| ( relational_expression relational_operator shift_expression )
|
233
|
+
relational_operator ::= ( "<" | ">" | "<=" | ">=" | "in" | "@" )
|
234
|
+
shift_expression ::= additive_expression
|
235
|
+
| ( shift_expression shift_operator additive_expression )
|
236
|
+
shift_operator ::= ( "<<" | ">>" | ">>>" )
|
237
|
+
additive_expression ::= multiplicative_expression
|
238
|
+
| ( additive_expression additive_operator multiplicative_expression )
|
239
|
+
additive_operator ::= ( "+" | "-" )
|
240
|
+
multiplicative_expression ::= unary_expression
|
241
|
+
| ( multiplicative_expression multiplicative_operator unary_expression )
|
242
|
+
multiplicative_operator ::= ( "*" | "/" | "%" )
|
243
|
+
unary_expression ::= postfix_expression
|
244
|
+
| ( unary_operator unary_expression )
|
245
|
+
unary_operator ::= ( "delete" : "++" : "--" : "+" : "-" : "!" : "~" )
|
246
|
+
postfix_expression ::= lefthand_side_expression
|
247
|
+
| ( lefthand_side_expression postfix_operator )
|
248
|
+
postfix_operator ::= ( "++" | "--" )
|
249
|
+
lefthand_side_expression ::= (call_expression | member_expression)
|
250
|
+
call_expression ::= member_expression arguments
|
251
|
+
member_expression ::= primary_expression
|
252
|
+
member_expression ::= member_expression member_expression_part
|
253
|
+
primary_expression ::= object_literal
|
254
|
+
| ( "(" expression ")" )
|
255
|
+
| IDENTIFIER
|
256
|
+
| array_literal
|
257
|
+
| DECIMAL
|
258
|
+
| HEX_INTEGER
|
259
|
+
| STRING
|
260
|
+
| "true"
|
261
|
+
| "false
|
262
|
+
| "null"
|
263
|
+
array_literal ::= ( "[" elision "]" )
|
264
|
+
| ( "[" `element_list elision` "]" )
|
265
|
+
| ( "[" element_list "]" )
|
266
|
+
elision ::= "," | ( elision "," )
|
267
|
+
element_list ::= assignment_expression
|
268
|
+
| ( elision assignment_expression )
|
269
|
+
| ( element_list elision assignment_expression )
|
270
|
+
object_literal ::= ( "{" property_name_and_value_list "}" )
|
271
|
+
property_name_and_value_list ::= ( property_name_and_value_list "," property_name_and_value )
|
272
|
+
property_name_and_value ::= ( property_name ":" assignment_expression )
|
273
|
+
property_name ::= IDENTIFIER | STRING | DECIMAL
|
274
|
+
member_expression_part ::= "[" expression "]" | ( "." IDENTIFIER )
|
275
|
+
arguments ::= ( "(" argument_list ")" )
|
276
|
+
argument_list ::= assignment_expression | ( argument_list "," assignment_expression )
|
277
|
+
|
278
|
+
-[ 脚注 ]-
|
279
|
+
|
280
|
+
[1] 補助演算子はv1.0でサポートされます。
|
281
|
+
|
282
|
+
[2] プラグマはv1.0でサポートされます。
|
283
|
+
|
284
|
+
[3] script形式のgrn式はv1.0でサポートされます。
|
metadata
ADDED
@@ -0,0 +1,276 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rroonga
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 9
|
8
|
+
- 2
|
9
|
+
version: 0.9.2
|
10
|
+
platform: x86-mingw32
|
11
|
+
authors:
|
12
|
+
- Kouhei Sutou
|
13
|
+
- Tasuku SUENAGA
|
14
|
+
- daijiro
|
15
|
+
- Yuto HAYAMIZU
|
16
|
+
- SHIDARA Yoji
|
17
|
+
autorequire:
|
18
|
+
bindir: bin
|
19
|
+
cert_chain: []
|
20
|
+
|
21
|
+
date: 2010-04-20 00:00:00 +09:00
|
22
|
+
default_executable:
|
23
|
+
dependencies: []
|
24
|
+
|
25
|
+
description: |-
|
26
|
+
rroonga is a extension library to use groonga's DB-API
|
27
|
+
layer. rroonga provides Rubyish readable and writable
|
28
|
+
API. You can use groonga's first and highly functional
|
29
|
+
features from Ruby.
|
30
|
+
email:
|
31
|
+
- groonga-users-en@rubyforge.org
|
32
|
+
- groonga-dev@lists.sourceforge.jp
|
33
|
+
executables: []
|
34
|
+
|
35
|
+
extensions: []
|
36
|
+
|
37
|
+
extra_rdoc_files:
|
38
|
+
- README.ja.rdoc
|
39
|
+
- NEWS.ja.rdoc
|
40
|
+
- text/TUTORIAL.ja.rdoc
|
41
|
+
- text/expression.rdoc
|
42
|
+
- README.rdoc
|
43
|
+
- NEWS.rdoc
|
44
|
+
files:
|
45
|
+
- AUTHORS
|
46
|
+
- NEWS.ja.rdoc
|
47
|
+
- NEWS.rdoc
|
48
|
+
- README.ja.rdoc
|
49
|
+
- README.rdoc
|
50
|
+
- Rakefile
|
51
|
+
- benchmark/common.rb
|
52
|
+
- benchmark/read-write-many-small-items.rb
|
53
|
+
- benchmark/write-many-small-items.rb
|
54
|
+
- example/bookmark.rb
|
55
|
+
- example/index-html.rb
|
56
|
+
- example/search/config.ru
|
57
|
+
- example/search/public/css/groonga.css
|
58
|
+
- ext/.gitignore
|
59
|
+
- ext/groonga/extconf.rb
|
60
|
+
- ext/groonga/rb-grn-accessor.c
|
61
|
+
- ext/groonga/rb-grn-array-cursor.c
|
62
|
+
- ext/groonga/rb-grn-array.c
|
63
|
+
- ext/groonga/rb-grn-column.c
|
64
|
+
- ext/groonga/rb-grn-context.c
|
65
|
+
- ext/groonga/rb-grn-database.c
|
66
|
+
- ext/groonga/rb-grn-encoding-support.c
|
67
|
+
- ext/groonga/rb-grn-encoding.c
|
68
|
+
- ext/groonga/rb-grn-exception.c
|
69
|
+
- ext/groonga/rb-grn-expression-builder.c
|
70
|
+
- ext/groonga/rb-grn-expression.c
|
71
|
+
- ext/groonga/rb-grn-fix-size-column.c
|
72
|
+
- ext/groonga/rb-grn-hash-cursor.c
|
73
|
+
- ext/groonga/rb-grn-hash.c
|
74
|
+
- ext/groonga/rb-grn-index-column.c
|
75
|
+
- ext/groonga/rb-grn-logger.c
|
76
|
+
- ext/groonga/rb-grn-object.c
|
77
|
+
- ext/groonga/rb-grn-operation.c
|
78
|
+
- ext/groonga/rb-grn-patricia-trie-cursor.c
|
79
|
+
- ext/groonga/rb-grn-patricia-trie.c
|
80
|
+
- ext/groonga/rb-grn-procedure.c
|
81
|
+
- ext/groonga/rb-grn-query.c
|
82
|
+
- ext/groonga/rb-grn-record.c
|
83
|
+
- ext/groonga/rb-grn-snippet.c
|
84
|
+
- ext/groonga/rb-grn-table-cursor-key-support.c
|
85
|
+
- ext/groonga/rb-grn-table-cursor.c
|
86
|
+
- ext/groonga/rb-grn-table-key-support.c
|
87
|
+
- ext/groonga/rb-grn-table.c
|
88
|
+
- ext/groonga/rb-grn-type.c
|
89
|
+
- ext/groonga/rb-grn-utils.c
|
90
|
+
- ext/groonga/rb-grn-variable-size-column.c
|
91
|
+
- ext/groonga/rb-grn-variable.c
|
92
|
+
- ext/groonga/rb-grn-view-accessor.c
|
93
|
+
- ext/groonga/rb-grn-view-cursor.c
|
94
|
+
- ext/groonga/rb-grn-view-record.c
|
95
|
+
- ext/groonga/rb-grn-view.c
|
96
|
+
- ext/groonga/rb-grn.h
|
97
|
+
- ext/groonga/rb-groonga.c
|
98
|
+
- extconf.rb
|
99
|
+
- html/bar.svg
|
100
|
+
- html/developer.html
|
101
|
+
- html/developer.svg
|
102
|
+
- html/download.svg
|
103
|
+
- html/favicon.ico
|
104
|
+
- html/favicon.xcf
|
105
|
+
- html/footer.html.erb
|
106
|
+
- html/head.html.erb
|
107
|
+
- html/header.html.erb
|
108
|
+
- html/index.html
|
109
|
+
- html/install.svg
|
110
|
+
- html/logo.xcf
|
111
|
+
- html/ranguba.css
|
112
|
+
- html/tutorial.svg
|
113
|
+
- lib/groonga.rb
|
114
|
+
- lib/groonga/context.rb
|
115
|
+
- lib/groonga/expression-builder.rb
|
116
|
+
- lib/groonga/patricia-trie.rb
|
117
|
+
- lib/groonga/record.rb
|
118
|
+
- lib/groonga/schema.rb
|
119
|
+
- lib/groonga/view-record.rb
|
120
|
+
- license/GPL
|
121
|
+
- license/LGPL
|
122
|
+
- license/RUBY
|
123
|
+
- misc/grnop2ruby.rb
|
124
|
+
- pkg-config.rb
|
125
|
+
- rroonga-build.rb
|
126
|
+
- test-unit/Rakefile
|
127
|
+
- test-unit/TODO
|
128
|
+
- test-unit/bin/testrb
|
129
|
+
- test-unit/html/classic.html
|
130
|
+
- test-unit/html/index.html
|
131
|
+
- test-unit/html/index.html.ja
|
132
|
+
- test-unit/lib/test/unit.rb
|
133
|
+
- test-unit/lib/test/unit/assertionfailederror.rb
|
134
|
+
- test-unit/lib/test/unit/assertions.rb
|
135
|
+
- test-unit/lib/test/unit/attribute.rb
|
136
|
+
- test-unit/lib/test/unit/autorunner.rb
|
137
|
+
- test-unit/lib/test/unit/collector.rb
|
138
|
+
- test-unit/lib/test/unit/collector/descendant.rb
|
139
|
+
- test-unit/lib/test/unit/collector/dir.rb
|
140
|
+
- test-unit/lib/test/unit/collector/load.rb
|
141
|
+
- test-unit/lib/test/unit/collector/objectspace.rb
|
142
|
+
- test-unit/lib/test/unit/color-scheme.rb
|
143
|
+
- test-unit/lib/test/unit/color.rb
|
144
|
+
- test-unit/lib/test/unit/diff.rb
|
145
|
+
- test-unit/lib/test/unit/error.rb
|
146
|
+
- test-unit/lib/test/unit/exceptionhandler.rb
|
147
|
+
- test-unit/lib/test/unit/failure.rb
|
148
|
+
- test-unit/lib/test/unit/fixture.rb
|
149
|
+
- test-unit/lib/test/unit/notification.rb
|
150
|
+
- test-unit/lib/test/unit/omission.rb
|
151
|
+
- test-unit/lib/test/unit/pending.rb
|
152
|
+
- test-unit/lib/test/unit/priority.rb
|
153
|
+
- test-unit/lib/test/unit/runner/console.rb
|
154
|
+
- test-unit/lib/test/unit/runner/emacs.rb
|
155
|
+
- test-unit/lib/test/unit/runner/tap.rb
|
156
|
+
- test-unit/lib/test/unit/testcase.rb
|
157
|
+
- test-unit/lib/test/unit/testresult.rb
|
158
|
+
- test-unit/lib/test/unit/testsuite.rb
|
159
|
+
- test-unit/lib/test/unit/ui/console/outputlevel.rb
|
160
|
+
- test-unit/lib/test/unit/ui/console/testrunner.rb
|
161
|
+
- test-unit/lib/test/unit/ui/emacs/testrunner.rb
|
162
|
+
- test-unit/lib/test/unit/ui/tap/testrunner.rb
|
163
|
+
- test-unit/lib/test/unit/ui/testrunner.rb
|
164
|
+
- test-unit/lib/test/unit/ui/testrunnermediator.rb
|
165
|
+
- test-unit/lib/test/unit/ui/testrunnerutilities.rb
|
166
|
+
- test-unit/lib/test/unit/util/backtracefilter.rb
|
167
|
+
- test-unit/lib/test/unit/util/method-owner-finder.rb
|
168
|
+
- test-unit/lib/test/unit/util/observable.rb
|
169
|
+
- test-unit/lib/test/unit/util/procwrapper.rb
|
170
|
+
- test-unit/lib/test/unit/version.rb
|
171
|
+
- test-unit/sample/adder.rb
|
172
|
+
- test-unit/sample/subtracter.rb
|
173
|
+
- test-unit/sample/test_adder.rb
|
174
|
+
- test-unit/sample/test_subtracter.rb
|
175
|
+
- test-unit/sample/test_user.rb
|
176
|
+
- test-unit/test/collector/test-descendant.rb
|
177
|
+
- test-unit/test/collector/test-load.rb
|
178
|
+
- test-unit/test/collector/test_dir.rb
|
179
|
+
- test-unit/test/collector/test_objectspace.rb
|
180
|
+
- test-unit/test/run-test.rb
|
181
|
+
- test-unit/test/test-attribute.rb
|
182
|
+
- test-unit/test/test-color-scheme.rb
|
183
|
+
- test-unit/test/test-color.rb
|
184
|
+
- test-unit/test/test-diff.rb
|
185
|
+
- test-unit/test/test-emacs-runner.rb
|
186
|
+
- test-unit/test/test-fixture.rb
|
187
|
+
- test-unit/test/test-notification.rb
|
188
|
+
- test-unit/test/test-omission.rb
|
189
|
+
- test-unit/test/test-pending.rb
|
190
|
+
- test-unit/test/test-priority.rb
|
191
|
+
- test-unit/test/test-testcase.rb
|
192
|
+
- test-unit/test/test_assertions.rb
|
193
|
+
- test-unit/test/test_error.rb
|
194
|
+
- test-unit/test/test_failure.rb
|
195
|
+
- test-unit/test/test_testresult.rb
|
196
|
+
- test-unit/test/test_testsuite.rb
|
197
|
+
- test-unit/test/testunit-test-util.rb
|
198
|
+
- test-unit/test/ui/test_testrunmediator.rb
|
199
|
+
- test-unit/test/util/test-method-owner-finder.rb
|
200
|
+
- test-unit/test/util/test_backtracefilter.rb
|
201
|
+
- test-unit/test/util/test_observable.rb
|
202
|
+
- test-unit/test/util/test_procwrapper.rb
|
203
|
+
- test/.gitignore
|
204
|
+
- test/groonga-test-utils.rb
|
205
|
+
- test/run-test.rb
|
206
|
+
- test/test-array.rb
|
207
|
+
- test/test-column.rb
|
208
|
+
- test/test-context-select.rb
|
209
|
+
- test/test-context.rb
|
210
|
+
- test/test-database.rb
|
211
|
+
- test/test-encoding.rb
|
212
|
+
- test/test-exception.rb
|
213
|
+
- test/test-expression-builder.rb
|
214
|
+
- test/test-expression.rb
|
215
|
+
- test/test-fix-size-column.rb
|
216
|
+
- test/test-gqtp.rb
|
217
|
+
- test/test-hash.rb
|
218
|
+
- test/test-index-column.rb
|
219
|
+
- test/test-logger.rb
|
220
|
+
- test/test-patricia-trie.rb
|
221
|
+
- test/test-procedure.rb
|
222
|
+
- test/test-query.rb
|
223
|
+
- test/test-record.rb
|
224
|
+
- test/test-remote.rb
|
225
|
+
- test/test-schema-view.rb
|
226
|
+
- test/test-schema.rb
|
227
|
+
- test/test-snippet.rb
|
228
|
+
- test/test-table-cursor.rb
|
229
|
+
- test/test-table-offset-and-limit.rb
|
230
|
+
- test/test-table-select-normalize.rb
|
231
|
+
- test/test-table-select.rb
|
232
|
+
- test/test-table.rb
|
233
|
+
- test/test-type.rb
|
234
|
+
- test/test-variable-size-column.rb
|
235
|
+
- test/test-variable.rb
|
236
|
+
- test/test-vector-column.rb
|
237
|
+
- test/test-version.rb
|
238
|
+
- test/test-view.rb
|
239
|
+
- text/TUTORIAL.ja.rdoc
|
240
|
+
- text/expression.rdoc
|
241
|
+
- lib/1.8/groonga.so
|
242
|
+
- lib/1.9/groonga.so
|
243
|
+
has_rdoc: true
|
244
|
+
homepage: http://groonga.rubyforge.org/
|
245
|
+
licenses: []
|
246
|
+
|
247
|
+
post_install_message:
|
248
|
+
rdoc_options:
|
249
|
+
- --main
|
250
|
+
- README.ja.rdoc
|
251
|
+
require_paths:
|
252
|
+
- lib
|
253
|
+
- ext/groonga
|
254
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
255
|
+
requirements:
|
256
|
+
- - ">="
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
segments:
|
259
|
+
- 0
|
260
|
+
version: "0"
|
261
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
|
+
requirements:
|
263
|
+
- - ">="
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
segments:
|
266
|
+
- 0
|
267
|
+
version: "0"
|
268
|
+
requirements: []
|
269
|
+
|
270
|
+
rubyforge_project: groonga
|
271
|
+
rubygems_version: 1.3.6
|
272
|
+
signing_key:
|
273
|
+
specification_version: 3
|
274
|
+
summary: Ruby bindings for groonga that provides full text search and column store features.
|
275
|
+
test_files:
|
276
|
+
- test/run-test.rb
|