-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtokyocabinet_HDB.h
347 lines (313 loc) · 7.98 KB
/
tokyocabinet_HDB.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class tokyocabinet_HDB */
#ifndef _Included_tokyocabinet_HDB
#define _Included_tokyocabinet_HDB
#ifdef __cplusplus
extern "C" {
#endif
#undef tokyocabinet_HDB_ESUCCESS
#define tokyocabinet_HDB_ESUCCESS 0L
#undef tokyocabinet_HDB_ETHREAD
#define tokyocabinet_HDB_ETHREAD 1L
#undef tokyocabinet_HDB_EINVALID
#define tokyocabinet_HDB_EINVALID 2L
#undef tokyocabinet_HDB_ENOFILE
#define tokyocabinet_HDB_ENOFILE 3L
#undef tokyocabinet_HDB_ENOPERM
#define tokyocabinet_HDB_ENOPERM 4L
#undef tokyocabinet_HDB_EMETA
#define tokyocabinet_HDB_EMETA 5L
#undef tokyocabinet_HDB_ERHEAD
#define tokyocabinet_HDB_ERHEAD 6L
#undef tokyocabinet_HDB_EOPEN
#define tokyocabinet_HDB_EOPEN 7L
#undef tokyocabinet_HDB_ECLOSE
#define tokyocabinet_HDB_ECLOSE 8L
#undef tokyocabinet_HDB_ETRUNC
#define tokyocabinet_HDB_ETRUNC 9L
#undef tokyocabinet_HDB_ESYNC
#define tokyocabinet_HDB_ESYNC 10L
#undef tokyocabinet_HDB_ESTAT
#define tokyocabinet_HDB_ESTAT 11L
#undef tokyocabinet_HDB_ESEEK
#define tokyocabinet_HDB_ESEEK 12L
#undef tokyocabinet_HDB_EREAD
#define tokyocabinet_HDB_EREAD 13L
#undef tokyocabinet_HDB_EWRITE
#define tokyocabinet_HDB_EWRITE 14L
#undef tokyocabinet_HDB_EMMAP
#define tokyocabinet_HDB_EMMAP 15L
#undef tokyocabinet_HDB_ELOCK
#define tokyocabinet_HDB_ELOCK 16L
#undef tokyocabinet_HDB_EUNLINK
#define tokyocabinet_HDB_EUNLINK 17L
#undef tokyocabinet_HDB_ERENAME
#define tokyocabinet_HDB_ERENAME 18L
#undef tokyocabinet_HDB_EMKDIR
#define tokyocabinet_HDB_EMKDIR 19L
#undef tokyocabinet_HDB_ERMDIR
#define tokyocabinet_HDB_ERMDIR 20L
#undef tokyocabinet_HDB_EKEEP
#define tokyocabinet_HDB_EKEEP 21L
#undef tokyocabinet_HDB_ENOREC
#define tokyocabinet_HDB_ENOREC 22L
#undef tokyocabinet_HDB_EMISC
#define tokyocabinet_HDB_EMISC 9999L
#undef tokyocabinet_HDB_TLARGE
#define tokyocabinet_HDB_TLARGE 1L
#undef tokyocabinet_HDB_TDEFLATE
#define tokyocabinet_HDB_TDEFLATE 2L
#undef tokyocabinet_HDB_TBZIP
#define tokyocabinet_HDB_TBZIP 4L
#undef tokyocabinet_HDB_TTCBS
#define tokyocabinet_HDB_TTCBS 8L
#undef tokyocabinet_HDB_OREADER
#define tokyocabinet_HDB_OREADER 1L
#undef tokyocabinet_HDB_OWRITER
#define tokyocabinet_HDB_OWRITER 2L
#undef tokyocabinet_HDB_OCREAT
#define tokyocabinet_HDB_OCREAT 4L
#undef tokyocabinet_HDB_OTRUNC
#define tokyocabinet_HDB_OTRUNC 8L
#undef tokyocabinet_HDB_ONOLCK
#define tokyocabinet_HDB_ONOLCK 16L
#undef tokyocabinet_HDB_OLCKNB
#define tokyocabinet_HDB_OLCKNB 32L
#undef tokyocabinet_HDB_OTSYNC
#define tokyocabinet_HDB_OTSYNC 64L
/*
* Class: tokyocabinet_HDB
* Method: errmsg
* Signature: (I)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_tokyocabinet_HDB_errmsg
(JNIEnv *, jclass, jint);
/*
* Class: tokyocabinet_HDB
* Method: init
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_tokyocabinet_HDB_init
(JNIEnv *, jclass);
/*
* Class: tokyocabinet_HDB
* Method: ecode
* Signature: ()I
*/
JNIEXPORT jint JNICALL Java_tokyocabinet_HDB_ecode
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: tune
* Signature: (JIII)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_tune
(JNIEnv *, jobject, jlong, jint, jint, jint);
/*
* Class: tokyocabinet_HDB
* Method: setcache
* Signature: (I)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_setcache
(JNIEnv *, jobject, jint);
/*
* Class: tokyocabinet_HDB
* Method: setxmsiz
* Signature: (J)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_setxmsiz
(JNIEnv *, jobject, jlong);
/*
* Class: tokyocabinet_HDB
* Method: setdfunit
* Signature: (I)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_setdfunit
(JNIEnv *, jobject, jint);
/*
* Class: tokyocabinet_HDB
* Method: open
* Signature: (Ljava/lang/String;I)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_open
(JNIEnv *, jobject, jstring, jint);
/*
* Class: tokyocabinet_HDB
* Method: close
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_close
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: put
* Signature: ([B[B)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_put
(JNIEnv *, jobject, jbyteArray, jbyteArray);
/*
* Class: tokyocabinet_HDB
* Method: putkeep
* Signature: ([B[B)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_putkeep
(JNIEnv *, jobject, jbyteArray, jbyteArray);
/*
* Class: tokyocabinet_HDB
* Method: putcat
* Signature: ([B[B)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_putcat
(JNIEnv *, jobject, jbyteArray, jbyteArray);
/*
* Class: tokyocabinet_HDB
* Method: putasync
* Signature: ([B[B)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_putasync
(JNIEnv *, jobject, jbyteArray, jbyteArray);
/*
* Class: tokyocabinet_HDB
* Method: out
* Signature: ([B)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_out
(JNIEnv *, jobject, jbyteArray);
/*
* Class: tokyocabinet_HDB
* Method: get
* Signature: ([B)[B
*/
JNIEXPORT jbyteArray JNICALL Java_tokyocabinet_HDB_get
(JNIEnv *, jobject, jbyteArray);
/*
* Class: tokyocabinet_HDB
* Method: vsiz
* Signature: ([B)I
*/
JNIEXPORT jint JNICALL Java_tokyocabinet_HDB_vsiz
(JNIEnv *, jobject, jbyteArray);
/*
* Class: tokyocabinet_HDB
* Method: iterinit
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_iterinit
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: iternext
* Signature: ()[B
*/
JNIEXPORT jbyteArray JNICALL Java_tokyocabinet_HDB_iternext
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: fwmkeys
* Signature: ([BI)Ljava/util/List;
*/
JNIEXPORT jobject JNICALL Java_tokyocabinet_HDB_fwmkeys
(JNIEnv *, jobject, jbyteArray, jint);
/*
* Class: tokyocabinet_HDB
* Method: addint
* Signature: ([BI)I
*/
JNIEXPORT jint JNICALL Java_tokyocabinet_HDB_addint
(JNIEnv *, jobject, jbyteArray, jint);
/*
* Class: tokyocabinet_HDB
* Method: adddouble
* Signature: ([BD)D
*/
JNIEXPORT jdouble JNICALL Java_tokyocabinet_HDB_adddouble
(JNIEnv *, jobject, jbyteArray, jdouble);
/*
* Class: tokyocabinet_HDB
* Method: sync
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_sync
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: optimize
* Signature: (JIII)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_optimize
(JNIEnv *, jobject, jlong, jint, jint, jint);
/*
* Class: tokyocabinet_HDB
* Method: vanish
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_vanish
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: copy
* Signature: (Ljava/lang/String;)Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_copy
(JNIEnv *, jobject, jstring);
/*
* Class: tokyocabinet_HDB
* Method: tranbegin
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_tranbegin
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: trancommit
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_trancommit
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: tranabort
* Signature: ()Z
*/
JNIEXPORT jboolean JNICALL Java_tokyocabinet_HDB_tranabort
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: path
* Signature: ()Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL Java_tokyocabinet_HDB_path
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: rnum
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_tokyocabinet_HDB_rnum
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: fsiz
* Signature: ()J
*/
JNIEXPORT jlong JNICALL Java_tokyocabinet_HDB_fsiz
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: initialize
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_tokyocabinet_HDB_initialize
(JNIEnv *, jobject);
/*
* Class: tokyocabinet_HDB
* Method: destruct
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_tokyocabinet_HDB_destruct
(JNIEnv *, jobject);
#ifdef __cplusplus
}
#endif
#endif