rroonga 0.9.2-mswin32
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 +217 -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 +211 -0
- data/example/search/public/css/groonga.css +122 -0
- data/ext/.gitignore +2 -0
- data/ext/libruby-groonga.a +0 -0
- data/ext/rb-grn-accessor.c +52 -0
- data/ext/rb-grn-array-cursor.c +36 -0
- data/ext/rb-grn-array.c +210 -0
- data/ext/rb-grn-column.c +573 -0
- data/ext/rb-grn-context.c +655 -0
- data/ext/rb-grn-database.c +472 -0
- data/ext/rb-grn-encoding-support.c +64 -0
- data/ext/rb-grn-encoding.c +257 -0
- data/ext/rb-grn-exception.c +1110 -0
- data/ext/rb-grn-expression-builder.c +75 -0
- data/ext/rb-grn-expression.c +735 -0
- data/ext/rb-grn-fix-size-column.c +166 -0
- data/ext/rb-grn-hash-cursor.c +38 -0
- data/ext/rb-grn-hash.c +294 -0
- data/ext/rb-grn-index-column.c +488 -0
- data/ext/rb-grn-logger.c +504 -0
- data/ext/rb-grn-object.c +1369 -0
- data/ext/rb-grn-operation.c +198 -0
- data/ext/rb-grn-patricia-trie-cursor.c +39 -0
- data/ext/rb-grn-patricia-trie.c +488 -0
- data/ext/rb-grn-procedure.c +52 -0
- data/ext/rb-grn-query.c +260 -0
- data/ext/rb-grn-record.c +40 -0
- data/ext/rb-grn-snippet.c +334 -0
- data/ext/rb-grn-table-cursor-key-support.c +69 -0
- data/ext/rb-grn-table-cursor.c +247 -0
- data/ext/rb-grn-table-key-support.c +731 -0
- data/ext/rb-grn-table.c +2141 -0
- data/ext/rb-grn-type.c +181 -0
- data/ext/rb-grn-utils.c +769 -0
- data/ext/rb-grn-variable-size-column.c +36 -0
- data/ext/rb-grn-variable.c +108 -0
- data/ext/rb-grn-view-accessor.c +53 -0
- data/ext/rb-grn-view-cursor.c +35 -0
- data/ext/rb-grn-view-record.c +41 -0
- data/ext/rb-grn-view.c +421 -0
- data/ext/rb-grn.h +700 -0
- data/ext/rb-groonga.c +117 -0
- data/extconf.rb +266 -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/groonga.rb +90 -0
- data/lib/groonga/context.rb +184 -0
- data/lib/groonga/expression-builder.rb +285 -0
- data/lib/groonga/patricia-trie.rb +53 -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/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 +136 -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 +348 -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 +133 -0
- data/test/run-test.rb +58 -0
- data/test/test-array.rb +97 -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 +156 -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 +312 -0
- data/test/test-index-column.rb +81 -0
- data/test/test-logger.rb +37 -0
- data/test/test-patricia-trie.rb +189 -0
- data/test/test-procedure.rb +37 -0
- data/test/test-query.rb +22 -0
- data/test/test-record.rb +279 -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 +690 -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
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga.dll +0 -0
- data/vendor/local/bin/libmecab.dll +0 -0
- data/vendor/local/include/groonga.h +2285 -0
- data/vendor/local/lib/libgroonga.lib +0 -0
- metadata +280 -0
data/ext/rb-grn.h
ADDED
@@ -0,0 +1,700 @@
|
|
1
|
+
/* -*- c-file-style: "ruby" -*- */
|
2
|
+
/*
|
3
|
+
Copyright (C) 2009-2010 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
|
5
|
+
This library is free software; you can redistribute it and/or
|
6
|
+
modify it under the terms of the GNU Lesser General Public
|
7
|
+
License version 2.1 as published by the Free Software Foundation.
|
8
|
+
|
9
|
+
This library is distributed in the hope that it will be useful,
|
10
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
+
Lesser General Public License for more details.
|
13
|
+
|
14
|
+
You should have received a copy of the GNU Lesser General Public
|
15
|
+
License along with this library; if not, write to the Free Software
|
16
|
+
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
17
|
+
*/
|
18
|
+
|
19
|
+
#ifndef __RB_GRN_H__
|
20
|
+
#define __RB_GRN_H__
|
21
|
+
|
22
|
+
#include <ruby.h>
|
23
|
+
|
24
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
25
|
+
# include <ruby/encoding.h>
|
26
|
+
#endif
|
27
|
+
|
28
|
+
#include <groonga.h>
|
29
|
+
|
30
|
+
#if defined(__cplusplus)
|
31
|
+
# define RB_GRN_BEGIN_DECLS extern "C" {
|
32
|
+
# define RB_GRN_END_DECLS }
|
33
|
+
#else
|
34
|
+
# define RB_GRN_BEGIN_DECLS
|
35
|
+
# define RB_GRN_END_DECLS
|
36
|
+
#endif
|
37
|
+
|
38
|
+
RB_GRN_BEGIN_DECLS
|
39
|
+
|
40
|
+
#if __GNUC__ >= 4
|
41
|
+
# define RB_GRN_GNUC_NULL_TERMINATED __attribute__((__sentinel__))
|
42
|
+
#else
|
43
|
+
# define RB_GRN_GNUC_NULL_TERMINATED
|
44
|
+
#endif
|
45
|
+
|
46
|
+
#if defined(RUBY_GRN_PLATFORM_WIN32) && !defined(RB_GRN_PLATFORM_WIN32)
|
47
|
+
# define RB_GRN_PLATFORM_WIN32 RUBY_GRN_PLATFORM_WIN32
|
48
|
+
#endif
|
49
|
+
|
50
|
+
#if defined(RUBY_GRN_STATIC_COMPILATION) && !defined(RB_GRN_STATIC_COMPILATION)
|
51
|
+
# define RB_GRN_STATIC_COMPILATION RUBY_GRN_STATIC_COMPILATION
|
52
|
+
#endif
|
53
|
+
|
54
|
+
#if defined(RB_GRN_PLATFORM_WIN32) && !defined(RB_GRN_STATIC_COMPILATION)
|
55
|
+
# ifdef RB_GRN_COMPILATION
|
56
|
+
# define RB_GRN_VAR __declspec(dllexport)
|
57
|
+
# else
|
58
|
+
# define RB_GRN_VAR extern __declspec(dllimport)
|
59
|
+
# endif
|
60
|
+
#else
|
61
|
+
# define RB_GRN_VAR extern
|
62
|
+
#endif
|
63
|
+
|
64
|
+
#ifdef RB_GRN_DEBUG
|
65
|
+
# define debug(...) fprintf(stderr, __VA_ARGS__)
|
66
|
+
#else
|
67
|
+
# define debug(...)
|
68
|
+
#endif
|
69
|
+
|
70
|
+
#define RB_GRN_MAJOR_VERSION 0
|
71
|
+
#define RB_GRN_MINOR_VERSION 9
|
72
|
+
#define RB_GRN_MICRO_VERSION 2
|
73
|
+
|
74
|
+
typedef int rb_grn_boolean;
|
75
|
+
#define RB_GRN_FALSE (0)
|
76
|
+
#define RB_GRN_TRUE (!RB_GRN_FALSE)
|
77
|
+
|
78
|
+
#define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
|
79
|
+
|
80
|
+
#include <stdint.h>
|
81
|
+
|
82
|
+
#define RB_GRN_OBJECT(object) ((RbGrnObject *)(object))
|
83
|
+
#define RB_GRN_NAMED_OBJECT(object) ((RbGrnNamedObject *)(object))
|
84
|
+
#define RB_GRN_TABLE(object) ((RbGrnTable *)(object))
|
85
|
+
#define RB_GRN_TABLE_KEY_SUPPORT(object) ((RbGrnTableKeySupport *)(object))
|
86
|
+
#define RB_GRN_TABLE_CURSOR(object) ((RbGrnTableCursort *)(object))
|
87
|
+
#define RB_GRN_COLUMN(object) ((RbGrnColumn *)(object))
|
88
|
+
#define RB_GRN_INDEX_COLUMN(object) ((RbGrnIndexColumn *)(object))
|
89
|
+
#define RB_GRN_ACCESSOR(object) ((RbGrnAccessor *)(object))
|
90
|
+
#define RB_GRN_ACCESSOR_VIEW(object) ((RbGrnAccessor *)(object))
|
91
|
+
#define RB_GRN_EXPRESSION(object) ((RbGrnExpression *)(object))
|
92
|
+
#define RB_GRN_UNBIND_FUNCTION(function) ((RbGrnUnbindFunction)(function))
|
93
|
+
|
94
|
+
typedef void (*RbGrnUnbindFunction) (void *object);
|
95
|
+
|
96
|
+
typedef struct _RbGrnContext RbGrnContext;
|
97
|
+
struct _RbGrnContext
|
98
|
+
{
|
99
|
+
grn_ctx *context;
|
100
|
+
VALUE self;
|
101
|
+
};
|
102
|
+
|
103
|
+
typedef struct _RbGrnObject RbGrnObject;
|
104
|
+
struct _RbGrnObject
|
105
|
+
{
|
106
|
+
VALUE self;
|
107
|
+
grn_ctx *context;
|
108
|
+
grn_obj *object;
|
109
|
+
grn_obj *domain;
|
110
|
+
grn_id domain_id;
|
111
|
+
grn_obj *range;
|
112
|
+
grn_id range_id;
|
113
|
+
rb_grn_boolean need_close;
|
114
|
+
rb_grn_boolean have_finalizer;
|
115
|
+
};
|
116
|
+
|
117
|
+
typedef struct _RbGrnNamedObject RbGrnNamedObject;
|
118
|
+
struct _RbGrnNamedObject
|
119
|
+
{
|
120
|
+
RbGrnObject parent;
|
121
|
+
char *name;
|
122
|
+
unsigned name_size;
|
123
|
+
};
|
124
|
+
|
125
|
+
typedef struct _RbGrnTable RbGrnTable;
|
126
|
+
struct _RbGrnTable
|
127
|
+
{
|
128
|
+
RbGrnObject parent;
|
129
|
+
grn_obj *value;
|
130
|
+
VALUE columns;
|
131
|
+
};
|
132
|
+
|
133
|
+
typedef struct _RbGrnTableKeySupport RbGrnTableKeySupport;
|
134
|
+
struct _RbGrnTableKeySupport
|
135
|
+
{
|
136
|
+
RbGrnTable parent;
|
137
|
+
grn_obj *key;
|
138
|
+
};
|
139
|
+
|
140
|
+
typedef struct _RbGrnColumn RbGrnColumn;
|
141
|
+
struct _RbGrnColumn
|
142
|
+
{
|
143
|
+
RbGrnNamedObject parent;
|
144
|
+
grn_obj *value;
|
145
|
+
};
|
146
|
+
|
147
|
+
typedef struct _RbGrnIndexColumn RbGrnIndexColumn;
|
148
|
+
struct _RbGrnIndexColumn
|
149
|
+
{
|
150
|
+
RbGrnColumn parent;
|
151
|
+
grn_obj *old_value;
|
152
|
+
grn_obj *id_query;
|
153
|
+
grn_obj *string_query;
|
154
|
+
};
|
155
|
+
|
156
|
+
typedef struct _RbGrnAccessor RbGrnAccessor;
|
157
|
+
struct _RbGrnAccessor
|
158
|
+
{
|
159
|
+
RbGrnNamedObject parent;
|
160
|
+
};
|
161
|
+
|
162
|
+
typedef struct _RbGrnTableCursor RbGrnTableCursor;
|
163
|
+
struct _RbGrnTableCursor
|
164
|
+
{
|
165
|
+
RbGrnObject parent;
|
166
|
+
};
|
167
|
+
|
168
|
+
typedef struct _RbGrnVariable RbGrnVariable;
|
169
|
+
struct _RbGrnVariable
|
170
|
+
{
|
171
|
+
RbGrnObject parent;
|
172
|
+
};
|
173
|
+
|
174
|
+
typedef struct _RbGrnExpression RbGrnExpression;
|
175
|
+
struct _RbGrnExpression
|
176
|
+
{
|
177
|
+
RbGrnObject parent;
|
178
|
+
grn_obj *value;
|
179
|
+
};
|
180
|
+
|
181
|
+
RB_GRN_VAR rb_grn_boolean rb_grn_exited;
|
182
|
+
|
183
|
+
RB_GRN_VAR VALUE rb_eGrnError;
|
184
|
+
RB_GRN_VAR VALUE rb_eGrnObjectClosed;
|
185
|
+
RB_GRN_VAR VALUE rb_eGrnNoSuchColumn;
|
186
|
+
RB_GRN_VAR VALUE rb_eGrnInvalidArgument;
|
187
|
+
RB_GRN_VAR VALUE rb_cGrnObject;
|
188
|
+
RB_GRN_VAR VALUE rb_mGrnEncodingSupport;
|
189
|
+
RB_GRN_VAR VALUE rb_cGrnDatabase;
|
190
|
+
RB_GRN_VAR VALUE rb_cGrnTable;
|
191
|
+
RB_GRN_VAR VALUE rb_mGrnTableKeySupport;
|
192
|
+
RB_GRN_VAR VALUE rb_cGrnHash;
|
193
|
+
RB_GRN_VAR VALUE rb_cGrnPatriciaTrie;
|
194
|
+
RB_GRN_VAR VALUE rb_cGrnArray;
|
195
|
+
RB_GRN_VAR VALUE rb_cGrnView;
|
196
|
+
RB_GRN_VAR VALUE rb_cGrnTableCursor;
|
197
|
+
RB_GRN_VAR VALUE rb_mGrnTableCursorKeySupport;
|
198
|
+
RB_GRN_VAR VALUE rb_cGrnHashCursor;
|
199
|
+
RB_GRN_VAR VALUE rb_cGrnPatriciaTrieCursor;
|
200
|
+
RB_GRN_VAR VALUE rb_cGrnViewCursor;
|
201
|
+
RB_GRN_VAR VALUE rb_cGrnArrayCursor;
|
202
|
+
RB_GRN_VAR VALUE rb_cGrnType;
|
203
|
+
RB_GRN_VAR VALUE rb_cGrnProcedure;
|
204
|
+
RB_GRN_VAR VALUE rb_cGrnColumn;
|
205
|
+
RB_GRN_VAR VALUE rb_cGrnFixSizeColumn;
|
206
|
+
RB_GRN_VAR VALUE rb_cGrnVariableSizeColumn;
|
207
|
+
RB_GRN_VAR VALUE rb_cGrnIndexColumn;
|
208
|
+
RB_GRN_VAR VALUE rb_cGrnAccessor;
|
209
|
+
RB_GRN_VAR VALUE rb_cGrnViewAccessor;
|
210
|
+
RB_GRN_VAR VALUE rb_cGrnRecord;
|
211
|
+
RB_GRN_VAR VALUE rb_cGrnViewRecord;
|
212
|
+
RB_GRN_VAR VALUE rb_cGrnQuery;
|
213
|
+
RB_GRN_VAR VALUE rb_cGrnLogger;
|
214
|
+
RB_GRN_VAR VALUE rb_cGrnSnippet;
|
215
|
+
RB_GRN_VAR VALUE rb_cGrnVariable;
|
216
|
+
RB_GRN_VAR VALUE rb_cGrnOperation;
|
217
|
+
RB_GRN_VAR VALUE rb_cGrnExpression;
|
218
|
+
RB_GRN_VAR VALUE rb_cGrnRecordExpressionBuilder;
|
219
|
+
RB_GRN_VAR VALUE rb_cGrnColumnExpressionBuilder;
|
220
|
+
|
221
|
+
void rb_grn_init_utils (VALUE mGrn);
|
222
|
+
void rb_grn_init_exception (VALUE mGrn);
|
223
|
+
void rb_grn_init_encoding (VALUE mGrn);
|
224
|
+
void rb_grn_init_encoding_support (VALUE mGrn);
|
225
|
+
void rb_grn_init_context (VALUE mGrn);
|
226
|
+
void rb_grn_init_object (VALUE mGrn);
|
227
|
+
void rb_grn_init_database (VALUE mGrn);
|
228
|
+
void rb_grn_init_table (VALUE mGrn);
|
229
|
+
void rb_grn_init_table_key_support (VALUE mGrn);
|
230
|
+
void rb_grn_init_array (VALUE mGrn);
|
231
|
+
void rb_grn_init_hash (VALUE mGrn);
|
232
|
+
void rb_grn_init_patricia_trie (VALUE mGrn);
|
233
|
+
void rb_grn_init_view (VALUE mGrn);
|
234
|
+
void rb_grn_init_table_cursor (VALUE mGrn);
|
235
|
+
void rb_grn_init_table_cursor_key_support (VALUE mGrn);
|
236
|
+
void rb_grn_init_array_cursor (VALUE mGrn);
|
237
|
+
void rb_grn_init_hash_cursor (VALUE mGrn);
|
238
|
+
void rb_grn_init_patricia_trie_cursor (VALUE mGrn);
|
239
|
+
void rb_grn_init_view_cursor (VALUE mGrn);
|
240
|
+
void rb_grn_init_type (VALUE mGrn);
|
241
|
+
void rb_grn_init_procedure (VALUE mGrn);
|
242
|
+
void rb_grn_init_column (VALUE mGrn);
|
243
|
+
void rb_grn_init_fix_size_column (VALUE mGrn);
|
244
|
+
void rb_grn_init_variable_size_column (VALUE mGrn);
|
245
|
+
void rb_grn_init_index_column (VALUE mGrn);
|
246
|
+
void rb_grn_init_accessor (VALUE mGrn);
|
247
|
+
void rb_grn_init_view_accessor (VALUE mGrn);
|
248
|
+
void rb_grn_init_record (VALUE mGrn);
|
249
|
+
void rb_grn_init_view_record (VALUE mGrn);
|
250
|
+
void rb_grn_init_query (VALUE mGrn);
|
251
|
+
void rb_grn_init_variable (VALUE mGrn);
|
252
|
+
void rb_grn_init_operation (VALUE mGrn);
|
253
|
+
void rb_grn_init_expression (VALUE mGrn);
|
254
|
+
void rb_grn_init_expression_builder (VALUE mGrn);
|
255
|
+
void rb_grn_init_logger (VALUE mGrn);
|
256
|
+
void rb_grn_init_snippet (VALUE mGrn);
|
257
|
+
|
258
|
+
VALUE rb_grn_rc_to_exception (grn_rc rc);
|
259
|
+
const char *rb_grn_rc_to_message (grn_rc rc);
|
260
|
+
void rb_grn_rc_check (grn_rc rc,
|
261
|
+
VALUE related_object);
|
262
|
+
|
263
|
+
void rb_grn_context_fin (grn_ctx *context);
|
264
|
+
grn_ctx *rb_grn_context_ensure (VALUE *context);
|
265
|
+
VALUE rb_grn_context_get_default (void);
|
266
|
+
VALUE rb_grn_context_to_exception (grn_ctx *context,
|
267
|
+
VALUE related_object);
|
268
|
+
void rb_grn_context_check (grn_ctx *context,
|
269
|
+
VALUE related_object);
|
270
|
+
grn_obj *rb_grn_context_get_backward_compatibility
|
271
|
+
(grn_ctx *context,
|
272
|
+
const char *name,
|
273
|
+
unsigned int name_size);
|
274
|
+
|
275
|
+
const char *rb_grn_inspect (VALUE object);
|
276
|
+
void rb_grn_scan_options (VALUE options, ...)
|
277
|
+
RB_GRN_GNUC_NULL_TERMINATED;
|
278
|
+
rb_grn_boolean rb_grn_equal_option (VALUE option,
|
279
|
+
const char *key);
|
280
|
+
|
281
|
+
VALUE rb_grn_object_alloc (VALUE klass);
|
282
|
+
void rb_grn_object_bind (VALUE self,
|
283
|
+
VALUE rb_context,
|
284
|
+
RbGrnObject *rb_grn_object,
|
285
|
+
grn_ctx *context,
|
286
|
+
grn_obj *object);
|
287
|
+
void rb_grn_object_free (RbGrnObject *rb_grn_object);
|
288
|
+
void rb_grn_object_assign (VALUE klass,
|
289
|
+
VALUE self,
|
290
|
+
VALUE rb_context,
|
291
|
+
grn_ctx *context,
|
292
|
+
grn_obj *object);
|
293
|
+
void rb_grn_object_deconstruct (RbGrnObject *rb_grn_object,
|
294
|
+
grn_obj **object,
|
295
|
+
grn_ctx **context,
|
296
|
+
grn_id *domain_id,
|
297
|
+
grn_obj **domain,
|
298
|
+
grn_id *range_id,
|
299
|
+
grn_obj **range);
|
300
|
+
|
301
|
+
VALUE rb_grn_object_get_id (VALUE object);
|
302
|
+
VALUE rb_grn_object_array_reference (VALUE object,
|
303
|
+
VALUE rb_id);
|
304
|
+
VALUE rb_grn_object_set_raw (RbGrnObject *rb_grn_object,
|
305
|
+
grn_id id,
|
306
|
+
VALUE rb_value,
|
307
|
+
int flags,
|
308
|
+
VALUE related_object);
|
309
|
+
VALUE rb_grn_object_close (VALUE object);
|
310
|
+
VALUE rb_grn_object_closed_p (VALUE object);
|
311
|
+
VALUE rb_grn_object_inspect_object (VALUE inspected,
|
312
|
+
grn_ctx *context,
|
313
|
+
grn_obj *object);
|
314
|
+
VALUE rb_grn_object_inspect_object_content (VALUE inspected,
|
315
|
+
grn_ctx *context,
|
316
|
+
grn_obj *object);
|
317
|
+
VALUE rb_grn_object_inspect_header (VALUE object,
|
318
|
+
VALUE inspected);
|
319
|
+
VALUE rb_grn_object_inspect_content (VALUE object,
|
320
|
+
VALUE inspected);
|
321
|
+
VALUE rb_grn_object_inspect_footer (VALUE object,
|
322
|
+
VALUE inspected);
|
323
|
+
|
324
|
+
void rb_grn_named_object_bind (RbGrnNamedObject *rb_grn_named_object,
|
325
|
+
grn_ctx *context,
|
326
|
+
grn_obj *object);
|
327
|
+
void rb_grn_named_object_finalizer (grn_ctx *context,
|
328
|
+
grn_obj *column,
|
329
|
+
RbGrnNamedObject *rb_grn_named_object);
|
330
|
+
void rb_grn_named_object_set_name (RbGrnNamedObject *rb_grn_named_object,
|
331
|
+
const char *name,
|
332
|
+
unsigned name_size);
|
333
|
+
|
334
|
+
void rb_grn_table_bind (RbGrnTable *rb_grn_table,
|
335
|
+
grn_ctx *context,
|
336
|
+
grn_obj *table_key_support);
|
337
|
+
void rb_grn_table_finalizer (grn_ctx *context,
|
338
|
+
grn_obj *grn_object,
|
339
|
+
RbGrnTable *rb_grn_table);
|
340
|
+
void rb_grn_table_deconstruct (RbGrnTable *rb_grn_table,
|
341
|
+
grn_obj **table,
|
342
|
+
grn_ctx **context,
|
343
|
+
grn_id *domain_id,
|
344
|
+
grn_obj **domain,
|
345
|
+
grn_obj **value,
|
346
|
+
grn_id *range_id,
|
347
|
+
grn_obj **range,
|
348
|
+
VALUE *columns);
|
349
|
+
|
350
|
+
grn_obj *rb_grn_table_open_raw (int argc,
|
351
|
+
VALUE *argv,
|
352
|
+
grn_ctx **context,
|
353
|
+
VALUE *rb_context);
|
354
|
+
|
355
|
+
VALUE rb_grn_table_delete (VALUE self,
|
356
|
+
VALUE rb_id);
|
357
|
+
VALUE rb_grn_table_array_reference (VALUE self,
|
358
|
+
VALUE rb_id);
|
359
|
+
VALUE rb_grn_table_array_set (VALUE self,
|
360
|
+
VALUE rb_id,
|
361
|
+
VALUE rb_value);
|
362
|
+
VALUE rb_grn_table_get_value (VALUE self,
|
363
|
+
VALUE rb_id);
|
364
|
+
VALUE rb_grn_table_set_value (VALUE self,
|
365
|
+
VALUE rb_id,
|
366
|
+
VALUE rb_value);
|
367
|
+
VALUE rb_grn_table_get_column (VALUE self,
|
368
|
+
VALUE rb_name);
|
369
|
+
VALUE rb_grn_table_get_column_surely (VALUE self,
|
370
|
+
VALUE rb_name);
|
371
|
+
VALUE rb_grn_table_get_column_value_raw (VALUE self,
|
372
|
+
grn_id id,
|
373
|
+
VALUE rb_name);
|
374
|
+
VALUE rb_grn_table_get_column_value (VALUE self,
|
375
|
+
VALUE rb_id,
|
376
|
+
VALUE rb_name);
|
377
|
+
VALUE rb_grn_table_set_column_value_raw (VALUE self,
|
378
|
+
grn_id id,
|
379
|
+
VALUE rb_name,
|
380
|
+
VALUE rb_value);
|
381
|
+
VALUE rb_grn_table_set_column_value (VALUE self,
|
382
|
+
VALUE rb_id,
|
383
|
+
VALUE rb_name,
|
384
|
+
VALUE rb_value);
|
385
|
+
|
386
|
+
grn_ctx *rb_grn_table_cursor_ensure_context (VALUE cursor,
|
387
|
+
VALUE *rb_context);
|
388
|
+
|
389
|
+
void rb_grn_table_key_support_bind (RbGrnTableKeySupport *rb_grn_table_key_support,
|
390
|
+
grn_ctx *context,
|
391
|
+
grn_obj *table_key_support);
|
392
|
+
void rb_grn_table_key_support_finalizer (grn_ctx *context,
|
393
|
+
grn_obj *grn_object,
|
394
|
+
RbGrnTableKeySupport *rb_grn_table_key_support);
|
395
|
+
void rb_grn_table_key_support_deconstruct (RbGrnTableKeySupport *rb_grn_table_key_support,
|
396
|
+
grn_obj **table_key_support,
|
397
|
+
grn_ctx **context,
|
398
|
+
grn_obj **key,
|
399
|
+
grn_id *domain_id,
|
400
|
+
grn_obj **domain,
|
401
|
+
grn_obj **value,
|
402
|
+
grn_id *range_id,
|
403
|
+
grn_obj **range,
|
404
|
+
VALUE *columns);
|
405
|
+
grn_id rb_grn_table_key_support_get (VALUE self,
|
406
|
+
VALUE rb_key);
|
407
|
+
|
408
|
+
void rb_grn_column_bind (RbGrnColumn *rb_grn_column,
|
409
|
+
grn_ctx *context,
|
410
|
+
grn_obj *column);
|
411
|
+
void rb_grn_column_finalizer (grn_ctx *context,
|
412
|
+
grn_obj *column,
|
413
|
+
RbGrnColumn *rb_grn_column);
|
414
|
+
void rb_grn_column_deconstruct (RbGrnColumn *rb_grn_column,
|
415
|
+
grn_obj **column,
|
416
|
+
grn_ctx **context,
|
417
|
+
grn_id *domain_id,
|
418
|
+
grn_obj **domain,
|
419
|
+
grn_obj **value,
|
420
|
+
grn_id *range_id,
|
421
|
+
grn_obj **range);
|
422
|
+
|
423
|
+
void rb_grn_index_column_bind (RbGrnIndexColumn *rb_grn_index_column,
|
424
|
+
grn_ctx *context,
|
425
|
+
grn_obj *object);
|
426
|
+
void rb_grn_index_column_finalizer (grn_ctx *context,
|
427
|
+
grn_obj *grn_object,
|
428
|
+
RbGrnIndexColumn *rb_grn_index_column);
|
429
|
+
void rb_grn_index_column_deconstruct (RbGrnIndexColumn *rb_grn_index_column,
|
430
|
+
grn_obj **column,
|
431
|
+
grn_ctx **context,
|
432
|
+
grn_id *domain_id,
|
433
|
+
grn_obj **domain,
|
434
|
+
grn_obj **value,
|
435
|
+
grn_obj **old_value,
|
436
|
+
grn_id *range_id,
|
437
|
+
grn_obj **range,
|
438
|
+
grn_obj **id_query,
|
439
|
+
grn_obj **string_query);
|
440
|
+
|
441
|
+
void rb_grn_accessor_bind (RbGrnAccessor *rb_grn_accessor,
|
442
|
+
grn_ctx *context,
|
443
|
+
grn_obj *accessor);
|
444
|
+
void rb_grn_accessor_finalizer (grn_ctx *context,
|
445
|
+
grn_obj *accessor,
|
446
|
+
RbGrnAccessor *rb_grn_accessor);
|
447
|
+
|
448
|
+
void rb_grn_expression_bind (RbGrnExpression *rb_grn_expression,
|
449
|
+
grn_ctx *context,
|
450
|
+
grn_obj *expression);
|
451
|
+
void rb_grn_expression_finalizer (grn_ctx *context,
|
452
|
+
grn_obj *grn_object,
|
453
|
+
RbGrnExpression *rb_grn_expression);
|
454
|
+
|
455
|
+
VALUE rb_grn_record_new (VALUE table,
|
456
|
+
grn_id id,
|
457
|
+
VALUE values);
|
458
|
+
VALUE rb_grn_record_new_raw (VALUE table,
|
459
|
+
VALUE id,
|
460
|
+
VALUE values);
|
461
|
+
|
462
|
+
VALUE rb_grn_view_record_new (VALUE view,
|
463
|
+
grn_obj *id);
|
464
|
+
VALUE rb_grn_view_record_new_raw (VALUE view,
|
465
|
+
VALUE id);
|
466
|
+
|
467
|
+
VALUE rb_grn_record_expression_builder_new (VALUE table,
|
468
|
+
VALUE name);
|
469
|
+
VALUE rb_grn_record_expression_builder_build
|
470
|
+
(VALUE self);
|
471
|
+
VALUE rb_grn_column_expression_builder_new (VALUE column,
|
472
|
+
VALUE name,
|
473
|
+
VALUE query);
|
474
|
+
VALUE rb_grn_column_expression_builder_build
|
475
|
+
(VALUE self);
|
476
|
+
|
477
|
+
|
478
|
+
#define RB_GRN_INTERN(string) (ID2SYM(rb_intern(string)))
|
479
|
+
|
480
|
+
#define RVAL2CBOOL(object) (RTEST(object))
|
481
|
+
#define CBOOL2RVAL(boolean) ((boolean) ? Qtrue : Qfalse)
|
482
|
+
|
483
|
+
#define RVAL2GRNENCODING(object, context) \
|
484
|
+
(rb_grn_encoding_from_ruby_object(object, context))
|
485
|
+
#define GRNENCODING2RVAL(encoding) (rb_grn_encoding_to_ruby_object(encoding))
|
486
|
+
|
487
|
+
#define RVAL2GRNCONTEXT(object) (rb_grn_context_from_ruby_object(object))
|
488
|
+
#define GRNCONTEXT2RVAL(context) (rb_grn_context_to_ruby_object(context))
|
489
|
+
|
490
|
+
#define RVAL2GRNOBJECT(rb_object, context) \
|
491
|
+
(rb_grn_object_from_ruby_object(rb_object, context))
|
492
|
+
#define GRNOBJECT2RVAL(klass, context, object, owner) \
|
493
|
+
(rb_grn_object_to_ruby_object(klass, context, object, owner))
|
494
|
+
#define GRNOBJECT2RCLASS(object) (rb_grn_object_to_ruby_class(object))
|
495
|
+
|
496
|
+
/* TODO: MORE BETTER NAME!!! PLEASE!!! */
|
497
|
+
#define RVAL2GRNOBJ(rb_object, context, object) \
|
498
|
+
(rb_grn_obj_from_ruby_object(rb_object, context, object))
|
499
|
+
#define GRNOBJ2RVAL(klass, context, object, related_object) \
|
500
|
+
(rb_grn_obj_to_ruby_object(klass, context, object, related_object))
|
501
|
+
|
502
|
+
#define RVAL2GRNDB(object) (rb_grn_database_from_ruby_object(object))
|
503
|
+
#define GRNDB2RVAL(context, db, owner) \
|
504
|
+
(rb_grn_database_to_ruby_object(context, db, owner))
|
505
|
+
|
506
|
+
#define RVAL2GRNTABLE(object, context)(rb_grn_table_from_ruby_object(object, context))
|
507
|
+
#define GRNTABLE2RVAL(context, table, owner) \
|
508
|
+
(rb_grn_table_to_ruby_object(context, table, owner))
|
509
|
+
|
510
|
+
#define RVAL2GRNTABLECURSOR(object) (rb_grn_table_cursor_from_ruby_object(object))
|
511
|
+
#define GRNTABLECURSOR2RVAL(klass, context, cursor) \
|
512
|
+
(rb_grn_table_cursor_to_ruby_object(klass, context, cursor, RB_GRN_TRUE))
|
513
|
+
#define GRNTABLECURSOR2RCLASS(object) (rb_grn_table_cursor_to_ruby_class(object))
|
514
|
+
|
515
|
+
#define RVAL2GRNCOLUMN(object, context) \
|
516
|
+
(rb_grn_column_from_ruby_object(object, context))
|
517
|
+
#define GRNCOLUMN2RVAL(klass, context, column, owner) \
|
518
|
+
(rb_grn_column_to_ruby_object(klass, context, column, owner))
|
519
|
+
|
520
|
+
#define RVAL2GRNQUERY(object) (rb_grn_query_from_ruby_object(object))
|
521
|
+
#define GRNQUERY2RVAL(context, column)(rb_grn_query_to_ruby_object(context, column))
|
522
|
+
|
523
|
+
#define RVAL2GRNOPERATOR(object) (rb_grn_operator_from_ruby_object(object))
|
524
|
+
|
525
|
+
#define RVAL2GRNLOGGER(object) (rb_grn_logger_from_ruby_object(object))
|
526
|
+
|
527
|
+
#define RVAL2GRNBULK(object, context, bulk) \
|
528
|
+
(rb_grn_bulk_from_ruby_object(object, context, bulk))
|
529
|
+
#define RVAL2GRNBULK_WITH_TYPE(object, context, bulk, type_id, type) \
|
530
|
+
(rb_grn_bulk_from_ruby_object_with_type(object, context, bulk, type_id, type))
|
531
|
+
#define GRNBULK2RVAL(context, bulk, range, related_object) \
|
532
|
+
(rb_grn_bulk_to_ruby_object(context, bulk, range, related_object))
|
533
|
+
|
534
|
+
#define RVAL2GRNVECTOR(object, context, vector) \
|
535
|
+
(rb_grn_vector_from_ruby_object(object, context, vector))
|
536
|
+
#define GRNVECTOR2RVAL(context, vector) \
|
537
|
+
(rb_grn_vector_to_ruby_object(context, vector))
|
538
|
+
|
539
|
+
#define RVAL2GRNUVECTOR(object, context, uvector, related_object) \
|
540
|
+
(rb_grn_uvector_from_ruby_object(object, context, uvector, related_object))
|
541
|
+
#define GRNUVECTOR2RVAL(context, uvector) \
|
542
|
+
(rb_grn_uvector_to_ruby_object(context, uvector))
|
543
|
+
|
544
|
+
#define GRNVALUE2RVAL(context, value, range, related_object) \
|
545
|
+
(rb_grn_value_to_ruby_object(context, value, range, related_object))
|
546
|
+
|
547
|
+
#define RVAL2GRNID(object, context, table, related_object) \
|
548
|
+
(rb_grn_id_from_ruby_object(object, context, table, related_object))
|
549
|
+
|
550
|
+
#define GRNKEY2RVAL(context, key, key_size, table, related_object) \
|
551
|
+
(rb_grn_key_to_ruby_object(context, key, key_size, table, related_object))
|
552
|
+
#define RVAL2GRNKEY(object, context, key, domain_id, domain, related_object) \
|
553
|
+
(rb_grn_key_from_ruby_object(object, context, key, domain_id, \
|
554
|
+
domain, related_object))
|
555
|
+
|
556
|
+
#define GRNVARIABLE2RVAL(context, variable) \
|
557
|
+
(rb_grn_variable_to_ruby_object(context, variable))
|
558
|
+
#define RVAL2GRNVARIABLE(object, context) \
|
559
|
+
(rb_grn_variable_from_ruby_object(object, context))
|
560
|
+
|
561
|
+
#define GRNSNIPPET2RVAL(context, snippet, owner) \
|
562
|
+
(rb_grn_snippet_to_ruby_object(context, snippet, owner))
|
563
|
+
#define RVAL2GRNSNIPPET(snippet) \
|
564
|
+
(rb_grn_snippet_from_ruby_object(snippet))
|
565
|
+
|
566
|
+
|
567
|
+
grn_encoding rb_grn_encoding_from_ruby_object (VALUE object,
|
568
|
+
grn_ctx *context);
|
569
|
+
VALUE rb_grn_encoding_to_ruby_object (grn_encoding encoding);
|
570
|
+
#ifdef HAVE_RUBY_ENCODING_H
|
571
|
+
rb_encoding *rb_grn_encoding_to_ruby_encoding (grn_encoding encoding);
|
572
|
+
#endif
|
573
|
+
|
574
|
+
grn_ctx *rb_grn_context_from_ruby_object (VALUE object);
|
575
|
+
VALUE rb_grn_context_to_ruby_object (grn_ctx *context);
|
576
|
+
VALUE rb_grn_context_rb_string_new (grn_ctx *context,
|
577
|
+
const char *string,
|
578
|
+
long length);
|
579
|
+
VALUE rb_grn_context_rb_string_encode (grn_ctx *context,
|
580
|
+
VALUE rb_string);
|
581
|
+
|
582
|
+
grn_obj *rb_grn_object_from_ruby_object (VALUE object,
|
583
|
+
grn_ctx **context);
|
584
|
+
VALUE rb_grn_object_to_ruby_object (VALUE klass,
|
585
|
+
grn_ctx *context,
|
586
|
+
grn_obj *object,
|
587
|
+
rb_grn_boolean owner);
|
588
|
+
VALUE rb_grn_object_to_ruby_class (grn_obj *object);
|
589
|
+
|
590
|
+
grn_obj *rb_grn_database_from_ruby_object (VALUE object);
|
591
|
+
VALUE rb_grn_database_to_ruby_object (grn_ctx *context,
|
592
|
+
grn_obj *db,
|
593
|
+
rb_grn_boolean owner);
|
594
|
+
|
595
|
+
grn_obj *rb_grn_table_from_ruby_object (VALUE object,
|
596
|
+
grn_ctx **context);
|
597
|
+
VALUE rb_grn_table_to_ruby_object (grn_ctx *context,
|
598
|
+
grn_obj *table,
|
599
|
+
rb_grn_boolean owner);
|
600
|
+
|
601
|
+
grn_table_cursor *
|
602
|
+
rb_grn_table_cursor_from_ruby_object (VALUE object,
|
603
|
+
grn_ctx **context);
|
604
|
+
VALUE rb_grn_table_cursor_to_ruby_object (VALUE klass,
|
605
|
+
grn_ctx *context,
|
606
|
+
grn_table_cursor *cursor,
|
607
|
+
rb_grn_boolean owner);
|
608
|
+
VALUE rb_grn_table_cursor_to_ruby_class (grn_table_cursor *cursor);
|
609
|
+
void rb_grn_table_cursor_deconstruct (RbGrnTableCursor *rb_grn_table_cursor,
|
610
|
+
grn_table_cursor **cursor,
|
611
|
+
grn_ctx **context,
|
612
|
+
grn_id *domain_id,
|
613
|
+
grn_obj **domain,
|
614
|
+
grn_id *range_id,
|
615
|
+
grn_obj **range);
|
616
|
+
|
617
|
+
grn_obj *rb_grn_column_from_ruby_object (VALUE object,
|
618
|
+
grn_ctx **context);
|
619
|
+
VALUE rb_grn_column_to_ruby_object (VALUE klass,
|
620
|
+
grn_ctx *context,
|
621
|
+
grn_obj *column,
|
622
|
+
rb_grn_boolean owner);
|
623
|
+
|
624
|
+
grn_query *rb_grn_query_from_ruby_object (VALUE object);
|
625
|
+
VALUE rb_grn_query_to_ruby_object (grn_ctx *context,
|
626
|
+
grn_query *query);
|
627
|
+
|
628
|
+
grn_operator rb_grn_operator_from_ruby_object (VALUE object);
|
629
|
+
|
630
|
+
grn_logger_info *
|
631
|
+
rb_grn_logger_from_ruby_object (VALUE object);
|
632
|
+
|
633
|
+
grn_obj *rb_grn_bulk_from_ruby_object (VALUE object,
|
634
|
+
grn_ctx *context,
|
635
|
+
grn_obj *bulk);
|
636
|
+
grn_obj *rb_grn_bulk_from_ruby_object_with_type
|
637
|
+
(VALUE object,
|
638
|
+
grn_ctx *context,
|
639
|
+
grn_obj *bulk,
|
640
|
+
grn_id type_id,
|
641
|
+
grn_obj *type);
|
642
|
+
VALUE rb_grn_bulk_to_ruby_object (grn_ctx *context,
|
643
|
+
grn_obj *bulk,
|
644
|
+
grn_obj *range,
|
645
|
+
VALUE related_object);
|
646
|
+
grn_obj *rb_grn_vector_from_ruby_object (VALUE object,
|
647
|
+
grn_ctx *context,
|
648
|
+
grn_obj *vector);
|
649
|
+
VALUE rb_grn_vector_to_ruby_object (grn_ctx *context,
|
650
|
+
grn_obj *vector);
|
651
|
+
grn_obj *rb_grn_uvector_from_ruby_object (VALUE object,
|
652
|
+
grn_ctx *context,
|
653
|
+
grn_obj *uvector,
|
654
|
+
VALUE related_object);
|
655
|
+
VALUE rb_grn_uvector_to_ruby_object (grn_ctx *context,
|
656
|
+
grn_obj *uvector);
|
657
|
+
|
658
|
+
VALUE rb_grn_value_to_ruby_object (grn_ctx *context,
|
659
|
+
grn_obj *value,
|
660
|
+
grn_obj *range,
|
661
|
+
VALUE related_object);
|
662
|
+
|
663
|
+
grn_id rb_grn_id_from_ruby_object (VALUE object,
|
664
|
+
grn_ctx *context,
|
665
|
+
grn_obj *table,
|
666
|
+
VALUE related_object);
|
667
|
+
|
668
|
+
VALUE rb_grn_key_to_ruby_object (grn_ctx *context,
|
669
|
+
const void *key,
|
670
|
+
int key_size,
|
671
|
+
grn_obj *table,
|
672
|
+
VALUE related_object);
|
673
|
+
grn_obj *rb_grn_key_from_ruby_object (VALUE rb_key,
|
674
|
+
grn_ctx *context,
|
675
|
+
grn_obj *key,
|
676
|
+
grn_id domain_id,
|
677
|
+
grn_obj *domain,
|
678
|
+
VALUE related_object);
|
679
|
+
|
680
|
+
VALUE rb_grn_variable_to_ruby_object (grn_ctx *context,
|
681
|
+
grn_obj *variable);
|
682
|
+
grn_obj *rb_grn_variable_from_ruby_object (VALUE rb_variable,
|
683
|
+
grn_ctx **context);
|
684
|
+
|
685
|
+
grn_obj *rb_grn_obj_from_ruby_object (VALUE rb_object,
|
686
|
+
grn_ctx *context,
|
687
|
+
grn_obj **obj);
|
688
|
+
VALUE rb_grn_obj_to_ruby_object (VALUE klass,
|
689
|
+
grn_ctx *context,
|
690
|
+
grn_obj *obj,
|
691
|
+
VALUE related_object);
|
692
|
+
|
693
|
+
grn_snip *rb_grn_snippet_from_ruby_object (VALUE rb_snippet);
|
694
|
+
VALUE rb_grn_snippet_to_ruby_object (grn_ctx *context,
|
695
|
+
grn_snip *snippet,
|
696
|
+
rb_grn_boolean owner);
|
697
|
+
|
698
|
+
RB_GRN_END_DECLS
|
699
|
+
|
700
|
+
#endif
|