lib/Lucy.xs

filter: Statementstmt 27.8% 4692 / 16851 Branchbran 19.5% 787 / 4034 Conditioncond n/a MC/DCmcdc n/a Subroutinesub n/a Podpod n/a totaltotal 26.2% 5479 / 20885 CC 0 SCAR 0
CC
0
Cov
0%
CRAP 0
« lib/Lucy/Test.xs ↑ Summary autogen/include/Lucy/Analysis/Token.h »
1 /*
2 * ***********************************************
3 *
4 * !!!! DO NOT EDIT !!!!
5 *
6 * This file was auto-generated by Build.PL.
7 *
8 * ***********************************************
9 *
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed with
12 * this work for additional information regarding copyright ownership.
13 * The ASF licenses this file to You under the Apache License, Version 2.0
14 * (the "License"); you may not use this file except in compliance with
15 * the License. You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 */
25  
26 #define CFP_LUCY
27  
28 #include "XSBind.h"
29 #include "lucy_perl.h"
30 #include "Lucy/Analysis/Analyzer.h"
31 #include "Lucy/Analysis/CaseFolder.h"
32 #include "Lucy/Analysis/EasyAnalyzer.h"
33 #include "Lucy/Analysis/Normalizer.h"
34 #include "Lucy/Analysis/PolyAnalyzer.h"
35 #include "Lucy/Analysis/RegexTokenizer.h"
36 #include "Lucy/Analysis/SnowballStemmer.h"
37 #include "Lucy/Analysis/SnowballStopFilter.h"
38 #include "Lucy/Analysis/StandardTokenizer.h"
39 #include "Lucy/Analysis/Inversion.h"
40 #include "Lucy/Analysis/Token.h"
41 #include "Lucy/Document/Doc.h"
42 #include "Lucy/Document/HitDoc.h"
43 #include "Lucy/Highlight/HeatMap.h"
44 #include "Lucy/Highlight/Highlighter.h"
45 #include "Lucy/Index/BackgroundMerger.h"
46 #include "Lucy/Index/SortWriter.h"
47 #include "Lucy/Index/DataReader.h"
48 #include "Lucy/Index/DeletionsReader.h"
49 #include "Lucy/Index/DeletionsReader.h"
50 #include "Lucy/Index/DeletionsReader.h"
51 #include "Lucy/Index/DocReader.h"
52 #include "Lucy/Index/DocReader.h"
53 #include "Lucy/Index/DocReader.h"
54 #include "Lucy/Index/HighlightReader.h"
55 #include "Lucy/Index/HighlightReader.h"
56 #include "Lucy/Index/HighlightReader.h"
57 #include "Lucy/Index/IndexReader.h"
58 #include "Lucy/Index/PolyReader.h"
59 #include "Lucy/Index/SegReader.h"
60 #include "Lucy/Index/LexiconReader.h"
61 #include "Lucy/Index/LexiconReader.h"
62 #include "Lucy/Index/LexiconReader.h"
63 #include "Lucy/Index/PostingListReader.h"
64 #include "Lucy/Index/PostingListReader.h"
65 #include "Lucy/Index/SortReader.h"
66 #include "Lucy/Index/SortReader.h"
67 #include "Lucy/Index/DataWriter.h"
68 #include "Lucy/Index/DeletionsWriter.h"
69 #include "Lucy/Index/DeletionsWriter.h"
70 #include "Lucy/Index/DocWriter.h"
71 #include "Lucy/Index/HighlightWriter.h"
72 #include "Lucy/Index/LexiconWriter.h"
73 #include "Lucy/Index/Posting.h"
74 #include "Lucy/Index/Posting/MatchPosting.h"
75 #include "Lucy/Index/Posting/RawPosting.h"
76 #include "Lucy/Index/PostingListWriter.h"
77 #include "Lucy/Index/SegWriter.h"
78 #include "Lucy/Index/SortWriter.h"
79 #include "Lucy/Index/DocVector.h"
80 #include "Lucy/Index/FilePurger.h"
81 #include "Lucy/Index/IndexManager.h"
82 #include "Lucy/Index/Indexer.h"
83 #include "Lucy/Index/Inverter.h"
84 #include "Lucy/Index/Inverter.h"
85 #include "Lucy/Index/Lexicon.h"
86 #include "Lucy/Index/LexIndex.h"
87 #include "Lucy/Index/PolyLexicon.h"
88 #include "Lucy/Index/RawLexicon.h"
89 #include "Lucy/Index/SegLexicon.h"
90 #include "Lucy/Index/Segment.h"
91 #include "Lucy/Index/Similarity.h"
92 #include "Lucy/Index/Snapshot.h"
93 #include "Lucy/Index/SortCache.h"
94 #include "Lucy/Index/SortCache/NumericSortCache.h"
95 #include "Lucy/Index/SortCache/NumericSortCache.h"
96 #include "Lucy/Index/SortCache/NumericSortCache.h"
97 #include "Lucy/Index/SortCache/NumericSortCache.h"
98 #include "Lucy/Index/SortCache/NumericSortCache.h"
99 #include "Lucy/Index/SortCache/TextSortCache.h"
100 #include "Lucy/Index/SortFieldWriter.h"
101 #include "Lucy/Index/TermInfo.h"
102 #include "Lucy/Index/TermVector.h"
103 #include "Lucy/Object/BitVector.h"
104 #include "Lucy/Index/BitVecDelDocs.h"
105 #include "Lucy/Object/I32Array.h"
106 #include "Lucy/Plan/Architecture.h"
107 #include "Lucy/Plan/FieldType.h"
108 #include "Lucy/Plan/BlobType.h"
109 #include "Lucy/Plan/NumericType.h"
110 #include "Lucy/Plan/NumericType.h"
111 #include "Lucy/Plan/NumericType.h"
112 #include "Lucy/Plan/NumericType.h"
113 #include "Lucy/Plan/NumericType.h"
114 #include "Lucy/Plan/NumericType.h"
115 #include "Lucy/Plan/NumericType.h"
116 #include "Lucy/Plan/TextType.h"
117 #include "Lucy/Plan/FullTextType.h"
118 #include "Lucy/Plan/StringType.h"
119 #include "Lucy/Plan/Schema.h"
120 #include "Lucy/Search/Collector.h"
121 #include "Lucy/Search/Collector.h"
122 #include "Lucy/Search/Collector.h"
123 #include "Lucy/Search/Collector/SortCollector.h"
124 #include "Lucy/Search/Hits.h"
125 #include "Lucy/Search/MatchDoc.h"
126 #include "Lucy/Search/Matcher.h"
127 #include "Lucy/Index/PostingList.h"
128 #include "Lucy/Index/RawPostingList.h"
129 #include "Lucy/Index/SegPostingList.h"
130 #include "Lucy/Search/BitVecMatcher.h"
131 #include "Lucy/Search/MatchAllMatcher.h"
132 #include "Lucy/Search/NoMatchMatcher.h"
133 #include "Lucy/Search/PhraseMatcher.h"
134 #include "Lucy/Search/PolyMatcher.h"
135 #include "Lucy/Search/ANDMatcher.h"
136 #include "Lucy/Search/NOTMatcher.h"
137 #include "Lucy/Search/ORMatcher.h"
138 #include "Lucy/Search/ORMatcher.h"
139 #include "Lucy/Search/RequiredOptionalMatcher.h"
140 #include "Lucy/Search/RangeMatcher.h"
141 #include "Lucy/Search/SeriesMatcher.h"
142 #include "Lucy/Search/TermMatcher.h"
143 #include "Lucy/Index/Posting/MatchPosting.h"
144 #include "Lucy/Index/Posting/ScorePosting.h"
145 #include "Lucy/Index/Posting/RichPosting.h"
146 #include "LucyX/Search/FilterMatcher.h"
147 #include "LucyX/Search/MockMatcher.h"
148 #include "LucyX/Search/ProximityMatcher.h"
149 #include "Lucy/Search/Query.h"
150 #include "Lucy/Search/Compiler.h"
151 #include "Lucy/Search/MatchAllQuery.h"
152 #include "Lucy/Search/NoMatchQuery.h"
153 #include "Lucy/Search/PhraseQuery.h"
154 #include "Lucy/Search/PolyQuery.h"
155 #include "Lucy/Search/ANDQuery.h"
156 #include "Lucy/Search/NOTQuery.h"
157 #include "Lucy/Search/ORQuery.h"
158 #include "Lucy/Search/RequiredOptionalQuery.h"
159 #include "Lucy/Search/RangeQuery.h"
160 #include "Lucy/Search/TermQuery.h"
161 #include "LucyX/Search/ProximityQuery.h"
162 #include "Lucy/Search/LeafQuery.h"
163 #include "Lucy/Search/MatchAllQuery.h"
164 #include "Lucy/Search/NoMatchQuery.h"
165 #include "Lucy/Search/PhraseQuery.h"
166 #include "Lucy/Search/PolyQuery.h"
167 #include "Lucy/Search/ANDQuery.h"
168 #include "Lucy/Search/NOTQuery.h"
169 #include "Lucy/Search/ORQuery.h"
170 #include "Lucy/Search/RequiredOptionalQuery.h"
171 #include "Lucy/Search/RangeQuery.h"
172 #include "Lucy/Search/TermQuery.h"
173 #include "LucyX/Search/ProximityQuery.h"
174 #include "Lucy/Search/QueryParser.h"
175 #include "Lucy/Search/QueryParser/ParserElem.h"
176 #include "Lucy/Search/QueryParser/QueryLexer.h"
177 #include "Lucy/Search/Searcher.h"
178 #include "Lucy/Search/IndexSearcher.h"
179 #include "Lucy/Search/PolySearcher.h"
180 #include "Lucy/Search/SortRule.h"
181 #include "Lucy/Search/SortSpec.h"
182 #include "Lucy/Search/Span.h"
183 #include "Lucy/Search/TopDocs.h"
184 #include "Lucy/Simple.h"
185 #include "Lucy/Store/CompoundFileWriter.h"
186 #include "Lucy/Store/DirHandle.h"
187 #include "Lucy/Store/CompoundFileReader.h"
188 #include "Lucy/Store/FSDirHandle.h"
189 #include "Lucy/Store/RAMDirHandle.h"
190 #include "Lucy/Store/ErrorMessage.h"
191 #include "Lucy/Store/FileHandle.h"
192 #include "Lucy/Store/FSFileHandle.h"
193 #include "Lucy/Store/RAMFileHandle.h"
194 #include "Lucy/Store/FileWindow.h"
195 #include "Lucy/Store/Folder.h"
196 #include "Lucy/Store/CompoundFileReader.h"
197 #include "Lucy/Store/FSFolder.h"
198 #include "Lucy/Store/RAMFolder.h"
199 #include "Lucy/Store/InStream.h"
200 #include "Lucy/Store/Lock.h"
201 #include "Lucy/Store/LockFileLock.h"
202 #include "Lucy/Store/Lock.h"
203 #include "Lucy/Store/OutStream.h"
204 #include "Lucy/Store/RAMFile.h"
205 #include "Lucy/Util/Debug.h"
206 #include "Lucy/Util/Freezer.h"
207 #include "Lucy/Util/IndexFileNames.h"
208 #include "Lucy/Util/Json.h"
209 #include "Lucy/Util/MemoryPool.h"
210 #include "Lucy/Util/NumberUtils.h"
211 #include "Lucy/Util/PriorityQueue.h"
212 #include "Lucy/Index/PolyLexicon.h"
213 #include "Lucy/Search/HitQueue.h"
214 #include "Lucy/Util/ProcessID.h"
215 #include "Lucy/Util/Sleep.h"
216 #include "Lucy/Util/SortExternal.h"
217 #include "Lucy/Index/PostingPool.h"
218 #include "Lucy/Index/SortFieldWriter.h"
219 #include "Lucy/Util/BlobSortEx.h"
220 #include "Lucy/Util/Stepper.h"
221 #include "Lucy/Index/Posting.h"
222 #include "Lucy/Index/Posting/MatchPosting.h"
223 #include "Lucy/Index/Posting/ScorePosting.h"
224 #include "Lucy/Index/Posting/RichPosting.h"
225 #include "Lucy/Index/Posting/RawPosting.h"
226 #include "Lucy/Index/SkipStepper.h"
227 #include "Lucy/Index/TermStepper.h"
228 #include "Lucy/Index/Posting/MatchPosting.h"
229 #include "Lucy/Plan/TextType.h"
230 #include "Lucy/Util/StringHelper.h"
231  
232 #ifndef XS_INTERNAL
233 #define XS_INTERNAL XS
234 #endif
235  
236 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_new);
237 7 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_new) {
238 7 dXSARGS;
239 lucy_Analyzer* arg_self;
240 lucy_Analyzer* retval;
241  
242 CFISH_UNUSED_VAR(cv);
243 7 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 7 7
244 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
245 }
246 7 SP -= items;
247  
248 7 arg_self = (lucy_Analyzer*)XSBind_new_blank_obj(aTHX_ ST(0));
249  
250 7 retval = lucy_Analyzer_init(arg_self);
251 7 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
252 7 XSRETURN(1);
253 }
254  
255  
256 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_transform);
257 0 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_transform) {
258 0 dXSARGS;
259 SV *sv;
260 lucy_Analyzer* arg_self;
261 lucy_Inversion* arg_inversion;
262 LUCY_Analyzer_Transform_t method;
263 lucy_Inversion* retval;
264  
265 CFISH_UNUSED_VAR(cv);
266 0 SP -= items;
267 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
268 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
269 }
270  
271 /* Extract vars from Perl stack. */
272 0 arg_self = (lucy_Analyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANALYZER, NULL);
273 0 sv = ST(1);
274 0 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
275  
276 /* Execute */
277 0 method = CFISH_METHOD_PTR(LUCY_ANALYZER, LUCY_Analyzer_Transform);
278 0 retval = method(arg_self, arg_inversion);
279 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
280 0 CFISH_DECREF(retval);
281 0 sv_2mortal( ST(0) );
282 0 XSRETURN(1);
283 }
284  
285 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_transform_text);
286 5 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_transform_text) {
287 5 dXSARGS;
288 SV *sv;
289 lucy_Analyzer* arg_self;
290 cfish_String* arg_text;
291 LUCY_Analyzer_Transform_Text_t method;
292 lucy_Inversion* retval;
293  
294 CFISH_UNUSED_VAR(cv);
295 5 SP -= items;
296 5 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 5 5
297 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
298 }
299  
300 /* Extract vars from Perl stack. */
301 5 arg_self = (lucy_Analyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANALYZER, NULL);
302 5 sv = ST(1);
303 5 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
304  
305 /* Execute */
306 5 method = CFISH_METHOD_PTR(LUCY_ANALYZER, LUCY_Analyzer_Transform_Text);
307 5 retval = method(arg_self, arg_text);
308 5 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
309 5 CFISH_DECREF(retval);
310 5 sv_2mortal( ST(0) );
311 5 XSRETURN(1);
312 }
313  
314 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_split);
315 16 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_split) {
316 16 dXSARGS;
317 SV *sv;
318 lucy_Analyzer* arg_self;
319 cfish_String* arg_text;
320 LUCY_Analyzer_Split_t method;
321 cfish_Vector* retval;
322  
323 CFISH_UNUSED_VAR(cv);
324 16 SP -= items;
325 16 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 16 16
326 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
327 }
328  
329 /* Extract vars from Perl stack. */
330 16 arg_self = (lucy_Analyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANALYZER, NULL);
331 16 sv = ST(1);
332 16 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
333  
334 /* Execute */
335 16 method = CFISH_METHOD_PTR(LUCY_ANALYZER, LUCY_Analyzer_Split);
336 16 retval = method(arg_self, arg_text);
337 16 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
338 16 CFISH_DECREF(retval);
339 16 sv_2mortal( ST(0) );
340 16 XSRETURN(1);
341 }
342  
343 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_dump);
344 0 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_dump) {
345 0 dXSARGS;
346 lucy_Analyzer* arg_self;
347 LUCY_Analyzer_Dump_t method;
348 cfish_Obj* retval;
349  
350 CFISH_UNUSED_VAR(cv);
351 0 SP -= items;
352 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
353 0 XSBind_invalid_args_error(aTHX_ cv, "self");
354 }
355  
356 /* Extract vars from Perl stack. */
357 0 arg_self = (lucy_Analyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANALYZER, NULL);
358  
359 /* Execute */
360 0 method = CFISH_METHOD_PTR(LUCY_ANALYZER, LUCY_Analyzer_Dump);
361 0 retval = method(arg_self);
362 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
363 0 CFISH_DECREF(retval);
364 0 sv_2mortal( ST(0) );
365 0 XSRETURN(1);
366 }
367  
368 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_load);
369 0 XS_INTERNAL(XS_Lucy_Analysis_Analyzer_load) {
370 0 dXSARGS;
371 SV *sv;
372 lucy_Analyzer* arg_self;
373 cfish_Obj* arg_dump;
374 LUCY_Analyzer_Load_t method;
375 cfish_Obj* retval;
376  
377 CFISH_UNUSED_VAR(cv);
378 0 SP -= items;
379 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
380 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
381 }
382  
383 /* Extract vars from Perl stack. */
384 0 arg_self = (lucy_Analyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANALYZER, NULL);
385 0 sv = ST(1);
386 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
387  
388 /* Execute */
389 0 method = CFISH_METHOD_PTR(LUCY_ANALYZER, LUCY_Analyzer_Load);
390 0 retval = method(arg_self, arg_dump);
391 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
392 0 CFISH_DECREF(retval);
393 0 sv_2mortal( ST(0) );
394 0 XSRETURN(1);
395 }
396  
397 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_new);
398 1 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_new) {
399 1 dXSARGS;
400 lucy_CaseFolder* arg_self;
401 lucy_CaseFolder* retval;
402  
403 CFISH_UNUSED_VAR(cv);
404 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
405 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
406 }
407 1 SP -= items;
408  
409 1 arg_self = (lucy_CaseFolder*)XSBind_new_blank_obj(aTHX_ ST(0));
410  
411 1 retval = lucy_CaseFolder_init(arg_self);
412 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
413 1 XSRETURN(1);
414 }
415  
416  
417 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_transform);
418 1 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_transform) {
419 1 dXSARGS;
420 SV *sv;
421 lucy_CaseFolder* arg_self;
422 lucy_Inversion* arg_inversion;
423 LUCY_CaseFolder_Transform_t method;
424 lucy_Inversion* retval;
425  
426 CFISH_UNUSED_VAR(cv);
427 1 SP -= items;
428 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
429 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
430 }
431  
432 /* Extract vars from Perl stack. */
433 1 arg_self = (lucy_CaseFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_CASEFOLDER, NULL);
434 1 sv = ST(1);
435 1 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
436  
437 /* Execute */
438 1 method = CFISH_METHOD_PTR(LUCY_CASEFOLDER, LUCY_CaseFolder_Transform);
439 1 retval = method(arg_self, arg_inversion);
440 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
441 1 CFISH_DECREF(retval);
442 1 sv_2mortal( ST(0) );
443 1 XSRETURN(1);
444 }
445  
446 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_transform_text);
447 1 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_transform_text) {
448 1 dXSARGS;
449 SV *sv;
450 lucy_CaseFolder* arg_self;
451 cfish_String* arg_text;
452 LUCY_CaseFolder_Transform_Text_t method;
453 lucy_Inversion* retval;
454  
455 CFISH_UNUSED_VAR(cv);
456 1 SP -= items;
457 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
458 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
459 }
460  
461 /* Extract vars from Perl stack. */
462 1 arg_self = (lucy_CaseFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_CASEFOLDER, NULL);
463 1 sv = ST(1);
464 1 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
465  
466 /* Execute */
467 1 method = CFISH_METHOD_PTR(LUCY_CASEFOLDER, LUCY_CaseFolder_Transform_Text);
468 1 retval = method(arg_self, arg_text);
469 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
470 1 CFISH_DECREF(retval);
471 1 sv_2mortal( ST(0) );
472 1 XSRETURN(1);
473 }
474  
475 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_equals);
476 0 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_equals) {
477 0 dXSARGS;
478 SV *sv;
479 lucy_CaseFolder* arg_self;
480 cfish_Obj* arg_other;
481 LUCY_CaseFolder_Equals_t method;
482 bool retval;
483  
484 CFISH_UNUSED_VAR(cv);
485 0 SP -= items;
486 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
487 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
488 }
489  
490 /* Extract vars from Perl stack. */
491 0 arg_self = (lucy_CaseFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_CASEFOLDER, NULL);
492 0 sv = ST(1);
493 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
494  
495 /* Execute */
496 0 method = CFISH_METHOD_PTR(LUCY_CASEFOLDER, LUCY_CaseFolder_Equals);
497 0 retval = method(arg_self, arg_other);
498 0 ST(0) = newSViv(!!retval);
499 0 sv_2mortal( ST(0) );
500 0 XSRETURN(1);
501 }
502  
503 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_dump);
504 0 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_dump) {
505 0 dXSARGS;
506 lucy_CaseFolder* arg_self;
507 LUCY_CaseFolder_Dump_t method;
508 cfish_Hash* retval;
509  
510 CFISH_UNUSED_VAR(cv);
511 0 SP -= items;
512 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
513 0 XSBind_invalid_args_error(aTHX_ cv, "self");
514 }
515  
516 /* Extract vars from Perl stack. */
517 0 arg_self = (lucy_CaseFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_CASEFOLDER, NULL);
518  
519 /* Execute */
520 0 method = CFISH_METHOD_PTR(LUCY_CASEFOLDER, LUCY_CaseFolder_Dump);
521 0 retval = method(arg_self);
522 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
523 0 CFISH_DECREF(retval);
524 0 sv_2mortal( ST(0) );
525 0 XSRETURN(1);
526 }
527  
528 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_load);
529 0 XS_INTERNAL(XS_Lucy_Analysis_CaseFolder_load) {
530 0 dXSARGS;
531 SV *sv;
532 lucy_CaseFolder* arg_self;
533 cfish_Obj* arg_dump;
534 LUCY_CaseFolder_Load_t method;
535 lucy_CaseFolder* retval;
536  
537 CFISH_UNUSED_VAR(cv);
538 0 SP -= items;
539 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
540 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
541 }
542  
543 /* Extract vars from Perl stack. */
544 0 arg_self = (lucy_CaseFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_CASEFOLDER, NULL);
545 0 sv = ST(1);
546 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
547  
548 /* Execute */
549 0 method = CFISH_METHOD_PTR(LUCY_CASEFOLDER, LUCY_CaseFolder_Load);
550 0 retval = method(arg_self, arg_dump);
551 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
552 0 CFISH_DECREF(retval);
553 0 sv_2mortal( ST(0) );
554 0 XSRETURN(1);
555 }
556  
557 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_new);
558 3 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_new) {
559 3 dXSARGS;
560 static const XSBind_ParamSpec param_specs[1] = {
561 XSBIND_PARAM("language", 1)
562 };
563 int32_t locations[1];
564 SV *sv;
565 lucy_EasyAnalyzer* arg_self;
566 cfish_String* arg_language;
567 lucy_EasyAnalyzer* retval;
568  
569 CFISH_UNUSED_VAR(cv);
570 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
571 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
572 }
573 3 SP -= items;
574  
575 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
576 locations, 1);
577 3 sv = ST(locations[0]);
578 3 arg_language = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "language", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
579 3 arg_self = (lucy_EasyAnalyzer*)XSBind_new_blank_obj(aTHX_ ST(0));
580  
581 3 retval = lucy_EasyAnalyzer_init(arg_self, arg_language);
582 3 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
583 3 XSRETURN(1);
584 }
585  
586  
587 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_transform);
588 1 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_transform) {
589 1 dXSARGS;
590 SV *sv;
591 lucy_EasyAnalyzer* arg_self;
592 lucy_Inversion* arg_inversion;
593 LUCY_EasyAnalyzer_Transform_t method;
594 lucy_Inversion* retval;
595  
596 CFISH_UNUSED_VAR(cv);
597 1 SP -= items;
598 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
599 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
600 }
601  
602 /* Extract vars from Perl stack. */
603 1 arg_self = (lucy_EasyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_EASYANALYZER, NULL);
604 1 sv = ST(1);
605 1 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
606  
607 /* Execute */
608 1 method = CFISH_METHOD_PTR(LUCY_EASYANALYZER, LUCY_EasyAnalyzer_Transform);
609 1 retval = method(arg_self, arg_inversion);
610 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
611 1 CFISH_DECREF(retval);
612 1 sv_2mortal( ST(0) );
613 1 XSRETURN(1);
614 }
615  
616 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_transform_text);
617 1 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_transform_text) {
618 1 dXSARGS;
619 SV *sv;
620 lucy_EasyAnalyzer* arg_self;
621 cfish_String* arg_text;
622 LUCY_EasyAnalyzer_Transform_Text_t method;
623 lucy_Inversion* retval;
624  
625 CFISH_UNUSED_VAR(cv);
626 1 SP -= items;
627 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
628 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
629 }
630  
631 /* Extract vars from Perl stack. */
632 1 arg_self = (lucy_EasyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_EASYANALYZER, NULL);
633 1 sv = ST(1);
634 1 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
635  
636 /* Execute */
637 1 method = CFISH_METHOD_PTR(LUCY_EASYANALYZER, LUCY_EasyAnalyzer_Transform_Text);
638 1 retval = method(arg_self, arg_text);
639 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
640 1 CFISH_DECREF(retval);
641 1 sv_2mortal( ST(0) );
642 1 XSRETURN(1);
643 }
644  
645 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_dump);
646 0 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_dump) {
647 0 dXSARGS;
648 lucy_EasyAnalyzer* arg_self;
649 LUCY_EasyAnalyzer_Dump_t method;
650 cfish_Hash* retval;
651  
652 CFISH_UNUSED_VAR(cv);
653 0 SP -= items;
654 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
655 0 XSBind_invalid_args_error(aTHX_ cv, "self");
656 }
657  
658 /* Extract vars from Perl stack. */
659 0 arg_self = (lucy_EasyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_EASYANALYZER, NULL);
660  
661 /* Execute */
662 0 method = CFISH_METHOD_PTR(LUCY_EASYANALYZER, LUCY_EasyAnalyzer_Dump);
663 0 retval = method(arg_self);
664 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
665 0 CFISH_DECREF(retval);
666 0 sv_2mortal( ST(0) );
667 0 XSRETURN(1);
668 }
669  
670 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_load);
671 0 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_load) {
672 0 dXSARGS;
673 SV *sv;
674 lucy_EasyAnalyzer* arg_self;
675 cfish_Obj* arg_dump;
676 LUCY_EasyAnalyzer_Load_t method;
677 lucy_EasyAnalyzer* retval;
678  
679 CFISH_UNUSED_VAR(cv);
680 0 SP -= items;
681 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
682 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
683 }
684  
685 /* Extract vars from Perl stack. */
686 0 arg_self = (lucy_EasyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_EASYANALYZER, NULL);
687 0 sv = ST(1);
688 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
689  
690 /* Execute */
691 0 method = CFISH_METHOD_PTR(LUCY_EASYANALYZER, LUCY_EasyAnalyzer_Load);
692 0 retval = method(arg_self, arg_dump);
693 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
694 0 CFISH_DECREF(retval);
695 0 sv_2mortal( ST(0) );
696 0 XSRETURN(1);
697 }
698  
699 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_equals);
700 0 XS_INTERNAL(XS_Lucy_Analysis_EasyAnalyzer_equals) {
701 0 dXSARGS;
702 SV *sv;
703 lucy_EasyAnalyzer* arg_self;
704 cfish_Obj* arg_other;
705 LUCY_EasyAnalyzer_Equals_t method;
706 bool retval;
707  
708 CFISH_UNUSED_VAR(cv);
709 0 SP -= items;
710 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
711 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
712 }
713  
714 /* Extract vars from Perl stack. */
715 0 arg_self = (lucy_EasyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_EASYANALYZER, NULL);
716 0 sv = ST(1);
717 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
718  
719 /* Execute */
720 0 method = CFISH_METHOD_PTR(LUCY_EASYANALYZER, LUCY_EasyAnalyzer_Equals);
721 0 retval = method(arg_self, arg_other);
722 0 ST(0) = newSViv(!!retval);
723 0 sv_2mortal( ST(0) );
724 0 XSRETURN(1);
725 }
726  
727 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_new);
728 2 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_new) {
729 2 dXSARGS;
730 static const XSBind_ParamSpec param_specs[3] = {
731 XSBIND_PARAM("normalization_form", 0),
732 XSBIND_PARAM("case_fold", 0),
733 XSBIND_PARAM("strip_accents", 0)
734 };
735 int32_t locations[3];
736 SV *sv;
737 lucy_Normalizer* arg_self;
738 cfish_String* arg_normalization_form;
739 bool arg_case_fold;
740 bool arg_strip_accents;
741 lucy_Normalizer* retval;
742  
743 CFISH_UNUSED_VAR(cv);
744 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
745 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
746 }
747 2 SP -= items;
748  
749 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
750 locations, 3);
751 2 sv = ST(locations[0]);
752 2 ▶ arg_normalization_form = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "normalization_form", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_normalization_form = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "normalization_form", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 2 2
753 2 sv = ST(locations[1]);
754 2 ▶ arg_case_fold = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_case_fold = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 2 2
arg_case_fold = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
755 2 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 2 2
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
756 2 sv = ST(locations[2]);
757 2 ▶ arg_strip_accents = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_strip_accents = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 2 2
arg_strip_accents = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
758 2 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 2 2
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
759 2 arg_self = (lucy_Normalizer*)XSBind_new_blank_obj(aTHX_ ST(0));
760  
761 2 retval = lucy_Normalizer_init(arg_self, arg_normalization_form, arg_case_fold, arg_strip_accents);
762 2 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
763 2 XSRETURN(1);
764 }
765  
766  
767 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_transform);
768 1 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_transform) {
769 1 dXSARGS;
770 SV *sv;
771 lucy_Normalizer* arg_self;
772 lucy_Inversion* arg_inversion;
773 LUCY_Normalizer_Transform_t method;
774 lucy_Inversion* retval;
775  
776 CFISH_UNUSED_VAR(cv);
777 1 SP -= items;
778 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
779 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
780 }
781  
782 /* Extract vars from Perl stack. */
783 1 arg_self = (lucy_Normalizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NORMALIZER, NULL);
784 1 sv = ST(1);
785 1 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
786  
787 /* Execute */
788 1 method = CFISH_METHOD_PTR(LUCY_NORMALIZER, LUCY_Normalizer_Transform);
789 1 retval = method(arg_self, arg_inversion);
790 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
791 1 CFISH_DECREF(retval);
792 1 sv_2mortal( ST(0) );
793 1 XSRETURN(1);
794 }
795  
796 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_dump);
797 0 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_dump) {
798 0 dXSARGS;
799 lucy_Normalizer* arg_self;
800 LUCY_Normalizer_Dump_t method;
801 cfish_Hash* retval;
802  
803 CFISH_UNUSED_VAR(cv);
804 0 SP -= items;
805 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
806 0 XSBind_invalid_args_error(aTHX_ cv, "self");
807 }
808  
809 /* Extract vars from Perl stack. */
810 0 arg_self = (lucy_Normalizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NORMALIZER, NULL);
811  
812 /* Execute */
813 0 method = CFISH_METHOD_PTR(LUCY_NORMALIZER, LUCY_Normalizer_Dump);
814 0 retval = method(arg_self);
815 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
816 0 CFISH_DECREF(retval);
817 0 sv_2mortal( ST(0) );
818 0 XSRETURN(1);
819 }
820  
821 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_load);
822 0 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_load) {
823 0 dXSARGS;
824 SV *sv;
825 lucy_Normalizer* arg_self;
826 cfish_Obj* arg_dump;
827 LUCY_Normalizer_Load_t method;
828 lucy_Normalizer* retval;
829  
830 CFISH_UNUSED_VAR(cv);
831 0 SP -= items;
832 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
833 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
834 }
835  
836 /* Extract vars from Perl stack. */
837 0 arg_self = (lucy_Normalizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NORMALIZER, NULL);
838 0 sv = ST(1);
839 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
840  
841 /* Execute */
842 0 method = CFISH_METHOD_PTR(LUCY_NORMALIZER, LUCY_Normalizer_Load);
843 0 retval = method(arg_self, arg_dump);
844 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
845 0 CFISH_DECREF(retval);
846 0 sv_2mortal( ST(0) );
847 0 XSRETURN(1);
848 }
849  
850 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_equals);
851 0 XS_INTERNAL(XS_Lucy_Analysis_Normalizer_equals) {
852 0 dXSARGS;
853 SV *sv;
854 lucy_Normalizer* arg_self;
855 cfish_Obj* arg_other;
856 LUCY_Normalizer_Equals_t method;
857 bool retval;
858  
859 CFISH_UNUSED_VAR(cv);
860 0 SP -= items;
861 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
862 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
863 }
864  
865 /* Extract vars from Perl stack. */
866 0 arg_self = (lucy_Normalizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NORMALIZER, NULL);
867 0 sv = ST(1);
868 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
869  
870 /* Execute */
871 0 method = CFISH_METHOD_PTR(LUCY_NORMALIZER, LUCY_Normalizer_Equals);
872 0 retval = method(arg_self, arg_other);
873 0 ST(0) = newSViv(!!retval);
874 0 sv_2mortal( ST(0) );
875 0 XSRETURN(1);
876 }
877  
878 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_new);
879 5 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_new) {
880 5 dXSARGS;
881 static const XSBind_ParamSpec param_specs[2] = {
882 XSBIND_PARAM("language", 0),
883 XSBIND_PARAM("analyzers", 0)
884 };
885 int32_t locations[2];
886 SV *sv;
887 lucy_PolyAnalyzer* arg_self;
888 cfish_String* arg_language;
889 cfish_Vector* arg_analyzers;
890 lucy_PolyAnalyzer* retval;
891  
892 CFISH_UNUSED_VAR(cv);
893 5 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 5 5
894 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
895 }
896 5 SP -= items;
897  
898 5 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
899 locations, 2);
900 5 sv = ST(locations[0]);
901 5 ▶ arg_language = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "language", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_language = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "language", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 1 4 5
902 5 sv = ST(locations[1]);
903 5 ▶ arg_analyzers = locations[1] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "analyzers", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_analyzers = locations[1] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "analyzers", CFISH_VECTOR, NULL) : NULL; 4 1 5
904 5 arg_self = (lucy_PolyAnalyzer*)XSBind_new_blank_obj(aTHX_ ST(0));
905  
906 5 retval = lucy_PolyAnalyzer_init(arg_self, arg_language, arg_analyzers);
907 5 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
908 5 XSRETURN(1);
909 }
910  
911  
912 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_get_analyzers);
913 1 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_get_analyzers) {
914 1 dXSARGS;
915 lucy_PolyAnalyzer* arg_self;
916 LUCY_PolyAnalyzer_Get_Analyzers_t method;
917 cfish_Vector* retval;
918  
919 CFISH_UNUSED_VAR(cv);
920 1 SP -= items;
921 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
922 0 XSBind_invalid_args_error(aTHX_ cv, "self");
923 }
924  
925 /* Extract vars from Perl stack. */
926 1 arg_self = (lucy_PolyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYANALYZER, NULL);
927  
928 /* Execute */
929 1 method = CFISH_METHOD_PTR(LUCY_POLYANALYZER, LUCY_PolyAnalyzer_Get_Analyzers);
930 1 retval = method(arg_self);
931 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
932 1 sv_2mortal( ST(0) );
933 1 XSRETURN(1);
934 }
935  
936 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_transform);
937 4 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_transform) {
938 4 dXSARGS;
939 SV *sv;
940 lucy_PolyAnalyzer* arg_self;
941 lucy_Inversion* arg_inversion;
942 LUCY_PolyAnalyzer_Transform_t method;
943 lucy_Inversion* retval;
944  
945 CFISH_UNUSED_VAR(cv);
946 4 SP -= items;
947 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
948 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
949 }
950  
951 /* Extract vars from Perl stack. */
952 4 arg_self = (lucy_PolyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYANALYZER, NULL);
953 4 sv = ST(1);
954 4 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
955  
956 /* Execute */
957 4 method = CFISH_METHOD_PTR(LUCY_POLYANALYZER, LUCY_PolyAnalyzer_Transform);
958 4 retval = method(arg_self, arg_inversion);
959 4 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
960 4 CFISH_DECREF(retval);
961 4 sv_2mortal( ST(0) );
962 4 XSRETURN(1);
963 }
964  
965 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_transform_text);
966 4 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_transform_text) {
967 4 dXSARGS;
968 SV *sv;
969 lucy_PolyAnalyzer* arg_self;
970 cfish_String* arg_text;
971 LUCY_PolyAnalyzer_Transform_Text_t method;
972 lucy_Inversion* retval;
973  
974 CFISH_UNUSED_VAR(cv);
975 4 SP -= items;
976 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
977 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
978 }
979  
980 /* Extract vars from Perl stack. */
981 4 arg_self = (lucy_PolyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYANALYZER, NULL);
982 4 sv = ST(1);
983 4 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
984  
985 /* Execute */
986 4 method = CFISH_METHOD_PTR(LUCY_POLYANALYZER, LUCY_PolyAnalyzer_Transform_Text);
987 4 retval = method(arg_self, arg_text);
988 4 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
989 4 CFISH_DECREF(retval);
990 4 sv_2mortal( ST(0) );
991 4 XSRETURN(1);
992 }
993  
994 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_equals);
995 0 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_equals) {
996 0 dXSARGS;
997 SV *sv;
998 lucy_PolyAnalyzer* arg_self;
999 cfish_Obj* arg_other;
1000 LUCY_PolyAnalyzer_Equals_t method;
1001 bool retval;
1002  
1003 CFISH_UNUSED_VAR(cv);
1004 0 SP -= items;
1005 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
1006 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
1007 }
1008  
1009 /* Extract vars from Perl stack. */
1010 0 arg_self = (lucy_PolyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYANALYZER, NULL);
1011 0 sv = ST(1);
1012 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1013  
1014 /* Execute */
1015 0 method = CFISH_METHOD_PTR(LUCY_POLYANALYZER, LUCY_PolyAnalyzer_Equals);
1016 0 retval = method(arg_self, arg_other);
1017 0 ST(0) = newSViv(!!retval);
1018 0 sv_2mortal( ST(0) );
1019 0 XSRETURN(1);
1020 }
1021  
1022 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_dump);
1023 0 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_dump) {
1024 0 dXSARGS;
1025 lucy_PolyAnalyzer* arg_self;
1026 LUCY_PolyAnalyzer_Dump_t method;
1027 cfish_Obj* retval;
1028  
1029 CFISH_UNUSED_VAR(cv);
1030 0 SP -= items;
1031 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1032 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1033 }
1034  
1035 /* Extract vars from Perl stack. */
1036 0 arg_self = (lucy_PolyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYANALYZER, NULL);
1037  
1038 /* Execute */
1039 0 method = CFISH_METHOD_PTR(LUCY_POLYANALYZER, LUCY_PolyAnalyzer_Dump);
1040 0 retval = method(arg_self);
1041 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1042 0 CFISH_DECREF(retval);
1043 0 sv_2mortal( ST(0) );
1044 0 XSRETURN(1);
1045 }
1046  
1047 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_load);
1048 0 XS_INTERNAL(XS_Lucy_Analysis_PolyAnalyzer_load) {
1049 0 dXSARGS;
1050 SV *sv;
1051 lucy_PolyAnalyzer* arg_self;
1052 cfish_Obj* arg_dump;
1053 LUCY_PolyAnalyzer_Load_t method;
1054 lucy_PolyAnalyzer* retval;
1055  
1056 CFISH_UNUSED_VAR(cv);
1057 0 SP -= items;
1058 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
1059 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
1060 }
1061  
1062 /* Extract vars from Perl stack. */
1063 0 arg_self = (lucy_PolyAnalyzer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYANALYZER, NULL);
1064 0 sv = ST(1);
1065 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1066  
1067 /* Execute */
1068 0 method = CFISH_METHOD_PTR(LUCY_POLYANALYZER, LUCY_PolyAnalyzer_Load);
1069 0 retval = method(arg_self, arg_dump);
1070 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1071 0 CFISH_DECREF(retval);
1072 0 sv_2mortal( ST(0) );
1073 0 XSRETURN(1);
1074 }
1075  
1076 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer__new);
1077 13 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer__new) {
1078 13 dXSARGS;
1079 static const XSBind_ParamSpec param_specs[1] = {
1080 XSBIND_PARAM("pattern", 0)
1081 };
1082 int32_t locations[1];
1083 SV *sv;
1084 lucy_RegexTokenizer* arg_self;
1085 cfish_String* arg_pattern;
1086 lucy_RegexTokenizer* retval;
1087  
1088 CFISH_UNUSED_VAR(cv);
1089 13 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 13 13
1090 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
1091 }
1092 13 SP -= items;
1093  
1094 13 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
1095 locations, 1);
1096 13 sv = ST(locations[0]);
1097 13 ▶ arg_pattern = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "pattern", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_pattern = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "pattern", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 12 1 13
1098 13 arg_self = (lucy_RegexTokenizer*)XSBind_new_blank_obj(aTHX_ ST(0));
1099  
1100 13 retval = lucy_RegexTokenizer_init(arg_self, arg_pattern);
1101 11 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
1102 11 XSRETURN(1);
1103 }
1104  
1105  
1106 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_transform);
1107 3 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_transform) {
1108 3 dXSARGS;
1109 SV *sv;
1110 lucy_RegexTokenizer* arg_self;
1111 lucy_Inversion* arg_inversion;
1112 LUCY_RegexTokenizer_Transform_t method;
1113 lucy_Inversion* retval;
1114  
1115 CFISH_UNUSED_VAR(cv);
1116 3 SP -= items;
1117 3 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 3 3
1118 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
1119 }
1120  
1121 /* Extract vars from Perl stack. */
1122 3 arg_self = (lucy_RegexTokenizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REGEXTOKENIZER, NULL);
1123 3 sv = ST(1);
1124 3 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
1125  
1126 /* Execute */
1127 3 method = CFISH_METHOD_PTR(LUCY_REGEXTOKENIZER, LUCY_RegexTokenizer_Transform);
1128 3 retval = method(arg_self, arg_inversion);
1129 3 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1130 3 CFISH_DECREF(retval);
1131 3 sv_2mortal( ST(0) );
1132 3 XSRETURN(1);
1133 }
1134  
1135 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_transform_text);
1136 0 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_transform_text) {
1137 0 dXSARGS;
1138 SV *sv;
1139 lucy_RegexTokenizer* arg_self;
1140 cfish_String* arg_text;
1141 LUCY_RegexTokenizer_Transform_Text_t method;
1142 lucy_Inversion* retval;
1143  
1144 CFISH_UNUSED_VAR(cv);
1145 0 SP -= items;
1146 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
1147 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
1148 }
1149  
1150 /* Extract vars from Perl stack. */
1151 0 arg_self = (lucy_RegexTokenizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REGEXTOKENIZER, NULL);
1152 0 sv = ST(1);
1153 0 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
1154  
1155 /* Execute */
1156 0 method = CFISH_METHOD_PTR(LUCY_REGEXTOKENIZER, LUCY_RegexTokenizer_Transform_Text);
1157 0 retval = method(arg_self, arg_text);
1158 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1159 0 CFISH_DECREF(retval);
1160 0 sv_2mortal( ST(0) );
1161 0 XSRETURN(1);
1162 }
1163  
1164 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_dump);
1165 1 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_dump) {
1166 1 dXSARGS;
1167 lucy_RegexTokenizer* arg_self;
1168 LUCY_RegexTokenizer_Dump_t method;
1169 cfish_Obj* retval;
1170  
1171 CFISH_UNUSED_VAR(cv);
1172 1 SP -= items;
1173 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
1174 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1175 }
1176  
1177 /* Extract vars from Perl stack. */
1178 1 arg_self = (lucy_RegexTokenizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REGEXTOKENIZER, NULL);
1179  
1180 /* Execute */
1181 1 method = CFISH_METHOD_PTR(LUCY_REGEXTOKENIZER, LUCY_RegexTokenizer_Dump);
1182 1 retval = method(arg_self);
1183 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1184 1 CFISH_DECREF(retval);
1185 1 sv_2mortal( ST(0) );
1186 1 XSRETURN(1);
1187 }
1188  
1189 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_load);
1190 2 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_load) {
1191 2 dXSARGS;
1192 SV *sv;
1193 lucy_RegexTokenizer* arg_self;
1194 cfish_Obj* arg_dump;
1195 LUCY_RegexTokenizer_Load_t method;
1196 lucy_RegexTokenizer* retval;
1197  
1198 CFISH_UNUSED_VAR(cv);
1199 2 SP -= items;
1200 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
1201 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
1202 }
1203  
1204 /* Extract vars from Perl stack. */
1205 2 arg_self = (lucy_RegexTokenizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REGEXTOKENIZER, NULL);
1206 2 sv = ST(1);
1207 2 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1208  
1209 /* Execute */
1210 2 method = CFISH_METHOD_PTR(LUCY_REGEXTOKENIZER, LUCY_RegexTokenizer_Load);
1211 2 retval = method(arg_self, arg_dump);
1212 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1213 0 CFISH_DECREF(retval);
1214 0 sv_2mortal( ST(0) );
1215 0 XSRETURN(1);
1216 }
1217  
1218 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_equals);
1219 2 XS_INTERNAL(XS_Lucy_Analysis_RegexTokenizer_equals) {
1220 2 dXSARGS;
1221 SV *sv;
1222 lucy_RegexTokenizer* arg_self;
1223 cfish_Obj* arg_other;
1224 LUCY_RegexTokenizer_Equals_t method;
1225 bool retval;
1226  
1227 CFISH_UNUSED_VAR(cv);
1228 2 SP -= items;
1229 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
1230 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
1231 }
1232  
1233 /* Extract vars from Perl stack. */
1234 2 arg_self = (lucy_RegexTokenizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REGEXTOKENIZER, NULL);
1235 2 sv = ST(1);
1236 2 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1237  
1238 /* Execute */
1239 2 method = CFISH_METHOD_PTR(LUCY_REGEXTOKENIZER, LUCY_RegexTokenizer_Equals);
1240 2 retval = method(arg_self, arg_other);
1241 2 ST(0) = newSViv(!!retval);
1242 2 sv_2mortal( ST(0) );
1243 2 XSRETURN(1);
1244 }
1245  
1246 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_new);
1247 1 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_new) {
1248 1 dXSARGS;
1249 static const XSBind_ParamSpec param_specs[1] = {
1250 XSBIND_PARAM("language", 1)
1251 };
1252 int32_t locations[1];
1253 SV *sv;
1254 lucy_SnowballStemmer* arg_self;
1255 cfish_String* arg_language;
1256 lucy_SnowballStemmer* retval;
1257  
1258 CFISH_UNUSED_VAR(cv);
1259 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
1260 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
1261 }
1262 1 SP -= items;
1263  
1264 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
1265 locations, 1);
1266 1 sv = ST(locations[0]);
1267 1 arg_language = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "language", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
1268 1 arg_self = (lucy_SnowballStemmer*)XSBind_new_blank_obj(aTHX_ ST(0));
1269  
1270 1 retval = lucy_SnowStemmer_init(arg_self, arg_language);
1271 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
1272 1 XSRETURN(1);
1273 }
1274  
1275  
1276 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_transform);
1277 2 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_transform) {
1278 2 dXSARGS;
1279 SV *sv;
1280 lucy_SnowballStemmer* arg_self;
1281 lucy_Inversion* arg_inversion;
1282 LUCY_SnowStemmer_Transform_t method;
1283 lucy_Inversion* retval;
1284  
1285 CFISH_UNUSED_VAR(cv);
1286 2 SP -= items;
1287 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
1288 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
1289 }
1290  
1291 /* Extract vars from Perl stack. */
1292 2 arg_self = (lucy_SnowballStemmer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNOWBALLSTEMMER, NULL);
1293 2 sv = ST(1);
1294 2 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
1295  
1296 /* Execute */
1297 2 method = CFISH_METHOD_PTR(LUCY_SNOWBALLSTEMMER, LUCY_SnowStemmer_Transform);
1298 2 retval = method(arg_self, arg_inversion);
1299 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1300 2 CFISH_DECREF(retval);
1301 2 sv_2mortal( ST(0) );
1302 2 XSRETURN(1);
1303 }
1304  
1305 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_dump);
1306 0 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_dump) {
1307 0 dXSARGS;
1308 lucy_SnowballStemmer* arg_self;
1309 LUCY_SnowStemmer_Dump_t method;
1310 cfish_Hash* retval;
1311  
1312 CFISH_UNUSED_VAR(cv);
1313 0 SP -= items;
1314 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1315 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1316 }
1317  
1318 /* Extract vars from Perl stack. */
1319 0 arg_self = (lucy_SnowballStemmer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNOWBALLSTEMMER, NULL);
1320  
1321 /* Execute */
1322 0 method = CFISH_METHOD_PTR(LUCY_SNOWBALLSTEMMER, LUCY_SnowStemmer_Dump);
1323 0 retval = method(arg_self);
1324 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1325 0 CFISH_DECREF(retval);
1326 0 sv_2mortal( ST(0) );
1327 0 XSRETURN(1);
1328 }
1329  
1330 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_load);
1331 0 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_load) {
1332 0 dXSARGS;
1333 SV *sv;
1334 lucy_SnowballStemmer* arg_self;
1335 cfish_Obj* arg_dump;
1336 LUCY_SnowStemmer_Load_t method;
1337 lucy_SnowballStemmer* retval;
1338  
1339 CFISH_UNUSED_VAR(cv);
1340 0 SP -= items;
1341 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
1342 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
1343 }
1344  
1345 /* Extract vars from Perl stack. */
1346 0 arg_self = (lucy_SnowballStemmer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNOWBALLSTEMMER, NULL);
1347 0 sv = ST(1);
1348 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1349  
1350 /* Execute */
1351 0 method = CFISH_METHOD_PTR(LUCY_SNOWBALLSTEMMER, LUCY_SnowStemmer_Load);
1352 0 retval = method(arg_self, arg_dump);
1353 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1354 0 CFISH_DECREF(retval);
1355 0 sv_2mortal( ST(0) );
1356 0 XSRETURN(1);
1357 }
1358  
1359 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_equals);
1360 0 XS_INTERNAL(XS_Lucy_Analysis_SnowballStemmer_equals) {
1361 0 dXSARGS;
1362 SV *sv;
1363 lucy_SnowballStemmer* arg_self;
1364 cfish_Obj* arg_other;
1365 LUCY_SnowStemmer_Equals_t method;
1366 bool retval;
1367  
1368 CFISH_UNUSED_VAR(cv);
1369 0 SP -= items;
1370 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
1371 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
1372 }
1373  
1374 /* Extract vars from Perl stack. */
1375 0 arg_self = (lucy_SnowballStemmer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNOWBALLSTEMMER, NULL);
1376 0 sv = ST(1);
1377 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1378  
1379 /* Execute */
1380 0 method = CFISH_METHOD_PTR(LUCY_SNOWBALLSTEMMER, LUCY_SnowStemmer_Equals);
1381 0 retval = method(arg_self, arg_other);
1382 0 ST(0) = newSViv(!!retval);
1383 0 sv_2mortal( ST(0) );
1384 0 XSRETURN(1);
1385 }
1386  
1387 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_new);
1388 2 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_new) {
1389 2 dXSARGS;
1390 static const XSBind_ParamSpec param_specs[2] = {
1391 XSBIND_PARAM("language", 0),
1392 XSBIND_PARAM("stoplist", 0)
1393 };
1394 int32_t locations[2];
1395 SV *sv;
1396 lucy_SnowballStopFilter* arg_self;
1397 cfish_String* arg_language;
1398 cfish_Hash* arg_stoplist;
1399 lucy_SnowballStopFilter* retval;
1400  
1401 CFISH_UNUSED_VAR(cv);
1402 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
1403 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
1404 }
1405 2 SP -= items;
1406  
1407 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
1408 locations, 2);
1409 2 sv = ST(locations[0]);
1410 2 ▶ arg_language = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "language", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_language = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "language", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 1 1 2
1411 2 sv = ST(locations[1]);
1412 2 ▶ arg_stoplist = locations[1] < items ? (cfish_Hash*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "stoplist", CFISH_HASH, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_stoplist = locations[1] < items ? (cfish_Hash*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "stoplist", CFISH_HASH, NULL) : NULL; 1 1 2
1413 2 arg_self = (lucy_SnowballStopFilter*)XSBind_new_blank_obj(aTHX_ ST(0));
1414  
1415 2 retval = lucy_SnowStop_init(arg_self, arg_language, arg_stoplist);
1416 2 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
1417 2 XSRETURN(1);
1418 }
1419  
1420  
1421 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_transform);
1422 1 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_transform) {
1423 1 dXSARGS;
1424 SV *sv;
1425 lucy_SnowballStopFilter* arg_self;
1426 lucy_Inversion* arg_inversion;
1427 LUCY_SnowStop_Transform_t method;
1428 lucy_Inversion* retval;
1429  
1430 CFISH_UNUSED_VAR(cv);
1431 1 SP -= items;
1432 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
1433 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
1434 }
1435  
1436 /* Extract vars from Perl stack. */
1437 1 arg_self = (lucy_SnowballStopFilter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNOWBALLSTOPFILTER, NULL);
1438 1 sv = ST(1);
1439 1 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
1440  
1441 /* Execute */
1442 1 method = CFISH_METHOD_PTR(LUCY_SNOWBALLSTOPFILTER, LUCY_SnowStop_Transform);
1443 1 retval = method(arg_self, arg_inversion);
1444 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1445 1 CFISH_DECREF(retval);
1446 1 sv_2mortal( ST(0) );
1447 1 XSRETURN(1);
1448 }
1449  
1450 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_equals);
1451 0 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_equals) {
1452 0 dXSARGS;
1453 SV *sv;
1454 lucy_SnowballStopFilter* arg_self;
1455 cfish_Obj* arg_other;
1456 LUCY_SnowStop_Equals_t method;
1457 bool retval;
1458  
1459 CFISH_UNUSED_VAR(cv);
1460 0 SP -= items;
1461 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
1462 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
1463 }
1464  
1465 /* Extract vars from Perl stack. */
1466 0 arg_self = (lucy_SnowballStopFilter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNOWBALLSTOPFILTER, NULL);
1467 0 sv = ST(1);
1468 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1469  
1470 /* Execute */
1471 0 method = CFISH_METHOD_PTR(LUCY_SNOWBALLSTOPFILTER, LUCY_SnowStop_Equals);
1472 0 retval = method(arg_self, arg_other);
1473 0 ST(0) = newSViv(!!retval);
1474 0 sv_2mortal( ST(0) );
1475 0 XSRETURN(1);
1476 }
1477  
1478 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_dump);
1479 0 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_dump) {
1480 0 dXSARGS;
1481 lucy_SnowballStopFilter* arg_self;
1482 LUCY_SnowStop_Dump_t method;
1483 cfish_Obj* retval;
1484  
1485 CFISH_UNUSED_VAR(cv);
1486 0 SP -= items;
1487 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1488 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1489 }
1490  
1491 /* Extract vars from Perl stack. */
1492 0 arg_self = (lucy_SnowballStopFilter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNOWBALLSTOPFILTER, NULL);
1493  
1494 /* Execute */
1495 0 method = CFISH_METHOD_PTR(LUCY_SNOWBALLSTOPFILTER, LUCY_SnowStop_Dump);
1496 0 retval = method(arg_self);
1497 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1498 0 CFISH_DECREF(retval);
1499 0 sv_2mortal( ST(0) );
1500 0 XSRETURN(1);
1501 }
1502  
1503 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_load);
1504 0 XS_INTERNAL(XS_Lucy_Analysis_SnowballStopFilter_load) {
1505 0 dXSARGS;
1506 SV *sv;
1507 lucy_SnowballStopFilter* arg_self;
1508 cfish_Obj* arg_dump;
1509 LUCY_SnowStop_Load_t method;
1510 cfish_Obj* retval;
1511  
1512 CFISH_UNUSED_VAR(cv);
1513 0 SP -= items;
1514 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
1515 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
1516 }
1517  
1518 /* Extract vars from Perl stack. */
1519 0 arg_self = (lucy_SnowballStopFilter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNOWBALLSTOPFILTER, NULL);
1520 0 sv = ST(1);
1521 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1522  
1523 /* Execute */
1524 0 method = CFISH_METHOD_PTR(LUCY_SNOWBALLSTOPFILTER, LUCY_SnowStop_Load);
1525 0 retval = method(arg_self, arg_dump);
1526 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1527 0 CFISH_DECREF(retval);
1528 0 sv_2mortal( ST(0) );
1529 0 XSRETURN(1);
1530 }
1531  
1532 XS_INTERNAL(XS_Lucy_Analysis_StandardTokenizer_new);
1533 23 XS_INTERNAL(XS_Lucy_Analysis_StandardTokenizer_new) {
1534 23 dXSARGS;
1535 lucy_StandardTokenizer* arg_self;
1536 lucy_StandardTokenizer* retval;
1537  
1538 CFISH_UNUSED_VAR(cv);
1539 23 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 23 23
1540 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
1541 }
1542 23 SP -= items;
1543  
1544 23 arg_self = (lucy_StandardTokenizer*)XSBind_new_blank_obj(aTHX_ ST(0));
1545  
1546 23 retval = lucy_StandardTokenizer_init(arg_self);
1547 23 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
1548 23 XSRETURN(1);
1549 }
1550  
1551  
1552 XS_INTERNAL(XS_Lucy_Analysis_StandardTokenizer_transform);
1553 2 XS_INTERNAL(XS_Lucy_Analysis_StandardTokenizer_transform) {
1554 2 dXSARGS;
1555 SV *sv;
1556 lucy_StandardTokenizer* arg_self;
1557 lucy_Inversion* arg_inversion;
1558 LUCY_StandardTokenizer_Transform_t method;
1559 lucy_Inversion* retval;
1560  
1561 CFISH_UNUSED_VAR(cv);
1562 2 SP -= items;
1563 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
1564 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
1565 }
1566  
1567 /* Extract vars from Perl stack. */
1568 2 arg_self = (lucy_StandardTokenizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STANDARDTOKENIZER, NULL);
1569 2 sv = ST(1);
1570 2 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
1571  
1572 /* Execute */
1573 2 method = CFISH_METHOD_PTR(LUCY_STANDARDTOKENIZER, LUCY_StandardTokenizer_Transform);
1574 2 retval = method(arg_self, arg_inversion);
1575 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1576 2 CFISH_DECREF(retval);
1577 2 sv_2mortal( ST(0) );
1578 2 XSRETURN(1);
1579 }
1580  
1581 XS_INTERNAL(XS_Lucy_Analysis_StandardTokenizer_transform_text);
1582 0 XS_INTERNAL(XS_Lucy_Analysis_StandardTokenizer_transform_text) {
1583 0 dXSARGS;
1584 SV *sv;
1585 lucy_StandardTokenizer* arg_self;
1586 cfish_String* arg_text;
1587 LUCY_StandardTokenizer_Transform_Text_t method;
1588 lucy_Inversion* retval;
1589  
1590 CFISH_UNUSED_VAR(cv);
1591 0 SP -= items;
1592 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
1593 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
1594 }
1595  
1596 /* Extract vars from Perl stack. */
1597 0 arg_self = (lucy_StandardTokenizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STANDARDTOKENIZER, NULL);
1598 0 sv = ST(1);
1599 0 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
1600  
1601 /* Execute */
1602 0 method = CFISH_METHOD_PTR(LUCY_STANDARDTOKENIZER, LUCY_StandardTokenizer_Transform_Text);
1603 0 retval = method(arg_self, arg_text);
1604 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1605 0 CFISH_DECREF(retval);
1606 0 sv_2mortal( ST(0) );
1607 0 XSRETURN(1);
1608 }
1609  
1610 XS_INTERNAL(XS_Lucy_Analysis_StandardTokenizer_equals);
1611 1 XS_INTERNAL(XS_Lucy_Analysis_StandardTokenizer_equals) {
1612 1 dXSARGS;
1613 SV *sv;
1614 lucy_StandardTokenizer* arg_self;
1615 cfish_Obj* arg_other;
1616 LUCY_StandardTokenizer_Equals_t method;
1617 bool retval;
1618  
1619 CFISH_UNUSED_VAR(cv);
1620 1 SP -= items;
1621 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
1622 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
1623 }
1624  
1625 /* Extract vars from Perl stack. */
1626 1 arg_self = (lucy_StandardTokenizer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STANDARDTOKENIZER, NULL);
1627 1 sv = ST(1);
1628 1 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
1629  
1630 /* Execute */
1631 1 method = CFISH_METHOD_PTR(LUCY_STANDARDTOKENIZER, LUCY_StandardTokenizer_Equals);
1632 1 retval = method(arg_self, arg_other);
1633 1 ST(0) = newSViv(!!retval);
1634 1 sv_2mortal( ST(0) );
1635 1 XSRETURN(1);
1636 }
1637  
1638 XS_INTERNAL(XS_Lucy_Analysis_Inversion_append);
1639 57 XS_INTERNAL(XS_Lucy_Analysis_Inversion_append) {
1640 57 dXSARGS;
1641 SV *sv;
1642 lucy_Inversion* arg_self;
1643 lucy_Token* arg_token;
1644 LUCY_Inversion_Append_t method;
1645  
1646 CFISH_UNUSED_VAR(cv);
1647 57 SP -= items;
1648 57 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 57 57
1649 0 XSBind_invalid_args_error(aTHX_ cv, "self, token");
1650 }
1651  
1652 /* Extract vars from Perl stack. */
1653 57 arg_self = (lucy_Inversion*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERSION, NULL);
1654 57 sv = ST(1);
1655 57 arg_token = (lucy_Token*)XSBind_arg_to_cfish(aTHX_ sv, "token", LUCY_TOKEN, NULL);
1656  
1657 /* Execute */
1658 57 method = CFISH_METHOD_PTR(LUCY_INVERSION, LUCY_Inversion_Append);
1659 57 arg_token = (lucy_Token*)CFISH_INCREF(arg_token);
1660 57 method(arg_self, arg_token);
1661 57 XSRETURN(0);
1662 }
1663  
1664 XS_INTERNAL(XS_Lucy_Analysis_Inversion_next);
1665 96 XS_INTERNAL(XS_Lucy_Analysis_Inversion_next) {
1666 96 dXSARGS;
1667 lucy_Inversion* arg_self;
1668 LUCY_Inversion_Next_t method;
1669 lucy_Token* retval;
1670  
1671 CFISH_UNUSED_VAR(cv);
1672 96 SP -= items;
1673 96 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 96 96
1674 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1675 }
1676  
1677 /* Extract vars from Perl stack. */
1678 96 arg_self = (lucy_Inversion*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERSION, NULL);
1679  
1680 /* Execute */
1681 96 method = CFISH_METHOD_PTR(LUCY_INVERSION, LUCY_Inversion_Next);
1682 96 retval = method(arg_self);
1683 96 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1684 96 sv_2mortal( ST(0) );
1685 96 XSRETURN(1);
1686 }
1687  
1688 XS_INTERNAL(XS_Lucy_Analysis_Inversion_reset);
1689 2 XS_INTERNAL(XS_Lucy_Analysis_Inversion_reset) {
1690 2 dXSARGS;
1691 lucy_Inversion* arg_self;
1692 LUCY_Inversion_Reset_t method;
1693  
1694 CFISH_UNUSED_VAR(cv);
1695 2 SP -= items;
1696 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
1697 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1698 }
1699  
1700 /* Extract vars from Perl stack. */
1701 2 arg_self = (lucy_Inversion*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERSION, NULL);
1702  
1703 /* Execute */
1704 2 method = CFISH_METHOD_PTR(LUCY_INVERSION, LUCY_Inversion_Reset);
1705 2 method(arg_self);
1706 2 XSRETURN(0);
1707 }
1708  
1709 XS_INTERNAL(XS_Lucy_Analysis_Inversion_invert);
1710 1 XS_INTERNAL(XS_Lucy_Analysis_Inversion_invert) {
1711 1 dXSARGS;
1712 lucy_Inversion* arg_self;
1713 LUCY_Inversion_Invert_t method;
1714  
1715 CFISH_UNUSED_VAR(cv);
1716 1 SP -= items;
1717 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
1718 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1719 }
1720  
1721 /* Extract vars from Perl stack. */
1722 1 arg_self = (lucy_Inversion*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERSION, NULL);
1723  
1724 /* Execute */
1725 1 method = CFISH_METHOD_PTR(LUCY_INVERSION, LUCY_Inversion_Invert);
1726 1 method(arg_self);
1727 0 XSRETURN(0);
1728 }
1729  
1730 XS_INTERNAL(XS_Lucy_Analysis_Inversion_get_size);
1731 0 XS_INTERNAL(XS_Lucy_Analysis_Inversion_get_size) {
1732 0 dXSARGS;
1733 lucy_Inversion* arg_self;
1734 LUCY_Inversion_Get_Size_t method;
1735 uint32_t retval;
1736  
1737 CFISH_UNUSED_VAR(cv);
1738 0 SP -= items;
1739 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1740 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1741 }
1742  
1743 /* Extract vars from Perl stack. */
1744 0 arg_self = (lucy_Inversion*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERSION, NULL);
1745  
1746 /* Execute */
1747 0 method = CFISH_METHOD_PTR(LUCY_INVERSION, LUCY_Inversion_Get_Size);
1748 0 retval = method(arg_self);
1749 0 ST(0) = newSVuv(retval);
1750 0 sv_2mortal( ST(0) );
1751 0 XSRETURN(1);
1752 }
1753  
1754 XS_INTERNAL(XS_Lucy_Analysis_Token_get_start_offset);
1755 11 XS_INTERNAL(XS_Lucy_Analysis_Token_get_start_offset) {
1756 11 dXSARGS;
1757 lucy_Token* arg_self;
1758 LUCY_Token_Get_Start_Offset_t method;
1759 uint32_t retval;
1760  
1761 CFISH_UNUSED_VAR(cv);
1762 11 SP -= items;
1763 11 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 11 11
1764 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1765 }
1766  
1767 /* Extract vars from Perl stack. */
1768 11 arg_self = (lucy_Token*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOKEN, NULL);
1769  
1770 /* Execute */
1771 11 method = CFISH_METHOD_PTR(LUCY_TOKEN, LUCY_Token_Get_Start_Offset);
1772 11 retval = method(arg_self);
1773 11 ST(0) = newSVuv(retval);
1774 11 sv_2mortal( ST(0) );
1775 11 XSRETURN(1);
1776 }
1777  
1778 XS_INTERNAL(XS_Lucy_Analysis_Token_get_end_offset);
1779 11 XS_INTERNAL(XS_Lucy_Analysis_Token_get_end_offset) {
1780 11 dXSARGS;
1781 lucy_Token* arg_self;
1782 LUCY_Token_Get_End_Offset_t method;
1783 uint32_t retval;
1784  
1785 CFISH_UNUSED_VAR(cv);
1786 11 SP -= items;
1787 11 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 11 11
1788 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1789 }
1790  
1791 /* Extract vars from Perl stack. */
1792 11 arg_self = (lucy_Token*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOKEN, NULL);
1793  
1794 /* Execute */
1795 11 method = CFISH_METHOD_PTR(LUCY_TOKEN, LUCY_Token_Get_End_Offset);
1796 11 retval = method(arg_self);
1797 11 ST(0) = newSVuv(retval);
1798 11 sv_2mortal( ST(0) );
1799 11 XSRETURN(1);
1800 }
1801  
1802 XS_INTERNAL(XS_Lucy_Analysis_Token_get_boost);
1803 0 XS_INTERNAL(XS_Lucy_Analysis_Token_get_boost) {
1804 0 dXSARGS;
1805 lucy_Token* arg_self;
1806 LUCY_Token_Get_Boost_t method;
1807 float retval;
1808  
1809 CFISH_UNUSED_VAR(cv);
1810 0 SP -= items;
1811 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1812 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1813 }
1814  
1815 /* Extract vars from Perl stack. */
1816 0 arg_self = (lucy_Token*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOKEN, NULL);
1817  
1818 /* Execute */
1819 0 method = CFISH_METHOD_PTR(LUCY_TOKEN, LUCY_Token_Get_Boost);
1820 0 retval = method(arg_self);
1821 0 ST(0) = newSVnv(retval);
1822 0 sv_2mortal( ST(0) );
1823 0 XSRETURN(1);
1824 }
1825  
1826 XS_INTERNAL(XS_Lucy_Analysis_Token_get_pos_inc);
1827 0 XS_INTERNAL(XS_Lucy_Analysis_Token_get_pos_inc) {
1828 0 dXSARGS;
1829 lucy_Token* arg_self;
1830 LUCY_Token_Get_Pos_Inc_t method;
1831 int32_t retval;
1832  
1833 CFISH_UNUSED_VAR(cv);
1834 0 SP -= items;
1835 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1836 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1837 }
1838  
1839 /* Extract vars from Perl stack. */
1840 0 arg_self = (lucy_Token*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOKEN, NULL);
1841  
1842 /* Execute */
1843 0 method = CFISH_METHOD_PTR(LUCY_TOKEN, LUCY_Token_Get_Pos_Inc);
1844 0 retval = method(arg_self);
1845 0 ST(0) = newSViv(retval);
1846 0 sv_2mortal( ST(0) );
1847 0 XSRETURN(1);
1848 }
1849  
1850 XS_INTERNAL(XS_Lucy_Analysis_Token_get_pos);
1851 0 XS_INTERNAL(XS_Lucy_Analysis_Token_get_pos) {
1852 0 dXSARGS;
1853 lucy_Token* arg_self;
1854 LUCY_Token_Get_Pos_t method;
1855 int32_t retval;
1856  
1857 CFISH_UNUSED_VAR(cv);
1858 0 SP -= items;
1859 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1860 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1861 }
1862  
1863 /* Extract vars from Perl stack. */
1864 0 arg_self = (lucy_Token*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOKEN, NULL);
1865  
1866 /* Execute */
1867 0 method = CFISH_METHOD_PTR(LUCY_TOKEN, LUCY_Token_Get_Pos);
1868 0 retval = method(arg_self);
1869 0 ST(0) = newSViv(retval);
1870 0 sv_2mortal( ST(0) );
1871 0 XSRETURN(1);
1872 }
1873  
1874 XS_INTERNAL(XS_Lucy_Analysis_Token_get_len);
1875 0 XS_INTERNAL(XS_Lucy_Analysis_Token_get_len) {
1876 0 dXSARGS;
1877 lucy_Token* arg_self;
1878 LUCY_Token_Get_Len_t method;
1879 size_t retval;
1880  
1881 CFISH_UNUSED_VAR(cv);
1882 0 SP -= items;
1883 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1884 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1885 }
1886  
1887 /* Extract vars from Perl stack. */
1888 0 arg_self = (lucy_Token*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOKEN, NULL);
1889  
1890 /* Execute */
1891 0 method = CFISH_METHOD_PTR(LUCY_TOKEN, LUCY_Token_Get_Len);
1892 0 retval = method(arg_self);
1893 0 ST(0) = newSViv(retval);
1894 0 sv_2mortal( ST(0) );
1895 0 XSRETURN(1);
1896 }
1897  
1898 XS_INTERNAL(XS_Lucy_Document_Doc_set_doc_id);
1899 1 XS_INTERNAL(XS_Lucy_Document_Doc_set_doc_id) {
1900 1 dXSARGS;
1901 SV *sv;
1902 lucy_Doc* arg_self;
1903 int32_t arg_doc_id;
1904 LUCY_Doc_Set_Doc_ID_t method;
1905  
1906 CFISH_UNUSED_VAR(cv);
1907 1 SP -= items;
1908 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
1909 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
1910 }
1911  
1912 /* Extract vars from Perl stack. */
1913 1 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
1914 1 sv = ST(1);
1915 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
1916 0 XSBind_undef_arg_error(aTHX_ "doc_id");
1917 }
1918 1 arg_doc_id = (int32_t)SvIV(sv);
1919  
1920 /* Execute */
1921 1 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Set_Doc_ID);
1922 1 method(arg_self, arg_doc_id);
1923 1 XSRETURN(0);
1924 }
1925  
1926 XS_INTERNAL(XS_Lucy_Document_Doc_get_doc_id);
1927 7 XS_INTERNAL(XS_Lucy_Document_Doc_get_doc_id) {
1928 7 dXSARGS;
1929 lucy_Doc* arg_self;
1930 LUCY_Doc_Get_Doc_ID_t method;
1931 int32_t retval;
1932  
1933 CFISH_UNUSED_VAR(cv);
1934 7 SP -= items;
1935 7 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 7 7
1936 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1937 }
1938  
1939 /* Extract vars from Perl stack. */
1940 7 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
1941  
1942 /* Execute */
1943 7 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Get_Doc_ID);
1944 7 retval = method(arg_self);
1945 7 ST(0) = newSViv(retval);
1946 7 sv_2mortal( ST(0) );
1947 7 XSRETURN(1);
1948 }
1949  
1950 XS_INTERNAL(XS_Lucy_Document_Doc_get_size);
1951 0 XS_INTERNAL(XS_Lucy_Document_Doc_get_size) {
1952 0 dXSARGS;
1953 lucy_Doc* arg_self;
1954 LUCY_Doc_Get_Size_t method;
1955 uint32_t retval;
1956  
1957 CFISH_UNUSED_VAR(cv);
1958 0 SP -= items;
1959 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
1960 0 XSBind_invalid_args_error(aTHX_ cv, "self");
1961 }
1962  
1963 /* Extract vars from Perl stack. */
1964 0 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
1965  
1966 /* Execute */
1967 0 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Get_Size);
1968 0 retval = method(arg_self);
1969 0 ST(0) = newSVuv(retval);
1970 0 sv_2mortal( ST(0) );
1971 0 XSRETURN(1);
1972 }
1973  
1974 XS_INTERNAL(XS_Lucy_Document_Doc_extract);
1975 1 XS_INTERNAL(XS_Lucy_Document_Doc_extract) {
1976 1 dXSARGS;
1977 SV *sv;
1978 lucy_Doc* arg_self;
1979 cfish_String* arg_field;
1980 LUCY_Doc_Extract_t method;
1981 cfish_Obj* retval;
1982  
1983 CFISH_UNUSED_VAR(cv);
1984 1 SP -= items;
1985 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
1986 0 XSBind_invalid_args_error(aTHX_ cv, "self, field");
1987 }
1988  
1989 /* Extract vars from Perl stack. */
1990 1 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
1991 1 sv = ST(1);
1992 1 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
1993  
1994 /* Execute */
1995 1 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Extract);
1996 1 retval = method(arg_self, arg_field);
1997 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
1998 1 CFISH_DECREF(retval);
1999 1 sv_2mortal( ST(0) );
2000 1 XSRETURN(1);
2001 }
2002  
2003 XS_INTERNAL(XS_Lucy_Document_Doc_field_names);
2004 0 XS_INTERNAL(XS_Lucy_Document_Doc_field_names) {
2005 0 dXSARGS;
2006 lucy_Doc* arg_self;
2007 LUCY_Doc_Field_Names_t method;
2008 cfish_Vector* retval;
2009  
2010 CFISH_UNUSED_VAR(cv);
2011 0 SP -= items;
2012 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
2013 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2014 }
2015  
2016 /* Extract vars from Perl stack. */
2017 0 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
2018  
2019 /* Execute */
2020 0 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Field_Names);
2021 0 retval = method(arg_self);
2022 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2023 0 CFISH_DECREF(retval);
2024 0 sv_2mortal( ST(0) );
2025 0 XSRETURN(1);
2026 }
2027  
2028 XS_INTERNAL(XS_Lucy_Document_Doc_equals);
2029 2 XS_INTERNAL(XS_Lucy_Document_Doc_equals) {
2030 2 dXSARGS;
2031 SV *sv;
2032 lucy_Doc* arg_self;
2033 cfish_Obj* arg_other;
2034 LUCY_Doc_Equals_t method;
2035 bool retval;
2036  
2037 CFISH_UNUSED_VAR(cv);
2038 2 SP -= items;
2039 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
2040 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
2041 }
2042  
2043 /* Extract vars from Perl stack. */
2044 2 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
2045 2 sv = ST(1);
2046 2 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
2047  
2048 /* Execute */
2049 2 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Equals);
2050 2 retval = method(arg_self, arg_other);
2051 2 ST(0) = newSViv(!!retval);
2052 2 sv_2mortal( ST(0) );
2053 2 XSRETURN(1);
2054 }
2055  
2056 XS_INTERNAL(XS_Lucy_Document_Doc_serialize);
2057 0 XS_INTERNAL(XS_Lucy_Document_Doc_serialize) {
2058 0 dXSARGS;
2059 SV *sv;
2060 lucy_Doc* arg_self;
2061 lucy_OutStream* arg_outstream;
2062 LUCY_Doc_Serialize_t method;
2063  
2064 CFISH_UNUSED_VAR(cv);
2065 0 SP -= items;
2066 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
2067 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
2068 }
2069  
2070 /* Extract vars from Perl stack. */
2071 0 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
2072 0 sv = ST(1);
2073 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
2074  
2075 /* Execute */
2076 0 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Serialize);
2077 0 method(arg_self, arg_outstream);
2078 0 XSRETURN(0);
2079 }
2080  
2081 XS_INTERNAL(XS_Lucy_Document_Doc_deserialize);
2082 0 XS_INTERNAL(XS_Lucy_Document_Doc_deserialize) {
2083 0 dXSARGS;
2084 SV *sv;
2085 lucy_Doc* arg_self;
2086 lucy_InStream* arg_instream;
2087 LUCY_Doc_Deserialize_t method;
2088 lucy_Doc* retval;
2089  
2090 CFISH_UNUSED_VAR(cv);
2091 0 SP -= items;
2092 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
2093 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
2094 }
2095  
2096 /* Extract vars from Perl stack. */
2097 0 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
2098 0 sv = ST(1);
2099 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
2100  
2101 /* Execute */
2102 0 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Deserialize);
2103 0 arg_self = (lucy_Doc*)CFISH_INCREF(arg_self);
2104 0 retval = method(arg_self, arg_instream);
2105 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2106 0 CFISH_DECREF(retval);
2107 0 sv_2mortal( ST(0) );
2108 0 XSRETURN(1);
2109 }
2110  
2111 XS_INTERNAL(XS_Lucy_Document_Doc_dump);
2112 1 XS_INTERNAL(XS_Lucy_Document_Doc_dump) {
2113 1 dXSARGS;
2114 lucy_Doc* arg_self;
2115 LUCY_Doc_Dump_t method;
2116 cfish_Hash* retval;
2117  
2118 CFISH_UNUSED_VAR(cv);
2119 1 SP -= items;
2120 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
2121 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2122 }
2123  
2124 /* Extract vars from Perl stack. */
2125 1 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
2126  
2127 /* Execute */
2128 1 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Dump);
2129 1 retval = method(arg_self);
2130 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2131 1 CFISH_DECREF(retval);
2132 1 sv_2mortal( ST(0) );
2133 1 XSRETURN(1);
2134 }
2135  
2136 XS_INTERNAL(XS_Lucy_Document_Doc_load);
2137 1 XS_INTERNAL(XS_Lucy_Document_Doc_load) {
2138 1 dXSARGS;
2139 SV *sv;
2140 lucy_Doc* arg_self;
2141 cfish_Obj* arg_dump;
2142 LUCY_Doc_Load_t method;
2143 lucy_Doc* retval;
2144  
2145 CFISH_UNUSED_VAR(cv);
2146 1 SP -= items;
2147 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
2148 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
2149 }
2150  
2151 /* Extract vars from Perl stack. */
2152 1 arg_self = (lucy_Doc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOC, NULL);
2153 1 sv = ST(1);
2154 1 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
2155  
2156 /* Execute */
2157 1 method = CFISH_METHOD_PTR(LUCY_DOC, LUCY_Doc_Load);
2158 1 retval = method(arg_self, arg_dump);
2159 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2160 1 CFISH_DECREF(retval);
2161 1 sv_2mortal( ST(0) );
2162 1 XSRETURN(1);
2163 }
2164  
2165 XS_INTERNAL(XS_Lucy_Document_HitDoc_set_score);
2166 1 XS_INTERNAL(XS_Lucy_Document_HitDoc_set_score) {
2167 1 dXSARGS;
2168 SV *sv;
2169 lucy_HitDoc* arg_self;
2170 float arg_score;
2171 LUCY_HitDoc_Set_Score_t method;
2172  
2173 CFISH_UNUSED_VAR(cv);
2174 1 SP -= items;
2175 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
2176 0 XSBind_invalid_args_error(aTHX_ cv, "self, score");
2177 }
2178  
2179 /* Extract vars from Perl stack. */
2180 1 arg_self = (lucy_HitDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITDOC, NULL);
2181 1 sv = ST(1);
2182 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
2183 0 XSBind_undef_arg_error(aTHX_ "score");
2184 }
2185 1 arg_score = (float)SvNV(sv);
2186  
2187 /* Execute */
2188 1 method = CFISH_METHOD_PTR(LUCY_HITDOC, LUCY_HitDoc_Set_Score);
2189 1 method(arg_self, arg_score);
2190 1 XSRETURN(0);
2191 }
2192  
2193 XS_INTERNAL(XS_Lucy_Document_HitDoc_get_score);
2194 13 XS_INTERNAL(XS_Lucy_Document_HitDoc_get_score) {
2195 13 dXSARGS;
2196 lucy_HitDoc* arg_self;
2197 LUCY_HitDoc_Get_Score_t method;
2198 float retval;
2199  
2200 CFISH_UNUSED_VAR(cv);
2201 13 SP -= items;
2202 13 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 13 13
2203 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2204 }
2205  
2206 /* Extract vars from Perl stack. */
2207 13 arg_self = (lucy_HitDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITDOC, NULL);
2208  
2209 /* Execute */
2210 13 method = CFISH_METHOD_PTR(LUCY_HITDOC, LUCY_HitDoc_Get_Score);
2211 13 retval = method(arg_self);
2212 13 ST(0) = newSVnv(retval);
2213 13 sv_2mortal( ST(0) );
2214 13 XSRETURN(1);
2215 }
2216  
2217 XS_INTERNAL(XS_Lucy_Document_HitDoc_equals);
2218 2 XS_INTERNAL(XS_Lucy_Document_HitDoc_equals) {
2219 2 dXSARGS;
2220 SV *sv;
2221 lucy_HitDoc* arg_self;
2222 cfish_Obj* arg_other;
2223 LUCY_HitDoc_Equals_t method;
2224 bool retval;
2225  
2226 CFISH_UNUSED_VAR(cv);
2227 2 SP -= items;
2228 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
2229 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
2230 }
2231  
2232 /* Extract vars from Perl stack. */
2233 2 arg_self = (lucy_HitDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITDOC, NULL);
2234 2 sv = ST(1);
2235 2 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
2236  
2237 /* Execute */
2238 2 method = CFISH_METHOD_PTR(LUCY_HITDOC, LUCY_HitDoc_Equals);
2239 2 retval = method(arg_self, arg_other);
2240 2 ST(0) = newSViv(!!retval);
2241 2 sv_2mortal( ST(0) );
2242 2 XSRETURN(1);
2243 }
2244  
2245 XS_INTERNAL(XS_Lucy_Document_HitDoc_dump);
2246 1 XS_INTERNAL(XS_Lucy_Document_HitDoc_dump) {
2247 1 dXSARGS;
2248 lucy_HitDoc* arg_self;
2249 LUCY_HitDoc_Dump_t method;
2250 cfish_Hash* retval;
2251  
2252 CFISH_UNUSED_VAR(cv);
2253 1 SP -= items;
2254 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
2255 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2256 }
2257  
2258 /* Extract vars from Perl stack. */
2259 1 arg_self = (lucy_HitDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITDOC, NULL);
2260  
2261 /* Execute */
2262 1 method = CFISH_METHOD_PTR(LUCY_HITDOC, LUCY_HitDoc_Dump);
2263 1 retval = method(arg_self);
2264 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2265 1 CFISH_DECREF(retval);
2266 1 sv_2mortal( ST(0) );
2267 1 XSRETURN(1);
2268 }
2269  
2270 XS_INTERNAL(XS_Lucy_Document_HitDoc_load);
2271 1 XS_INTERNAL(XS_Lucy_Document_HitDoc_load) {
2272 1 dXSARGS;
2273 SV *sv;
2274 lucy_HitDoc* arg_self;
2275 cfish_Obj* arg_dump;
2276 LUCY_HitDoc_Load_t method;
2277 lucy_HitDoc* retval;
2278  
2279 CFISH_UNUSED_VAR(cv);
2280 1 SP -= items;
2281 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
2282 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
2283 }
2284  
2285 /* Extract vars from Perl stack. */
2286 1 arg_self = (lucy_HitDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITDOC, NULL);
2287 1 sv = ST(1);
2288 1 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
2289  
2290 /* Execute */
2291 1 method = CFISH_METHOD_PTR(LUCY_HITDOC, LUCY_HitDoc_Load);
2292 1 retval = method(arg_self, arg_dump);
2293 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2294 1 CFISH_DECREF(retval);
2295 1 sv_2mortal( ST(0) );
2296 1 XSRETURN(1);
2297 }
2298  
2299 XS_INTERNAL(XS_Lucy_Document_HitDoc_serialize);
2300 0 XS_INTERNAL(XS_Lucy_Document_HitDoc_serialize) {
2301 0 dXSARGS;
2302 SV *sv;
2303 lucy_HitDoc* arg_self;
2304 lucy_OutStream* arg_outstream;
2305 LUCY_HitDoc_Serialize_t method;
2306  
2307 CFISH_UNUSED_VAR(cv);
2308 0 SP -= items;
2309 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
2310 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
2311 }
2312  
2313 /* Extract vars from Perl stack. */
2314 0 arg_self = (lucy_HitDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITDOC, NULL);
2315 0 sv = ST(1);
2316 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
2317  
2318 /* Execute */
2319 0 method = CFISH_METHOD_PTR(LUCY_HITDOC, LUCY_HitDoc_Serialize);
2320 0 method(arg_self, arg_outstream);
2321 0 XSRETURN(0);
2322 }
2323  
2324 XS_INTERNAL(XS_Lucy_Document_HitDoc_deserialize);
2325 0 XS_INTERNAL(XS_Lucy_Document_HitDoc_deserialize) {
2326 0 dXSARGS;
2327 SV *sv;
2328 lucy_HitDoc* arg_self;
2329 lucy_InStream* arg_instream;
2330 LUCY_HitDoc_Deserialize_t method;
2331 lucy_HitDoc* retval;
2332  
2333 CFISH_UNUSED_VAR(cv);
2334 0 SP -= items;
2335 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
2336 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
2337 }
2338  
2339 /* Extract vars from Perl stack. */
2340 0 arg_self = (lucy_HitDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITDOC, NULL);
2341 0 sv = ST(1);
2342 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
2343  
2344 /* Execute */
2345 0 method = CFISH_METHOD_PTR(LUCY_HITDOC, LUCY_HitDoc_Deserialize);
2346 0 arg_self = (lucy_HitDoc*)CFISH_INCREF(arg_self);
2347 0 retval = method(arg_self, arg_instream);
2348 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2349 0 CFISH_DECREF(retval);
2350 0 sv_2mortal( ST(0) );
2351 0 XSRETURN(1);
2352 }
2353  
2354 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_new);
2355 1 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_new) {
2356 1 dXSARGS;
2357 static const XSBind_ParamSpec param_specs[2] = {
2358 XSBIND_PARAM("spans", 1),
2359 XSBIND_PARAM("window", 0)
2360 };
2361 int32_t locations[2];
2362 SV *sv;
2363 lucy_HeatMap* arg_self;
2364 cfish_Vector* arg_spans;
2365 uint32_t arg_window;
2366 lucy_HeatMap* retval;
2367  
2368 CFISH_UNUSED_VAR(cv);
2369 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
2370 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
2371 }
2372 1 SP -= items;
2373  
2374 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
2375 locations, 2);
2376 1 sv = ST(locations[0]);
2377 1 arg_spans = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "spans", CFISH_VECTOR, NULL);
2378 1 sv = ST(locations[1]);
2379 0 ▶ arg_window = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_window = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
2380 1 ▶ ? (uint32_t)SvUV(sv) : 133;
Branch: 1 branch
BranchTrueFalseTotal
? (uint32_t)SvUV(sv) : 133; 0 1 1
2381 1 arg_self = (lucy_HeatMap*)XSBind_new_blank_obj(aTHX_ ST(0));
2382  
2383 1 retval = lucy_HeatMap_init(arg_self, arg_spans, arg_window);
2384 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
2385 1 XSRETURN(1);
2386 }
2387  
2388  
2389 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_flatten_spans);
2390 1 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_flatten_spans) {
2391 1 dXSARGS;
2392 SV *sv;
2393 lucy_HeatMap* arg_self;
2394 cfish_Vector* arg_spans;
2395 LUCY_HeatMap_Flatten_Spans_t method;
2396 cfish_Vector* retval;
2397  
2398 CFISH_UNUSED_VAR(cv);
2399 1 SP -= items;
2400 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
2401 0 XSBind_invalid_args_error(aTHX_ cv, "self, spans");
2402 }
2403  
2404 /* Extract vars from Perl stack. */
2405 1 arg_self = (lucy_HeatMap*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HEATMAP, NULL);
2406 1 sv = ST(1);
2407 1 arg_spans = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "spans", CFISH_VECTOR, NULL);
2408  
2409 /* Execute */
2410 1 method = CFISH_METHOD_PTR(LUCY_HEATMAP, LUCY_HeatMap_Flatten_Spans);
2411 1 retval = method(arg_self, arg_spans);
2412 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2413 1 CFISH_DECREF(retval);
2414 1 sv_2mortal( ST(0) );
2415 1 XSRETURN(1);
2416 }
2417  
2418 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_calc_proximity_boost);
2419 1 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_calc_proximity_boost) {
2420 1 dXSARGS;
2421 static const XSBind_ParamSpec param_specs[2] = {
2422 XSBIND_PARAM("span1", 1),
2423 XSBIND_PARAM("span2", 1)
2424 };
2425 int32_t locations[2];
2426 SV *sv;
2427 lucy_HeatMap* arg_self;
2428 lucy_Span* arg_span1;
2429 lucy_Span* arg_span2;
2430 LUCY_HeatMap_Calc_Proximity_Boost_t method;
2431 float retval;
2432  
2433 CFISH_UNUSED_VAR(cv);
2434 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
2435 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
2436 }
2437 1 SP -= items;
2438  
2439 /* Locate args on Perl stack. */
2440 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
2441 locations, 2);
2442 1 arg_self = (lucy_HeatMap*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HEATMAP, NULL);
2443 1 sv = ST(locations[0]);
2444 1 arg_span1 = (lucy_Span*)XSBind_arg_to_cfish(aTHX_ sv, "span1", LUCY_SPAN, NULL);
2445 1 sv = ST(locations[1]);
2446 1 arg_span2 = (lucy_Span*)XSBind_arg_to_cfish(aTHX_ sv, "span2", LUCY_SPAN, NULL);
2447  
2448 /* Execute */
2449 1 method = CFISH_METHOD_PTR(LUCY_HEATMAP, LUCY_HeatMap_Calc_Proximity_Boost);
2450 1 retval = method(arg_self, arg_span1, arg_span2);
2451 1 ST(0) = newSVnv(retval);
2452 1 sv_2mortal( ST(0) );
2453 1 XSRETURN(1);
2454 }
2455  
2456 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_generate_proximity_boosts);
2457 1 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_generate_proximity_boosts) {
2458 1 dXSARGS;
2459 SV *sv;
2460 lucy_HeatMap* arg_self;
2461 cfish_Vector* arg_spans;
2462 LUCY_HeatMap_Generate_Proximity_Boosts_t method;
2463 cfish_Vector* retval;
2464  
2465 CFISH_UNUSED_VAR(cv);
2466 1 SP -= items;
2467 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
2468 0 XSBind_invalid_args_error(aTHX_ cv, "self, spans");
2469 }
2470  
2471 /* Extract vars from Perl stack. */
2472 1 arg_self = (lucy_HeatMap*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HEATMAP, NULL);
2473 1 sv = ST(1);
2474 1 arg_spans = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "spans", CFISH_VECTOR, NULL);
2475  
2476 /* Execute */
2477 1 method = CFISH_METHOD_PTR(LUCY_HEATMAP, LUCY_HeatMap_Generate_Proximity_Boosts);
2478 1 retval = method(arg_self, arg_spans);
2479 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2480 1 CFISH_DECREF(retval);
2481 1 sv_2mortal( ST(0) );
2482 1 XSRETURN(1);
2483 }
2484  
2485 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_get_spans);
2486 0 XS_INTERNAL(XS_Lucy_Highlight_HeatMap_get_spans) {
2487 0 dXSARGS;
2488 lucy_HeatMap* arg_self;
2489 LUCY_HeatMap_Get_Spans_t method;
2490 cfish_Vector* retval;
2491  
2492 CFISH_UNUSED_VAR(cv);
2493 0 SP -= items;
2494 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
2495 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2496 }
2497  
2498 /* Extract vars from Perl stack. */
2499 0 arg_self = (lucy_HeatMap*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HEATMAP, NULL);
2500  
2501 /* Execute */
2502 0 method = CFISH_METHOD_PTR(LUCY_HEATMAP, LUCY_HeatMap_Get_Spans);
2503 0 retval = method(arg_self);
2504 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2505 0 sv_2mortal( ST(0) );
2506 0 XSRETURN(1);
2507 }
2508  
2509 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_new);
2510 3 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_new) {
2511 3 dXSARGS;
2512 static const XSBind_ParamSpec param_specs[4] = {
2513 XSBIND_PARAM("searcher", 1),
2514 XSBIND_PARAM("query", 1),
2515 XSBIND_PARAM("field", 1),
2516 XSBIND_PARAM("excerpt_length", 0)
2517 };
2518 int32_t locations[4];
2519 SV *sv;
2520 lucy_Highlighter* arg_self;
2521 lucy_Searcher* arg_searcher;
2522 cfish_Obj* arg_query;
2523 cfish_String* arg_field;
2524 uint32_t arg_excerpt_length;
2525 lucy_Highlighter* retval;
2526  
2527 CFISH_UNUSED_VAR(cv);
2528 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
2529 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
2530 }
2531 3 SP -= items;
2532  
2533 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
2534 locations, 4);
2535 3 sv = ST(locations[0]);
2536 3 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
2537 3 sv = ST(locations[1]);
2538 3 arg_query = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "query", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
2539 3 sv = ST(locations[2]);
2540 3 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
2541 3 sv = ST(locations[3]);
2542 0 ▶ arg_excerpt_length = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_excerpt_length = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
2543 3 ▶ ? (uint32_t)SvUV(sv) : 200;
Branch: 1 branch
BranchTrueFalseTotal
? (uint32_t)SvUV(sv) : 200; 0 3 3
2544 3 arg_self = (lucy_Highlighter*)XSBind_new_blank_obj(aTHX_ ST(0));
2545  
2546 3 retval = lucy_Highlighter_init(arg_self, arg_searcher, arg_query, arg_field, arg_excerpt_length);
2547 3 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
2548 3 XSRETURN(1);
2549 }
2550  
2551  
2552 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_create_excerpt);
2553 3 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_create_excerpt) {
2554 3 dXSARGS;
2555 SV *sv;
2556 lucy_Highlighter* arg_self;
2557 lucy_HitDoc* arg_hit_doc;
2558 LUCY_Highlighter_Create_Excerpt_t method;
2559 cfish_String* retval;
2560  
2561 CFISH_UNUSED_VAR(cv);
2562 3 SP -= items;
2563 3 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 3 3
2564 0 XSBind_invalid_args_error(aTHX_ cv, "self, hit_doc");
2565 }
2566  
2567 /* Extract vars from Perl stack. */
2568 3 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2569 3 sv = ST(1);
2570 3 arg_hit_doc = (lucy_HitDoc*)XSBind_arg_to_cfish(aTHX_ sv, "hit_doc", LUCY_HITDOC, NULL);
2571  
2572 /* Execute */
2573 3 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Create_Excerpt);
2574 3 retval = method(arg_self, arg_hit_doc);
2575 3 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2576 3 CFISH_DECREF(retval);
2577 3 sv_2mortal( ST(0) );
2578 3 XSRETURN(1);
2579 }
2580  
2581 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_encode);
2582 0 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_encode) {
2583 0 dXSARGS;
2584 SV *sv;
2585 lucy_Highlighter* arg_self;
2586 cfish_String* arg_text;
2587 LUCY_Highlighter_Encode_t method;
2588 cfish_String* retval;
2589  
2590 CFISH_UNUSED_VAR(cv);
2591 0 SP -= items;
2592 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
2593 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
2594 }
2595  
2596 /* Extract vars from Perl stack. */
2597 0 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2598 0 sv = ST(1);
2599 0 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
2600  
2601 /* Execute */
2602 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Encode);
2603 0 retval = method(arg_self, arg_text);
2604 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2605 0 CFISH_DECREF(retval);
2606 0 sv_2mortal( ST(0) );
2607 0 XSRETURN(1);
2608 }
2609  
2610 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_highlight);
2611 0 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_highlight) {
2612 0 dXSARGS;
2613 SV *sv;
2614 lucy_Highlighter* arg_self;
2615 cfish_String* arg_text;
2616 LUCY_Highlighter_Highlight_t method;
2617 cfish_String* retval;
2618  
2619 CFISH_UNUSED_VAR(cv);
2620 0 SP -= items;
2621 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
2622 0 XSBind_invalid_args_error(aTHX_ cv, "self, text");
2623 }
2624  
2625 /* Extract vars from Perl stack. */
2626 0 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2627 0 sv = ST(1);
2628 0 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
2629  
2630 /* Execute */
2631 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Highlight);
2632 0 retval = method(arg_self, arg_text);
2633 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2634 0 CFISH_DECREF(retval);
2635 0 sv_2mortal( ST(0) );
2636 0 XSRETURN(1);
2637 }
2638  
2639 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_set_pre_tag);
2640 1 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_set_pre_tag) {
2641 1 dXSARGS;
2642 SV *sv;
2643 lucy_Highlighter* arg_self;
2644 cfish_String* arg_pre_tag;
2645 LUCY_Highlighter_Set_Pre_Tag_t method;
2646  
2647 CFISH_UNUSED_VAR(cv);
2648 1 SP -= items;
2649 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
2650 0 XSBind_invalid_args_error(aTHX_ cv, "self, pre_tag");
2651 }
2652  
2653 /* Extract vars from Perl stack. */
2654 1 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2655 1 sv = ST(1);
2656 1 arg_pre_tag = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "pre_tag", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
2657  
2658 /* Execute */
2659 1 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Set_Pre_Tag);
2660 1 method(arg_self, arg_pre_tag);
2661 1 XSRETURN(0);
2662 }
2663  
2664 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_set_post_tag);
2665 1 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_set_post_tag) {
2666 1 dXSARGS;
2667 SV *sv;
2668 lucy_Highlighter* arg_self;
2669 cfish_String* arg_post_tag;
2670 LUCY_Highlighter_Set_Post_Tag_t method;
2671  
2672 CFISH_UNUSED_VAR(cv);
2673 1 SP -= items;
2674 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
2675 0 XSBind_invalid_args_error(aTHX_ cv, "self, post_tag");
2676 }
2677  
2678 /* Extract vars from Perl stack. */
2679 1 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2680 1 sv = ST(1);
2681 1 arg_post_tag = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "post_tag", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
2682  
2683 /* Execute */
2684 1 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Set_Post_Tag);
2685 1 method(arg_self, arg_post_tag);
2686 1 XSRETURN(0);
2687 }
2688  
2689 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_pre_tag);
2690 0 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_pre_tag) {
2691 0 dXSARGS;
2692 lucy_Highlighter* arg_self;
2693 LUCY_Highlighter_Get_Pre_Tag_t method;
2694 cfish_String* retval;
2695  
2696 CFISH_UNUSED_VAR(cv);
2697 0 SP -= items;
2698 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
2699 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2700 }
2701  
2702 /* Extract vars from Perl stack. */
2703 0 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2704  
2705 /* Execute */
2706 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Get_Pre_Tag);
2707 0 retval = method(arg_self);
2708 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2709 0 sv_2mortal( ST(0) );
2710 0 XSRETURN(1);
2711 }
2712  
2713 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_post_tag);
2714 0 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_post_tag) {
2715 0 dXSARGS;
2716 lucy_Highlighter* arg_self;
2717 LUCY_Highlighter_Get_Post_Tag_t method;
2718 cfish_String* retval;
2719  
2720 CFISH_UNUSED_VAR(cv);
2721 0 SP -= items;
2722 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
2723 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2724 }
2725  
2726 /* Extract vars from Perl stack. */
2727 0 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2728  
2729 /* Execute */
2730 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Get_Post_Tag);
2731 0 retval = method(arg_self);
2732 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2733 0 sv_2mortal( ST(0) );
2734 0 XSRETURN(1);
2735 }
2736  
2737 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_field);
2738 0 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_field) {
2739 0 dXSARGS;
2740 lucy_Highlighter* arg_self;
2741 LUCY_Highlighter_Get_Field_t method;
2742 cfish_String* retval;
2743  
2744 CFISH_UNUSED_VAR(cv);
2745 0 SP -= items;
2746 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
2747 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2748 }
2749  
2750 /* Extract vars from Perl stack. */
2751 0 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2752  
2753 /* Execute */
2754 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Get_Field);
2755 0 retval = method(arg_self);
2756 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2757 0 sv_2mortal( ST(0) );
2758 0 XSRETURN(1);
2759 }
2760  
2761 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_excerpt_length);
2762 0 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_excerpt_length) {
2763 0 dXSARGS;
2764 lucy_Highlighter* arg_self;
2765 LUCY_Highlighter_Get_Excerpt_Length_t method;
2766 uint32_t retval;
2767  
2768 CFISH_UNUSED_VAR(cv);
2769 0 SP -= items;
2770 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
2771 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2772 }
2773  
2774 /* Extract vars from Perl stack. */
2775 0 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2776  
2777 /* Execute */
2778 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Get_Excerpt_Length);
2779 0 retval = method(arg_self);
2780 0 ST(0) = newSVuv(retval);
2781 0 sv_2mortal( ST(0) );
2782 0 XSRETURN(1);
2783 }
2784  
2785 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_searcher);
2786 0 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_searcher) {
2787 0 dXSARGS;
2788 lucy_Highlighter* arg_self;
2789 LUCY_Highlighter_Get_Searcher_t method;
2790 lucy_Searcher* retval;
2791  
2792 CFISH_UNUSED_VAR(cv);
2793 0 SP -= items;
2794 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
2795 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2796 }
2797  
2798 /* Extract vars from Perl stack. */
2799 0 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2800  
2801 /* Execute */
2802 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Get_Searcher);
2803 0 retval = method(arg_self);
2804 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2805 0 sv_2mortal( ST(0) );
2806 0 XSRETURN(1);
2807 }
2808  
2809 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_query);
2810 1 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_query) {
2811 1 dXSARGS;
2812 lucy_Highlighter* arg_self;
2813 LUCY_Highlighter_Get_Query_t method;
2814 lucy_Query* retval;
2815  
2816 CFISH_UNUSED_VAR(cv);
2817 1 SP -= items;
2818 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
2819 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2820 }
2821  
2822 /* Extract vars from Perl stack. */
2823 1 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2824  
2825 /* Execute */
2826 1 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Get_Query);
2827 1 retval = method(arg_self);
2828 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2829 1 sv_2mortal( ST(0) );
2830 1 XSRETURN(1);
2831 }
2832  
2833 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_compiler);
2834 1 XS_INTERNAL(XS_Lucy_Highlight_Highlighter_get_compiler) {
2835 1 dXSARGS;
2836 lucy_Highlighter* arg_self;
2837 LUCY_Highlighter_Get_Compiler_t method;
2838 lucy_Compiler* retval;
2839  
2840 CFISH_UNUSED_VAR(cv);
2841 1 SP -= items;
2842 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
2843 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2844 }
2845  
2846 /* Extract vars from Perl stack. */
2847 1 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2848  
2849 /* Execute */
2850 1 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Get_Compiler);
2851 1 retval = method(arg_self);
2852 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2853 1 sv_2mortal( ST(0) );
2854 1 XSRETURN(1);
2855 }
2856  
2857 XS_INTERNAL(XS_Lucy_Highlight_Highlighter__highlight_excerpt);
2858 0 XS_INTERNAL(XS_Lucy_Highlight_Highlighter__highlight_excerpt) {
2859 0 dXSARGS;
2860 static const XSBind_ParamSpec param_specs[3] = {
2861 XSBIND_PARAM("spans", 1),
2862 XSBIND_PARAM("raw_excerpt", 1),
2863 XSBIND_PARAM("top", 1)
2864 };
2865 int32_t locations[3];
2866 SV *sv;
2867 lucy_Highlighter* arg_self;
2868 cfish_Vector* arg_spans;
2869 cfish_String* arg_raw_excerpt;
2870 int32_t arg_top;
2871 LUCY_Highlighter_Highlight_Excerpt_t method;
2872 cfish_String* retval;
2873  
2874 CFISH_UNUSED_VAR(cv);
2875 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
2876 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
2877 }
2878 0 SP -= items;
2879  
2880 /* Locate args on Perl stack. */
2881 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
2882 locations, 3);
2883 0 arg_self = (lucy_Highlighter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTER, NULL);
2884 0 sv = ST(locations[0]);
2885 0 arg_spans = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "spans", CFISH_VECTOR, NULL);
2886 0 sv = ST(locations[1]);
2887 0 arg_raw_excerpt = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "raw_excerpt", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
2888 0 sv = ST(locations[2]);
2889 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
2890 0 XSBind_undef_arg_error(aTHX_ "top");
2891 }
2892 0 arg_top = (int32_t)SvIV(sv);
2893  
2894 /* Execute */
2895 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTER, LUCY_Highlighter_Highlight_Excerpt);
2896 0 retval = method(arg_self, arg_spans, arg_raw_excerpt, arg_top);
2897 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
2898 0 sv_2mortal( ST(0) );
2899 0 XSRETURN(1);
2900 }
2901  
2902 XS_INTERNAL(XS_Lucy_Index_BackgroundMerger_new);
2903 2 XS_INTERNAL(XS_Lucy_Index_BackgroundMerger_new) {
2904 2 dXSARGS;
2905 static const XSBind_ParamSpec param_specs[2] = {
2906 XSBIND_PARAM("index", 1),
2907 XSBIND_PARAM("manager", 0)
2908 };
2909 int32_t locations[2];
2910 SV *sv;
2911 lucy_BackgroundMerger* arg_self;
2912 cfish_Obj* arg_index;
2913 lucy_IndexManager* arg_manager;
2914 lucy_BackgroundMerger* retval;
2915  
2916 CFISH_UNUSED_VAR(cv);
2917 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
2918 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
2919 }
2920 2 SP -= items;
2921  
2922 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
2923 locations, 2);
2924 2 sv = ST(locations[0]);
2925 2 arg_index = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "index", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
2926 2 sv = ST(locations[1]);
2927 2 ▶ arg_manager = locations[1] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_manager = locations[1] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL; 0 2 2
2928 2 arg_self = (lucy_BackgroundMerger*)XSBind_new_blank_obj(aTHX_ ST(0));
2929  
2930 2 retval = lucy_BGMerger_init(arg_self, arg_index, arg_manager);
2931 2 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
2932 2 XSRETURN(1);
2933 }
2934  
2935  
2936 XS_INTERNAL(XS_Lucy_Index_BackgroundMerger_optimize);
2937 0 XS_INTERNAL(XS_Lucy_Index_BackgroundMerger_optimize) {
2938 0 dXSARGS;
2939 lucy_BackgroundMerger* arg_self;
2940 LUCY_BGMerger_Optimize_t method;
2941  
2942 CFISH_UNUSED_VAR(cv);
2943 0 SP -= items;
2944 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
2945 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2946 }
2947  
2948 /* Extract vars from Perl stack. */
2949 0 arg_self = (lucy_BackgroundMerger*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BACKGROUNDMERGER, NULL);
2950  
2951 /* Execute */
2952 0 method = CFISH_METHOD_PTR(LUCY_BACKGROUNDMERGER, LUCY_BGMerger_Optimize);
2953 0 method(arg_self);
2954 0 XSRETURN(0);
2955 }
2956  
2957 XS_INTERNAL(XS_Lucy_Index_BackgroundMerger_commit);
2958 1 XS_INTERNAL(XS_Lucy_Index_BackgroundMerger_commit) {
2959 1 dXSARGS;
2960 lucy_BackgroundMerger* arg_self;
2961 LUCY_BGMerger_Commit_t method;
2962  
2963 CFISH_UNUSED_VAR(cv);
2964 1 SP -= items;
2965 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
2966 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2967 }
2968  
2969 /* Extract vars from Perl stack. */
2970 1 arg_self = (lucy_BackgroundMerger*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BACKGROUNDMERGER, NULL);
2971  
2972 /* Execute */
2973 1 method = CFISH_METHOD_PTR(LUCY_BACKGROUNDMERGER, LUCY_BGMerger_Commit);
2974 1 method(arg_self);
2975 1 XSRETURN(0);
2976 }
2977  
2978 XS_INTERNAL(XS_Lucy_Index_BackgroundMerger_prepare_commit);
2979 1 XS_INTERNAL(XS_Lucy_Index_BackgroundMerger_prepare_commit) {
2980 1 dXSARGS;
2981 lucy_BackgroundMerger* arg_self;
2982 LUCY_BGMerger_Prepare_Commit_t method;
2983  
2984 CFISH_UNUSED_VAR(cv);
2985 1 SP -= items;
2986 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
2987 0 XSBind_invalid_args_error(aTHX_ cv, "self");
2988 }
2989  
2990 /* Extract vars from Perl stack. */
2991 1 arg_self = (lucy_BackgroundMerger*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BACKGROUNDMERGER, NULL);
2992  
2993 /* Execute */
2994 1 method = CFISH_METHOD_PTR(LUCY_BACKGROUNDMERGER, LUCY_BGMerger_Prepare_Commit);
2995 1 method(arg_self);
2996 1 XSRETURN(0);
2997 }
2998  
2999 XS_INTERNAL(XS_Lucy_Index_Counter_new);
3000 0 XS_INTERNAL(XS_Lucy_Index_Counter_new) {
3001 0 dXSARGS;
3002 lucy_Counter* arg_self;
3003 lucy_Counter* retval;
3004  
3005 CFISH_UNUSED_VAR(cv);
3006 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3007 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
3008 }
3009 0 SP -= items;
3010  
3011 0 arg_self = (lucy_Counter*)XSBind_new_blank_obj(aTHX_ ST(0));
3012  
3013 0 retval = lucy_Counter_init(arg_self);
3014 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
3015 0 XSRETURN(1);
3016 }
3017  
3018  
3019 XS_INTERNAL(XS_Lucy_Index_Counter_add);
3020 0 XS_INTERNAL(XS_Lucy_Index_Counter_add) {
3021 0 dXSARGS;
3022 SV *sv;
3023 lucy_Counter* arg_self;
3024 int64_t arg_amount;
3025 LUCY_Counter_Add_t method;
3026 int64_t retval;
3027  
3028 CFISH_UNUSED_VAR(cv);
3029 0 SP -= items;
3030 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
3031 0 XSBind_invalid_args_error(aTHX_ cv, "self, amount");
3032 }
3033  
3034 /* Extract vars from Perl stack. */
3035 0 arg_self = (lucy_Counter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COUNTER, NULL);
3036 0 sv = ST(1);
3037 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
3038 0 XSBind_undef_arg_error(aTHX_ "amount");
3039 }
3040 0 arg_amount = (int64_t)SvNV(sv);
3041  
3042 /* Execute */
3043 0 method = CFISH_METHOD_PTR(LUCY_COUNTER, LUCY_Counter_Add);
3044 0 retval = method(arg_self, arg_amount);
3045 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
3046 0 sv_2mortal( ST(0) );
3047 0 XSRETURN(1);
3048 }
3049  
3050 XS_INTERNAL(XS_Lucy_Index_Counter_get_value);
3051 0 XS_INTERNAL(XS_Lucy_Index_Counter_get_value) {
3052 0 dXSARGS;
3053 lucy_Counter* arg_self;
3054 LUCY_Counter_Get_Value_t method;
3055 int64_t retval;
3056  
3057 CFISH_UNUSED_VAR(cv);
3058 0 SP -= items;
3059 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3060 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3061 }
3062  
3063 /* Extract vars from Perl stack. */
3064 0 arg_self = (lucy_Counter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COUNTER, NULL);
3065  
3066 /* Execute */
3067 0 method = CFISH_METHOD_PTR(LUCY_COUNTER, LUCY_Counter_Get_Value);
3068 0 retval = method(arg_self);
3069 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
3070 0 sv_2mortal( ST(0) );
3071 0 XSRETURN(1);
3072 }
3073  
3074 XS_INTERNAL(XS_Lucy_Index_Counter_reset);
3075 0 XS_INTERNAL(XS_Lucy_Index_Counter_reset) {
3076 0 dXSARGS;
3077 lucy_Counter* arg_self;
3078 LUCY_Counter_Reset_t method;
3079  
3080 CFISH_UNUSED_VAR(cv);
3081 0 SP -= items;
3082 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3083 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3084 }
3085  
3086 /* Extract vars from Perl stack. */
3087 0 arg_self = (lucy_Counter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COUNTER, NULL);
3088  
3089 /* Execute */
3090 0 method = CFISH_METHOD_PTR(LUCY_COUNTER, LUCY_Counter_Reset);
3091 0 method(arg_self);
3092 0 XSRETURN(0);
3093 }
3094  
3095 XS_INTERNAL(XS_Lucy_Index_DataReader_new);
3096 0 XS_INTERNAL(XS_Lucy_Index_DataReader_new) {
3097 0 dXSARGS;
3098 static const XSBind_ParamSpec param_specs[5] = {
3099 XSBIND_PARAM("schema", 0),
3100 XSBIND_PARAM("folder", 0),
3101 XSBIND_PARAM("snapshot", 0),
3102 XSBIND_PARAM("segments", 0),
3103 XSBIND_PARAM("seg_tick", 0)
3104 };
3105 int32_t locations[5];
3106 SV *sv;
3107 lucy_DataReader* arg_self;
3108 lucy_Schema* arg_schema;
3109 lucy_Folder* arg_folder;
3110 lucy_Snapshot* arg_snapshot;
3111 cfish_Vector* arg_segments;
3112 int32_t arg_seg_tick;
3113 lucy_DataReader* retval;
3114  
3115 CFISH_UNUSED_VAR(cv);
3116 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
3117 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
3118 }
3119 0 SP -= items;
3120  
3121 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3122 locations, 5);
3123 0 sv = ST(locations[0]);
3124 0 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 0 0 0
3125 0 sv = ST(locations[1]);
3126 0 ▶ arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL; 0 0 0
3127 0 sv = ST(locations[2]);
3128 0 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 0 0 0
3129 0 sv = ST(locations[3]);
3130 0 ▶ arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL; 0 0 0
3131 0 sv = ST(locations[4]);
3132 0 ▶ arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
3133 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
3134 0 arg_self = (lucy_DataReader*)XSBind_new_blank_obj(aTHX_ ST(0));
3135  
3136 0 retval = lucy_DataReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
3137 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
3138 0 XSRETURN(1);
3139 }
3140  
3141  
3142 XS_INTERNAL(XS_Lucy_Index_DataReader_aggregator);
3143 0 XS_INTERNAL(XS_Lucy_Index_DataReader_aggregator) {
3144 0 dXSARGS;
3145 static const XSBind_ParamSpec param_specs[2] = {
3146 XSBIND_PARAM("readers", 1),
3147 XSBIND_PARAM("offsets", 1)
3148 };
3149 int32_t locations[2];
3150 SV *sv;
3151 lucy_DataReader* arg_self;
3152 cfish_Vector* arg_readers;
3153 lucy_I32Array* arg_offsets;
3154 LUCY_DataReader_Aggregator_t method;
3155 lucy_DataReader* retval;
3156  
3157 CFISH_UNUSED_VAR(cv);
3158 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
3159 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
3160 }
3161 0 SP -= items;
3162  
3163 /* Locate args on Perl stack. */
3164 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3165 locations, 2);
3166 0 arg_self = (lucy_DataReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAREADER, NULL);
3167 0 sv = ST(locations[0]);
3168 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
3169 0 sv = ST(locations[1]);
3170 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
3171  
3172 /* Execute */
3173 0 method = CFISH_METHOD_PTR(LUCY_DATAREADER, LUCY_DataReader_Aggregator);
3174 0 retval = method(arg_self, arg_readers, arg_offsets);
3175 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3176 0 CFISH_DECREF(retval);
3177 0 sv_2mortal( ST(0) );
3178 0 XSRETURN(1);
3179 }
3180  
3181 XS_INTERNAL(XS_Lucy_Index_DataReader_get_schema);
3182 23 XS_INTERNAL(XS_Lucy_Index_DataReader_get_schema) {
3183 23 dXSARGS;
3184 lucy_DataReader* arg_self;
3185 LUCY_DataReader_Get_Schema_t method;
3186 lucy_Schema* retval;
3187  
3188 CFISH_UNUSED_VAR(cv);
3189 23 SP -= items;
3190 23 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 23 23
3191 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3192 }
3193  
3194 /* Extract vars from Perl stack. */
3195 23 arg_self = (lucy_DataReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAREADER, NULL);
3196  
3197 /* Execute */
3198 23 method = CFISH_METHOD_PTR(LUCY_DATAREADER, LUCY_DataReader_Get_Schema);
3199 23 retval = method(arg_self);
3200 23 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3201 23 sv_2mortal( ST(0) );
3202 23 XSRETURN(1);
3203 }
3204  
3205 XS_INTERNAL(XS_Lucy_Index_DataReader_get_folder);
3206 27 XS_INTERNAL(XS_Lucy_Index_DataReader_get_folder) {
3207 27 dXSARGS;
3208 lucy_DataReader* arg_self;
3209 LUCY_DataReader_Get_Folder_t method;
3210 lucy_Folder* retval;
3211  
3212 CFISH_UNUSED_VAR(cv);
3213 27 SP -= items;
3214 27 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 27 27
3215 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3216 }
3217  
3218 /* Extract vars from Perl stack. */
3219 27 arg_self = (lucy_DataReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAREADER, NULL);
3220  
3221 /* Execute */
3222 27 method = CFISH_METHOD_PTR(LUCY_DATAREADER, LUCY_DataReader_Get_Folder);
3223 27 retval = method(arg_self);
3224 27 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3225 27 sv_2mortal( ST(0) );
3226 27 XSRETURN(1);
3227 }
3228  
3229 XS_INTERNAL(XS_Lucy_Index_DataReader_get_snapshot);
3230 16 XS_INTERNAL(XS_Lucy_Index_DataReader_get_snapshot) {
3231 16 dXSARGS;
3232 lucy_DataReader* arg_self;
3233 LUCY_DataReader_Get_Snapshot_t method;
3234 lucy_Snapshot* retval;
3235  
3236 CFISH_UNUSED_VAR(cv);
3237 16 SP -= items;
3238 16 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 16 16
3239 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3240 }
3241  
3242 /* Extract vars from Perl stack. */
3243 16 arg_self = (lucy_DataReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAREADER, NULL);
3244  
3245 /* Execute */
3246 16 method = CFISH_METHOD_PTR(LUCY_DATAREADER, LUCY_DataReader_Get_Snapshot);
3247 16 retval = method(arg_self);
3248 16 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3249 16 sv_2mortal( ST(0) );
3250 16 XSRETURN(1);
3251 }
3252  
3253 XS_INTERNAL(XS_Lucy_Index_DataReader_get_segments);
3254 12 XS_INTERNAL(XS_Lucy_Index_DataReader_get_segments) {
3255 12 dXSARGS;
3256 lucy_DataReader* arg_self;
3257 LUCY_DataReader_Get_Segments_t method;
3258 cfish_Vector* retval;
3259  
3260 CFISH_UNUSED_VAR(cv);
3261 12 SP -= items;
3262 12 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 12 12
3263 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3264 }
3265  
3266 /* Extract vars from Perl stack. */
3267 12 arg_self = (lucy_DataReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAREADER, NULL);
3268  
3269 /* Execute */
3270 12 method = CFISH_METHOD_PTR(LUCY_DATAREADER, LUCY_DataReader_Get_Segments);
3271 12 retval = method(arg_self);
3272 12 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3273 12 sv_2mortal( ST(0) );
3274 12 XSRETURN(1);
3275 }
3276  
3277 XS_INTERNAL(XS_Lucy_Index_DataReader_get_segment);
3278 19 XS_INTERNAL(XS_Lucy_Index_DataReader_get_segment) {
3279 19 dXSARGS;
3280 lucy_DataReader* arg_self;
3281 LUCY_DataReader_Get_Segment_t method;
3282 lucy_Segment* retval;
3283  
3284 CFISH_UNUSED_VAR(cv);
3285 19 SP -= items;
3286 19 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 19 19
3287 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3288 }
3289  
3290 /* Extract vars from Perl stack. */
3291 19 arg_self = (lucy_DataReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAREADER, NULL);
3292  
3293 /* Execute */
3294 19 method = CFISH_METHOD_PTR(LUCY_DATAREADER, LUCY_DataReader_Get_Segment);
3295 19 retval = method(arg_self);
3296 19 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3297 19 sv_2mortal( ST(0) );
3298 19 XSRETURN(1);
3299 }
3300  
3301 XS_INTERNAL(XS_Lucy_Index_DataReader_get_seg_tick);
3302 12 XS_INTERNAL(XS_Lucy_Index_DataReader_get_seg_tick) {
3303 12 dXSARGS;
3304 lucy_DataReader* arg_self;
3305 LUCY_DataReader_Get_Seg_Tick_t method;
3306 int32_t retval;
3307  
3308 CFISH_UNUSED_VAR(cv);
3309 12 SP -= items;
3310 12 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 12 12
3311 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3312 }
3313  
3314 /* Extract vars from Perl stack. */
3315 12 arg_self = (lucy_DataReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAREADER, NULL);
3316  
3317 /* Execute */
3318 12 method = CFISH_METHOD_PTR(LUCY_DATAREADER, LUCY_DataReader_Get_Seg_Tick);
3319 12 retval = method(arg_self);
3320 12 ST(0) = newSViv(retval);
3321 12 sv_2mortal( ST(0) );
3322 12 XSRETURN(1);
3323 }
3324  
3325 XS_INTERNAL(XS_Lucy_Index_DataReader_close);
3326 0 XS_INTERNAL(XS_Lucy_Index_DataReader_close) {
3327 0 dXSARGS;
3328 lucy_DataReader* arg_self;
3329 LUCY_DataReader_Close_t method;
3330  
3331 CFISH_UNUSED_VAR(cv);
3332 0 SP -= items;
3333 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3334 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3335 }
3336  
3337 /* Extract vars from Perl stack. */
3338 0 arg_self = (lucy_DataReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAREADER, NULL);
3339  
3340 /* Execute */
3341 0 method = CFISH_METHOD_PTR(LUCY_DATAREADER, LUCY_DataReader_Close);
3342 0 method(arg_self);
3343 0 XSRETURN(0);
3344 }
3345  
3346 XS_INTERNAL(XS_Lucy_Index_DeletionsReader_new);
3347 0 XS_INTERNAL(XS_Lucy_Index_DeletionsReader_new) {
3348 0 dXSARGS;
3349 static const XSBind_ParamSpec param_specs[5] = {
3350 XSBIND_PARAM("schema", 0),
3351 XSBIND_PARAM("folder", 0),
3352 XSBIND_PARAM("snapshot", 0),
3353 XSBIND_PARAM("segments", 0),
3354 XSBIND_PARAM("seg_tick", 0)
3355 };
3356 int32_t locations[5];
3357 SV *sv;
3358 lucy_DeletionsReader* arg_self;
3359 lucy_Schema* arg_schema;
3360 lucy_Folder* arg_folder;
3361 lucy_Snapshot* arg_snapshot;
3362 cfish_Vector* arg_segments;
3363 int32_t arg_seg_tick;
3364 lucy_DeletionsReader* retval;
3365  
3366 CFISH_UNUSED_VAR(cv);
3367 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
3368 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
3369 }
3370 0 SP -= items;
3371  
3372 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3373 locations, 5);
3374 0 sv = ST(locations[0]);
3375 0 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 0 0 0
3376 0 sv = ST(locations[1]);
3377 0 ▶ arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL; 0 0 0
3378 0 sv = ST(locations[2]);
3379 0 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 0 0 0
3380 0 sv = ST(locations[3]);
3381 0 ▶ arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL; 0 0 0
3382 0 sv = ST(locations[4]);
3383 0 ▶ arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
3384 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
3385 0 arg_self = (lucy_DeletionsReader*)XSBind_new_blank_obj(aTHX_ ST(0));
3386  
3387 0 retval = lucy_DelReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
3388 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
3389 0 XSRETURN(1);
3390 }
3391  
3392  
3393 XS_INTERNAL(XS_Lucy_Index_DeletionsReader_del_count);
3394 0 XS_INTERNAL(XS_Lucy_Index_DeletionsReader_del_count) {
3395 0 dXSARGS;
3396 lucy_DeletionsReader* arg_self;
3397 LUCY_DelReader_Del_Count_t method;
3398 int32_t retval;
3399  
3400 CFISH_UNUSED_VAR(cv);
3401 0 SP -= items;
3402 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3403 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3404 }
3405  
3406 /* Extract vars from Perl stack. */
3407 0 arg_self = (lucy_DeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSREADER, NULL);
3408  
3409 /* Execute */
3410 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSREADER, LUCY_DelReader_Del_Count);
3411 0 retval = method(arg_self);
3412 0 ST(0) = newSViv(retval);
3413 0 sv_2mortal( ST(0) );
3414 0 XSRETURN(1);
3415 }
3416  
3417 XS_INTERNAL(XS_Lucy_Index_DeletionsReader_iterator);
3418 0 XS_INTERNAL(XS_Lucy_Index_DeletionsReader_iterator) {
3419 0 dXSARGS;
3420 lucy_DeletionsReader* arg_self;
3421 LUCY_DelReader_Iterator_t method;
3422 lucy_Matcher* retval;
3423  
3424 CFISH_UNUSED_VAR(cv);
3425 0 SP -= items;
3426 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3427 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3428 }
3429  
3430 /* Extract vars from Perl stack. */
3431 0 arg_self = (lucy_DeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSREADER, NULL);
3432  
3433 /* Execute */
3434 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSREADER, LUCY_DelReader_Iterator);
3435 0 retval = method(arg_self);
3436 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3437 0 CFISH_DECREF(retval);
3438 0 sv_2mortal( ST(0) );
3439 0 XSRETURN(1);
3440 }
3441  
3442 XS_INTERNAL(XS_Lucy_Index_DeletionsReader_aggregator);
3443 0 XS_INTERNAL(XS_Lucy_Index_DeletionsReader_aggregator) {
3444 0 dXSARGS;
3445 static const XSBind_ParamSpec param_specs[2] = {
3446 XSBIND_PARAM("readers", 1),
3447 XSBIND_PARAM("offsets", 1)
3448 };
3449 int32_t locations[2];
3450 SV *sv;
3451 lucy_DeletionsReader* arg_self;
3452 cfish_Vector* arg_readers;
3453 lucy_I32Array* arg_offsets;
3454 LUCY_DelReader_Aggregator_t method;
3455 lucy_DeletionsReader* retval;
3456  
3457 CFISH_UNUSED_VAR(cv);
3458 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
3459 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
3460 }
3461 0 SP -= items;
3462  
3463 /* Locate args on Perl stack. */
3464 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3465 locations, 2);
3466 0 arg_self = (lucy_DeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSREADER, NULL);
3467 0 sv = ST(locations[0]);
3468 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
3469 0 sv = ST(locations[1]);
3470 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
3471  
3472 /* Execute */
3473 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSREADER, LUCY_DelReader_Aggregator);
3474 0 retval = method(arg_self, arg_readers, arg_offsets);
3475 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3476 0 CFISH_DECREF(retval);
3477 0 sv_2mortal( ST(0) );
3478 0 XSRETURN(1);
3479 }
3480  
3481 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_new);
3482 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_new) {
3483 0 dXSARGS;
3484 static const XSBind_ParamSpec param_specs[5] = {
3485 XSBIND_PARAM("schema", 1),
3486 XSBIND_PARAM("folder", 1),
3487 XSBIND_PARAM("snapshot", 1),
3488 XSBIND_PARAM("segments", 1),
3489 XSBIND_PARAM("seg_tick", 1)
3490 };
3491 int32_t locations[5];
3492 SV *sv;
3493 lucy_DefaultDeletionsReader* arg_self;
3494 lucy_Schema* arg_schema;
3495 lucy_Folder* arg_folder;
3496 lucy_Snapshot* arg_snapshot;
3497 cfish_Vector* arg_segments;
3498 int32_t arg_seg_tick;
3499 lucy_DefaultDeletionsReader* retval;
3500  
3501 CFISH_UNUSED_VAR(cv);
3502 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
3503 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
3504 }
3505 0 SP -= items;
3506  
3507 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3508 locations, 5);
3509 0 sv = ST(locations[0]);
3510 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
3511 0 sv = ST(locations[1]);
3512 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
3513 0 sv = ST(locations[2]);
3514 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
3515 0 sv = ST(locations[3]);
3516 0 arg_segments = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "segments", CFISH_VECTOR, NULL);
3517 0 sv = ST(locations[4]);
3518 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
3519 0 XSBind_undef_arg_error(aTHX_ "seg_tick");
3520 }
3521 0 arg_seg_tick = (int32_t)SvIV(sv);
3522 0 arg_self = (lucy_DefaultDeletionsReader*)XSBind_new_blank_obj(aTHX_ ST(0));
3523  
3524 0 retval = lucy_DefDelReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
3525 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
3526 0 XSRETURN(1);
3527 }
3528  
3529  
3530 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_del_count);
3531 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_del_count) {
3532 0 dXSARGS;
3533 lucy_DefaultDeletionsReader* arg_self;
3534 LUCY_DefDelReader_Del_Count_t method;
3535 int32_t retval;
3536  
3537 CFISH_UNUSED_VAR(cv);
3538 0 SP -= items;
3539 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3540 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3541 }
3542  
3543 /* Extract vars from Perl stack. */
3544 0 arg_self = (lucy_DefaultDeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSREADER, NULL);
3545  
3546 /* Execute */
3547 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSREADER, LUCY_DefDelReader_Del_Count);
3548 0 retval = method(arg_self);
3549 0 ST(0) = newSViv(retval);
3550 0 sv_2mortal( ST(0) );
3551 0 XSRETURN(1);
3552 }
3553  
3554 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_iterator);
3555 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_iterator) {
3556 0 dXSARGS;
3557 lucy_DefaultDeletionsReader* arg_self;
3558 LUCY_DefDelReader_Iterator_t method;
3559 lucy_Matcher* retval;
3560  
3561 CFISH_UNUSED_VAR(cv);
3562 0 SP -= items;
3563 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3564 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3565 }
3566  
3567 /* Extract vars from Perl stack. */
3568 0 arg_self = (lucy_DefaultDeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSREADER, NULL);
3569  
3570 /* Execute */
3571 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSREADER, LUCY_DefDelReader_Iterator);
3572 0 retval = method(arg_self);
3573 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3574 0 CFISH_DECREF(retval);
3575 0 sv_2mortal( ST(0) );
3576 0 XSRETURN(1);
3577 }
3578  
3579 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_read_deletions);
3580 1 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_read_deletions) {
3581 1 dXSARGS;
3582 lucy_DefaultDeletionsReader* arg_self;
3583 LUCY_DefDelReader_Read_Deletions_t method;
3584 lucy_BitVector* retval;
3585  
3586 CFISH_UNUSED_VAR(cv);
3587 1 SP -= items;
3588 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
3589 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3590 }
3591  
3592 /* Extract vars from Perl stack. */
3593 1 arg_self = (lucy_DefaultDeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSREADER, NULL);
3594  
3595 /* Execute */
3596 1 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSREADER, LUCY_DefDelReader_Read_Deletions);
3597 1 retval = method(arg_self);
3598 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3599 1 sv_2mortal( ST(0) );
3600 1 XSRETURN(1);
3601 }
3602  
3603 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_close);
3604 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsReader_close) {
3605 0 dXSARGS;
3606 lucy_DefaultDeletionsReader* arg_self;
3607 LUCY_DefDelReader_Close_t method;
3608  
3609 CFISH_UNUSED_VAR(cv);
3610 0 SP -= items;
3611 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3612 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3613 }
3614  
3615 /* Extract vars from Perl stack. */
3616 0 arg_self = (lucy_DefaultDeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSREADER, NULL);
3617  
3618 /* Execute */
3619 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSREADER, LUCY_DefDelReader_Close);
3620 0 method(arg_self);
3621 0 XSRETURN(0);
3622 }
3623  
3624 XS_INTERNAL(XS_Lucy_Index_PolyDeletionsReader_new);
3625 0 XS_INTERNAL(XS_Lucy_Index_PolyDeletionsReader_new) {
3626 0 dXSARGS;
3627 static const XSBind_ParamSpec param_specs[2] = {
3628 XSBIND_PARAM("readers", 1),
3629 XSBIND_PARAM("offsets", 1)
3630 };
3631 int32_t locations[2];
3632 SV *sv;
3633 lucy_PolyDeletionsReader* arg_self;
3634 cfish_Vector* arg_readers;
3635 lucy_I32Array* arg_offsets;
3636 lucy_PolyDeletionsReader* retval;
3637  
3638 CFISH_UNUSED_VAR(cv);
3639 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
3640 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
3641 }
3642 0 SP -= items;
3643  
3644 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3645 locations, 2);
3646 0 sv = ST(locations[0]);
3647 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
3648 0 sv = ST(locations[1]);
3649 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
3650 0 arg_self = (lucy_PolyDeletionsReader*)XSBind_new_blank_obj(aTHX_ ST(0));
3651  
3652 0 retval = lucy_PolyDelReader_init(arg_self, arg_readers, arg_offsets);
3653 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
3654 0 XSRETURN(1);
3655 }
3656  
3657  
3658 XS_INTERNAL(XS_Lucy_Index_PolyDeletionsReader_del_count);
3659 0 XS_INTERNAL(XS_Lucy_Index_PolyDeletionsReader_del_count) {
3660 0 dXSARGS;
3661 lucy_PolyDeletionsReader* arg_self;
3662 LUCY_PolyDelReader_Del_Count_t method;
3663 int32_t retval;
3664  
3665 CFISH_UNUSED_VAR(cv);
3666 0 SP -= items;
3667 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3668 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3669 }
3670  
3671 /* Extract vars from Perl stack. */
3672 0 arg_self = (lucy_PolyDeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYDELETIONSREADER, NULL);
3673  
3674 /* Execute */
3675 0 method = CFISH_METHOD_PTR(LUCY_POLYDELETIONSREADER, LUCY_PolyDelReader_Del_Count);
3676 0 retval = method(arg_self);
3677 0 ST(0) = newSViv(retval);
3678 0 sv_2mortal( ST(0) );
3679 0 XSRETURN(1);
3680 }
3681  
3682 XS_INTERNAL(XS_Lucy_Index_PolyDeletionsReader_iterator);
3683 0 XS_INTERNAL(XS_Lucy_Index_PolyDeletionsReader_iterator) {
3684 0 dXSARGS;
3685 lucy_PolyDeletionsReader* arg_self;
3686 LUCY_PolyDelReader_Iterator_t method;
3687 lucy_Matcher* retval;
3688  
3689 CFISH_UNUSED_VAR(cv);
3690 0 SP -= items;
3691 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3692 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3693 }
3694  
3695 /* Extract vars from Perl stack. */
3696 0 arg_self = (lucy_PolyDeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYDELETIONSREADER, NULL);
3697  
3698 /* Execute */
3699 0 method = CFISH_METHOD_PTR(LUCY_POLYDELETIONSREADER, LUCY_PolyDelReader_Iterator);
3700 0 retval = method(arg_self);
3701 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3702 0 CFISH_DECREF(retval);
3703 0 sv_2mortal( ST(0) );
3704 0 XSRETURN(1);
3705 }
3706  
3707 XS_INTERNAL(XS_Lucy_Index_PolyDeletionsReader_close);
3708 0 XS_INTERNAL(XS_Lucy_Index_PolyDeletionsReader_close) {
3709 0 dXSARGS;
3710 lucy_PolyDeletionsReader* arg_self;
3711 LUCY_PolyDelReader_Close_t method;
3712  
3713 CFISH_UNUSED_VAR(cv);
3714 0 SP -= items;
3715 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3716 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3717 }
3718  
3719 /* Extract vars from Perl stack. */
3720 0 arg_self = (lucy_PolyDeletionsReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYDELETIONSREADER, NULL);
3721  
3722 /* Execute */
3723 0 method = CFISH_METHOD_PTR(LUCY_POLYDELETIONSREADER, LUCY_PolyDelReader_Close);
3724 0 method(arg_self);
3725 0 XSRETURN(0);
3726 }
3727  
3728 XS_INTERNAL(XS_Lucy_Index_DocReader_new);
3729 12 XS_INTERNAL(XS_Lucy_Index_DocReader_new) {
3730 12 dXSARGS;
3731 static const XSBind_ParamSpec param_specs[5] = {
3732 XSBIND_PARAM("schema", 0),
3733 XSBIND_PARAM("folder", 0),
3734 XSBIND_PARAM("snapshot", 0),
3735 XSBIND_PARAM("segments", 0),
3736 XSBIND_PARAM("seg_tick", 0)
3737 };
3738 int32_t locations[5];
3739 SV *sv;
3740 lucy_DocReader* arg_self;
3741 lucy_Schema* arg_schema;
3742 lucy_Folder* arg_folder;
3743 lucy_Snapshot* arg_snapshot;
3744 cfish_Vector* arg_segments;
3745 int32_t arg_seg_tick;
3746 lucy_DocReader* retval;
3747  
3748 CFISH_UNUSED_VAR(cv);
3749 12 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 12 12
3750 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
3751 }
3752 12 SP -= items;
3753  
3754 12 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3755 locations, 5);
3756 12 sv = ST(locations[0]);
3757 12 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 12 0 12
3758 12 sv = ST(locations[1]);
3759 12 ▶ arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL; 12 0 12
3760 12 sv = ST(locations[2]);
3761 12 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 12 0 12
3762 12 sv = ST(locations[3]);
3763 12 ▶ arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL; 12 0 12
3764 12 sv = ST(locations[4]);
3765 12 ▶ arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 12 0 12
3766 24 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 12 0 12
3767 12 arg_self = (lucy_DocReader*)XSBind_new_blank_obj(aTHX_ ST(0));
3768  
3769 12 retval = lucy_DocReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
3770 12 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
3771 12 XSRETURN(1);
3772 }
3773  
3774  
3775 XS_INTERNAL(XS_Lucy_Index_DocReader_fetch_doc);
3776 0 XS_INTERNAL(XS_Lucy_Index_DocReader_fetch_doc) {
3777 0 dXSARGS;
3778 SV *sv;
3779 lucy_DocReader* arg_self;
3780 int32_t arg_doc_id;
3781 LUCY_DocReader_Fetch_Doc_t method;
3782 lucy_HitDoc* retval;
3783  
3784 CFISH_UNUSED_VAR(cv);
3785 0 SP -= items;
3786 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
3787 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
3788 }
3789  
3790 /* Extract vars from Perl stack. */
3791 0 arg_self = (lucy_DocReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCREADER, NULL);
3792 0 sv = ST(1);
3793 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
3794 0 XSBind_undef_arg_error(aTHX_ "doc_id");
3795 }
3796 0 arg_doc_id = (int32_t)SvIV(sv);
3797  
3798 /* Execute */
3799 0 method = CFISH_METHOD_PTR(LUCY_DOCREADER, LUCY_DocReader_Fetch_Doc);
3800 0 retval = method(arg_self, arg_doc_id);
3801 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3802 0 CFISH_DECREF(retval);
3803 0 sv_2mortal( ST(0) );
3804 0 XSRETURN(1);
3805 }
3806  
3807 XS_INTERNAL(XS_Lucy_Index_DocReader_aggregator);
3808 0 XS_INTERNAL(XS_Lucy_Index_DocReader_aggregator) {
3809 0 dXSARGS;
3810 static const XSBind_ParamSpec param_specs[2] = {
3811 XSBIND_PARAM("readers", 1),
3812 XSBIND_PARAM("offsets", 1)
3813 };
3814 int32_t locations[2];
3815 SV *sv;
3816 lucy_DocReader* arg_self;
3817 cfish_Vector* arg_readers;
3818 lucy_I32Array* arg_offsets;
3819 LUCY_DocReader_Aggregator_t method;
3820 lucy_DocReader* retval;
3821  
3822 CFISH_UNUSED_VAR(cv);
3823 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
3824 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
3825 }
3826 0 SP -= items;
3827  
3828 /* Locate args on Perl stack. */
3829 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3830 locations, 2);
3831 0 arg_self = (lucy_DocReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCREADER, NULL);
3832 0 sv = ST(locations[0]);
3833 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
3834 0 sv = ST(locations[1]);
3835 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
3836  
3837 /* Execute */
3838 0 method = CFISH_METHOD_PTR(LUCY_DOCREADER, LUCY_DocReader_Aggregator);
3839 0 retval = method(arg_self, arg_readers, arg_offsets);
3840 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3841 0 CFISH_DECREF(retval);
3842 0 sv_2mortal( ST(0) );
3843 0 XSRETURN(1);
3844 }
3845  
3846 XS_INTERNAL(XS_Lucy_Index_DefaultDocReader_new);
3847 1 XS_INTERNAL(XS_Lucy_Index_DefaultDocReader_new) {
3848 1 dXSARGS;
3849 static const XSBind_ParamSpec param_specs[5] = {
3850 XSBIND_PARAM("schema", 1),
3851 XSBIND_PARAM("folder", 1),
3852 XSBIND_PARAM("snapshot", 1),
3853 XSBIND_PARAM("segments", 1),
3854 XSBIND_PARAM("seg_tick", 1)
3855 };
3856 int32_t locations[5];
3857 SV *sv;
3858 lucy_DefaultDocReader* arg_self;
3859 lucy_Schema* arg_schema;
3860 lucy_Folder* arg_folder;
3861 lucy_Snapshot* arg_snapshot;
3862 cfish_Vector* arg_segments;
3863 int32_t arg_seg_tick;
3864 lucy_DefaultDocReader* retval;
3865  
3866 CFISH_UNUSED_VAR(cv);
3867 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
3868 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
3869 }
3870 1 SP -= items;
3871  
3872 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3873 locations, 5);
3874 1 sv = ST(locations[0]);
3875 1 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
3876 1 sv = ST(locations[1]);
3877 1 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
3878 1 sv = ST(locations[2]);
3879 1 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
3880 1 sv = ST(locations[3]);
3881 1 arg_segments = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "segments", CFISH_VECTOR, NULL);
3882 1 sv = ST(locations[4]);
3883 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
3884 0 XSBind_undef_arg_error(aTHX_ "seg_tick");
3885 }
3886 1 arg_seg_tick = (int32_t)SvIV(sv);
3887 1 arg_self = (lucy_DefaultDocReader*)XSBind_new_blank_obj(aTHX_ ST(0));
3888  
3889 1 retval = lucy_DefDocReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
3890 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
3891 1 XSRETURN(1);
3892 }
3893  
3894  
3895 XS_INTERNAL(XS_Lucy_Index_DefaultDocReader_fetch_doc);
3896 1 XS_INTERNAL(XS_Lucy_Index_DefaultDocReader_fetch_doc) {
3897 1 dXSARGS;
3898 SV *sv;
3899 lucy_DefaultDocReader* arg_self;
3900 int32_t arg_doc_id;
3901 LUCY_DefDocReader_Fetch_Doc_t method;
3902 lucy_HitDoc* retval;
3903  
3904 CFISH_UNUSED_VAR(cv);
3905 1 SP -= items;
3906 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
3907 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
3908 }
3909  
3910 /* Extract vars from Perl stack. */
3911 1 arg_self = (lucy_DefaultDocReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDOCREADER, NULL);
3912 1 sv = ST(1);
3913 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
3914 0 XSBind_undef_arg_error(aTHX_ "doc_id");
3915 }
3916 1 arg_doc_id = (int32_t)SvIV(sv);
3917  
3918 /* Execute */
3919 1 method = CFISH_METHOD_PTR(LUCY_DEFAULTDOCREADER, LUCY_DefDocReader_Fetch_Doc);
3920 1 retval = method(arg_self, arg_doc_id);
3921 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
3922 1 CFISH_DECREF(retval);
3923 1 sv_2mortal( ST(0) );
3924 1 XSRETURN(1);
3925 }
3926  
3927 XS_INTERNAL(XS_Lucy_Index_DefaultDocReader_read_record);
3928 0 XS_INTERNAL(XS_Lucy_Index_DefaultDocReader_read_record) {
3929 0 dXSARGS;
3930 static const XSBind_ParamSpec param_specs[2] = {
3931 XSBIND_PARAM("buffer", 1),
3932 XSBIND_PARAM("doc_id", 1)
3933 };
3934 int32_t locations[2];
3935 SV *sv;
3936 lucy_DefaultDocReader* arg_self;
3937 cfish_ByteBuf* arg_buffer;
3938 int32_t arg_doc_id;
3939 LUCY_DefDocReader_Read_Record_t method;
3940  
3941 CFISH_UNUSED_VAR(cv);
3942 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
3943 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
3944 }
3945 0 SP -= items;
3946  
3947 /* Locate args on Perl stack. */
3948 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
3949 locations, 2);
3950 0 arg_self = (lucy_DefaultDocReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDOCREADER, NULL);
3951 0 sv = ST(locations[0]);
3952 0 arg_buffer = (cfish_ByteBuf*)XSBind_arg_to_cfish(aTHX_ sv, "buffer", CFISH_BYTEBUF, NULL);
3953 0 sv = ST(locations[1]);
3954 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
3955 0 XSBind_undef_arg_error(aTHX_ "doc_id");
3956 }
3957 0 arg_doc_id = (int32_t)SvIV(sv);
3958  
3959 /* Execute */
3960 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDOCREADER, LUCY_DefDocReader_Read_Record);
3961 0 method(arg_self, arg_buffer, arg_doc_id);
3962 0 XSRETURN(0);
3963 }
3964  
3965 XS_INTERNAL(XS_Lucy_Index_DefaultDocReader_close);
3966 0 XS_INTERNAL(XS_Lucy_Index_DefaultDocReader_close) {
3967 0 dXSARGS;
3968 lucy_DefaultDocReader* arg_self;
3969 LUCY_DefDocReader_Close_t method;
3970  
3971 CFISH_UNUSED_VAR(cv);
3972 0 SP -= items;
3973 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
3974 0 XSBind_invalid_args_error(aTHX_ cv, "self");
3975 }
3976  
3977 /* Extract vars from Perl stack. */
3978 0 arg_self = (lucy_DefaultDocReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDOCREADER, NULL);
3979  
3980 /* Execute */
3981 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDOCREADER, LUCY_DefDocReader_Close);
3982 0 method(arg_self);
3983 0 XSRETURN(0);
3984 }
3985  
3986 XS_INTERNAL(XS_Lucy_Index_PolyDocReader_new);
3987 0 XS_INTERNAL(XS_Lucy_Index_PolyDocReader_new) {
3988 0 dXSARGS;
3989 static const XSBind_ParamSpec param_specs[2] = {
3990 XSBIND_PARAM("readers", 1),
3991 XSBIND_PARAM("offsets", 1)
3992 };
3993 int32_t locations[2];
3994 SV *sv;
3995 lucy_PolyDocReader* arg_self;
3996 cfish_Vector* arg_readers;
3997 lucy_I32Array* arg_offsets;
3998 lucy_PolyDocReader* retval;
3999  
4000 CFISH_UNUSED_VAR(cv);
4001 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
4002 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
4003 }
4004 0 SP -= items;
4005  
4006 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4007 locations, 2);
4008 0 sv = ST(locations[0]);
4009 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
4010 0 sv = ST(locations[1]);
4011 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
4012 0 arg_self = (lucy_PolyDocReader*)XSBind_new_blank_obj(aTHX_ ST(0));
4013  
4014 0 retval = lucy_PolyDocReader_init(arg_self, arg_readers, arg_offsets);
4015 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
4016 0 XSRETURN(1);
4017 }
4018  
4019  
4020 XS_INTERNAL(XS_Lucy_Index_PolyDocReader_fetch_doc);
4021 0 XS_INTERNAL(XS_Lucy_Index_PolyDocReader_fetch_doc) {
4022 0 dXSARGS;
4023 SV *sv;
4024 lucy_PolyDocReader* arg_self;
4025 int32_t arg_doc_id;
4026 LUCY_PolyDocReader_Fetch_Doc_t method;
4027 lucy_HitDoc* retval;
4028  
4029 CFISH_UNUSED_VAR(cv);
4030 0 SP -= items;
4031 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
4032 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
4033 }
4034  
4035 /* Extract vars from Perl stack. */
4036 0 arg_self = (lucy_PolyDocReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYDOCREADER, NULL);
4037 0 sv = ST(1);
4038 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
4039 0 XSBind_undef_arg_error(aTHX_ "doc_id");
4040 }
4041 0 arg_doc_id = (int32_t)SvIV(sv);
4042  
4043 /* Execute */
4044 0 method = CFISH_METHOD_PTR(LUCY_POLYDOCREADER, LUCY_PolyDocReader_Fetch_Doc);
4045 0 retval = method(arg_self, arg_doc_id);
4046 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4047 0 CFISH_DECREF(retval);
4048 0 sv_2mortal( ST(0) );
4049 0 XSRETURN(1);
4050 }
4051  
4052 XS_INTERNAL(XS_Lucy_Index_PolyDocReader_close);
4053 0 XS_INTERNAL(XS_Lucy_Index_PolyDocReader_close) {
4054 0 dXSARGS;
4055 lucy_PolyDocReader* arg_self;
4056 LUCY_PolyDocReader_Close_t method;
4057  
4058 CFISH_UNUSED_VAR(cv);
4059 0 SP -= items;
4060 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4061 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4062 }
4063  
4064 /* Extract vars from Perl stack. */
4065 0 arg_self = (lucy_PolyDocReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYDOCREADER, NULL);
4066  
4067 /* Execute */
4068 0 method = CFISH_METHOD_PTR(LUCY_POLYDOCREADER, LUCY_PolyDocReader_Close);
4069 0 method(arg_self);
4070 0 XSRETURN(0);
4071 }
4072  
4073 XS_INTERNAL(XS_Lucy_Index_HighlightReader_new);
4074 0 XS_INTERNAL(XS_Lucy_Index_HighlightReader_new) {
4075 0 dXSARGS;
4076 static const XSBind_ParamSpec param_specs[5] = {
4077 XSBIND_PARAM("schema", 0),
4078 XSBIND_PARAM("folder", 0),
4079 XSBIND_PARAM("snapshot", 0),
4080 XSBIND_PARAM("segments", 0),
4081 XSBIND_PARAM("seg_tick", 0)
4082 };
4083 int32_t locations[5];
4084 SV *sv;
4085 lucy_HighlightReader* arg_self;
4086 lucy_Schema* arg_schema;
4087 lucy_Folder* arg_folder;
4088 lucy_Snapshot* arg_snapshot;
4089 cfish_Vector* arg_segments;
4090 int32_t arg_seg_tick;
4091 lucy_HighlightReader* retval;
4092  
4093 CFISH_UNUSED_VAR(cv);
4094 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
4095 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
4096 }
4097 0 SP -= items;
4098  
4099 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4100 locations, 5);
4101 0 sv = ST(locations[0]);
4102 0 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 0 0 0
4103 0 sv = ST(locations[1]);
4104 0 ▶ arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL; 0 0 0
4105 0 sv = ST(locations[2]);
4106 0 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 0 0 0
4107 0 sv = ST(locations[3]);
4108 0 ▶ arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL; 0 0 0
4109 0 sv = ST(locations[4]);
4110 0 ▶ arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
4111 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
4112 0 arg_self = (lucy_HighlightReader*)XSBind_new_blank_obj(aTHX_ ST(0));
4113  
4114 0 retval = lucy_HLReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
4115 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
4116 0 XSRETURN(1);
4117 }
4118  
4119  
4120 XS_INTERNAL(XS_Lucy_Index_HighlightReader_fetch_doc_vec);
4121 0 XS_INTERNAL(XS_Lucy_Index_HighlightReader_fetch_doc_vec) {
4122 0 dXSARGS;
4123 SV *sv;
4124 lucy_HighlightReader* arg_self;
4125 int32_t arg_doc_id;
4126 LUCY_HLReader_Fetch_Doc_Vec_t method;
4127 lucy_DocVector* retval;
4128  
4129 CFISH_UNUSED_VAR(cv);
4130 0 SP -= items;
4131 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
4132 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
4133 }
4134  
4135 /* Extract vars from Perl stack. */
4136 0 arg_self = (lucy_HighlightReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTREADER, NULL);
4137 0 sv = ST(1);
4138 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
4139 0 XSBind_undef_arg_error(aTHX_ "doc_id");
4140 }
4141 0 arg_doc_id = (int32_t)SvIV(sv);
4142  
4143 /* Execute */
4144 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTREADER, LUCY_HLReader_Fetch_Doc_Vec);
4145 0 retval = method(arg_self, arg_doc_id);
4146 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4147 0 CFISH_DECREF(retval);
4148 0 sv_2mortal( ST(0) );
4149 0 XSRETURN(1);
4150 }
4151  
4152 XS_INTERNAL(XS_Lucy_Index_HighlightReader_aggregator);
4153 0 XS_INTERNAL(XS_Lucy_Index_HighlightReader_aggregator) {
4154 0 dXSARGS;
4155 static const XSBind_ParamSpec param_specs[2] = {
4156 XSBIND_PARAM("readers", 1),
4157 XSBIND_PARAM("offsets", 1)
4158 };
4159 int32_t locations[2];
4160 SV *sv;
4161 lucy_HighlightReader* arg_self;
4162 cfish_Vector* arg_readers;
4163 lucy_I32Array* arg_offsets;
4164 LUCY_HLReader_Aggregator_t method;
4165 lucy_HighlightReader* retval;
4166  
4167 CFISH_UNUSED_VAR(cv);
4168 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
4169 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
4170 }
4171 0 SP -= items;
4172  
4173 /* Locate args on Perl stack. */
4174 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4175 locations, 2);
4176 0 arg_self = (lucy_HighlightReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTREADER, NULL);
4177 0 sv = ST(locations[0]);
4178 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
4179 0 sv = ST(locations[1]);
4180 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
4181  
4182 /* Execute */
4183 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTREADER, LUCY_HLReader_Aggregator);
4184 0 retval = method(arg_self, arg_readers, arg_offsets);
4185 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4186 0 CFISH_DECREF(retval);
4187 0 sv_2mortal( ST(0) );
4188 0 XSRETURN(1);
4189 }
4190  
4191 XS_INTERNAL(XS_Lucy_Index_DefaultHighlightReader_new);
4192 0 XS_INTERNAL(XS_Lucy_Index_DefaultHighlightReader_new) {
4193 0 dXSARGS;
4194 static const XSBind_ParamSpec param_specs[5] = {
4195 XSBIND_PARAM("schema", 1),
4196 XSBIND_PARAM("folder", 1),
4197 XSBIND_PARAM("snapshot", 1),
4198 XSBIND_PARAM("segments", 1),
4199 XSBIND_PARAM("seg_tick", 1)
4200 };
4201 int32_t locations[5];
4202 SV *sv;
4203 lucy_DefaultHighlightReader* arg_self;
4204 lucy_Schema* arg_schema;
4205 lucy_Folder* arg_folder;
4206 lucy_Snapshot* arg_snapshot;
4207 cfish_Vector* arg_segments;
4208 int32_t arg_seg_tick;
4209 lucy_DefaultHighlightReader* retval;
4210  
4211 CFISH_UNUSED_VAR(cv);
4212 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
4213 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
4214 }
4215 0 SP -= items;
4216  
4217 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4218 locations, 5);
4219 0 sv = ST(locations[0]);
4220 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
4221 0 sv = ST(locations[1]);
4222 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
4223 0 sv = ST(locations[2]);
4224 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
4225 0 sv = ST(locations[3]);
4226 0 arg_segments = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "segments", CFISH_VECTOR, NULL);
4227 0 sv = ST(locations[4]);
4228 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
4229 0 XSBind_undef_arg_error(aTHX_ "seg_tick");
4230 }
4231 0 arg_seg_tick = (int32_t)SvIV(sv);
4232 0 arg_self = (lucy_DefaultHighlightReader*)XSBind_new_blank_obj(aTHX_ ST(0));
4233  
4234 0 retval = lucy_DefHLReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
4235 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
4236 0 XSRETURN(1);
4237 }
4238  
4239  
4240 XS_INTERNAL(XS_Lucy_Index_DefaultHighlightReader_fetch_doc_vec);
4241 0 XS_INTERNAL(XS_Lucy_Index_DefaultHighlightReader_fetch_doc_vec) {
4242 0 dXSARGS;
4243 SV *sv;
4244 lucy_DefaultHighlightReader* arg_self;
4245 int32_t arg_doc_id;
4246 LUCY_DefHLReader_Fetch_Doc_Vec_t method;
4247 lucy_DocVector* retval;
4248  
4249 CFISH_UNUSED_VAR(cv);
4250 0 SP -= items;
4251 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
4252 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
4253 }
4254  
4255 /* Extract vars from Perl stack. */
4256 0 arg_self = (lucy_DefaultHighlightReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTHIGHLIGHTREADER, NULL);
4257 0 sv = ST(1);
4258 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
4259 0 XSBind_undef_arg_error(aTHX_ "doc_id");
4260 }
4261 0 arg_doc_id = (int32_t)SvIV(sv);
4262  
4263 /* Execute */
4264 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTHIGHLIGHTREADER, LUCY_DefHLReader_Fetch_Doc_Vec);
4265 0 retval = method(arg_self, arg_doc_id);
4266 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4267 0 CFISH_DECREF(retval);
4268 0 sv_2mortal( ST(0) );
4269 0 XSRETURN(1);
4270 }
4271  
4272 XS_INTERNAL(XS_Lucy_Index_DefaultHighlightReader_read_record);
4273 0 XS_INTERNAL(XS_Lucy_Index_DefaultHighlightReader_read_record) {
4274 0 dXSARGS;
4275 static const XSBind_ParamSpec param_specs[2] = {
4276 XSBIND_PARAM("doc_id", 1),
4277 XSBIND_PARAM("buffer", 1)
4278 };
4279 int32_t locations[2];
4280 SV *sv;
4281 lucy_DefaultHighlightReader* arg_self;
4282 int32_t arg_doc_id;
4283 cfish_ByteBuf* arg_buffer;
4284 LUCY_DefHLReader_Read_Record_t method;
4285  
4286 CFISH_UNUSED_VAR(cv);
4287 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
4288 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
4289 }
4290 0 SP -= items;
4291  
4292 /* Locate args on Perl stack. */
4293 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4294 locations, 2);
4295 0 arg_self = (lucy_DefaultHighlightReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTHIGHLIGHTREADER, NULL);
4296 0 sv = ST(locations[0]);
4297 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
4298 0 XSBind_undef_arg_error(aTHX_ "doc_id");
4299 }
4300 0 arg_doc_id = (int32_t)SvIV(sv);
4301 0 sv = ST(locations[1]);
4302 0 arg_buffer = (cfish_ByteBuf*)XSBind_arg_to_cfish(aTHX_ sv, "buffer", CFISH_BYTEBUF, NULL);
4303  
4304 /* Execute */
4305 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTHIGHLIGHTREADER, LUCY_DefHLReader_Read_Record);
4306 0 method(arg_self, arg_doc_id, arg_buffer);
4307 0 XSRETURN(0);
4308 }
4309  
4310 XS_INTERNAL(XS_Lucy_Index_DefaultHighlightReader_close);
4311 0 XS_INTERNAL(XS_Lucy_Index_DefaultHighlightReader_close) {
4312 0 dXSARGS;
4313 lucy_DefaultHighlightReader* arg_self;
4314 LUCY_DefHLReader_Close_t method;
4315  
4316 CFISH_UNUSED_VAR(cv);
4317 0 SP -= items;
4318 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4319 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4320 }
4321  
4322 /* Extract vars from Perl stack. */
4323 0 arg_self = (lucy_DefaultHighlightReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTHIGHLIGHTREADER, NULL);
4324  
4325 /* Execute */
4326 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTHIGHLIGHTREADER, LUCY_DefHLReader_Close);
4327 0 method(arg_self);
4328 0 XSRETURN(0);
4329 }
4330  
4331 XS_INTERNAL(XS_Lucy_Index_PolyHighlightReader_new);
4332 0 XS_INTERNAL(XS_Lucy_Index_PolyHighlightReader_new) {
4333 0 dXSARGS;
4334 static const XSBind_ParamSpec param_specs[2] = {
4335 XSBIND_PARAM("readers", 1),
4336 XSBIND_PARAM("offsets", 1)
4337 };
4338 int32_t locations[2];
4339 SV *sv;
4340 lucy_PolyHighlightReader* arg_self;
4341 cfish_Vector* arg_readers;
4342 lucy_I32Array* arg_offsets;
4343 lucy_PolyHighlightReader* retval;
4344  
4345 CFISH_UNUSED_VAR(cv);
4346 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
4347 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
4348 }
4349 0 SP -= items;
4350  
4351 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4352 locations, 2);
4353 0 sv = ST(locations[0]);
4354 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
4355 0 sv = ST(locations[1]);
4356 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
4357 0 arg_self = (lucy_PolyHighlightReader*)XSBind_new_blank_obj(aTHX_ ST(0));
4358  
4359 0 retval = lucy_PolyHLReader_init(arg_self, arg_readers, arg_offsets);
4360 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
4361 0 XSRETURN(1);
4362 }
4363  
4364  
4365 XS_INTERNAL(XS_Lucy_Index_PolyHighlightReader_fetch_doc_vec);
4366 0 XS_INTERNAL(XS_Lucy_Index_PolyHighlightReader_fetch_doc_vec) {
4367 0 dXSARGS;
4368 SV *sv;
4369 lucy_PolyHighlightReader* arg_self;
4370 int32_t arg_doc_id;
4371 LUCY_PolyHLReader_Fetch_Doc_Vec_t method;
4372 lucy_DocVector* retval;
4373  
4374 CFISH_UNUSED_VAR(cv);
4375 0 SP -= items;
4376 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
4377 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
4378 }
4379  
4380 /* Extract vars from Perl stack. */
4381 0 arg_self = (lucy_PolyHighlightReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYHIGHLIGHTREADER, NULL);
4382 0 sv = ST(1);
4383 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
4384 0 XSBind_undef_arg_error(aTHX_ "doc_id");
4385 }
4386 0 arg_doc_id = (int32_t)SvIV(sv);
4387  
4388 /* Execute */
4389 0 method = CFISH_METHOD_PTR(LUCY_POLYHIGHLIGHTREADER, LUCY_PolyHLReader_Fetch_Doc_Vec);
4390 0 retval = method(arg_self, arg_doc_id);
4391 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4392 0 CFISH_DECREF(retval);
4393 0 sv_2mortal( ST(0) );
4394 0 XSRETURN(1);
4395 }
4396  
4397 XS_INTERNAL(XS_Lucy_Index_PolyHighlightReader_close);
4398 0 XS_INTERNAL(XS_Lucy_Index_PolyHighlightReader_close) {
4399 0 dXSARGS;
4400 lucy_PolyHighlightReader* arg_self;
4401 LUCY_PolyHLReader_Close_t method;
4402  
4403 CFISH_UNUSED_VAR(cv);
4404 0 SP -= items;
4405 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4406 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4407 }
4408  
4409 /* Extract vars from Perl stack. */
4410 0 arg_self = (lucy_PolyHighlightReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYHIGHLIGHTREADER, NULL);
4411  
4412 /* Execute */
4413 0 method = CFISH_METHOD_PTR(LUCY_POLYHIGHLIGHTREADER, LUCY_PolyHLReader_Close);
4414 0 method(arg_self);
4415 0 XSRETURN(0);
4416 }
4417  
4418 XS_INTERNAL(XS_Lucy_Index_IndexReader_open);
4419 17 XS_INTERNAL(XS_Lucy_Index_IndexReader_open) {
4420 17 dXSARGS;
4421 static const XSBind_ParamSpec param_specs[3] = {
4422 XSBIND_PARAM("index", 1),
4423 XSBIND_PARAM("snapshot", 0),
4424 XSBIND_PARAM("manager", 0)
4425 };
4426 int32_t locations[3];
4427 SV *sv;
4428 lucy_IndexReader* arg_self;
4429 cfish_Obj* arg_index;
4430 lucy_Snapshot* arg_snapshot;
4431 lucy_IndexManager* arg_manager;
4432 lucy_IndexReader* retval;
4433  
4434 CFISH_UNUSED_VAR(cv);
4435 17 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 17 17
4436 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
4437 }
4438 17 SP -= items;
4439  
4440 17 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4441 locations, 3);
4442 17 sv = ST(locations[0]);
4443 17 arg_index = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "index", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
4444 17 sv = ST(locations[1]);
4445 17 ▶ arg_snapshot = locations[1] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[1] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 1 16 17
4446 17 sv = ST(locations[2]);
4447 17 ▶ arg_manager = locations[2] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_manager = locations[2] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL; 3 14 17
4448 17 arg_self = (lucy_IndexReader*)XSBind_new_blank_obj(aTHX_ ST(0));
4449  
4450 17 retval = lucy_IxReader_do_open(arg_self, arg_index, arg_snapshot, arg_manager);
4451 16 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
4452 16 XSRETURN(1);
4453 }
4454  
4455  
4456 XS_INTERNAL(XS_Lucy_Index_IndexReader_doc_max);
4457 0 XS_INTERNAL(XS_Lucy_Index_IndexReader_doc_max) {
4458 0 dXSARGS;
4459 lucy_IndexReader* arg_self;
4460 LUCY_IxReader_Doc_Max_t method;
4461 int32_t retval;
4462  
4463 CFISH_UNUSED_VAR(cv);
4464 0 SP -= items;
4465 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4466 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4467 }
4468  
4469 /* Extract vars from Perl stack. */
4470 0 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4471  
4472 /* Execute */
4473 0 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Doc_Max);
4474 0 retval = method(arg_self);
4475 0 ST(0) = newSViv(retval);
4476 0 sv_2mortal( ST(0) );
4477 0 XSRETURN(1);
4478 }
4479  
4480 XS_INTERNAL(XS_Lucy_Index_IndexReader_doc_count);
4481 0 XS_INTERNAL(XS_Lucy_Index_IndexReader_doc_count) {
4482 0 dXSARGS;
4483 lucy_IndexReader* arg_self;
4484 LUCY_IxReader_Doc_Count_t method;
4485 int32_t retval;
4486  
4487 CFISH_UNUSED_VAR(cv);
4488 0 SP -= items;
4489 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4490 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4491 }
4492  
4493 /* Extract vars from Perl stack. */
4494 0 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4495  
4496 /* Execute */
4497 0 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Doc_Count);
4498 0 retval = method(arg_self);
4499 0 ST(0) = newSViv(retval);
4500 0 sv_2mortal( ST(0) );
4501 0 XSRETURN(1);
4502 }
4503  
4504 XS_INTERNAL(XS_Lucy_Index_IndexReader_del_count);
4505 0 XS_INTERNAL(XS_Lucy_Index_IndexReader_del_count) {
4506 0 dXSARGS;
4507 lucy_IndexReader* arg_self;
4508 LUCY_IxReader_Del_Count_t method;
4509 int32_t retval;
4510  
4511 CFISH_UNUSED_VAR(cv);
4512 0 SP -= items;
4513 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4514 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4515 }
4516  
4517 /* Extract vars from Perl stack. */
4518 0 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4519  
4520 /* Execute */
4521 0 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Del_Count);
4522 0 retval = method(arg_self);
4523 0 ST(0) = newSViv(retval);
4524 0 sv_2mortal( ST(0) );
4525 0 XSRETURN(1);
4526 }
4527  
4528 XS_INTERNAL(XS_Lucy_Index_IndexReader__offsets);
4529 0 XS_INTERNAL(XS_Lucy_Index_IndexReader__offsets) {
4530 0 dXSARGS;
4531 lucy_IndexReader* arg_self;
4532 LUCY_IxReader_Offsets_t method;
4533 lucy_I32Array* retval;
4534  
4535 CFISH_UNUSED_VAR(cv);
4536 0 SP -= items;
4537 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4538 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4539 }
4540  
4541 /* Extract vars from Perl stack. */
4542 0 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4543  
4544 /* Execute */
4545 0 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Offsets);
4546 0 retval = method(arg_self);
4547 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4548 0 CFISH_DECREF(retval);
4549 0 sv_2mortal( ST(0) );
4550 0 XSRETURN(1);
4551 }
4552  
4553 XS_INTERNAL(XS_Lucy_Index_IndexReader_seg_readers);
4554 0 XS_INTERNAL(XS_Lucy_Index_IndexReader_seg_readers) {
4555 0 dXSARGS;
4556 lucy_IndexReader* arg_self;
4557 LUCY_IxReader_Seg_Readers_t method;
4558 cfish_Vector* retval;
4559  
4560 CFISH_UNUSED_VAR(cv);
4561 0 SP -= items;
4562 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4563 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4564 }
4565  
4566 /* Extract vars from Perl stack. */
4567 0 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4568  
4569 /* Execute */
4570 0 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Seg_Readers);
4571 0 retval = method(arg_self);
4572 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4573 0 CFISH_DECREF(retval);
4574 0 sv_2mortal( ST(0) );
4575 0 XSRETURN(1);
4576 }
4577  
4578 XS_INTERNAL(XS_Lucy_Index_IndexReader_obtain);
4579 17 XS_INTERNAL(XS_Lucy_Index_IndexReader_obtain) {
4580 17 dXSARGS;
4581 SV *sv;
4582 lucy_IndexReader* arg_self;
4583 cfish_String* arg_api;
4584 LUCY_IxReader_Obtain_t method;
4585 lucy_DataReader* retval;
4586  
4587 CFISH_UNUSED_VAR(cv);
4588 17 SP -= items;
4589 17 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 17 17
4590 0 XSBind_invalid_args_error(aTHX_ cv, "self, api");
4591 }
4592  
4593 /* Extract vars from Perl stack. */
4594 17 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4595 17 sv = ST(1);
4596 17 arg_api = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "api", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
4597  
4598 /* Execute */
4599 17 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Obtain);
4600 17 retval = method(arg_self, arg_api);
4601 16 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4602 16 sv_2mortal( ST(0) );
4603 16 XSRETURN(1);
4604 }
4605  
4606 XS_INTERNAL(XS_Lucy_Index_IndexReader_fetch);
4607 4 XS_INTERNAL(XS_Lucy_Index_IndexReader_fetch) {
4608 4 dXSARGS;
4609 SV *sv;
4610 lucy_IndexReader* arg_self;
4611 cfish_String* arg_api;
4612 LUCY_IxReader_Fetch_t method;
4613 lucy_DataReader* retval;
4614  
4615 CFISH_UNUSED_VAR(cv);
4616 4 SP -= items;
4617 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
4618 0 XSBind_invalid_args_error(aTHX_ cv, "self, api");
4619 }
4620  
4621 /* Extract vars from Perl stack. */
4622 4 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4623 4 sv = ST(1);
4624 4 arg_api = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "api", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
4625  
4626 /* Execute */
4627 4 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Fetch);
4628 4 retval = method(arg_self, arg_api);
4629 4 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4630 4 sv_2mortal( ST(0) );
4631 4 XSRETURN(1);
4632 }
4633  
4634 XS_INTERNAL(XS_Lucy_Index_IndexReader_close);
4635 0 XS_INTERNAL(XS_Lucy_Index_IndexReader_close) {
4636 0 dXSARGS;
4637 lucy_IndexReader* arg_self;
4638 LUCY_IxReader_Close_t method;
4639  
4640 CFISH_UNUSED_VAR(cv);
4641 0 SP -= items;
4642 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4643 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4644 }
4645  
4646 /* Extract vars from Perl stack. */
4647 0 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4648  
4649 /* Execute */
4650 0 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Close);
4651 0 method(arg_self);
4652 0 XSRETURN(0);
4653 }
4654  
4655 XS_INTERNAL(XS_Lucy_Index_IndexReader_get_components);
4656 0 XS_INTERNAL(XS_Lucy_Index_IndexReader_get_components) {
4657 0 dXSARGS;
4658 lucy_IndexReader* arg_self;
4659 LUCY_IxReader_Get_Components_t method;
4660 cfish_Hash* retval;
4661  
4662 CFISH_UNUSED_VAR(cv);
4663 0 SP -= items;
4664 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4665 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4666 }
4667  
4668 /* Extract vars from Perl stack. */
4669 0 arg_self = (lucy_IndexReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXREADER, NULL);
4670  
4671 /* Execute */
4672 0 method = CFISH_METHOD_PTR(LUCY_INDEXREADER, LUCY_IxReader_Get_Components);
4673 0 retval = method(arg_self);
4674 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4675 0 sv_2mortal( ST(0) );
4676 0 XSRETURN(1);
4677 }
4678  
4679 XS_INTERNAL(XS_Lucy_Index_PolyReader_open);
4680 3 XS_INTERNAL(XS_Lucy_Index_PolyReader_open) {
4681 3 dXSARGS;
4682 static const XSBind_ParamSpec param_specs[3] = {
4683 XSBIND_PARAM("index", 1),
4684 XSBIND_PARAM("snapshot", 0),
4685 XSBIND_PARAM("manager", 0)
4686 };
4687 int32_t locations[3];
4688 SV *sv;
4689 lucy_PolyReader* arg_self;
4690 cfish_Obj* arg_index;
4691 lucy_Snapshot* arg_snapshot;
4692 lucy_IndexManager* arg_manager;
4693 lucy_PolyReader* retval;
4694  
4695 CFISH_UNUSED_VAR(cv);
4696 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
4697 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
4698 }
4699 3 SP -= items;
4700  
4701 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4702 locations, 3);
4703 3 sv = ST(locations[0]);
4704 3 arg_index = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "index", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
4705 3 sv = ST(locations[1]);
4706 3 ▶ arg_snapshot = locations[1] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[1] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 0 3 3
4707 3 sv = ST(locations[2]);
4708 3 ▶ arg_manager = locations[2] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_manager = locations[2] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL; 0 3 3
4709 3 arg_self = (lucy_PolyReader*)XSBind_new_blank_obj(aTHX_ ST(0));
4710  
4711 3 retval = lucy_PolyReader_do_open(arg_self, arg_index, arg_snapshot, arg_manager);
4712 3 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
4713 3 XSRETURN(1);
4714 }
4715  
4716  
4717 XS_INTERNAL(XS_Lucy_Index_PolyReader_new);
4718 3 XS_INTERNAL(XS_Lucy_Index_PolyReader_new) {
4719 3 dXSARGS;
4720 static const XSBind_ParamSpec param_specs[5] = {
4721 XSBIND_PARAM("schema", 0),
4722 XSBIND_PARAM("folder", 1),
4723 XSBIND_PARAM("snapshot", 0),
4724 XSBIND_PARAM("manager", 0),
4725 XSBIND_PARAM("sub_readers", 0)
4726 };
4727 int32_t locations[5];
4728 SV *sv;
4729 lucy_PolyReader* arg_self;
4730 lucy_Schema* arg_schema;
4731 lucy_Folder* arg_folder;
4732 lucy_Snapshot* arg_snapshot;
4733 lucy_IndexManager* arg_manager;
4734 cfish_Vector* arg_sub_readers;
4735 lucy_PolyReader* retval;
4736  
4737 CFISH_UNUSED_VAR(cv);
4738 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
4739 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
4740 }
4741 3 SP -= items;
4742  
4743 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4744 locations, 5);
4745 3 sv = ST(locations[0]);
4746 3 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 3 0 3
4747 3 sv = ST(locations[1]);
4748 3 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
4749 3 sv = ST(locations[2]);
4750 3 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 3 0 3
4751 3 sv = ST(locations[3]);
4752 3 ▶ arg_manager = locations[3] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_manager = locations[3] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL; 0 3 3
4753 3 sv = ST(locations[4]);
4754 3 ▶ arg_sub_readers = locations[4] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sub_readers", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_sub_readers = locations[4] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sub_readers", CFISH_VECTOR, NULL) : NULL; 3 0 3
4755 3 arg_self = (lucy_PolyReader*)XSBind_new_blank_obj(aTHX_ ST(0));
4756  
4757 3 retval = lucy_PolyReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_manager, arg_sub_readers);
4758 3 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
4759 3 XSRETURN(1);
4760 }
4761  
4762  
4763 XS_INTERNAL(XS_Lucy_Index_PolyReader_doc_max);
4764 26 XS_INTERNAL(XS_Lucy_Index_PolyReader_doc_max) {
4765 26 dXSARGS;
4766 lucy_PolyReader* arg_self;
4767 LUCY_PolyReader_Doc_Max_t method;
4768 int32_t retval;
4769  
4770 CFISH_UNUSED_VAR(cv);
4771 26 SP -= items;
4772 26 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 26 26
4773 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4774 }
4775  
4776 /* Extract vars from Perl stack. */
4777 26 arg_self = (lucy_PolyReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYREADER, NULL);
4778  
4779 /* Execute */
4780 26 method = CFISH_METHOD_PTR(LUCY_POLYREADER, LUCY_PolyReader_Doc_Max);
4781 26 retval = method(arg_self);
4782 26 ST(0) = newSViv(retval);
4783 26 sv_2mortal( ST(0) );
4784 26 XSRETURN(1);
4785 }
4786  
4787 XS_INTERNAL(XS_Lucy_Index_PolyReader_doc_count);
4788 1 XS_INTERNAL(XS_Lucy_Index_PolyReader_doc_count) {
4789 1 dXSARGS;
4790 lucy_PolyReader* arg_self;
4791 LUCY_PolyReader_Doc_Count_t method;
4792 int32_t retval;
4793  
4794 CFISH_UNUSED_VAR(cv);
4795 1 SP -= items;
4796 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
4797 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4798 }
4799  
4800 /* Extract vars from Perl stack. */
4801 1 arg_self = (lucy_PolyReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYREADER, NULL);
4802  
4803 /* Execute */
4804 1 method = CFISH_METHOD_PTR(LUCY_POLYREADER, LUCY_PolyReader_Doc_Count);
4805 1 retval = method(arg_self);
4806 1 ST(0) = newSViv(retval);
4807 1 sv_2mortal( ST(0) );
4808 1 XSRETURN(1);
4809 }
4810  
4811 XS_INTERNAL(XS_Lucy_Index_PolyReader_del_count);
4812 0 XS_INTERNAL(XS_Lucy_Index_PolyReader_del_count) {
4813 0 dXSARGS;
4814 lucy_PolyReader* arg_self;
4815 LUCY_PolyReader_Del_Count_t method;
4816 int32_t retval;
4817  
4818 CFISH_UNUSED_VAR(cv);
4819 0 SP -= items;
4820 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4821 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4822 }
4823  
4824 /* Extract vars from Perl stack. */
4825 0 arg_self = (lucy_PolyReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYREADER, NULL);
4826  
4827 /* Execute */
4828 0 method = CFISH_METHOD_PTR(LUCY_POLYREADER, LUCY_PolyReader_Del_Count);
4829 0 retval = method(arg_self);
4830 0 ST(0) = newSViv(retval);
4831 0 sv_2mortal( ST(0) );
4832 0 XSRETURN(1);
4833 }
4834  
4835 XS_INTERNAL(XS_Lucy_Index_PolyReader__offsets);
4836 0 XS_INTERNAL(XS_Lucy_Index_PolyReader__offsets) {
4837 0 dXSARGS;
4838 lucy_PolyReader* arg_self;
4839 LUCY_PolyReader_Offsets_t method;
4840 lucy_I32Array* retval;
4841  
4842 CFISH_UNUSED_VAR(cv);
4843 0 SP -= items;
4844 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
4845 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4846 }
4847  
4848 /* Extract vars from Perl stack. */
4849 0 arg_self = (lucy_PolyReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYREADER, NULL);
4850  
4851 /* Execute */
4852 0 method = CFISH_METHOD_PTR(LUCY_POLYREADER, LUCY_PolyReader_Offsets);
4853 0 retval = method(arg_self);
4854 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4855 0 CFISH_DECREF(retval);
4856 0 sv_2mortal( ST(0) );
4857 0 XSRETURN(1);
4858 }
4859  
4860 XS_INTERNAL(XS_Lucy_Index_PolyReader_seg_readers);
4861 2 XS_INTERNAL(XS_Lucy_Index_PolyReader_seg_readers) {
4862 2 dXSARGS;
4863 lucy_PolyReader* arg_self;
4864 LUCY_PolyReader_Seg_Readers_t method;
4865 cfish_Vector* retval;
4866  
4867 CFISH_UNUSED_VAR(cv);
4868 2 SP -= items;
4869 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
4870 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4871 }
4872  
4873 /* Extract vars from Perl stack. */
4874 2 arg_self = (lucy_PolyReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYREADER, NULL);
4875  
4876 /* Execute */
4877 2 method = CFISH_METHOD_PTR(LUCY_POLYREADER, LUCY_PolyReader_Seg_Readers);
4878 2 retval = method(arg_self);
4879 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4880 2 CFISH_DECREF(retval);
4881 2 sv_2mortal( ST(0) );
4882 2 XSRETURN(1);
4883 }
4884  
4885 XS_INTERNAL(XS_Lucy_Index_PolyReader_get_seg_readers);
4886 10 XS_INTERNAL(XS_Lucy_Index_PolyReader_get_seg_readers) {
4887 10 dXSARGS;
4888 lucy_PolyReader* arg_self;
4889 LUCY_PolyReader_Get_Seg_Readers_t method;
4890 cfish_Vector* retval;
4891  
4892 CFISH_UNUSED_VAR(cv);
4893 10 SP -= items;
4894 10 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 10 10
4895 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4896 }
4897  
4898 /* Extract vars from Perl stack. */
4899 10 arg_self = (lucy_PolyReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYREADER, NULL);
4900  
4901 /* Execute */
4902 10 method = CFISH_METHOD_PTR(LUCY_POLYREADER, LUCY_PolyReader_Get_Seg_Readers);
4903 10 retval = method(arg_self);
4904 10 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
4905 10 sv_2mortal( ST(0) );
4906 10 XSRETURN(1);
4907 }
4908  
4909 XS_INTERNAL(XS_Lucy_Index_PolyReader_close);
4910 2 XS_INTERNAL(XS_Lucy_Index_PolyReader_close) {
4911 2 dXSARGS;
4912 lucy_PolyReader* arg_self;
4913 LUCY_PolyReader_Close_t method;
4914  
4915 CFISH_UNUSED_VAR(cv);
4916 2 SP -= items;
4917 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
4918 0 XSBind_invalid_args_error(aTHX_ cv, "self");
4919 }
4920  
4921 /* Extract vars from Perl stack. */
4922 2 arg_self = (lucy_PolyReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYREADER, NULL);
4923  
4924 /* Execute */
4925 2 method = CFISH_METHOD_PTR(LUCY_POLYREADER, LUCY_PolyReader_Close);
4926 2 method(arg_self);
4927 2 XSRETURN(0);
4928 }
4929  
4930 XS_INTERNAL(XS_Lucy_Index_SegReader_new);
4931 0 XS_INTERNAL(XS_Lucy_Index_SegReader_new) {
4932 0 dXSARGS;
4933 static const XSBind_ParamSpec param_specs[5] = {
4934 XSBIND_PARAM("schema", 1),
4935 XSBIND_PARAM("folder", 1),
4936 XSBIND_PARAM("snapshot", 0),
4937 XSBIND_PARAM("segments", 1),
4938 XSBIND_PARAM("seg_tick", 1)
4939 };
4940 int32_t locations[5];
4941 SV *sv;
4942 lucy_SegReader* arg_self;
4943 lucy_Schema* arg_schema;
4944 lucy_Folder* arg_folder;
4945 lucy_Snapshot* arg_snapshot;
4946 cfish_Vector* arg_segments;
4947 int32_t arg_seg_tick;
4948 lucy_SegReader* retval;
4949  
4950 CFISH_UNUSED_VAR(cv);
4951 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
4952 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
4953 }
4954 0 SP -= items;
4955  
4956 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
4957 locations, 5);
4958 0 sv = ST(locations[0]);
4959 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
4960 0 sv = ST(locations[1]);
4961 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
4962 0 sv = ST(locations[2]);
4963 0 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 0 0 0
4964 0 sv = ST(locations[3]);
4965 0 arg_segments = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "segments", CFISH_VECTOR, NULL);
4966 0 sv = ST(locations[4]);
4967 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
4968 0 XSBind_undef_arg_error(aTHX_ "seg_tick");
4969 }
4970 0 arg_seg_tick = (int32_t)SvIV(sv);
4971 0 arg_self = (lucy_SegReader*)XSBind_new_blank_obj(aTHX_ ST(0));
4972  
4973 0 retval = lucy_SegReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
4974 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
4975 0 XSRETURN(1);
4976 }
4977  
4978  
4979 XS_INTERNAL(XS_Lucy_Index_SegReader_register);
4980 12 XS_INTERNAL(XS_Lucy_Index_SegReader_register) {
4981 12 dXSARGS;
4982 static const XSBind_ParamSpec param_specs[2] = {
4983 XSBIND_PARAM("api", 1),
4984 XSBIND_PARAM("component", 1)
4985 };
4986 int32_t locations[2];
4987 SV *sv;
4988 lucy_SegReader* arg_self;
4989 cfish_String* arg_api;
4990 lucy_DataReader* arg_component;
4991 LUCY_SegReader_Register_t method;
4992  
4993 CFISH_UNUSED_VAR(cv);
4994 12 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 12 12
4995 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
4996 }
4997 12 SP -= items;
4998  
4999 /* Locate args on Perl stack. */
5000 12 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5001 locations, 2);
5002 12 arg_self = (lucy_SegReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGREADER, NULL);
5003 12 sv = ST(locations[0]);
5004 12 arg_api = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "api", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5005 12 sv = ST(locations[1]);
5006 12 arg_component = (lucy_DataReader*)XSBind_arg_to_cfish(aTHX_ sv, "component", LUCY_DATAREADER, NULL);
5007  
5008 /* Execute */
5009 12 method = CFISH_METHOD_PTR(LUCY_SEGREADER, LUCY_SegReader_Register);
5010 12 arg_component = (lucy_DataReader*)CFISH_INCREF(arg_component);
5011 12 method(arg_self, arg_api, arg_component);
5012 12 XSRETURN(0);
5013 }
5014  
5015 XS_INTERNAL(XS_Lucy_Index_SegReader_get_seg_name);
5016 0 XS_INTERNAL(XS_Lucy_Index_SegReader_get_seg_name) {
5017 0 dXSARGS;
5018 lucy_SegReader* arg_self;
5019 LUCY_SegReader_Get_Seg_Name_t method;
5020 cfish_String* retval;
5021  
5022 CFISH_UNUSED_VAR(cv);
5023 0 SP -= items;
5024 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
5025 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5026 }
5027  
5028 /* Extract vars from Perl stack. */
5029 0 arg_self = (lucy_SegReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGREADER, NULL);
5030  
5031 /* Execute */
5032 0 method = CFISH_METHOD_PTR(LUCY_SEGREADER, LUCY_SegReader_Get_Seg_Name);
5033 0 retval = method(arg_self);
5034 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5035 0 sv_2mortal( ST(0) );
5036 0 XSRETURN(1);
5037 }
5038  
5039 XS_INTERNAL(XS_Lucy_Index_SegReader_get_seg_num);
5040 19 XS_INTERNAL(XS_Lucy_Index_SegReader_get_seg_num) {
5041 19 dXSARGS;
5042 lucy_SegReader* arg_self;
5043 LUCY_SegReader_Get_Seg_Num_t method;
5044 int64_t retval;
5045  
5046 CFISH_UNUSED_VAR(cv);
5047 19 SP -= items;
5048 19 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 19 19
5049 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5050 }
5051  
5052 /* Extract vars from Perl stack. */
5053 19 arg_self = (lucy_SegReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGREADER, NULL);
5054  
5055 /* Execute */
5056 19 method = CFISH_METHOD_PTR(LUCY_SEGREADER, LUCY_SegReader_Get_Seg_Num);
5057 19 retval = method(arg_self);
5058 19 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
5059 19 sv_2mortal( ST(0) );
5060 19 XSRETURN(1);
5061 }
5062  
5063 XS_INTERNAL(XS_Lucy_Index_SegReader_del_count);
5064 0 XS_INTERNAL(XS_Lucy_Index_SegReader_del_count) {
5065 0 dXSARGS;
5066 lucy_SegReader* arg_self;
5067 LUCY_SegReader_Del_Count_t method;
5068 int32_t retval;
5069  
5070 CFISH_UNUSED_VAR(cv);
5071 0 SP -= items;
5072 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
5073 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5074 }
5075  
5076 /* Extract vars from Perl stack. */
5077 0 arg_self = (lucy_SegReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGREADER, NULL);
5078  
5079 /* Execute */
5080 0 method = CFISH_METHOD_PTR(LUCY_SEGREADER, LUCY_SegReader_Del_Count);
5081 0 retval = method(arg_self);
5082 0 ST(0) = newSViv(retval);
5083 0 sv_2mortal( ST(0) );
5084 0 XSRETURN(1);
5085 }
5086  
5087 XS_INTERNAL(XS_Lucy_Index_SegReader_doc_max);
5088 18 XS_INTERNAL(XS_Lucy_Index_SegReader_doc_max) {
5089 18 dXSARGS;
5090 lucy_SegReader* arg_self;
5091 LUCY_SegReader_Doc_Max_t method;
5092 int32_t retval;
5093  
5094 CFISH_UNUSED_VAR(cv);
5095 18 SP -= items;
5096 18 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 18 18
5097 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5098 }
5099  
5100 /* Extract vars from Perl stack. */
5101 18 arg_self = (lucy_SegReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGREADER, NULL);
5102  
5103 /* Execute */
5104 18 method = CFISH_METHOD_PTR(LUCY_SEGREADER, LUCY_SegReader_Doc_Max);
5105 18 retval = method(arg_self);
5106 18 ST(0) = newSViv(retval);
5107 18 sv_2mortal( ST(0) );
5108 18 XSRETURN(1);
5109 }
5110  
5111 XS_INTERNAL(XS_Lucy_Index_SegReader_doc_count);
5112 0 XS_INTERNAL(XS_Lucy_Index_SegReader_doc_count) {
5113 0 dXSARGS;
5114 lucy_SegReader* arg_self;
5115 LUCY_SegReader_Doc_Count_t method;
5116 int32_t retval;
5117  
5118 CFISH_UNUSED_VAR(cv);
5119 0 SP -= items;
5120 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
5121 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5122 }
5123  
5124 /* Extract vars from Perl stack. */
5125 0 arg_self = (lucy_SegReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGREADER, NULL);
5126  
5127 /* Execute */
5128 0 method = CFISH_METHOD_PTR(LUCY_SEGREADER, LUCY_SegReader_Doc_Count);
5129 0 retval = method(arg_self);
5130 0 ST(0) = newSViv(retval);
5131 0 sv_2mortal( ST(0) );
5132 0 XSRETURN(1);
5133 }
5134  
5135 XS_INTERNAL(XS_Lucy_Index_SegReader__offsets);
5136 1 XS_INTERNAL(XS_Lucy_Index_SegReader__offsets) {
5137 1 dXSARGS;
5138 lucy_SegReader* arg_self;
5139 LUCY_SegReader_Offsets_t method;
5140 lucy_I32Array* retval;
5141  
5142 CFISH_UNUSED_VAR(cv);
5143 1 SP -= items;
5144 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
5145 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5146 }
5147  
5148 /* Extract vars from Perl stack. */
5149 1 arg_self = (lucy_SegReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGREADER, NULL);
5150  
5151 /* Execute */
5152 1 method = CFISH_METHOD_PTR(LUCY_SEGREADER, LUCY_SegReader_Offsets);
5153 1 retval = method(arg_self);
5154 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5155 1 CFISH_DECREF(retval);
5156 1 sv_2mortal( ST(0) );
5157 1 XSRETURN(1);
5158 }
5159  
5160 XS_INTERNAL(XS_Lucy_Index_SegReader_seg_readers);
5161 1 XS_INTERNAL(XS_Lucy_Index_SegReader_seg_readers) {
5162 1 dXSARGS;
5163 lucy_SegReader* arg_self;
5164 LUCY_SegReader_Seg_Readers_t method;
5165 cfish_Vector* retval;
5166  
5167 CFISH_UNUSED_VAR(cv);
5168 1 SP -= items;
5169 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
5170 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5171 }
5172  
5173 /* Extract vars from Perl stack. */
5174 1 arg_self = (lucy_SegReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGREADER, NULL);
5175  
5176 /* Execute */
5177 1 method = CFISH_METHOD_PTR(LUCY_SEGREADER, LUCY_SegReader_Seg_Readers);
5178 1 retval = method(arg_self);
5179 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5180 1 CFISH_DECREF(retval);
5181 1 sv_2mortal( ST(0) );
5182 1 XSRETURN(1);
5183 }
5184  
5185 XS_INTERNAL(XS_Lucy_Index_LexiconReader_new);
5186 0 XS_INTERNAL(XS_Lucy_Index_LexiconReader_new) {
5187 0 dXSARGS;
5188 static const XSBind_ParamSpec param_specs[5] = {
5189 XSBIND_PARAM("schema", 0),
5190 XSBIND_PARAM("folder", 0),
5191 XSBIND_PARAM("snapshot", 0),
5192 XSBIND_PARAM("segments", 0),
5193 XSBIND_PARAM("seg_tick", 0)
5194 };
5195 int32_t locations[5];
5196 SV *sv;
5197 lucy_LexiconReader* arg_self;
5198 lucy_Schema* arg_schema;
5199 lucy_Folder* arg_folder;
5200 lucy_Snapshot* arg_snapshot;
5201 cfish_Vector* arg_segments;
5202 int32_t arg_seg_tick;
5203 lucy_LexiconReader* retval;
5204  
5205 CFISH_UNUSED_VAR(cv);
5206 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5207 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
5208 }
5209 0 SP -= items;
5210  
5211 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5212 locations, 5);
5213 0 sv = ST(locations[0]);
5214 0 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 0 0 0
5215 0 sv = ST(locations[1]);
5216 0 ▶ arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL; 0 0 0
5217 0 sv = ST(locations[2]);
5218 0 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 0 0 0
5219 0 sv = ST(locations[3]);
5220 0 ▶ arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL; 0 0 0
5221 0 sv = ST(locations[4]);
5222 0 ▶ arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
5223 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
5224 0 arg_self = (lucy_LexiconReader*)XSBind_new_blank_obj(aTHX_ ST(0));
5225  
5226 0 retval = lucy_LexReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
5227 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
5228 0 XSRETURN(1);
5229 }
5230  
5231  
5232 XS_INTERNAL(XS_Lucy_Index_LexiconReader_lexicon);
5233 0 XS_INTERNAL(XS_Lucy_Index_LexiconReader_lexicon) {
5234 0 dXSARGS;
5235 static const XSBind_ParamSpec param_specs[2] = {
5236 XSBIND_PARAM("field", 1),
5237 XSBIND_PARAM("term", 0)
5238 };
5239 int32_t locations[2];
5240 SV *sv;
5241 lucy_LexiconReader* arg_self;
5242 cfish_String* arg_field;
5243 cfish_Obj* arg_term;
5244 LUCY_LexReader_Lexicon_t method;
5245 lucy_Lexicon* retval;
5246  
5247 CFISH_UNUSED_VAR(cv);
5248 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5249 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5250 }
5251 0 SP -= items;
5252  
5253 /* Locate args on Perl stack. */
5254 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5255 locations, 2);
5256 0 arg_self = (lucy_LexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONREADER, NULL);
5257 0 sv = ST(locations[0]);
5258 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5259 0 sv = ST(locations[1]);
5260 0 ▶ arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
5261  
5262 /* Execute */
5263 0 method = CFISH_METHOD_PTR(LUCY_LEXICONREADER, LUCY_LexReader_Lexicon);
5264 0 retval = method(arg_self, arg_field, arg_term);
5265 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5266 0 CFISH_DECREF(retval);
5267 0 sv_2mortal( ST(0) );
5268 0 XSRETURN(1);
5269 }
5270  
5271 XS_INTERNAL(XS_Lucy_Index_LexiconReader_doc_freq);
5272 0 XS_INTERNAL(XS_Lucy_Index_LexiconReader_doc_freq) {
5273 0 dXSARGS;
5274 static const XSBind_ParamSpec param_specs[2] = {
5275 XSBIND_PARAM("field", 1),
5276 XSBIND_PARAM("term", 1)
5277 };
5278 int32_t locations[2];
5279 SV *sv;
5280 lucy_LexiconReader* arg_self;
5281 cfish_String* arg_field;
5282 cfish_Obj* arg_term;
5283 LUCY_LexReader_Doc_Freq_t method;
5284 uint32_t retval;
5285  
5286 CFISH_UNUSED_VAR(cv);
5287 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5288 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5289 }
5290 0 SP -= items;
5291  
5292 /* Locate args on Perl stack. */
5293 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5294 locations, 2);
5295 0 arg_self = (lucy_LexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONREADER, NULL);
5296 0 sv = ST(locations[0]);
5297 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5298 0 sv = ST(locations[1]);
5299 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
5300  
5301 /* Execute */
5302 0 method = CFISH_METHOD_PTR(LUCY_LEXICONREADER, LUCY_LexReader_Doc_Freq);
5303 0 retval = method(arg_self, arg_field, arg_term);
5304 0 ST(0) = newSVuv(retval);
5305 0 sv_2mortal( ST(0) );
5306 0 XSRETURN(1);
5307 }
5308  
5309 XS_INTERNAL(XS_Lucy_Index_LexiconReader_fetch_term_info);
5310 0 XS_INTERNAL(XS_Lucy_Index_LexiconReader_fetch_term_info) {
5311 0 dXSARGS;
5312 static const XSBind_ParamSpec param_specs[2] = {
5313 XSBIND_PARAM("field", 1),
5314 XSBIND_PARAM("term", 1)
5315 };
5316 int32_t locations[2];
5317 SV *sv;
5318 lucy_LexiconReader* arg_self;
5319 cfish_String* arg_field;
5320 cfish_Obj* arg_term;
5321 LUCY_LexReader_Fetch_Term_Info_t method;
5322 lucy_TermInfo* retval;
5323  
5324 CFISH_UNUSED_VAR(cv);
5325 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5326 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5327 }
5328 0 SP -= items;
5329  
5330 /* Locate args on Perl stack. */
5331 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5332 locations, 2);
5333 0 arg_self = (lucy_LexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONREADER, NULL);
5334 0 sv = ST(locations[0]);
5335 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5336 0 sv = ST(locations[1]);
5337 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
5338  
5339 /* Execute */
5340 0 method = CFISH_METHOD_PTR(LUCY_LEXICONREADER, LUCY_LexReader_Fetch_Term_Info);
5341 0 retval = method(arg_self, arg_field, arg_term);
5342 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5343 0 CFISH_DECREF(retval);
5344 0 sv_2mortal( ST(0) );
5345 0 XSRETURN(1);
5346 }
5347  
5348 XS_INTERNAL(XS_Lucy_Index_LexiconReader_aggregator);
5349 0 XS_INTERNAL(XS_Lucy_Index_LexiconReader_aggregator) {
5350 0 dXSARGS;
5351 static const XSBind_ParamSpec param_specs[2] = {
5352 XSBIND_PARAM("readers", 1),
5353 XSBIND_PARAM("offsets", 1)
5354 };
5355 int32_t locations[2];
5356 SV *sv;
5357 lucy_LexiconReader* arg_self;
5358 cfish_Vector* arg_readers;
5359 lucy_I32Array* arg_offsets;
5360 LUCY_LexReader_Aggregator_t method;
5361 lucy_LexiconReader* retval;
5362  
5363 CFISH_UNUSED_VAR(cv);
5364 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5365 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5366 }
5367 0 SP -= items;
5368  
5369 /* Locate args on Perl stack. */
5370 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5371 locations, 2);
5372 0 arg_self = (lucy_LexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONREADER, NULL);
5373 0 sv = ST(locations[0]);
5374 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
5375 0 sv = ST(locations[1]);
5376 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
5377  
5378 /* Execute */
5379 0 method = CFISH_METHOD_PTR(LUCY_LEXICONREADER, LUCY_LexReader_Aggregator);
5380 0 retval = method(arg_self, arg_readers, arg_offsets);
5381 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5382 0 CFISH_DECREF(retval);
5383 0 sv_2mortal( ST(0) );
5384 0 XSRETURN(1);
5385 }
5386  
5387 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_new);
5388 2 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_new) {
5389 2 dXSARGS;
5390 static const XSBind_ParamSpec param_specs[5] = {
5391 XSBIND_PARAM("schema", 1),
5392 XSBIND_PARAM("folder", 1),
5393 XSBIND_PARAM("snapshot", 1),
5394 XSBIND_PARAM("segments", 1),
5395 XSBIND_PARAM("seg_tick", 1)
5396 };
5397 int32_t locations[5];
5398 SV *sv;
5399 lucy_DefaultLexiconReader* arg_self;
5400 lucy_Schema* arg_schema;
5401 lucy_Folder* arg_folder;
5402 lucy_Snapshot* arg_snapshot;
5403 cfish_Vector* arg_segments;
5404 int32_t arg_seg_tick;
5405 lucy_DefaultLexiconReader* retval;
5406  
5407 CFISH_UNUSED_VAR(cv);
5408 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
5409 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
5410 }
5411 2 SP -= items;
5412  
5413 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5414 locations, 5);
5415 2 sv = ST(locations[0]);
5416 2 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
5417 2 sv = ST(locations[1]);
5418 2 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
5419 2 sv = ST(locations[2]);
5420 2 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
5421 2 sv = ST(locations[3]);
5422 2 arg_segments = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "segments", CFISH_VECTOR, NULL);
5423 2 sv = ST(locations[4]);
5424 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
5425 0 XSBind_undef_arg_error(aTHX_ "seg_tick");
5426 }
5427 2 arg_seg_tick = (int32_t)SvIV(sv);
5428 2 arg_self = (lucy_DefaultLexiconReader*)XSBind_new_blank_obj(aTHX_ ST(0));
5429  
5430 2 retval = lucy_DefLexReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
5431 2 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
5432 2 XSRETURN(1);
5433 }
5434  
5435  
5436 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_lexicon);
5437 6 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_lexicon) {
5438 6 dXSARGS;
5439 static const XSBind_ParamSpec param_specs[2] = {
5440 XSBIND_PARAM("field", 1),
5441 XSBIND_PARAM("term", 0)
5442 };
5443 int32_t locations[2];
5444 SV *sv;
5445 lucy_DefaultLexiconReader* arg_self;
5446 cfish_String* arg_field;
5447 cfish_Obj* arg_term;
5448 LUCY_DefLexReader_Lexicon_t method;
5449 lucy_Lexicon* retval;
5450  
5451 CFISH_UNUSED_VAR(cv);
5452 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
5453 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5454 }
5455 6 SP -= items;
5456  
5457 /* Locate args on Perl stack. */
5458 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5459 locations, 2);
5460 6 arg_self = (lucy_DefaultLexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTLEXICONREADER, NULL);
5461 6 sv = ST(locations[0]);
5462 6 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5463 6 sv = ST(locations[1]);
5464 6 ▶ arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 1 5 6
5465  
5466 /* Execute */
5467 6 method = CFISH_METHOD_PTR(LUCY_DEFAULTLEXICONREADER, LUCY_DefLexReader_Lexicon);
5468 6 retval = method(arg_self, arg_field, arg_term);
5469 6 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5470 6 CFISH_DECREF(retval);
5471 6 sv_2mortal( ST(0) );
5472 6 XSRETURN(1);
5473 }
5474  
5475 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_doc_freq);
5476 0 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_doc_freq) {
5477 0 dXSARGS;
5478 static const XSBind_ParamSpec param_specs[2] = {
5479 XSBIND_PARAM("field", 1),
5480 XSBIND_PARAM("term", 1)
5481 };
5482 int32_t locations[2];
5483 SV *sv;
5484 lucy_DefaultLexiconReader* arg_self;
5485 cfish_String* arg_field;
5486 cfish_Obj* arg_term;
5487 LUCY_DefLexReader_Doc_Freq_t method;
5488 uint32_t retval;
5489  
5490 CFISH_UNUSED_VAR(cv);
5491 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5492 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5493 }
5494 0 SP -= items;
5495  
5496 /* Locate args on Perl stack. */
5497 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5498 locations, 2);
5499 0 arg_self = (lucy_DefaultLexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTLEXICONREADER, NULL);
5500 0 sv = ST(locations[0]);
5501 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5502 0 sv = ST(locations[1]);
5503 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
5504  
5505 /* Execute */
5506 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTLEXICONREADER, LUCY_DefLexReader_Doc_Freq);
5507 0 retval = method(arg_self, arg_field, arg_term);
5508 0 ST(0) = newSVuv(retval);
5509 0 sv_2mortal( ST(0) );
5510 0 XSRETURN(1);
5511 }
5512  
5513 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_fetch_term_info);
5514 0 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_fetch_term_info) {
5515 0 dXSARGS;
5516 static const XSBind_ParamSpec param_specs[2] = {
5517 XSBIND_PARAM("field", 1),
5518 XSBIND_PARAM("term", 1)
5519 };
5520 int32_t locations[2];
5521 SV *sv;
5522 lucy_DefaultLexiconReader* arg_self;
5523 cfish_String* arg_field;
5524 cfish_Obj* arg_term;
5525 LUCY_DefLexReader_Fetch_Term_Info_t method;
5526 lucy_TermInfo* retval;
5527  
5528 CFISH_UNUSED_VAR(cv);
5529 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5530 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5531 }
5532 0 SP -= items;
5533  
5534 /* Locate args on Perl stack. */
5535 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5536 locations, 2);
5537 0 arg_self = (lucy_DefaultLexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTLEXICONREADER, NULL);
5538 0 sv = ST(locations[0]);
5539 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5540 0 sv = ST(locations[1]);
5541 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
5542  
5543 /* Execute */
5544 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTLEXICONREADER, LUCY_DefLexReader_Fetch_Term_Info);
5545 0 retval = method(arg_self, arg_field, arg_term);
5546 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5547 0 CFISH_DECREF(retval);
5548 0 sv_2mortal( ST(0) );
5549 0 XSRETURN(1);
5550 }
5551  
5552 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_close);
5553 0 XS_INTERNAL(XS_Lucy_Index_DefaultLexiconReader_close) {
5554 0 dXSARGS;
5555 lucy_DefaultLexiconReader* arg_self;
5556 LUCY_DefLexReader_Close_t method;
5557  
5558 CFISH_UNUSED_VAR(cv);
5559 0 SP -= items;
5560 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
5561 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5562 }
5563  
5564 /* Extract vars from Perl stack. */
5565 0 arg_self = (lucy_DefaultLexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTLEXICONREADER, NULL);
5566  
5567 /* Execute */
5568 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTLEXICONREADER, LUCY_DefLexReader_Close);
5569 0 method(arg_self);
5570 0 XSRETURN(0);
5571 }
5572  
5573 XS_INTERNAL(XS_Lucy_Index_PolyLexiconReader_new);
5574 0 XS_INTERNAL(XS_Lucy_Index_PolyLexiconReader_new) {
5575 0 dXSARGS;
5576 static const XSBind_ParamSpec param_specs[2] = {
5577 XSBIND_PARAM("readers", 1),
5578 XSBIND_PARAM("offsets", 1)
5579 };
5580 int32_t locations[2];
5581 SV *sv;
5582 lucy_PolyLexiconReader* arg_self;
5583 cfish_Vector* arg_readers;
5584 lucy_I32Array* arg_offsets;
5585 lucy_PolyLexiconReader* retval;
5586  
5587 CFISH_UNUSED_VAR(cv);
5588 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5589 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
5590 }
5591 0 SP -= items;
5592  
5593 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5594 locations, 2);
5595 0 sv = ST(locations[0]);
5596 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
5597 0 sv = ST(locations[1]);
5598 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
5599 0 arg_self = (lucy_PolyLexiconReader*)XSBind_new_blank_obj(aTHX_ ST(0));
5600  
5601 0 retval = lucy_PolyLexReader_init(arg_self, arg_readers, arg_offsets);
5602 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
5603 0 XSRETURN(1);
5604 }
5605  
5606  
5607 XS_INTERNAL(XS_Lucy_Index_PolyLexiconReader_lexicon);
5608 7 XS_INTERNAL(XS_Lucy_Index_PolyLexiconReader_lexicon) {
5609 7 dXSARGS;
5610 static const XSBind_ParamSpec param_specs[2] = {
5611 XSBIND_PARAM("field", 1),
5612 XSBIND_PARAM("term", 0)
5613 };
5614 int32_t locations[2];
5615 SV *sv;
5616 lucy_PolyLexiconReader* arg_self;
5617 cfish_String* arg_field;
5618 cfish_Obj* arg_term;
5619 LUCY_PolyLexReader_Lexicon_t method;
5620 lucy_Lexicon* retval;
5621  
5622 CFISH_UNUSED_VAR(cv);
5623 7 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 7 7
5624 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5625 }
5626 7 SP -= items;
5627  
5628 /* Locate args on Perl stack. */
5629 7 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5630 locations, 2);
5631 7 arg_self = (lucy_PolyLexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYLEXICONREADER, NULL);
5632 7 sv = ST(locations[0]);
5633 7 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5634 7 sv = ST(locations[1]);
5635 7 ▶ arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 7 7
5636  
5637 /* Execute */
5638 7 method = CFISH_METHOD_PTR(LUCY_POLYLEXICONREADER, LUCY_PolyLexReader_Lexicon);
5639 7 retval = method(arg_self, arg_field, arg_term);
5640 7 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5641 7 CFISH_DECREF(retval);
5642 7 sv_2mortal( ST(0) );
5643 7 XSRETURN(1);
5644 }
5645  
5646 XS_INTERNAL(XS_Lucy_Index_PolyLexiconReader_doc_freq);
5647 0 XS_INTERNAL(XS_Lucy_Index_PolyLexiconReader_doc_freq) {
5648 0 dXSARGS;
5649 static const XSBind_ParamSpec param_specs[2] = {
5650 XSBIND_PARAM("field", 1),
5651 XSBIND_PARAM("term", 1)
5652 };
5653 int32_t locations[2];
5654 SV *sv;
5655 lucy_PolyLexiconReader* arg_self;
5656 cfish_String* arg_field;
5657 cfish_Obj* arg_term;
5658 LUCY_PolyLexReader_Doc_Freq_t method;
5659 uint32_t retval;
5660  
5661 CFISH_UNUSED_VAR(cv);
5662 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5663 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5664 }
5665 0 SP -= items;
5666  
5667 /* Locate args on Perl stack. */
5668 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5669 locations, 2);
5670 0 arg_self = (lucy_PolyLexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYLEXICONREADER, NULL);
5671 0 sv = ST(locations[0]);
5672 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
5673 0 sv = ST(locations[1]);
5674 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
5675  
5676 /* Execute */
5677 0 method = CFISH_METHOD_PTR(LUCY_POLYLEXICONREADER, LUCY_PolyLexReader_Doc_Freq);
5678 0 retval = method(arg_self, arg_field, arg_term);
5679 0 ST(0) = newSVuv(retval);
5680 0 sv_2mortal( ST(0) );
5681 0 XSRETURN(1);
5682 }
5683  
5684 XS_INTERNAL(XS_Lucy_Index_PolyLexiconReader_close);
5685 0 XS_INTERNAL(XS_Lucy_Index_PolyLexiconReader_close) {
5686 0 dXSARGS;
5687 lucy_PolyLexiconReader* arg_self;
5688 LUCY_PolyLexReader_Close_t method;
5689  
5690 CFISH_UNUSED_VAR(cv);
5691 0 SP -= items;
5692 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
5693 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5694 }
5695  
5696 /* Extract vars from Perl stack. */
5697 0 arg_self = (lucy_PolyLexiconReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYLEXICONREADER, NULL);
5698  
5699 /* Execute */
5700 0 method = CFISH_METHOD_PTR(LUCY_POLYLEXICONREADER, LUCY_PolyLexReader_Close);
5701 0 method(arg_self);
5702 0 XSRETURN(0);
5703 }
5704  
5705 XS_INTERNAL(XS_Lucy_Index_PostingListReader_new);
5706 0 XS_INTERNAL(XS_Lucy_Index_PostingListReader_new) {
5707 0 dXSARGS;
5708 static const XSBind_ParamSpec param_specs[5] = {
5709 XSBIND_PARAM("schema", 0),
5710 XSBIND_PARAM("folder", 0),
5711 XSBIND_PARAM("snapshot", 0),
5712 XSBIND_PARAM("segments", 0),
5713 XSBIND_PARAM("seg_tick", 0)
5714 };
5715 int32_t locations[5];
5716 SV *sv;
5717 lucy_PostingListReader* arg_self;
5718 lucy_Schema* arg_schema;
5719 lucy_Folder* arg_folder;
5720 lucy_Snapshot* arg_snapshot;
5721 cfish_Vector* arg_segments;
5722 int32_t arg_seg_tick;
5723 lucy_PostingListReader* retval;
5724  
5725 CFISH_UNUSED_VAR(cv);
5726 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5727 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
5728 }
5729 0 SP -= items;
5730  
5731 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5732 locations, 5);
5733 0 sv = ST(locations[0]);
5734 0 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 0 0 0
5735 0 sv = ST(locations[1]);
5736 0 ▶ arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL; 0 0 0
5737 0 sv = ST(locations[2]);
5738 0 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 0 0 0
5739 0 sv = ST(locations[3]);
5740 0 ▶ arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL; 0 0 0
5741 0 sv = ST(locations[4]);
5742 0 ▶ arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
5743 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
5744 0 arg_self = (lucy_PostingListReader*)XSBind_new_blank_obj(aTHX_ ST(0));
5745  
5746 0 retval = lucy_PListReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
5747 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
5748 0 XSRETURN(1);
5749 }
5750  
5751  
5752 XS_INTERNAL(XS_Lucy_Index_PostingListReader_posting_list);
5753 0 XS_INTERNAL(XS_Lucy_Index_PostingListReader_posting_list) {
5754 0 dXSARGS;
5755 static const XSBind_ParamSpec param_specs[2] = {
5756 XSBIND_PARAM("field", 0),
5757 XSBIND_PARAM("term", 0)
5758 };
5759 int32_t locations[2];
5760 SV *sv;
5761 lucy_PostingListReader* arg_self;
5762 cfish_String* arg_field;
5763 cfish_Obj* arg_term;
5764 LUCY_PListReader_Posting_List_t method;
5765 lucy_PostingList* retval;
5766  
5767 CFISH_UNUSED_VAR(cv);
5768 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5769 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5770 }
5771 0 SP -= items;
5772  
5773 /* Locate args on Perl stack. */
5774 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5775 locations, 2);
5776 0 arg_self = (lucy_PostingListReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLISTREADER, NULL);
5777 0 sv = ST(locations[0]);
5778 0 ▶ arg_field = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_field = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
5779 0 sv = ST(locations[1]);
5780 0 ▶ arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
5781  
5782 /* Execute */
5783 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLISTREADER, LUCY_PListReader_Posting_List);
5784 0 retval = method(arg_self, arg_field, arg_term);
5785 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5786 0 CFISH_DECREF(retval);
5787 0 sv_2mortal( ST(0) );
5788 0 XSRETURN(1);
5789 }
5790  
5791 XS_INTERNAL(XS_Lucy_Index_PostingListReader_get_lex_reader);
5792 0 XS_INTERNAL(XS_Lucy_Index_PostingListReader_get_lex_reader) {
5793 0 dXSARGS;
5794 lucy_PostingListReader* arg_self;
5795 LUCY_PListReader_Get_Lex_Reader_t method;
5796 lucy_LexiconReader* retval;
5797  
5798 CFISH_UNUSED_VAR(cv);
5799 0 SP -= items;
5800 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
5801 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5802 }
5803  
5804 /* Extract vars from Perl stack. */
5805 0 arg_self = (lucy_PostingListReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLISTREADER, NULL);
5806  
5807 /* Execute */
5808 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLISTREADER, LUCY_PListReader_Get_Lex_Reader);
5809 0 retval = method(arg_self);
5810 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5811 0 sv_2mortal( ST(0) );
5812 0 XSRETURN(1);
5813 }
5814  
5815 XS_INTERNAL(XS_Lucy_Index_PostingListReader_aggregator);
5816 0 XS_INTERNAL(XS_Lucy_Index_PostingListReader_aggregator) {
5817 0 dXSARGS;
5818 static const XSBind_ParamSpec param_specs[2] = {
5819 XSBIND_PARAM("readers", 1),
5820 XSBIND_PARAM("offsets", 1)
5821 };
5822 int32_t locations[2];
5823 SV *sv;
5824 lucy_PostingListReader* arg_self;
5825 cfish_Vector* arg_readers;
5826 lucy_I32Array* arg_offsets;
5827 LUCY_PListReader_Aggregator_t method;
5828 lucy_PostingListReader* retval;
5829  
5830 CFISH_UNUSED_VAR(cv);
5831 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5832 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5833 }
5834 0 SP -= items;
5835  
5836 /* Locate args on Perl stack. */
5837 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5838 locations, 2);
5839 0 arg_self = (lucy_PostingListReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLISTREADER, NULL);
5840 0 sv = ST(locations[0]);
5841 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
5842 0 sv = ST(locations[1]);
5843 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
5844  
5845 /* Execute */
5846 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLISTREADER, LUCY_PListReader_Aggregator);
5847 0 retval = method(arg_self, arg_readers, arg_offsets);
5848 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5849 0 CFISH_DECREF(retval);
5850 0 sv_2mortal( ST(0) );
5851 0 XSRETURN(1);
5852 }
5853  
5854 XS_INTERNAL(XS_Lucy_Index_DefaultPostingListReader_new);
5855 0 XS_INTERNAL(XS_Lucy_Index_DefaultPostingListReader_new) {
5856 0 dXSARGS;
5857 static const XSBind_ParamSpec param_specs[6] = {
5858 XSBIND_PARAM("schema", 1),
5859 XSBIND_PARAM("folder", 1),
5860 XSBIND_PARAM("snapshot", 1),
5861 XSBIND_PARAM("segments", 1),
5862 XSBIND_PARAM("seg_tick", 1),
5863 XSBIND_PARAM("lex_reader", 1)
5864 };
5865 int32_t locations[6];
5866 SV *sv;
5867 lucy_DefaultPostingListReader* arg_self;
5868 lucy_Schema* arg_schema;
5869 lucy_Folder* arg_folder;
5870 lucy_Snapshot* arg_snapshot;
5871 cfish_Vector* arg_segments;
5872 int32_t arg_seg_tick;
5873 lucy_LexiconReader* arg_lex_reader;
5874 lucy_DefaultPostingListReader* retval;
5875  
5876 CFISH_UNUSED_VAR(cv);
5877 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
5878 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
5879 }
5880 0 SP -= items;
5881  
5882 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5883 locations, 6);
5884 0 sv = ST(locations[0]);
5885 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
5886 0 sv = ST(locations[1]);
5887 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
5888 0 sv = ST(locations[2]);
5889 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
5890 0 sv = ST(locations[3]);
5891 0 arg_segments = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "segments", CFISH_VECTOR, NULL);
5892 0 sv = ST(locations[4]);
5893 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
5894 0 XSBind_undef_arg_error(aTHX_ "seg_tick");
5895 }
5896 0 arg_seg_tick = (int32_t)SvIV(sv);
5897 0 sv = ST(locations[5]);
5898 0 arg_lex_reader = (lucy_LexiconReader*)XSBind_arg_to_cfish(aTHX_ sv, "lex_reader", LUCY_LEXICONREADER, NULL);
5899 0 arg_self = (lucy_DefaultPostingListReader*)XSBind_new_blank_obj(aTHX_ ST(0));
5900  
5901 0 retval = lucy_DefPListReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick, arg_lex_reader);
5902 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
5903 0 XSRETURN(1);
5904 }
5905  
5906  
5907 XS_INTERNAL(XS_Lucy_Index_DefaultPostingListReader_posting_list);
5908 11 XS_INTERNAL(XS_Lucy_Index_DefaultPostingListReader_posting_list) {
5909 11 dXSARGS;
5910 static const XSBind_ParamSpec param_specs[2] = {
5911 XSBIND_PARAM("field", 0),
5912 XSBIND_PARAM("term", 0)
5913 };
5914 int32_t locations[2];
5915 SV *sv;
5916 lucy_DefaultPostingListReader* arg_self;
5917 cfish_String* arg_field;
5918 cfish_Obj* arg_term;
5919 LUCY_DefPListReader_Posting_List_t method;
5920 lucy_SegPostingList* retval;
5921  
5922 CFISH_UNUSED_VAR(cv);
5923 11 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 11 11
5924 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
5925 }
5926 11 SP -= items;
5927  
5928 /* Locate args on Perl stack. */
5929 11 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
5930 locations, 2);
5931 11 arg_self = (lucy_DefaultPostingListReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTPOSTINGLISTREADER, NULL);
5932 11 sv = ST(locations[0]);
5933 11 ▶ arg_field = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_field = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 11 0 11
5934 11 sv = ST(locations[1]);
5935 11 ▶ arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 11 0 11
5936  
5937 /* Execute */
5938 11 method = CFISH_METHOD_PTR(LUCY_DEFAULTPOSTINGLISTREADER, LUCY_DefPListReader_Posting_List);
5939 11 retval = method(arg_self, arg_field, arg_term);
5940 11 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5941 11 CFISH_DECREF(retval);
5942 11 sv_2mortal( ST(0) );
5943 11 XSRETURN(1);
5944 }
5945  
5946 XS_INTERNAL(XS_Lucy_Index_DefaultPostingListReader_get_lex_reader);
5947 0 XS_INTERNAL(XS_Lucy_Index_DefaultPostingListReader_get_lex_reader) {
5948 0 dXSARGS;
5949 lucy_DefaultPostingListReader* arg_self;
5950 LUCY_DefPListReader_Get_Lex_Reader_t method;
5951 lucy_LexiconReader* retval;
5952  
5953 CFISH_UNUSED_VAR(cv);
5954 0 SP -= items;
5955 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
5956 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5957 }
5958  
5959 /* Extract vars from Perl stack. */
5960 0 arg_self = (lucy_DefaultPostingListReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTPOSTINGLISTREADER, NULL);
5961  
5962 /* Execute */
5963 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTPOSTINGLISTREADER, LUCY_DefPListReader_Get_Lex_Reader);
5964 0 retval = method(arg_self);
5965 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
5966 0 sv_2mortal( ST(0) );
5967 0 XSRETURN(1);
5968 }
5969  
5970 XS_INTERNAL(XS_Lucy_Index_DefaultPostingListReader_close);
5971 0 XS_INTERNAL(XS_Lucy_Index_DefaultPostingListReader_close) {
5972 0 dXSARGS;
5973 lucy_DefaultPostingListReader* arg_self;
5974 LUCY_DefPListReader_Close_t method;
5975  
5976 CFISH_UNUSED_VAR(cv);
5977 0 SP -= items;
5978 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
5979 0 XSBind_invalid_args_error(aTHX_ cv, "self");
5980 }
5981  
5982 /* Extract vars from Perl stack. */
5983 0 arg_self = (lucy_DefaultPostingListReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTPOSTINGLISTREADER, NULL);
5984  
5985 /* Execute */
5986 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTPOSTINGLISTREADER, LUCY_DefPListReader_Close);
5987 0 method(arg_self);
5988 0 XSRETURN(0);
5989 }
5990  
5991 XS_INTERNAL(XS_Lucy_Index_SortReader_new);
5992 0 XS_INTERNAL(XS_Lucy_Index_SortReader_new) {
5993 0 dXSARGS;
5994 static const XSBind_ParamSpec param_specs[5] = {
5995 XSBIND_PARAM("schema", 0),
5996 XSBIND_PARAM("folder", 0),
5997 XSBIND_PARAM("snapshot", 0),
5998 XSBIND_PARAM("segments", 0),
5999 XSBIND_PARAM("seg_tick", 0)
6000 };
6001 int32_t locations[5];
6002 SV *sv;
6003 lucy_SortReader* arg_self;
6004 lucy_Schema* arg_schema;
6005 lucy_Folder* arg_folder;
6006 lucy_Snapshot* arg_snapshot;
6007 cfish_Vector* arg_segments;
6008 int32_t arg_seg_tick;
6009 lucy_SortReader* retval;
6010  
6011 CFISH_UNUSED_VAR(cv);
6012 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
6013 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
6014 }
6015 0 SP -= items;
6016  
6017 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6018 locations, 5);
6019 0 sv = ST(locations[0]);
6020 0 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 0 0 0
6021 0 sv = ST(locations[1]);
6022 0 ▶ arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_folder = locations[1] < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL; 0 0 0
6023 0 sv = ST(locations[2]);
6024 0 ▶ arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_snapshot = locations[2] < items ? (lucy_Snapshot*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL) : NULL; 0 0 0
6025 0 sv = ST(locations[3]);
6026 0 ▶ arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_segments = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "segments", CFISH_VECTOR, NULL) : NULL; 0 0 0
6027 0 sv = ST(locations[4]);
6028 0 ▶ arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_seg_tick = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
6029 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
6030 0 arg_self = (lucy_SortReader*)XSBind_new_blank_obj(aTHX_ ST(0));
6031  
6032 0 retval = lucy_SortReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
6033 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
6034 0 XSRETURN(1);
6035 }
6036  
6037  
6038 XS_INTERNAL(XS_Lucy_Index_SortReader_fetch_sort_cache);
6039 0 XS_INTERNAL(XS_Lucy_Index_SortReader_fetch_sort_cache) {
6040 0 dXSARGS;
6041 SV *sv;
6042 lucy_SortReader* arg_self;
6043 cfish_String* arg_field;
6044 LUCY_SortReader_Fetch_Sort_Cache_t method;
6045 lucy_SortCache* retval;
6046  
6047 CFISH_UNUSED_VAR(cv);
6048 0 SP -= items;
6049 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
6050 0 XSBind_invalid_args_error(aTHX_ cv, "self, field");
6051 }
6052  
6053 /* Extract vars from Perl stack. */
6054 0 arg_self = (lucy_SortReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTREADER, NULL);
6055 0 sv = ST(1);
6056 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
6057  
6058 /* Execute */
6059 0 method = CFISH_METHOD_PTR(LUCY_SORTREADER, LUCY_SortReader_Fetch_Sort_Cache);
6060 0 retval = method(arg_self, arg_field);
6061 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6062 0 sv_2mortal( ST(0) );
6063 0 XSRETURN(1);
6064 }
6065  
6066 XS_INTERNAL(XS_Lucy_Index_SortReader_aggregator);
6067 0 XS_INTERNAL(XS_Lucy_Index_SortReader_aggregator) {
6068 0 dXSARGS;
6069 static const XSBind_ParamSpec param_specs[2] = {
6070 XSBIND_PARAM("readers", 1),
6071 XSBIND_PARAM("offsets", 1)
6072 };
6073 int32_t locations[2];
6074 SV *sv;
6075 lucy_SortReader* arg_self;
6076 cfish_Vector* arg_readers;
6077 lucy_I32Array* arg_offsets;
6078 LUCY_SortReader_Aggregator_t method;
6079 lucy_DataReader* retval;
6080  
6081 CFISH_UNUSED_VAR(cv);
6082 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
6083 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
6084 }
6085 0 SP -= items;
6086  
6087 /* Locate args on Perl stack. */
6088 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6089 locations, 2);
6090 0 arg_self = (lucy_SortReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTREADER, NULL);
6091 0 sv = ST(locations[0]);
6092 0 arg_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "readers", CFISH_VECTOR, NULL);
6093 0 sv = ST(locations[1]);
6094 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
6095  
6096 /* Execute */
6097 0 method = CFISH_METHOD_PTR(LUCY_SORTREADER, LUCY_SortReader_Aggregator);
6098 0 retval = method(arg_self, arg_readers, arg_offsets);
6099 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6100 0 CFISH_DECREF(retval);
6101 0 sv_2mortal( ST(0) );
6102 0 XSRETURN(1);
6103 }
6104  
6105 XS_INTERNAL(XS_Lucy_Index_DefaultSortReader_new);
6106 0 XS_INTERNAL(XS_Lucy_Index_DefaultSortReader_new) {
6107 0 dXSARGS;
6108 static const XSBind_ParamSpec param_specs[5] = {
6109 XSBIND_PARAM("schema", 1),
6110 XSBIND_PARAM("folder", 1),
6111 XSBIND_PARAM("snapshot", 1),
6112 XSBIND_PARAM("segments", 1),
6113 XSBIND_PARAM("seg_tick", 1)
6114 };
6115 int32_t locations[5];
6116 SV *sv;
6117 lucy_DefaultSortReader* arg_self;
6118 lucy_Schema* arg_schema;
6119 lucy_Folder* arg_folder;
6120 lucy_Snapshot* arg_snapshot;
6121 cfish_Vector* arg_segments;
6122 int32_t arg_seg_tick;
6123 lucy_DefaultSortReader* retval;
6124  
6125 CFISH_UNUSED_VAR(cv);
6126 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
6127 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
6128 }
6129 0 SP -= items;
6130  
6131 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6132 locations, 5);
6133 0 sv = ST(locations[0]);
6134 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
6135 0 sv = ST(locations[1]);
6136 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
6137 0 sv = ST(locations[2]);
6138 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
6139 0 sv = ST(locations[3]);
6140 0 arg_segments = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "segments", CFISH_VECTOR, NULL);
6141 0 sv = ST(locations[4]);
6142 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
6143 0 XSBind_undef_arg_error(aTHX_ "seg_tick");
6144 }
6145 0 arg_seg_tick = (int32_t)SvIV(sv);
6146 0 arg_self = (lucy_DefaultSortReader*)XSBind_new_blank_obj(aTHX_ ST(0));
6147  
6148 0 retval = lucy_DefSortReader_init(arg_self, arg_schema, arg_folder, arg_snapshot, arg_segments, arg_seg_tick);
6149 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
6150 0 XSRETURN(1);
6151 }
6152  
6153  
6154 XS_INTERNAL(XS_Lucy_Index_DefaultSortReader_fetch_sort_cache);
6155 0 XS_INTERNAL(XS_Lucy_Index_DefaultSortReader_fetch_sort_cache) {
6156 0 dXSARGS;
6157 SV *sv;
6158 lucy_DefaultSortReader* arg_self;
6159 cfish_String* arg_field;
6160 LUCY_DefSortReader_Fetch_Sort_Cache_t method;
6161 lucy_SortCache* retval;
6162  
6163 CFISH_UNUSED_VAR(cv);
6164 0 SP -= items;
6165 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
6166 0 XSBind_invalid_args_error(aTHX_ cv, "self, field");
6167 }
6168  
6169 /* Extract vars from Perl stack. */
6170 0 arg_self = (lucy_DefaultSortReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTSORTREADER, NULL);
6171 0 sv = ST(1);
6172 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
6173  
6174 /* Execute */
6175 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTSORTREADER, LUCY_DefSortReader_Fetch_Sort_Cache);
6176 0 retval = method(arg_self, arg_field);
6177 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6178 0 sv_2mortal( ST(0) );
6179 0 XSRETURN(1);
6180 }
6181  
6182 XS_INTERNAL(XS_Lucy_Index_DefaultSortReader_close);
6183 0 XS_INTERNAL(XS_Lucy_Index_DefaultSortReader_close) {
6184 0 dXSARGS;
6185 lucy_DefaultSortReader* arg_self;
6186 LUCY_DefSortReader_Close_t method;
6187  
6188 CFISH_UNUSED_VAR(cv);
6189 0 SP -= items;
6190 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
6191 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6192 }
6193  
6194 /* Extract vars from Perl stack. */
6195 0 arg_self = (lucy_DefaultSortReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTSORTREADER, NULL);
6196  
6197 /* Execute */
6198 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTSORTREADER, LUCY_DefSortReader_Close);
6199 0 method(arg_self);
6200 0 XSRETURN(0);
6201 }
6202  
6203 XS_INTERNAL(XS_Lucy_Index_DataWriter_new);
6204 8 XS_INTERNAL(XS_Lucy_Index_DataWriter_new) {
6205 8 dXSARGS;
6206 static const XSBind_ParamSpec param_specs[4] = {
6207 XSBIND_PARAM("schema", 1),
6208 XSBIND_PARAM("snapshot", 1),
6209 XSBIND_PARAM("segment", 1),
6210 XSBIND_PARAM("polyreader", 1)
6211 };
6212 int32_t locations[4];
6213 SV *sv;
6214 lucy_DataWriter* arg_self;
6215 lucy_Schema* arg_schema;
6216 lucy_Snapshot* arg_snapshot;
6217 lucy_Segment* arg_segment;
6218 lucy_PolyReader* arg_polyreader;
6219 lucy_DataWriter* retval;
6220  
6221 CFISH_UNUSED_VAR(cv);
6222 8 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 8 8
6223 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
6224 }
6225 8 SP -= items;
6226  
6227 8 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6228 locations, 4);
6229 8 sv = ST(locations[0]);
6230 8 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
6231 8 sv = ST(locations[1]);
6232 8 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
6233 8 sv = ST(locations[2]);
6234 8 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
6235 8 sv = ST(locations[3]);
6236 8 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
6237 8 arg_self = (lucy_DataWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
6238  
6239 8 retval = lucy_DataWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader);
6240 8 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
6241 8 XSRETURN(1);
6242 }
6243  
6244  
6245 XS_INTERNAL(XS_Lucy_Index_DataWriter_add_inverted_doc);
6246 0 XS_INTERNAL(XS_Lucy_Index_DataWriter_add_inverted_doc) {
6247 0 dXSARGS;
6248 static const XSBind_ParamSpec param_specs[2] = {
6249 XSBIND_PARAM("inverter", 1),
6250 XSBIND_PARAM("doc_id", 1)
6251 };
6252 int32_t locations[2];
6253 SV *sv;
6254 lucy_DataWriter* arg_self;
6255 lucy_Inverter* arg_inverter;
6256 int32_t arg_doc_id;
6257 LUCY_DataWriter_Add_Inverted_Doc_t method;
6258  
6259 CFISH_UNUSED_VAR(cv);
6260 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
6261 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
6262 }
6263 0 SP -= items;
6264  
6265 /* Locate args on Perl stack. */
6266 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6267 locations, 2);
6268 0 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6269 0 sv = ST(locations[0]);
6270 0 arg_inverter = (lucy_Inverter*)XSBind_arg_to_cfish(aTHX_ sv, "inverter", LUCY_INVERTER, NULL);
6271 0 sv = ST(locations[1]);
6272 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
6273 0 XSBind_undef_arg_error(aTHX_ "doc_id");
6274 }
6275 0 arg_doc_id = (int32_t)SvIV(sv);
6276  
6277 /* Execute */
6278 0 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Add_Inverted_Doc);
6279 0 method(arg_self, arg_inverter, arg_doc_id);
6280 0 XSRETURN(0);
6281 }
6282  
6283 XS_INTERNAL(XS_Lucy_Index_DataWriter_add_segment);
6284 0 XS_INTERNAL(XS_Lucy_Index_DataWriter_add_segment) {
6285 0 dXSARGS;
6286 static const XSBind_ParamSpec param_specs[2] = {
6287 XSBIND_PARAM("reader", 1),
6288 XSBIND_PARAM("doc_map", 0)
6289 };
6290 int32_t locations[2];
6291 SV *sv;
6292 lucy_DataWriter* arg_self;
6293 lucy_SegReader* arg_reader;
6294 lucy_I32Array* arg_doc_map;
6295 LUCY_DataWriter_Add_Segment_t method;
6296  
6297 CFISH_UNUSED_VAR(cv);
6298 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
6299 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
6300 }
6301 0 SP -= items;
6302  
6303 /* Locate args on Perl stack. */
6304 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6305 locations, 2);
6306 0 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6307 0 sv = ST(locations[0]);
6308 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
6309 0 sv = ST(locations[1]);
6310 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
6311  
6312 /* Execute */
6313 0 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Add_Segment);
6314 0 method(arg_self, arg_reader, arg_doc_map);
6315 0 XSRETURN(0);
6316 }
6317  
6318 XS_INTERNAL(XS_Lucy_Index_DataWriter_delete_segment);
6319 0 XS_INTERNAL(XS_Lucy_Index_DataWriter_delete_segment) {
6320 0 dXSARGS;
6321 SV *sv;
6322 lucy_DataWriter* arg_self;
6323 lucy_SegReader* arg_reader;
6324 LUCY_DataWriter_Delete_Segment_t method;
6325  
6326 CFISH_UNUSED_VAR(cv);
6327 0 SP -= items;
6328 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
6329 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
6330 }
6331  
6332 /* Extract vars from Perl stack. */
6333 0 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6334 0 sv = ST(1);
6335 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
6336  
6337 /* Execute */
6338 0 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Delete_Segment);
6339 0 method(arg_self, arg_reader);
6340 0 XSRETURN(0);
6341 }
6342  
6343 XS_INTERNAL(XS_Lucy_Index_DataWriter_merge_segment);
6344 0 XS_INTERNAL(XS_Lucy_Index_DataWriter_merge_segment) {
6345 0 dXSARGS;
6346 static const XSBind_ParamSpec param_specs[2] = {
6347 XSBIND_PARAM("reader", 1),
6348 XSBIND_PARAM("doc_map", 0)
6349 };
6350 int32_t locations[2];
6351 SV *sv;
6352 lucy_DataWriter* arg_self;
6353 lucy_SegReader* arg_reader;
6354 lucy_I32Array* arg_doc_map;
6355 LUCY_DataWriter_Merge_Segment_t method;
6356  
6357 CFISH_UNUSED_VAR(cv);
6358 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
6359 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
6360 }
6361 0 SP -= items;
6362  
6363 /* Locate args on Perl stack. */
6364 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6365 locations, 2);
6366 0 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6367 0 sv = ST(locations[0]);
6368 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
6369 0 sv = ST(locations[1]);
6370 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
6371  
6372 /* Execute */
6373 0 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Merge_Segment);
6374 0 method(arg_self, arg_reader, arg_doc_map);
6375 0 XSRETURN(0);
6376 }
6377  
6378 XS_INTERNAL(XS_Lucy_Index_DataWriter_finish);
6379 0 XS_INTERNAL(XS_Lucy_Index_DataWriter_finish) {
6380 0 dXSARGS;
6381 lucy_DataWriter* arg_self;
6382 LUCY_DataWriter_Finish_t method;
6383  
6384 CFISH_UNUSED_VAR(cv);
6385 0 SP -= items;
6386 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
6387 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6388 }
6389  
6390 /* Extract vars from Perl stack. */
6391 0 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6392  
6393 /* Execute */
6394 0 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Finish);
6395 0 method(arg_self);
6396 0 XSRETURN(0);
6397 }
6398  
6399 XS_INTERNAL(XS_Lucy_Index_DataWriter_metadata);
6400 8 XS_INTERNAL(XS_Lucy_Index_DataWriter_metadata) {
6401 8 dXSARGS;
6402 lucy_DataWriter* arg_self;
6403 LUCY_DataWriter_Metadata_t method;
6404 cfish_Hash* retval;
6405  
6406 CFISH_UNUSED_VAR(cv);
6407 8 SP -= items;
6408 8 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 8 8
6409 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6410 }
6411  
6412 /* Extract vars from Perl stack. */
6413 8 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6414  
6415 /* Execute */
6416 8 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Metadata);
6417 8 retval = method(arg_self);
6418 8 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6419 8 CFISH_DECREF(retval);
6420 8 sv_2mortal( ST(0) );
6421 8 XSRETURN(1);
6422 }
6423  
6424 XS_INTERNAL(XS_Lucy_Index_DataWriter_format);
6425 0 XS_INTERNAL(XS_Lucy_Index_DataWriter_format) {
6426 0 dXSARGS;
6427 lucy_DataWriter* arg_self;
6428 LUCY_DataWriter_Format_t method;
6429 int32_t retval;
6430  
6431 CFISH_UNUSED_VAR(cv);
6432 0 SP -= items;
6433 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
6434 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6435 }
6436  
6437 /* Extract vars from Perl stack. */
6438 0 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6439  
6440 /* Execute */
6441 0 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Format);
6442 0 retval = method(arg_self);
6443 0 ST(0) = newSViv(retval);
6444 0 sv_2mortal( ST(0) );
6445 0 XSRETURN(1);
6446 }
6447  
6448 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_snapshot);
6449 8 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_snapshot) {
6450 8 dXSARGS;
6451 lucy_DataWriter* arg_self;
6452 LUCY_DataWriter_Get_Snapshot_t method;
6453 lucy_Snapshot* retval;
6454  
6455 CFISH_UNUSED_VAR(cv);
6456 8 SP -= items;
6457 8 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 8 8
6458 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6459 }
6460  
6461 /* Extract vars from Perl stack. */
6462 8 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6463  
6464 /* Execute */
6465 8 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Get_Snapshot);
6466 8 retval = method(arg_self);
6467 8 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6468 8 sv_2mortal( ST(0) );
6469 8 XSRETURN(1);
6470 }
6471  
6472 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_segment);
6473 28 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_segment) {
6474 28 dXSARGS;
6475 lucy_DataWriter* arg_self;
6476 LUCY_DataWriter_Get_Segment_t method;
6477 lucy_Segment* retval;
6478  
6479 CFISH_UNUSED_VAR(cv);
6480 28 SP -= items;
6481 28 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 28 28
6482 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6483 }
6484  
6485 /* Extract vars from Perl stack. */
6486 28 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6487  
6488 /* Execute */
6489 28 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Get_Segment);
6490 28 retval = method(arg_self);
6491 28 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6492 28 sv_2mortal( ST(0) );
6493 28 XSRETURN(1);
6494 }
6495  
6496 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_polyreader);
6497 8 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_polyreader) {
6498 8 dXSARGS;
6499 lucy_DataWriter* arg_self;
6500 LUCY_DataWriter_Get_PolyReader_t method;
6501 lucy_PolyReader* retval;
6502  
6503 CFISH_UNUSED_VAR(cv);
6504 8 SP -= items;
6505 8 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 8 8
6506 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6507 }
6508  
6509 /* Extract vars from Perl stack. */
6510 8 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6511  
6512 /* Execute */
6513 8 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Get_PolyReader);
6514 8 retval = method(arg_self);
6515 8 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6516 8 sv_2mortal( ST(0) );
6517 8 XSRETURN(1);
6518 }
6519  
6520 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_schema);
6521 21 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_schema) {
6522 21 dXSARGS;
6523 lucy_DataWriter* arg_self;
6524 LUCY_DataWriter_Get_Schema_t method;
6525 lucy_Schema* retval;
6526  
6527 CFISH_UNUSED_VAR(cv);
6528 21 SP -= items;
6529 21 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 21 21
6530 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6531 }
6532  
6533 /* Extract vars from Perl stack. */
6534 21 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6535  
6536 /* Execute */
6537 21 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Get_Schema);
6538 21 retval = method(arg_self);
6539 21 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6540 21 sv_2mortal( ST(0) );
6541 21 XSRETURN(1);
6542 }
6543  
6544 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_folder);
6545 8 XS_INTERNAL(XS_Lucy_Index_DataWriter_get_folder) {
6546 8 dXSARGS;
6547 lucy_DataWriter* arg_self;
6548 LUCY_DataWriter_Get_Folder_t method;
6549 lucy_Folder* retval;
6550  
6551 CFISH_UNUSED_VAR(cv);
6552 8 SP -= items;
6553 8 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 8 8
6554 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6555 }
6556  
6557 /* Extract vars from Perl stack. */
6558 8 arg_self = (lucy_DataWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DATAWRITER, NULL);
6559  
6560 /* Execute */
6561 8 method = CFISH_METHOD_PTR(LUCY_DATAWRITER, LUCY_DataWriter_Get_Folder);
6562 8 retval = method(arg_self);
6563 8 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6564 8 sv_2mortal( ST(0) );
6565 8 XSRETURN(1);
6566 }
6567  
6568 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_new);
6569 0 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_new) {
6570 0 dXSARGS;
6571 static const XSBind_ParamSpec param_specs[4] = {
6572 XSBIND_PARAM("schema", 1),
6573 XSBIND_PARAM("snapshot", 1),
6574 XSBIND_PARAM("segment", 1),
6575 XSBIND_PARAM("polyreader", 1)
6576 };
6577 int32_t locations[4];
6578 SV *sv;
6579 lucy_DeletionsWriter* arg_self;
6580 lucy_Schema* arg_schema;
6581 lucy_Snapshot* arg_snapshot;
6582 lucy_Segment* arg_segment;
6583 lucy_PolyReader* arg_polyreader;
6584 lucy_DeletionsWriter* retval;
6585  
6586 CFISH_UNUSED_VAR(cv);
6587 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
6588 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
6589 }
6590 0 SP -= items;
6591  
6592 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6593 locations, 4);
6594 0 sv = ST(locations[0]);
6595 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
6596 0 sv = ST(locations[1]);
6597 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
6598 0 sv = ST(locations[2]);
6599 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
6600 0 sv = ST(locations[3]);
6601 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
6602 0 arg_self = (lucy_DeletionsWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
6603  
6604 0 retval = lucy_DelWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader);
6605 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
6606 0 XSRETURN(1);
6607 }
6608  
6609  
6610 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_delete_by_term);
6611 0 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_delete_by_term) {
6612 0 dXSARGS;
6613 static const XSBind_ParamSpec param_specs[2] = {
6614 XSBIND_PARAM("field", 1),
6615 XSBIND_PARAM("term", 1)
6616 };
6617 int32_t locations[2];
6618 SV *sv;
6619 lucy_DeletionsWriter* arg_self;
6620 cfish_String* arg_field;
6621 cfish_Obj* arg_term;
6622 LUCY_DelWriter_Delete_By_Term_t method;
6623  
6624 CFISH_UNUSED_VAR(cv);
6625 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
6626 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
6627 }
6628 0 SP -= items;
6629  
6630 /* Locate args on Perl stack. */
6631 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6632 locations, 2);
6633 0 arg_self = (lucy_DeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSWRITER, NULL);
6634 0 sv = ST(locations[0]);
6635 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
6636 0 sv = ST(locations[1]);
6637 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
6638  
6639 /* Execute */
6640 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSWRITER, LUCY_DelWriter_Delete_By_Term);
6641 0 method(arg_self, arg_field, arg_term);
6642 0 XSRETURN(0);
6643 }
6644  
6645 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_delete_by_query);
6646 0 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_delete_by_query) {
6647 0 dXSARGS;
6648 SV *sv;
6649 lucy_DeletionsWriter* arg_self;
6650 lucy_Query* arg_query;
6651 LUCY_DelWriter_Delete_By_Query_t method;
6652  
6653 CFISH_UNUSED_VAR(cv);
6654 0 SP -= items;
6655 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
6656 0 XSBind_invalid_args_error(aTHX_ cv, "self, query");
6657 }
6658  
6659 /* Extract vars from Perl stack. */
6660 0 arg_self = (lucy_DeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSWRITER, NULL);
6661 0 sv = ST(1);
6662 0 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
6663  
6664 /* Execute */
6665 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSWRITER, LUCY_DelWriter_Delete_By_Query);
6666 0 method(arg_self, arg_query);
6667 0 XSRETURN(0);
6668 }
6669  
6670 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_delete_by_doc_id);
6671 0 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_delete_by_doc_id) {
6672 0 dXSARGS;
6673 SV *sv;
6674 lucy_DeletionsWriter* arg_self;
6675 int32_t arg_doc_id;
6676 LUCY_DelWriter_Delete_By_Doc_ID_t method;
6677  
6678 CFISH_UNUSED_VAR(cv);
6679 0 SP -= items;
6680 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
6681 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
6682 }
6683  
6684 /* Extract vars from Perl stack. */
6685 0 arg_self = (lucy_DeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSWRITER, NULL);
6686 0 sv = ST(1);
6687 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
6688 0 XSBind_undef_arg_error(aTHX_ "doc_id");
6689 }
6690 0 arg_doc_id = (int32_t)SvIV(sv);
6691  
6692 /* Execute */
6693 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSWRITER, LUCY_DelWriter_Delete_By_Doc_ID);
6694 0 method(arg_self, arg_doc_id);
6695 0 XSRETURN(0);
6696 }
6697  
6698 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_updated);
6699 0 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_updated) {
6700 0 dXSARGS;
6701 lucy_DeletionsWriter* arg_self;
6702 LUCY_DelWriter_Updated_t method;
6703 bool retval;
6704  
6705 CFISH_UNUSED_VAR(cv);
6706 0 SP -= items;
6707 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
6708 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6709 }
6710  
6711 /* Extract vars from Perl stack. */
6712 0 arg_self = (lucy_DeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSWRITER, NULL);
6713  
6714 /* Execute */
6715 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSWRITER, LUCY_DelWriter_Updated);
6716 0 retval = method(arg_self);
6717 0 ST(0) = newSViv(!!retval);
6718 0 sv_2mortal( ST(0) );
6719 0 XSRETURN(1);
6720 }
6721  
6722 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_generate_doc_map);
6723 2 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_generate_doc_map) {
6724 2 dXSARGS;
6725 static const XSBind_ParamSpec param_specs[3] = {
6726 XSBIND_PARAM("deletions", 1),
6727 XSBIND_PARAM("doc_max", 1),
6728 XSBIND_PARAM("offset", 1)
6729 };
6730 int32_t locations[3];
6731 SV *sv;
6732 lucy_DeletionsWriter* arg_self;
6733 lucy_Matcher* arg_deletions;
6734 int32_t arg_doc_max;
6735 int32_t arg_offset;
6736 LUCY_DelWriter_Generate_Doc_Map_t method;
6737 lucy_I32Array* retval;
6738  
6739 CFISH_UNUSED_VAR(cv);
6740 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
6741 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
6742 }
6743 2 SP -= items;
6744  
6745 /* Locate args on Perl stack. */
6746 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6747 locations, 3);
6748 2 arg_self = (lucy_DeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSWRITER, NULL);
6749 2 sv = ST(locations[0]);
6750 2 arg_deletions = (lucy_Matcher*)XSBind_arg_to_cfish(aTHX_ sv, "deletions", LUCY_MATCHER, NULL);
6751 2 sv = ST(locations[1]);
6752 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
6753 0 XSBind_undef_arg_error(aTHX_ "doc_max");
6754 }
6755 2 arg_doc_max = (int32_t)SvIV(sv);
6756 2 sv = ST(locations[2]);
6757 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
6758 0 XSBind_undef_arg_error(aTHX_ "offset");
6759 }
6760 2 arg_offset = (int32_t)SvIV(sv);
6761  
6762 /* Execute */
6763 2 method = CFISH_METHOD_PTR(LUCY_DELETIONSWRITER, LUCY_DelWriter_Generate_Doc_Map);
6764 2 retval = method(arg_self, arg_deletions, arg_doc_max, arg_offset);
6765 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6766 2 CFISH_DECREF(retval);
6767 2 sv_2mortal( ST(0) );
6768 2 XSRETURN(1);
6769 }
6770  
6771 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_seg_deletions);
6772 0 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_seg_deletions) {
6773 0 dXSARGS;
6774 SV *sv;
6775 lucy_DeletionsWriter* arg_self;
6776 lucy_SegReader* arg_seg_reader;
6777 LUCY_DelWriter_Seg_Deletions_t method;
6778 lucy_Matcher* retval;
6779  
6780 CFISH_UNUSED_VAR(cv);
6781 0 SP -= items;
6782 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
6783 0 XSBind_invalid_args_error(aTHX_ cv, "self, seg_reader");
6784 }
6785  
6786 /* Extract vars from Perl stack. */
6787 0 arg_self = (lucy_DeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSWRITER, NULL);
6788 0 sv = ST(1);
6789 0 arg_seg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "seg_reader", LUCY_SEGREADER, NULL);
6790  
6791 /* Execute */
6792 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSWRITER, LUCY_DelWriter_Seg_Deletions);
6793 0 retval = method(arg_self, arg_seg_reader);
6794 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
6795 0 CFISH_DECREF(retval);
6796 0 sv_2mortal( ST(0) );
6797 0 XSRETURN(1);
6798 }
6799  
6800 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_seg_del_count);
6801 0 XS_INTERNAL(XS_Lucy_Index_DeletionsWriter_seg_del_count) {
6802 0 dXSARGS;
6803 SV *sv;
6804 lucy_DeletionsWriter* arg_self;
6805 cfish_String* arg_seg_name;
6806 LUCY_DelWriter_Seg_Del_Count_t method;
6807 int32_t retval;
6808  
6809 CFISH_UNUSED_VAR(cv);
6810 0 SP -= items;
6811 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
6812 0 XSBind_invalid_args_error(aTHX_ cv, "self, seg_name");
6813 }
6814  
6815 /* Extract vars from Perl stack. */
6816 0 arg_self = (lucy_DeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DELETIONSWRITER, NULL);
6817 0 sv = ST(1);
6818 0 arg_seg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "seg_name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
6819  
6820 /* Execute */
6821 0 method = CFISH_METHOD_PTR(LUCY_DELETIONSWRITER, LUCY_DelWriter_Seg_Del_Count);
6822 0 retval = method(arg_self, arg_seg_name);
6823 0 ST(0) = newSViv(retval);
6824 0 sv_2mortal( ST(0) );
6825 0 XSRETURN(1);
6826 }
6827  
6828 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_new);
6829 3 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_new) {
6830 3 dXSARGS;
6831 static const XSBind_ParamSpec param_specs[4] = {
6832 XSBIND_PARAM("schema", 1),
6833 XSBIND_PARAM("snapshot", 1),
6834 XSBIND_PARAM("segment", 1),
6835 XSBIND_PARAM("polyreader", 1)
6836 };
6837 int32_t locations[4];
6838 SV *sv;
6839 lucy_DefaultDeletionsWriter* arg_self;
6840 lucy_Schema* arg_schema;
6841 lucy_Snapshot* arg_snapshot;
6842 lucy_Segment* arg_segment;
6843 lucy_PolyReader* arg_polyreader;
6844 lucy_DefaultDeletionsWriter* retval;
6845  
6846 CFISH_UNUSED_VAR(cv);
6847 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
6848 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
6849 }
6850 3 SP -= items;
6851  
6852 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6853 locations, 4);
6854 3 sv = ST(locations[0]);
6855 3 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
6856 3 sv = ST(locations[1]);
6857 3 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
6858 3 sv = ST(locations[2]);
6859 3 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
6860 3 sv = ST(locations[3]);
6861 3 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
6862 3 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
6863  
6864 3 retval = lucy_DefDelWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader);
6865 3 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
6866 3 XSRETURN(1);
6867 }
6868  
6869  
6870 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_delete_by_term);
6871 2 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_delete_by_term) {
6872 2 dXSARGS;
6873 static const XSBind_ParamSpec param_specs[2] = {
6874 XSBIND_PARAM("field", 1),
6875 XSBIND_PARAM("term", 1)
6876 };
6877 int32_t locations[2];
6878 SV *sv;
6879 lucy_DefaultDeletionsWriter* arg_self;
6880 cfish_String* arg_field;
6881 cfish_Obj* arg_term;
6882 LUCY_DefDelWriter_Delete_By_Term_t method;
6883  
6884 CFISH_UNUSED_VAR(cv);
6885 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
6886 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
6887 }
6888 2 SP -= items;
6889  
6890 /* Locate args on Perl stack. */
6891 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
6892 locations, 2);
6893 2 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
6894 2 sv = ST(locations[0]);
6895 2 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
6896 2 sv = ST(locations[1]);
6897 2 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
6898  
6899 /* Execute */
6900 2 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Delete_By_Term);
6901 2 method(arg_self, arg_field, arg_term);
6902 2 XSRETURN(0);
6903 }
6904  
6905 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_delete_by_query);
6906 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_delete_by_query) {
6907 0 dXSARGS;
6908 SV *sv;
6909 lucy_DefaultDeletionsWriter* arg_self;
6910 lucy_Query* arg_query;
6911 LUCY_DefDelWriter_Delete_By_Query_t method;
6912  
6913 CFISH_UNUSED_VAR(cv);
6914 0 SP -= items;
6915 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
6916 0 XSBind_invalid_args_error(aTHX_ cv, "self, query");
6917 }
6918  
6919 /* Extract vars from Perl stack. */
6920 0 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
6921 0 sv = ST(1);
6922 0 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
6923  
6924 /* Execute */
6925 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Delete_By_Query);
6926 0 method(arg_self, arg_query);
6927 0 XSRETURN(0);
6928 }
6929  
6930 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_delete_by_doc_id);
6931 1 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_delete_by_doc_id) {
6932 1 dXSARGS;
6933 SV *sv;
6934 lucy_DefaultDeletionsWriter* arg_self;
6935 int32_t arg_doc_id;
6936 LUCY_DefDelWriter_Delete_By_Doc_ID_t method;
6937  
6938 CFISH_UNUSED_VAR(cv);
6939 1 SP -= items;
6940 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
6941 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
6942 }
6943  
6944 /* Extract vars from Perl stack. */
6945 1 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
6946 1 sv = ST(1);
6947 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
6948 0 XSBind_undef_arg_error(aTHX_ "doc_id");
6949 }
6950 1 arg_doc_id = (int32_t)SvIV(sv);
6951  
6952 /* Execute */
6953 1 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Delete_By_Doc_ID);
6954 1 method(arg_self, arg_doc_id);
6955 1 XSRETURN(0);
6956 }
6957  
6958 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_updated);
6959 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_updated) {
6960 0 dXSARGS;
6961 lucy_DefaultDeletionsWriter* arg_self;
6962 LUCY_DefDelWriter_Updated_t method;
6963 bool retval;
6964  
6965 CFISH_UNUSED_VAR(cv);
6966 0 SP -= items;
6967 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
6968 0 XSBind_invalid_args_error(aTHX_ cv, "self");
6969 }
6970  
6971 /* Extract vars from Perl stack. */
6972 0 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
6973  
6974 /* Execute */
6975 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Updated);
6976 0 retval = method(arg_self);
6977 0 ST(0) = newSViv(!!retval);
6978 0 sv_2mortal( ST(0) );
6979 0 XSRETURN(1);
6980 }
6981  
6982 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_seg_deletions);
6983 2 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_seg_deletions) {
6984 2 dXSARGS;
6985 SV *sv;
6986 lucy_DefaultDeletionsWriter* arg_self;
6987 lucy_SegReader* arg_seg_reader;
6988 LUCY_DefDelWriter_Seg_Deletions_t method;
6989 lucy_Matcher* retval;
6990  
6991 CFISH_UNUSED_VAR(cv);
6992 2 SP -= items;
6993 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
6994 0 XSBind_invalid_args_error(aTHX_ cv, "self, seg_reader");
6995 }
6996  
6997 /* Extract vars from Perl stack. */
6998 2 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
6999 2 sv = ST(1);
7000 2 arg_seg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "seg_reader", LUCY_SEGREADER, NULL);
7001  
7002 /* Execute */
7003 2 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Seg_Deletions);
7004 2 retval = method(arg_self, arg_seg_reader);
7005 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
7006 2 CFISH_DECREF(retval);
7007 2 sv_2mortal( ST(0) );
7008 2 XSRETURN(1);
7009 }
7010  
7011 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_seg_del_count);
7012 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_seg_del_count) {
7013 0 dXSARGS;
7014 SV *sv;
7015 lucy_DefaultDeletionsWriter* arg_self;
7016 cfish_String* arg_seg_name;
7017 LUCY_DefDelWriter_Seg_Del_Count_t method;
7018 int32_t retval;
7019  
7020 CFISH_UNUSED_VAR(cv);
7021 0 SP -= items;
7022 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
7023 0 XSBind_invalid_args_error(aTHX_ cv, "self, seg_name");
7024 }
7025  
7026 /* Extract vars from Perl stack. */
7027 0 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
7028 0 sv = ST(1);
7029 0 arg_seg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "seg_name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
7030  
7031 /* Execute */
7032 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Seg_Del_Count);
7033 0 retval = method(arg_self, arg_seg_name);
7034 0 ST(0) = newSViv(retval);
7035 0 sv_2mortal( ST(0) );
7036 0 XSRETURN(1);
7037 }
7038  
7039 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_add_segment);
7040 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_add_segment) {
7041 0 dXSARGS;
7042 static const XSBind_ParamSpec param_specs[2] = {
7043 XSBIND_PARAM("reader", 1),
7044 XSBIND_PARAM("doc_map", 0)
7045 };
7046 int32_t locations[2];
7047 SV *sv;
7048 lucy_DefaultDeletionsWriter* arg_self;
7049 lucy_SegReader* arg_reader;
7050 lucy_I32Array* arg_doc_map;
7051 LUCY_DefDelWriter_Add_Segment_t method;
7052  
7053 CFISH_UNUSED_VAR(cv);
7054 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7055 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7056 }
7057 0 SP -= items;
7058  
7059 /* Locate args on Perl stack. */
7060 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7061 locations, 2);
7062 0 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
7063 0 sv = ST(locations[0]);
7064 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
7065 0 sv = ST(locations[1]);
7066 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
7067  
7068 /* Execute */
7069 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Add_Segment);
7070 0 method(arg_self, arg_reader, arg_doc_map);
7071 0 XSRETURN(0);
7072 }
7073  
7074 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_merge_segment);
7075 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_merge_segment) {
7076 0 dXSARGS;
7077 static const XSBind_ParamSpec param_specs[2] = {
7078 XSBIND_PARAM("reader", 1),
7079 XSBIND_PARAM("doc_map", 0)
7080 };
7081 int32_t locations[2];
7082 SV *sv;
7083 lucy_DefaultDeletionsWriter* arg_self;
7084 lucy_SegReader* arg_reader;
7085 lucy_I32Array* arg_doc_map;
7086 LUCY_DefDelWriter_Merge_Segment_t method;
7087  
7088 CFISH_UNUSED_VAR(cv);
7089 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7090 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7091 }
7092 0 SP -= items;
7093  
7094 /* Locate args on Perl stack. */
7095 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7096 locations, 2);
7097 0 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
7098 0 sv = ST(locations[0]);
7099 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
7100 0 sv = ST(locations[1]);
7101 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
7102  
7103 /* Execute */
7104 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Merge_Segment);
7105 0 method(arg_self, arg_reader, arg_doc_map);
7106 0 XSRETURN(0);
7107 }
7108  
7109 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_finish);
7110 1 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_finish) {
7111 1 dXSARGS;
7112 lucy_DefaultDeletionsWriter* arg_self;
7113 LUCY_DefDelWriter_Finish_t method;
7114  
7115 CFISH_UNUSED_VAR(cv);
7116 1 SP -= items;
7117 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
7118 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7119 }
7120  
7121 /* Extract vars from Perl stack. */
7122 1 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
7123  
7124 /* Execute */
7125 1 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Finish);
7126 1 method(arg_self);
7127 1 XSRETURN(0);
7128 }
7129  
7130 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_format);
7131 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_format) {
7132 0 dXSARGS;
7133 lucy_DefaultDeletionsWriter* arg_self;
7134 LUCY_DefDelWriter_Format_t method;
7135 int32_t retval;
7136  
7137 CFISH_UNUSED_VAR(cv);
7138 0 SP -= items;
7139 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7140 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7141 }
7142  
7143 /* Extract vars from Perl stack. */
7144 0 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
7145  
7146 /* Execute */
7147 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Format);
7148 0 retval = method(arg_self);
7149 0 ST(0) = newSViv(retval);
7150 0 sv_2mortal( ST(0) );
7151 0 XSRETURN(1);
7152 }
7153  
7154 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_metadata);
7155 0 XS_INTERNAL(XS_Lucy_Index_DefaultDeletionsWriter_metadata) {
7156 0 dXSARGS;
7157 lucy_DefaultDeletionsWriter* arg_self;
7158 LUCY_DefDelWriter_Metadata_t method;
7159 cfish_Hash* retval;
7160  
7161 CFISH_UNUSED_VAR(cv);
7162 0 SP -= items;
7163 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7164 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7165 }
7166  
7167 /* Extract vars from Perl stack. */
7168 0 arg_self = (lucy_DefaultDeletionsWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DEFAULTDELETIONSWRITER, NULL);
7169  
7170 /* Execute */
7171 0 method = CFISH_METHOD_PTR(LUCY_DEFAULTDELETIONSWRITER, LUCY_DefDelWriter_Metadata);
7172 0 retval = method(arg_self);
7173 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
7174 0 CFISH_DECREF(retval);
7175 0 sv_2mortal( ST(0) );
7176 0 XSRETURN(1);
7177 }
7178  
7179 XS_INTERNAL(XS_Lucy_Index_DocWriter_new);
7180 0 XS_INTERNAL(XS_Lucy_Index_DocWriter_new) {
7181 0 dXSARGS;
7182 static const XSBind_ParamSpec param_specs[4] = {
7183 XSBIND_PARAM("schema", 1),
7184 XSBIND_PARAM("snapshot", 1),
7185 XSBIND_PARAM("segment", 1),
7186 XSBIND_PARAM("polyreader", 1)
7187 };
7188 int32_t locations[4];
7189 SV *sv;
7190 lucy_DocWriter* arg_self;
7191 lucy_Schema* arg_schema;
7192 lucy_Snapshot* arg_snapshot;
7193 lucy_Segment* arg_segment;
7194 lucy_PolyReader* arg_polyreader;
7195 lucy_DocWriter* retval;
7196  
7197 CFISH_UNUSED_VAR(cv);
7198 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7199 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
7200 }
7201 0 SP -= items;
7202  
7203 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7204 locations, 4);
7205 0 sv = ST(locations[0]);
7206 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
7207 0 sv = ST(locations[1]);
7208 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
7209 0 sv = ST(locations[2]);
7210 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
7211 0 sv = ST(locations[3]);
7212 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
7213 0 arg_self = (lucy_DocWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
7214  
7215 0 retval = lucy_DocWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader);
7216 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
7217 0 XSRETURN(1);
7218 }
7219  
7220  
7221 XS_INTERNAL(XS_Lucy_Index_DocWriter_add_inverted_doc);
7222 0 XS_INTERNAL(XS_Lucy_Index_DocWriter_add_inverted_doc) {
7223 0 dXSARGS;
7224 static const XSBind_ParamSpec param_specs[2] = {
7225 XSBIND_PARAM("inverter", 1),
7226 XSBIND_PARAM("doc_id", 1)
7227 };
7228 int32_t locations[2];
7229 SV *sv;
7230 lucy_DocWriter* arg_self;
7231 lucy_Inverter* arg_inverter;
7232 int32_t arg_doc_id;
7233 LUCY_DocWriter_Add_Inverted_Doc_t method;
7234  
7235 CFISH_UNUSED_VAR(cv);
7236 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7237 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7238 }
7239 0 SP -= items;
7240  
7241 /* Locate args on Perl stack. */
7242 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7243 locations, 2);
7244 0 arg_self = (lucy_DocWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCWRITER, NULL);
7245 0 sv = ST(locations[0]);
7246 0 arg_inverter = (lucy_Inverter*)XSBind_arg_to_cfish(aTHX_ sv, "inverter", LUCY_INVERTER, NULL);
7247 0 sv = ST(locations[1]);
7248 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
7249 0 XSBind_undef_arg_error(aTHX_ "doc_id");
7250 }
7251 0 arg_doc_id = (int32_t)SvIV(sv);
7252  
7253 /* Execute */
7254 0 method = CFISH_METHOD_PTR(LUCY_DOCWRITER, LUCY_DocWriter_Add_Inverted_Doc);
7255 0 method(arg_self, arg_inverter, arg_doc_id);
7256 0 XSRETURN(0);
7257 }
7258  
7259 XS_INTERNAL(XS_Lucy_Index_DocWriter_add_segment);
7260 0 XS_INTERNAL(XS_Lucy_Index_DocWriter_add_segment) {
7261 0 dXSARGS;
7262 static const XSBind_ParamSpec param_specs[2] = {
7263 XSBIND_PARAM("reader", 1),
7264 XSBIND_PARAM("doc_map", 0)
7265 };
7266 int32_t locations[2];
7267 SV *sv;
7268 lucy_DocWriter* arg_self;
7269 lucy_SegReader* arg_reader;
7270 lucy_I32Array* arg_doc_map;
7271 LUCY_DocWriter_Add_Segment_t method;
7272  
7273 CFISH_UNUSED_VAR(cv);
7274 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7275 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7276 }
7277 0 SP -= items;
7278  
7279 /* Locate args on Perl stack. */
7280 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7281 locations, 2);
7282 0 arg_self = (lucy_DocWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCWRITER, NULL);
7283 0 sv = ST(locations[0]);
7284 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
7285 0 sv = ST(locations[1]);
7286 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
7287  
7288 /* Execute */
7289 0 method = CFISH_METHOD_PTR(LUCY_DOCWRITER, LUCY_DocWriter_Add_Segment);
7290 0 method(arg_self, arg_reader, arg_doc_map);
7291 0 XSRETURN(0);
7292 }
7293  
7294 XS_INTERNAL(XS_Lucy_Index_DocWriter_finish);
7295 0 XS_INTERNAL(XS_Lucy_Index_DocWriter_finish) {
7296 0 dXSARGS;
7297 lucy_DocWriter* arg_self;
7298 LUCY_DocWriter_Finish_t method;
7299  
7300 CFISH_UNUSED_VAR(cv);
7301 0 SP -= items;
7302 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7303 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7304 }
7305  
7306 /* Extract vars from Perl stack. */
7307 0 arg_self = (lucy_DocWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCWRITER, NULL);
7308  
7309 /* Execute */
7310 0 method = CFISH_METHOD_PTR(LUCY_DOCWRITER, LUCY_DocWriter_Finish);
7311 0 method(arg_self);
7312 0 XSRETURN(0);
7313 }
7314  
7315 XS_INTERNAL(XS_Lucy_Index_DocWriter_format);
7316 0 XS_INTERNAL(XS_Lucy_Index_DocWriter_format) {
7317 0 dXSARGS;
7318 lucy_DocWriter* arg_self;
7319 LUCY_DocWriter_Format_t method;
7320 int32_t retval;
7321  
7322 CFISH_UNUSED_VAR(cv);
7323 0 SP -= items;
7324 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7325 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7326 }
7327  
7328 /* Extract vars from Perl stack. */
7329 0 arg_self = (lucy_DocWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCWRITER, NULL);
7330  
7331 /* Execute */
7332 0 method = CFISH_METHOD_PTR(LUCY_DOCWRITER, LUCY_DocWriter_Format);
7333 0 retval = method(arg_self);
7334 0 ST(0) = newSViv(retval);
7335 0 sv_2mortal( ST(0) );
7336 0 XSRETURN(1);
7337 }
7338  
7339 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_new);
7340 0 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_new) {
7341 0 dXSARGS;
7342 static const XSBind_ParamSpec param_specs[4] = {
7343 XSBIND_PARAM("schema", 1),
7344 XSBIND_PARAM("snapshot", 1),
7345 XSBIND_PARAM("segment", 1),
7346 XSBIND_PARAM("polyreader", 1)
7347 };
7348 int32_t locations[4];
7349 SV *sv;
7350 lucy_HighlightWriter* arg_self;
7351 lucy_Schema* arg_schema;
7352 lucy_Snapshot* arg_snapshot;
7353 lucy_Segment* arg_segment;
7354 lucy_PolyReader* arg_polyreader;
7355 lucy_HighlightWriter* retval;
7356  
7357 CFISH_UNUSED_VAR(cv);
7358 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7359 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
7360 }
7361 0 SP -= items;
7362  
7363 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7364 locations, 4);
7365 0 sv = ST(locations[0]);
7366 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
7367 0 sv = ST(locations[1]);
7368 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
7369 0 sv = ST(locations[2]);
7370 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
7371 0 sv = ST(locations[3]);
7372 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
7373 0 arg_self = (lucy_HighlightWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
7374  
7375 0 retval = lucy_HLWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader);
7376 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
7377 0 XSRETURN(1);
7378 }
7379  
7380  
7381 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_tv_buf);
7382 0 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_tv_buf) {
7383 0 dXSARGS;
7384 SV *sv;
7385 lucy_HighlightWriter* arg_self;
7386 lucy_Inversion* arg_inversion;
7387 LUCY_HLWriter_TV_Buf_t method;
7388 cfish_Blob* retval;
7389  
7390 CFISH_UNUSED_VAR(cv);
7391 0 SP -= items;
7392 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
7393 0 XSBind_invalid_args_error(aTHX_ cv, "self, inversion");
7394 }
7395  
7396 /* Extract vars from Perl stack. */
7397 0 arg_self = (lucy_HighlightWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTWRITER, NULL);
7398 0 sv = ST(1);
7399 0 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
7400  
7401 /* Execute */
7402 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTWRITER, LUCY_HLWriter_TV_Buf);
7403 0 retval = method(arg_self, arg_inversion);
7404 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
7405 0 CFISH_DECREF(retval);
7406 0 sv_2mortal( ST(0) );
7407 0 XSRETURN(1);
7408 }
7409  
7410 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_add_inverted_doc);
7411 0 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_add_inverted_doc) {
7412 0 dXSARGS;
7413 static const XSBind_ParamSpec param_specs[2] = {
7414 XSBIND_PARAM("inverter", 1),
7415 XSBIND_PARAM("doc_id", 1)
7416 };
7417 int32_t locations[2];
7418 SV *sv;
7419 lucy_HighlightWriter* arg_self;
7420 lucy_Inverter* arg_inverter;
7421 int32_t arg_doc_id;
7422 LUCY_HLWriter_Add_Inverted_Doc_t method;
7423  
7424 CFISH_UNUSED_VAR(cv);
7425 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7426 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7427 }
7428 0 SP -= items;
7429  
7430 /* Locate args on Perl stack. */
7431 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7432 locations, 2);
7433 0 arg_self = (lucy_HighlightWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTWRITER, NULL);
7434 0 sv = ST(locations[0]);
7435 0 arg_inverter = (lucy_Inverter*)XSBind_arg_to_cfish(aTHX_ sv, "inverter", LUCY_INVERTER, NULL);
7436 0 sv = ST(locations[1]);
7437 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
7438 0 XSBind_undef_arg_error(aTHX_ "doc_id");
7439 }
7440 0 arg_doc_id = (int32_t)SvIV(sv);
7441  
7442 /* Execute */
7443 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTWRITER, LUCY_HLWriter_Add_Inverted_Doc);
7444 0 method(arg_self, arg_inverter, arg_doc_id);
7445 0 XSRETURN(0);
7446 }
7447  
7448 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_add_segment);
7449 0 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_add_segment) {
7450 0 dXSARGS;
7451 static const XSBind_ParamSpec param_specs[2] = {
7452 XSBIND_PARAM("reader", 1),
7453 XSBIND_PARAM("doc_map", 0)
7454 };
7455 int32_t locations[2];
7456 SV *sv;
7457 lucy_HighlightWriter* arg_self;
7458 lucy_SegReader* arg_reader;
7459 lucy_I32Array* arg_doc_map;
7460 LUCY_HLWriter_Add_Segment_t method;
7461  
7462 CFISH_UNUSED_VAR(cv);
7463 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7464 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7465 }
7466 0 SP -= items;
7467  
7468 /* Locate args on Perl stack. */
7469 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7470 locations, 2);
7471 0 arg_self = (lucy_HighlightWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTWRITER, NULL);
7472 0 sv = ST(locations[0]);
7473 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
7474 0 sv = ST(locations[1]);
7475 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
7476  
7477 /* Execute */
7478 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTWRITER, LUCY_HLWriter_Add_Segment);
7479 0 method(arg_self, arg_reader, arg_doc_map);
7480 0 XSRETURN(0);
7481 }
7482  
7483 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_finish);
7484 0 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_finish) {
7485 0 dXSARGS;
7486 lucy_HighlightWriter* arg_self;
7487 LUCY_HLWriter_Finish_t method;
7488  
7489 CFISH_UNUSED_VAR(cv);
7490 0 SP -= items;
7491 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7492 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7493 }
7494  
7495 /* Extract vars from Perl stack. */
7496 0 arg_self = (lucy_HighlightWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTWRITER, NULL);
7497  
7498 /* Execute */
7499 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTWRITER, LUCY_HLWriter_Finish);
7500 0 method(arg_self);
7501 0 XSRETURN(0);
7502 }
7503  
7504 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_format);
7505 0 XS_INTERNAL(XS_Lucy_Index_HighlightWriter_format) {
7506 0 dXSARGS;
7507 lucy_HighlightWriter* arg_self;
7508 LUCY_HLWriter_Format_t method;
7509 int32_t retval;
7510  
7511 CFISH_UNUSED_VAR(cv);
7512 0 SP -= items;
7513 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7514 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7515 }
7516  
7517 /* Extract vars from Perl stack. */
7518 0 arg_self = (lucy_HighlightWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HIGHLIGHTWRITER, NULL);
7519  
7520 /* Execute */
7521 0 method = CFISH_METHOD_PTR(LUCY_HIGHLIGHTWRITER, LUCY_HLWriter_Format);
7522 0 retval = method(arg_self);
7523 0 ST(0) = newSViv(retval);
7524 0 sv_2mortal( ST(0) );
7525 0 XSRETURN(1);
7526 }
7527  
7528 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_new);
7529 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_new) {
7530 0 dXSARGS;
7531 static const XSBind_ParamSpec param_specs[4] = {
7532 XSBIND_PARAM("schema", 1),
7533 XSBIND_PARAM("snapshot", 1),
7534 XSBIND_PARAM("segment", 1),
7535 XSBIND_PARAM("polyreader", 1)
7536 };
7537 int32_t locations[4];
7538 SV *sv;
7539 lucy_LexiconWriter* arg_self;
7540 lucy_Schema* arg_schema;
7541 lucy_Snapshot* arg_snapshot;
7542 lucy_Segment* arg_segment;
7543 lucy_PolyReader* arg_polyreader;
7544 lucy_LexiconWriter* retval;
7545  
7546 CFISH_UNUSED_VAR(cv);
7547 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7548 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
7549 }
7550 0 SP -= items;
7551  
7552 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7553 locations, 4);
7554 0 sv = ST(locations[0]);
7555 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
7556 0 sv = ST(locations[1]);
7557 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
7558 0 sv = ST(locations[2]);
7559 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
7560 0 sv = ST(locations[3]);
7561 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
7562 0 arg_self = (lucy_LexiconWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
7563  
7564 0 retval = lucy_LexWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader);
7565 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
7566 0 XSRETURN(1);
7567 }
7568  
7569  
7570 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_start_field);
7571 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_start_field) {
7572 0 dXSARGS;
7573 SV *sv;
7574 lucy_LexiconWriter* arg_self;
7575 int32_t arg_field_num;
7576 LUCY_LexWriter_Start_Field_t method;
7577  
7578 CFISH_UNUSED_VAR(cv);
7579 0 SP -= items;
7580 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
7581 0 XSBind_invalid_args_error(aTHX_ cv, "self, field_num");
7582 }
7583  
7584 /* Extract vars from Perl stack. */
7585 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7586 0 sv = ST(1);
7587 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
7588 0 XSBind_undef_arg_error(aTHX_ "field_num");
7589 }
7590 0 arg_field_num = (int32_t)SvIV(sv);
7591  
7592 /* Execute */
7593 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Start_Field);
7594 0 method(arg_self, arg_field_num);
7595 0 XSRETURN(0);
7596 }
7597  
7598 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_finish_field);
7599 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_finish_field) {
7600 0 dXSARGS;
7601 SV *sv;
7602 lucy_LexiconWriter* arg_self;
7603 int32_t arg_field_num;
7604 LUCY_LexWriter_Finish_Field_t method;
7605  
7606 CFISH_UNUSED_VAR(cv);
7607 0 SP -= items;
7608 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
7609 0 XSBind_invalid_args_error(aTHX_ cv, "self, field_num");
7610 }
7611  
7612 /* Extract vars from Perl stack. */
7613 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7614 0 sv = ST(1);
7615 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
7616 0 XSBind_undef_arg_error(aTHX_ "field_num");
7617 }
7618 0 arg_field_num = (int32_t)SvIV(sv);
7619  
7620 /* Execute */
7621 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Finish_Field);
7622 0 method(arg_self, arg_field_num);
7623 0 XSRETURN(0);
7624 }
7625  
7626 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_enter_temp_mode);
7627 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_enter_temp_mode) {
7628 0 dXSARGS;
7629 static const XSBind_ParamSpec param_specs[2] = {
7630 XSBIND_PARAM("field", 1),
7631 XSBIND_PARAM("temp_outstream", 1)
7632 };
7633 int32_t locations[2];
7634 SV *sv;
7635 lucy_LexiconWriter* arg_self;
7636 cfish_String* arg_field;
7637 lucy_OutStream* arg_temp_outstream;
7638 LUCY_LexWriter_Enter_Temp_Mode_t method;
7639  
7640 CFISH_UNUSED_VAR(cv);
7641 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7642 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7643 }
7644 0 SP -= items;
7645  
7646 /* Locate args on Perl stack. */
7647 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7648 locations, 2);
7649 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7650 0 sv = ST(locations[0]);
7651 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
7652 0 sv = ST(locations[1]);
7653 0 arg_temp_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "temp_outstream", LUCY_OUTSTREAM, NULL);
7654  
7655 /* Execute */
7656 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Enter_Temp_Mode);
7657 0 method(arg_self, arg_field, arg_temp_outstream);
7658 0 XSRETURN(0);
7659 }
7660  
7661 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_leave_temp_mode);
7662 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_leave_temp_mode) {
7663 0 dXSARGS;
7664 lucy_LexiconWriter* arg_self;
7665 LUCY_LexWriter_Leave_Temp_Mode_t method;
7666  
7667 CFISH_UNUSED_VAR(cv);
7668 0 SP -= items;
7669 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7670 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7671 }
7672  
7673 /* Extract vars from Perl stack. */
7674 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7675  
7676 /* Execute */
7677 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Leave_Temp_Mode);
7678 0 method(arg_self);
7679 0 XSRETURN(0);
7680 }
7681  
7682 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_add_term);
7683 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_add_term) {
7684 0 dXSARGS;
7685 static const XSBind_ParamSpec param_specs[2] = {
7686 XSBIND_PARAM("term_text", 1),
7687 XSBIND_PARAM("tinfo", 1)
7688 };
7689 int32_t locations[2];
7690 SV *sv;
7691 lucy_LexiconWriter* arg_self;
7692 cfish_Obj* arg_term_text;
7693 lucy_TermInfo* arg_tinfo;
7694 LUCY_LexWriter_Add_Term_t method;
7695  
7696 CFISH_UNUSED_VAR(cv);
7697 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7698 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7699 }
7700 0 SP -= items;
7701  
7702 /* Locate args on Perl stack. */
7703 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7704 locations, 2);
7705 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7706 0 sv = ST(locations[0]);
7707 0 arg_term_text = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term_text", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
7708 0 sv = ST(locations[1]);
7709 0 arg_tinfo = (lucy_TermInfo*)XSBind_arg_to_cfish(aTHX_ sv, "tinfo", LUCY_TERMINFO, NULL);
7710  
7711 /* Execute */
7712 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Add_Term);
7713 0 method(arg_self, arg_term_text, arg_tinfo);
7714 0 XSRETURN(0);
7715 }
7716  
7717 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_add_segment);
7718 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_add_segment) {
7719 0 dXSARGS;
7720 static const XSBind_ParamSpec param_specs[2] = {
7721 XSBIND_PARAM("reader", 1),
7722 XSBIND_PARAM("doc_map", 0)
7723 };
7724 int32_t locations[2];
7725 SV *sv;
7726 lucy_LexiconWriter* arg_self;
7727 lucy_SegReader* arg_reader;
7728 lucy_I32Array* arg_doc_map;
7729 LUCY_LexWriter_Add_Segment_t method;
7730  
7731 CFISH_UNUSED_VAR(cv);
7732 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7733 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
7734 }
7735 0 SP -= items;
7736  
7737 /* Locate args on Perl stack. */
7738 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7739 locations, 2);
7740 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7741 0 sv = ST(locations[0]);
7742 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
7743 0 sv = ST(locations[1]);
7744 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
7745  
7746 /* Execute */
7747 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Add_Segment);
7748 0 method(arg_self, arg_reader, arg_doc_map);
7749 0 XSRETURN(0);
7750 }
7751  
7752 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_metadata);
7753 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_metadata) {
7754 0 dXSARGS;
7755 lucy_LexiconWriter* arg_self;
7756 LUCY_LexWriter_Metadata_t method;
7757 cfish_Hash* retval;
7758  
7759 CFISH_UNUSED_VAR(cv);
7760 0 SP -= items;
7761 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7762 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7763 }
7764  
7765 /* Extract vars from Perl stack. */
7766 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7767  
7768 /* Execute */
7769 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Metadata);
7770 0 retval = method(arg_self);
7771 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
7772 0 CFISH_DECREF(retval);
7773 0 sv_2mortal( ST(0) );
7774 0 XSRETURN(1);
7775 }
7776  
7777 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_format);
7778 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_format) {
7779 0 dXSARGS;
7780 lucy_LexiconWriter* arg_self;
7781 LUCY_LexWriter_Format_t method;
7782 int32_t retval;
7783  
7784 CFISH_UNUSED_VAR(cv);
7785 0 SP -= items;
7786 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7787 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7788 }
7789  
7790 /* Extract vars from Perl stack. */
7791 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7792  
7793 /* Execute */
7794 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Format);
7795 0 retval = method(arg_self);
7796 0 ST(0) = newSViv(retval);
7797 0 sv_2mortal( ST(0) );
7798 0 XSRETURN(1);
7799 }
7800  
7801 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_finish);
7802 0 XS_INTERNAL(XS_Lucy_Index_LexiconWriter_finish) {
7803 0 dXSARGS;
7804 lucy_LexiconWriter* arg_self;
7805 LUCY_LexWriter_Finish_t method;
7806  
7807 CFISH_UNUSED_VAR(cv);
7808 0 SP -= items;
7809 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
7810 0 XSBind_invalid_args_error(aTHX_ cv, "self");
7811 }
7812  
7813 /* Extract vars from Perl stack. */
7814 0 arg_self = (lucy_LexiconWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICONWRITER, NULL);
7815  
7816 /* Execute */
7817 0 method = CFISH_METHOD_PTR(LUCY_LEXICONWRITER, LUCY_LexWriter_Finish);
7818 0 method(arg_self);
7819 0 XSRETURN(0);
7820 }
7821  
7822 XS_INTERNAL(XS_Lucy_Index_Posting_PostingWriter_new);
7823 0 XS_INTERNAL(XS_Lucy_Index_Posting_PostingWriter_new) {
7824 0 dXSARGS;
7825 static const XSBind_ParamSpec param_specs[5] = {
7826 XSBIND_PARAM("schema", 1),
7827 XSBIND_PARAM("snapshot", 1),
7828 XSBIND_PARAM("segment", 1),
7829 XSBIND_PARAM("polyreader", 1),
7830 XSBIND_PARAM("field_num", 1)
7831 };
7832 int32_t locations[5];
7833 SV *sv;
7834 lucy_PostingWriter* arg_self;
7835 lucy_Schema* arg_schema;
7836 lucy_Snapshot* arg_snapshot;
7837 lucy_Segment* arg_segment;
7838 lucy_PolyReader* arg_polyreader;
7839 int32_t arg_field_num;
7840 lucy_PostingWriter* retval;
7841  
7842 CFISH_UNUSED_VAR(cv);
7843 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7844 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
7845 }
7846 0 SP -= items;
7847  
7848 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7849 locations, 5);
7850 0 sv = ST(locations[0]);
7851 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
7852 0 sv = ST(locations[1]);
7853 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
7854 0 sv = ST(locations[2]);
7855 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
7856 0 sv = ST(locations[3]);
7857 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
7858 0 sv = ST(locations[4]);
7859 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
7860 0 XSBind_undef_arg_error(aTHX_ "field_num");
7861 }
7862 0 arg_field_num = (int32_t)SvIV(sv);
7863 0 arg_self = (lucy_PostingWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
7864  
7865 0 retval = lucy_PostWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader, arg_field_num);
7866 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
7867 0 XSRETURN(1);
7868 }
7869  
7870  
7871 XS_INTERNAL(XS_Lucy_Index_Posting_PostingWriter_write_posting);
7872 0 XS_INTERNAL(XS_Lucy_Index_Posting_PostingWriter_write_posting) {
7873 0 dXSARGS;
7874 SV *sv;
7875 lucy_PostingWriter* arg_self;
7876 lucy_RawPosting* arg_posting;
7877 LUCY_PostWriter_Write_Posting_t method;
7878  
7879 CFISH_UNUSED_VAR(cv);
7880 0 SP -= items;
7881 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
7882 0 XSBind_invalid_args_error(aTHX_ cv, "self, posting");
7883 }
7884  
7885 /* Extract vars from Perl stack. */
7886 0 arg_self = (lucy_PostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGWRITER, NULL);
7887 0 sv = ST(1);
7888 0 arg_posting = (lucy_RawPosting*)XSBind_arg_to_cfish(aTHX_ sv, "posting", LUCY_RAWPOSTING, NULL);
7889  
7890 /* Execute */
7891 0 method = CFISH_METHOD_PTR(LUCY_POSTINGWRITER, LUCY_PostWriter_Write_Posting);
7892 0 method(arg_self, arg_posting);
7893 0 XSRETURN(0);
7894 }
7895  
7896 XS_INTERNAL(XS_Lucy_Index_Posting_PostingWriter_start_term);
7897 0 XS_INTERNAL(XS_Lucy_Index_Posting_PostingWriter_start_term) {
7898 0 dXSARGS;
7899 SV *sv;
7900 lucy_PostingWriter* arg_self;
7901 lucy_TermInfo* arg_tinfo;
7902 LUCY_PostWriter_Start_Term_t method;
7903  
7904 CFISH_UNUSED_VAR(cv);
7905 0 SP -= items;
7906 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
7907 0 XSBind_invalid_args_error(aTHX_ cv, "self, tinfo");
7908 }
7909  
7910 /* Extract vars from Perl stack. */
7911 0 arg_self = (lucy_PostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGWRITER, NULL);
7912 0 sv = ST(1);
7913 0 arg_tinfo = (lucy_TermInfo*)XSBind_arg_to_cfish(aTHX_ sv, "tinfo", LUCY_TERMINFO, NULL);
7914  
7915 /* Execute */
7916 0 method = CFISH_METHOD_PTR(LUCY_POSTINGWRITER, LUCY_PostWriter_Start_Term);
7917 0 method(arg_self, arg_tinfo);
7918 0 XSRETURN(0);
7919 }
7920  
7921 XS_INTERNAL(XS_Lucy_Index_Posting_PostingWriter_update_skip_info);
7922 0 XS_INTERNAL(XS_Lucy_Index_Posting_PostingWriter_update_skip_info) {
7923 0 dXSARGS;
7924 SV *sv;
7925 lucy_PostingWriter* arg_self;
7926 lucy_TermInfo* arg_tinfo;
7927 LUCY_PostWriter_Update_Skip_Info_t method;
7928  
7929 CFISH_UNUSED_VAR(cv);
7930 0 SP -= items;
7931 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
7932 0 XSBind_invalid_args_error(aTHX_ cv, "self, tinfo");
7933 }
7934  
7935 /* Extract vars from Perl stack. */
7936 0 arg_self = (lucy_PostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGWRITER, NULL);
7937 0 sv = ST(1);
7938 0 arg_tinfo = (lucy_TermInfo*)XSBind_arg_to_cfish(aTHX_ sv, "tinfo", LUCY_TERMINFO, NULL);
7939  
7940 /* Execute */
7941 0 method = CFISH_METHOD_PTR(LUCY_POSTINGWRITER, LUCY_PostWriter_Update_Skip_Info);
7942 0 method(arg_self, arg_tinfo);
7943 0 XSRETURN(0);
7944 }
7945  
7946 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingWriter_new);
7947 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingWriter_new) {
7948 0 dXSARGS;
7949 static const XSBind_ParamSpec param_specs[5] = {
7950 XSBIND_PARAM("schema", 1),
7951 XSBIND_PARAM("snapshot", 1),
7952 XSBIND_PARAM("segment", 1),
7953 XSBIND_PARAM("polyreader", 1),
7954 XSBIND_PARAM("field_num", 1)
7955 };
7956 int32_t locations[5];
7957 SV *sv;
7958 lucy_MatchPostingWriter* arg_self;
7959 lucy_Schema* arg_schema;
7960 lucy_Snapshot* arg_snapshot;
7961 lucy_Segment* arg_segment;
7962 lucy_PolyReader* arg_polyreader;
7963 int32_t arg_field_num;
7964 lucy_MatchPostingWriter* retval;
7965  
7966 CFISH_UNUSED_VAR(cv);
7967 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
7968 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
7969 }
7970 0 SP -= items;
7971  
7972 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
7973 locations, 5);
7974 0 sv = ST(locations[0]);
7975 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
7976 0 sv = ST(locations[1]);
7977 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
7978 0 sv = ST(locations[2]);
7979 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
7980 0 sv = ST(locations[3]);
7981 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
7982 0 sv = ST(locations[4]);
7983 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
7984 0 XSBind_undef_arg_error(aTHX_ "field_num");
7985 }
7986 0 arg_field_num = (int32_t)SvIV(sv);
7987 0 arg_self = (lucy_MatchPostingWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
7988  
7989 0 retval = lucy_MatchPostWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader, arg_field_num);
7990 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
7991 0 XSRETURN(1);
7992 }
7993  
7994  
7995 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingWriter_write_posting);
7996 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingWriter_write_posting) {
7997 0 dXSARGS;
7998 SV *sv;
7999 lucy_MatchPostingWriter* arg_self;
8000 lucy_RawPosting* arg_posting;
8001 LUCY_MatchPostWriter_Write_Posting_t method;
8002  
8003 CFISH_UNUSED_VAR(cv);
8004 0 SP -= items;
8005 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
8006 0 XSBind_invalid_args_error(aTHX_ cv, "self, posting");
8007 }
8008  
8009 /* Extract vars from Perl stack. */
8010 0 arg_self = (lucy_MatchPostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTINGWRITER, NULL);
8011 0 sv = ST(1);
8012 0 arg_posting = (lucy_RawPosting*)XSBind_arg_to_cfish(aTHX_ sv, "posting", LUCY_RAWPOSTING, NULL);
8013  
8014 /* Execute */
8015 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTINGWRITER, LUCY_MatchPostWriter_Write_Posting);
8016 0 method(arg_self, arg_posting);
8017 0 XSRETURN(0);
8018 }
8019  
8020 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingWriter_start_term);
8021 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingWriter_start_term) {
8022 0 dXSARGS;
8023 SV *sv;
8024 lucy_MatchPostingWriter* arg_self;
8025 lucy_TermInfo* arg_tinfo;
8026 LUCY_MatchPostWriter_Start_Term_t method;
8027  
8028 CFISH_UNUSED_VAR(cv);
8029 0 SP -= items;
8030 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
8031 0 XSBind_invalid_args_error(aTHX_ cv, "self, tinfo");
8032 }
8033  
8034 /* Extract vars from Perl stack. */
8035 0 arg_self = (lucy_MatchPostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTINGWRITER, NULL);
8036 0 sv = ST(1);
8037 0 arg_tinfo = (lucy_TermInfo*)XSBind_arg_to_cfish(aTHX_ sv, "tinfo", LUCY_TERMINFO, NULL);
8038  
8039 /* Execute */
8040 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTINGWRITER, LUCY_MatchPostWriter_Start_Term);
8041 0 method(arg_self, arg_tinfo);
8042 0 XSRETURN(0);
8043 }
8044  
8045 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingWriter_update_skip_info);
8046 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingWriter_update_skip_info) {
8047 0 dXSARGS;
8048 SV *sv;
8049 lucy_MatchPostingWriter* arg_self;
8050 lucy_TermInfo* arg_tinfo;
8051 LUCY_MatchPostWriter_Update_Skip_Info_t method;
8052  
8053 CFISH_UNUSED_VAR(cv);
8054 0 SP -= items;
8055 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
8056 0 XSBind_invalid_args_error(aTHX_ cv, "self, tinfo");
8057 }
8058  
8059 /* Extract vars from Perl stack. */
8060 0 arg_self = (lucy_MatchPostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTINGWRITER, NULL);
8061 0 sv = ST(1);
8062 0 arg_tinfo = (lucy_TermInfo*)XSBind_arg_to_cfish(aTHX_ sv, "tinfo", LUCY_TERMINFO, NULL);
8063  
8064 /* Execute */
8065 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTINGWRITER, LUCY_MatchPostWriter_Update_Skip_Info);
8066 0 method(arg_self, arg_tinfo);
8067 0 XSRETURN(0);
8068 }
8069  
8070 XS_INTERNAL(XS_Lucy_Index_Posting_RawPostingWriter_new);
8071 0 XS_INTERNAL(XS_Lucy_Index_Posting_RawPostingWriter_new) {
8072 0 dXSARGS;
8073 static const XSBind_ParamSpec param_specs[5] = {
8074 XSBIND_PARAM("schema", 1),
8075 XSBIND_PARAM("snapshot", 1),
8076 XSBIND_PARAM("segment", 1),
8077 XSBIND_PARAM("polyreader", 1),
8078 XSBIND_PARAM("outstream", 1)
8079 };
8080 int32_t locations[5];
8081 SV *sv;
8082 lucy_RawPostingWriter* arg_self;
8083 lucy_Schema* arg_schema;
8084 lucy_Snapshot* arg_snapshot;
8085 lucy_Segment* arg_segment;
8086 lucy_PolyReader* arg_polyreader;
8087 lucy_OutStream* arg_outstream;
8088 lucy_RawPostingWriter* retval;
8089  
8090 CFISH_UNUSED_VAR(cv);
8091 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8092 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
8093 }
8094 0 SP -= items;
8095  
8096 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8097 locations, 5);
8098 0 sv = ST(locations[0]);
8099 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
8100 0 sv = ST(locations[1]);
8101 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
8102 0 sv = ST(locations[2]);
8103 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
8104 0 sv = ST(locations[3]);
8105 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
8106 0 sv = ST(locations[4]);
8107 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
8108 0 arg_self = (lucy_RawPostingWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
8109  
8110 0 retval = lucy_RawPostWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader, arg_outstream);
8111 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
8112 0 XSRETURN(1);
8113 }
8114  
8115  
8116 XS_INTERNAL(XS_Lucy_Index_Posting_RawPostingWriter_start_term);
8117 0 XS_INTERNAL(XS_Lucy_Index_Posting_RawPostingWriter_start_term) {
8118 0 dXSARGS;
8119 SV *sv;
8120 lucy_RawPostingWriter* arg_self;
8121 lucy_TermInfo* arg_tinfo;
8122 LUCY_RawPostWriter_Start_Term_t method;
8123  
8124 CFISH_UNUSED_VAR(cv);
8125 0 SP -= items;
8126 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
8127 0 XSBind_invalid_args_error(aTHX_ cv, "self, tinfo");
8128 }
8129  
8130 /* Extract vars from Perl stack. */
8131 0 arg_self = (lucy_RawPostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWPOSTINGWRITER, NULL);
8132 0 sv = ST(1);
8133 0 arg_tinfo = (lucy_TermInfo*)XSBind_arg_to_cfish(aTHX_ sv, "tinfo", LUCY_TERMINFO, NULL);
8134  
8135 /* Execute */
8136 0 method = CFISH_METHOD_PTR(LUCY_RAWPOSTINGWRITER, LUCY_RawPostWriter_Start_Term);
8137 0 method(arg_self, arg_tinfo);
8138 0 XSRETURN(0);
8139 }
8140  
8141 XS_INTERNAL(XS_Lucy_Index_Posting_RawPostingWriter_update_skip_info);
8142 0 XS_INTERNAL(XS_Lucy_Index_Posting_RawPostingWriter_update_skip_info) {
8143 0 dXSARGS;
8144 SV *sv;
8145 lucy_RawPostingWriter* arg_self;
8146 lucy_TermInfo* arg_tinfo;
8147 LUCY_RawPostWriter_Update_Skip_Info_t method;
8148  
8149 CFISH_UNUSED_VAR(cv);
8150 0 SP -= items;
8151 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
8152 0 XSBind_invalid_args_error(aTHX_ cv, "self, tinfo");
8153 }
8154  
8155 /* Extract vars from Perl stack. */
8156 0 arg_self = (lucy_RawPostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWPOSTINGWRITER, NULL);
8157 0 sv = ST(1);
8158 0 arg_tinfo = (lucy_TermInfo*)XSBind_arg_to_cfish(aTHX_ sv, "tinfo", LUCY_TERMINFO, NULL);
8159  
8160 /* Execute */
8161 0 method = CFISH_METHOD_PTR(LUCY_RAWPOSTINGWRITER, LUCY_RawPostWriter_Update_Skip_Info);
8162 0 method(arg_self, arg_tinfo);
8163 0 XSRETURN(0);
8164 }
8165  
8166 XS_INTERNAL(XS_Lucy_Index_Posting_RawPostingWriter_write_posting);
8167 0 XS_INTERNAL(XS_Lucy_Index_Posting_RawPostingWriter_write_posting) {
8168 0 dXSARGS;
8169 SV *sv;
8170 lucy_RawPostingWriter* arg_self;
8171 lucy_RawPosting* arg_posting;
8172 LUCY_RawPostWriter_Write_Posting_t method;
8173  
8174 CFISH_UNUSED_VAR(cv);
8175 0 SP -= items;
8176 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
8177 0 XSBind_invalid_args_error(aTHX_ cv, "self, posting");
8178 }
8179  
8180 /* Extract vars from Perl stack. */
8181 0 arg_self = (lucy_RawPostingWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWPOSTINGWRITER, NULL);
8182 0 sv = ST(1);
8183 0 arg_posting = (lucy_RawPosting*)XSBind_arg_to_cfish(aTHX_ sv, "posting", LUCY_RAWPOSTING, NULL);
8184  
8185 /* Execute */
8186 0 method = CFISH_METHOD_PTR(LUCY_RAWPOSTINGWRITER, LUCY_RawPostWriter_Write_Posting);
8187 0 method(arg_self, arg_posting);
8188 0 XSRETURN(0);
8189 }
8190  
8191 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_new);
8192 0 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_new) {
8193 0 dXSARGS;
8194 static const XSBind_ParamSpec param_specs[5] = {
8195 XSBIND_PARAM("schema", 1),
8196 XSBIND_PARAM("snapshot", 1),
8197 XSBIND_PARAM("segment", 1),
8198 XSBIND_PARAM("polyreader", 1),
8199 XSBIND_PARAM("lex_writer", 1)
8200 };
8201 int32_t locations[5];
8202 SV *sv;
8203 lucy_PostingListWriter* arg_self;
8204 lucy_Schema* arg_schema;
8205 lucy_Snapshot* arg_snapshot;
8206 lucy_Segment* arg_segment;
8207 lucy_PolyReader* arg_polyreader;
8208 lucy_LexiconWriter* arg_lex_writer;
8209 lucy_PostingListWriter* retval;
8210  
8211 CFISH_UNUSED_VAR(cv);
8212 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8213 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
8214 }
8215 0 SP -= items;
8216  
8217 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8218 locations, 5);
8219 0 sv = ST(locations[0]);
8220 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
8221 0 sv = ST(locations[1]);
8222 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
8223 0 sv = ST(locations[2]);
8224 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
8225 0 sv = ST(locations[3]);
8226 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
8227 0 sv = ST(locations[4]);
8228 0 arg_lex_writer = (lucy_LexiconWriter*)XSBind_arg_to_cfish(aTHX_ sv, "lex_writer", LUCY_LEXICONWRITER, NULL);
8229 0 arg_self = (lucy_PostingListWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
8230  
8231 0 retval = lucy_PListWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader, arg_lex_writer);
8232 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
8233 0 XSRETURN(1);
8234 }
8235  
8236  
8237 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_add_inverted_doc);
8238 0 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_add_inverted_doc) {
8239 0 dXSARGS;
8240 static const XSBind_ParamSpec param_specs[2] = {
8241 XSBIND_PARAM("inverter", 1),
8242 XSBIND_PARAM("doc_id", 1)
8243 };
8244 int32_t locations[2];
8245 SV *sv;
8246 lucy_PostingListWriter* arg_self;
8247 lucy_Inverter* arg_inverter;
8248 int32_t arg_doc_id;
8249 LUCY_PListWriter_Add_Inverted_Doc_t method;
8250  
8251 CFISH_UNUSED_VAR(cv);
8252 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8253 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8254 }
8255 0 SP -= items;
8256  
8257 /* Locate args on Perl stack. */
8258 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8259 locations, 2);
8260 0 arg_self = (lucy_PostingListWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLISTWRITER, NULL);
8261 0 sv = ST(locations[0]);
8262 0 arg_inverter = (lucy_Inverter*)XSBind_arg_to_cfish(aTHX_ sv, "inverter", LUCY_INVERTER, NULL);
8263 0 sv = ST(locations[1]);
8264 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
8265 0 XSBind_undef_arg_error(aTHX_ "doc_id");
8266 }
8267 0 arg_doc_id = (int32_t)SvIV(sv);
8268  
8269 /* Execute */
8270 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLISTWRITER, LUCY_PListWriter_Add_Inverted_Doc);
8271 0 method(arg_self, arg_inverter, arg_doc_id);
8272 0 XSRETURN(0);
8273 }
8274  
8275 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_add_segment);
8276 0 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_add_segment) {
8277 0 dXSARGS;
8278 static const XSBind_ParamSpec param_specs[2] = {
8279 XSBIND_PARAM("reader", 1),
8280 XSBIND_PARAM("doc_map", 0)
8281 };
8282 int32_t locations[2];
8283 SV *sv;
8284 lucy_PostingListWriter* arg_self;
8285 lucy_SegReader* arg_reader;
8286 lucy_I32Array* arg_doc_map;
8287 LUCY_PListWriter_Add_Segment_t method;
8288  
8289 CFISH_UNUSED_VAR(cv);
8290 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8291 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8292 }
8293 0 SP -= items;
8294  
8295 /* Locate args on Perl stack. */
8296 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8297 locations, 2);
8298 0 arg_self = (lucy_PostingListWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLISTWRITER, NULL);
8299 0 sv = ST(locations[0]);
8300 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
8301 0 sv = ST(locations[1]);
8302 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
8303  
8304 /* Execute */
8305 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLISTWRITER, LUCY_PListWriter_Add_Segment);
8306 0 method(arg_self, arg_reader, arg_doc_map);
8307 0 XSRETURN(0);
8308 }
8309  
8310 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_finish);
8311 0 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_finish) {
8312 0 dXSARGS;
8313 lucy_PostingListWriter* arg_self;
8314 LUCY_PListWriter_Finish_t method;
8315  
8316 CFISH_UNUSED_VAR(cv);
8317 0 SP -= items;
8318 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8319 0 XSBind_invalid_args_error(aTHX_ cv, "self");
8320 }
8321  
8322 /* Extract vars from Perl stack. */
8323 0 arg_self = (lucy_PostingListWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLISTWRITER, NULL);
8324  
8325 /* Execute */
8326 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLISTWRITER, LUCY_PListWriter_Finish);
8327 0 method(arg_self);
8328 0 XSRETURN(0);
8329 }
8330  
8331 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_format);
8332 0 XS_INTERNAL(XS_Lucy_Index_PostingListWriter_format) {
8333 0 dXSARGS;
8334 lucy_PostingListWriter* arg_self;
8335 LUCY_PListWriter_Format_t method;
8336 int32_t retval;
8337  
8338 CFISH_UNUSED_VAR(cv);
8339 0 SP -= items;
8340 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8341 0 XSBind_invalid_args_error(aTHX_ cv, "self");
8342 }
8343  
8344 /* Extract vars from Perl stack. */
8345 0 arg_self = (lucy_PostingListWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLISTWRITER, NULL);
8346  
8347 /* Execute */
8348 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLISTWRITER, LUCY_PListWriter_Format);
8349 0 retval = method(arg_self);
8350 0 ST(0) = newSViv(retval);
8351 0 sv_2mortal( ST(0) );
8352 0 XSRETURN(1);
8353 }
8354  
8355 XS_INTERNAL(XS_Lucy_Index_SegWriter_new);
8356 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_new) {
8357 0 dXSARGS;
8358 static const XSBind_ParamSpec param_specs[4] = {
8359 XSBIND_PARAM("schema", 1),
8360 XSBIND_PARAM("snapshot", 1),
8361 XSBIND_PARAM("segment", 1),
8362 XSBIND_PARAM("polyreader", 1)
8363 };
8364 int32_t locations[4];
8365 SV *sv;
8366 lucy_SegWriter* arg_self;
8367 lucy_Schema* arg_schema;
8368 lucy_Snapshot* arg_snapshot;
8369 lucy_Segment* arg_segment;
8370 lucy_PolyReader* arg_polyreader;
8371 lucy_SegWriter* retval;
8372  
8373 CFISH_UNUSED_VAR(cv);
8374 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8375 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
8376 }
8377 0 SP -= items;
8378  
8379 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8380 locations, 4);
8381 0 sv = ST(locations[0]);
8382 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
8383 0 sv = ST(locations[1]);
8384 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
8385 0 sv = ST(locations[2]);
8386 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
8387 0 sv = ST(locations[3]);
8388 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
8389 0 arg_self = (lucy_SegWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
8390  
8391 0 retval = lucy_SegWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader);
8392 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
8393 0 XSRETURN(1);
8394 }
8395  
8396  
8397 XS_INTERNAL(XS_Lucy_Index_SegWriter_register);
8398 8 XS_INTERNAL(XS_Lucy_Index_SegWriter_register) {
8399 8 dXSARGS;
8400 static const XSBind_ParamSpec param_specs[2] = {
8401 XSBIND_PARAM("api", 1),
8402 XSBIND_PARAM("component", 1)
8403 };
8404 int32_t locations[2];
8405 SV *sv;
8406 lucy_SegWriter* arg_self;
8407 cfish_String* arg_api;
8408 lucy_DataWriter* arg_component;
8409 LUCY_SegWriter_Register_t method;
8410  
8411 CFISH_UNUSED_VAR(cv);
8412 8 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 8 8
8413 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8414 }
8415 8 SP -= items;
8416  
8417 /* Locate args on Perl stack. */
8418 8 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8419 locations, 2);
8420 8 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8421 8 sv = ST(locations[0]);
8422 8 arg_api = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "api", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
8423 8 sv = ST(locations[1]);
8424 8 arg_component = (lucy_DataWriter*)XSBind_arg_to_cfish(aTHX_ sv, "component", LUCY_DATAWRITER, NULL);
8425  
8426 /* Execute */
8427 8 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Register);
8428 8 arg_component = (lucy_DataWriter*)CFISH_INCREF(arg_component);
8429 8 method(arg_self, arg_api, arg_component);
8430 8 XSRETURN(0);
8431 }
8432  
8433 XS_INTERNAL(XS_Lucy_Index_SegWriter_fetch);
8434 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_fetch) {
8435 0 dXSARGS;
8436 SV *sv;
8437 lucy_SegWriter* arg_self;
8438 cfish_String* arg_api;
8439 LUCY_SegWriter_Fetch_t method;
8440 cfish_Obj* retval;
8441  
8442 CFISH_UNUSED_VAR(cv);
8443 0 SP -= items;
8444 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
8445 0 XSBind_invalid_args_error(aTHX_ cv, "self, api");
8446 }
8447  
8448 /* Extract vars from Perl stack. */
8449 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8450 0 sv = ST(1);
8451 0 arg_api = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "api", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
8452  
8453 /* Execute */
8454 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Fetch);
8455 0 retval = method(arg_self, arg_api);
8456 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
8457 0 sv_2mortal( ST(0) );
8458 0 XSRETURN(1);
8459 }
8460  
8461 XS_INTERNAL(XS_Lucy_Index_SegWriter_add_writer);
8462 8 XS_INTERNAL(XS_Lucy_Index_SegWriter_add_writer) {
8463 8 dXSARGS;
8464 SV *sv;
8465 lucy_SegWriter* arg_self;
8466 lucy_DataWriter* arg_writer;
8467 LUCY_SegWriter_Add_Writer_t method;
8468  
8469 CFISH_UNUSED_VAR(cv);
8470 8 SP -= items;
8471 8 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 8 8
8472 0 XSBind_invalid_args_error(aTHX_ cv, "self, writer");
8473 }
8474  
8475 /* Extract vars from Perl stack. */
8476 8 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8477 8 sv = ST(1);
8478 8 arg_writer = (lucy_DataWriter*)XSBind_arg_to_cfish(aTHX_ sv, "writer", LUCY_DATAWRITER, NULL);
8479  
8480 /* Execute */
8481 8 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Add_Writer);
8482 8 arg_writer = (lucy_DataWriter*)CFISH_INCREF(arg_writer);
8483 8 method(arg_self, arg_writer);
8484 8 XSRETURN(0);
8485 }
8486  
8487 XS_INTERNAL(XS_Lucy_Index_SegWriter_prep_seg_dir);
8488 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_prep_seg_dir) {
8489 0 dXSARGS;
8490 lucy_SegWriter* arg_self;
8491 LUCY_SegWriter_Prep_Seg_Dir_t method;
8492  
8493 CFISH_UNUSED_VAR(cv);
8494 0 SP -= items;
8495 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8496 0 XSBind_invalid_args_error(aTHX_ cv, "self");
8497 }
8498  
8499 /* Extract vars from Perl stack. */
8500 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8501  
8502 /* Execute */
8503 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Prep_Seg_Dir);
8504 0 method(arg_self);
8505 0 XSRETURN(0);
8506 }
8507  
8508 XS_INTERNAL(XS_Lucy_Index_SegWriter_add_doc);
8509 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_add_doc) {
8510 0 dXSARGS;
8511 static const XSBind_ParamSpec param_specs[2] = {
8512 XSBIND_PARAM("doc", 1),
8513 XSBIND_PARAM("boost", 0)
8514 };
8515 int32_t locations[2];
8516 SV *sv;
8517 lucy_SegWriter* arg_self;
8518 lucy_Doc* arg_doc;
8519 float arg_boost;
8520 LUCY_SegWriter_Add_Doc_t method;
8521  
8522 CFISH_UNUSED_VAR(cv);
8523 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8524 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8525 }
8526 0 SP -= items;
8527  
8528 /* Locate args on Perl stack. */
8529 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8530 locations, 2);
8531 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8532 0 sv = ST(locations[0]);
8533 0 arg_doc = (lucy_Doc*)XSBind_arg_to_cfish(aTHX_ sv, "doc", LUCY_DOC, NULL);
8534 0 sv = ST(locations[1]);
8535 0 ▶ arg_boost = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
8536 0 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 0 0 0
8537  
8538 /* Execute */
8539 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Add_Doc);
8540 0 method(arg_self, arg_doc, arg_boost);
8541 0 XSRETURN(0);
8542 }
8543  
8544 XS_INTERNAL(XS_Lucy_Index_SegWriter_set_del_writer);
8545 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_set_del_writer) {
8546 0 dXSARGS;
8547 SV *sv;
8548 lucy_SegWriter* arg_self;
8549 lucy_DeletionsWriter* arg_del_writer;
8550 LUCY_SegWriter_Set_Del_Writer_t method;
8551  
8552 CFISH_UNUSED_VAR(cv);
8553 0 SP -= items;
8554 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
8555 0 XSBind_invalid_args_error(aTHX_ cv, "self, [del_writer]");
8556 }
8557  
8558 /* Extract vars from Perl stack. */
8559 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8560 0 sv = ST(1);
8561 0 ▶ arg_del_writer = 1 < items ? (lucy_DeletionsWriter*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "del_writer", LUCY_DELETIONSWRITER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_del_writer = 1 < items ? (lucy_DeletionsWriter*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "del_writer", LUCY_DELETIONSWRITER, NULL) : NULL; 0 0 0
8562  
8563 /* Execute */
8564 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Set_Del_Writer);
8565 0 method(arg_self, arg_del_writer);
8566 0 XSRETURN(0);
8567 }
8568  
8569 XS_INTERNAL(XS_Lucy_Index_SegWriter_get_del_writer);
8570 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_get_del_writer) {
8571 0 dXSARGS;
8572 lucy_SegWriter* arg_self;
8573 LUCY_SegWriter_Get_Del_Writer_t method;
8574 lucy_DeletionsWriter* retval;
8575  
8576 CFISH_UNUSED_VAR(cv);
8577 0 SP -= items;
8578 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8579 0 XSBind_invalid_args_error(aTHX_ cv, "self");
8580 }
8581  
8582 /* Extract vars from Perl stack. */
8583 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8584  
8585 /* Execute */
8586 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Get_Del_Writer);
8587 0 retval = method(arg_self);
8588 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
8589 0 sv_2mortal( ST(0) );
8590 0 XSRETURN(1);
8591 }
8592  
8593 XS_INTERNAL(XS_Lucy_Index_SegWriter_add_inverted_doc);
8594 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_add_inverted_doc) {
8595 0 dXSARGS;
8596 static const XSBind_ParamSpec param_specs[2] = {
8597 XSBIND_PARAM("inverter", 1),
8598 XSBIND_PARAM("doc_id", 1)
8599 };
8600 int32_t locations[2];
8601 SV *sv;
8602 lucy_SegWriter* arg_self;
8603 lucy_Inverter* arg_inverter;
8604 int32_t arg_doc_id;
8605 LUCY_SegWriter_Add_Inverted_Doc_t method;
8606  
8607 CFISH_UNUSED_VAR(cv);
8608 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8609 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8610 }
8611 0 SP -= items;
8612  
8613 /* Locate args on Perl stack. */
8614 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8615 locations, 2);
8616 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8617 0 sv = ST(locations[0]);
8618 0 arg_inverter = (lucy_Inverter*)XSBind_arg_to_cfish(aTHX_ sv, "inverter", LUCY_INVERTER, NULL);
8619 0 sv = ST(locations[1]);
8620 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
8621 0 XSBind_undef_arg_error(aTHX_ "doc_id");
8622 }
8623 0 arg_doc_id = (int32_t)SvIV(sv);
8624  
8625 /* Execute */
8626 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Add_Inverted_Doc);
8627 0 method(arg_self, arg_inverter, arg_doc_id);
8628 0 XSRETURN(0);
8629 }
8630  
8631 XS_INTERNAL(XS_Lucy_Index_SegWriter_add_segment);
8632 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_add_segment) {
8633 0 dXSARGS;
8634 static const XSBind_ParamSpec param_specs[2] = {
8635 XSBIND_PARAM("reader", 1),
8636 XSBIND_PARAM("doc_map", 0)
8637 };
8638 int32_t locations[2];
8639 SV *sv;
8640 lucy_SegWriter* arg_self;
8641 lucy_SegReader* arg_reader;
8642 lucy_I32Array* arg_doc_map;
8643 LUCY_SegWriter_Add_Segment_t method;
8644  
8645 CFISH_UNUSED_VAR(cv);
8646 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8647 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8648 }
8649 0 SP -= items;
8650  
8651 /* Locate args on Perl stack. */
8652 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8653 locations, 2);
8654 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8655 0 sv = ST(locations[0]);
8656 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
8657 0 sv = ST(locations[1]);
8658 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
8659  
8660 /* Execute */
8661 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Add_Segment);
8662 0 method(arg_self, arg_reader, arg_doc_map);
8663 0 XSRETURN(0);
8664 }
8665  
8666 XS_INTERNAL(XS_Lucy_Index_SegWriter_merge_segment);
8667 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_merge_segment) {
8668 0 dXSARGS;
8669 static const XSBind_ParamSpec param_specs[2] = {
8670 XSBIND_PARAM("reader", 1),
8671 XSBIND_PARAM("doc_map", 0)
8672 };
8673 int32_t locations[2];
8674 SV *sv;
8675 lucy_SegWriter* arg_self;
8676 lucy_SegReader* arg_reader;
8677 lucy_I32Array* arg_doc_map;
8678 LUCY_SegWriter_Merge_Segment_t method;
8679  
8680 CFISH_UNUSED_VAR(cv);
8681 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8682 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8683 }
8684 0 SP -= items;
8685  
8686 /* Locate args on Perl stack. */
8687 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8688 locations, 2);
8689 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8690 0 sv = ST(locations[0]);
8691 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
8692 0 sv = ST(locations[1]);
8693 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
8694  
8695 /* Execute */
8696 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Merge_Segment);
8697 0 method(arg_self, arg_reader, arg_doc_map);
8698 0 XSRETURN(0);
8699 }
8700  
8701 XS_INTERNAL(XS_Lucy_Index_SegWriter_delete_segment);
8702 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_delete_segment) {
8703 0 dXSARGS;
8704 SV *sv;
8705 lucy_SegWriter* arg_self;
8706 lucy_SegReader* arg_reader;
8707 LUCY_SegWriter_Delete_Segment_t method;
8708  
8709 CFISH_UNUSED_VAR(cv);
8710 0 SP -= items;
8711 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
8712 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
8713 }
8714  
8715 /* Extract vars from Perl stack. */
8716 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8717 0 sv = ST(1);
8718 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
8719  
8720 /* Execute */
8721 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Delete_Segment);
8722 0 method(arg_self, arg_reader);
8723 0 XSRETURN(0);
8724 }
8725  
8726 XS_INTERNAL(XS_Lucy_Index_SegWriter_finish);
8727 0 XS_INTERNAL(XS_Lucy_Index_SegWriter_finish) {
8728 0 dXSARGS;
8729 lucy_SegWriter* arg_self;
8730 LUCY_SegWriter_Finish_t method;
8731  
8732 CFISH_UNUSED_VAR(cv);
8733 0 SP -= items;
8734 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8735 0 XSBind_invalid_args_error(aTHX_ cv, "self");
8736 }
8737  
8738 /* Extract vars from Perl stack. */
8739 0 arg_self = (lucy_SegWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGWRITER, NULL);
8740  
8741 /* Execute */
8742 0 method = CFISH_METHOD_PTR(LUCY_SEGWRITER, LUCY_SegWriter_Finish);
8743 0 method(arg_self);
8744 0 XSRETURN(0);
8745 }
8746  
8747 XS_INTERNAL(XS_Lucy_Index_SortWriter_new);
8748 0 XS_INTERNAL(XS_Lucy_Index_SortWriter_new) {
8749 0 dXSARGS;
8750 static const XSBind_ParamSpec param_specs[4] = {
8751 XSBIND_PARAM("schema", 1),
8752 XSBIND_PARAM("snapshot", 1),
8753 XSBIND_PARAM("segment", 1),
8754 XSBIND_PARAM("polyreader", 1)
8755 };
8756 int32_t locations[4];
8757 SV *sv;
8758 lucy_SortWriter* arg_self;
8759 lucy_Schema* arg_schema;
8760 lucy_Snapshot* arg_snapshot;
8761 lucy_Segment* arg_segment;
8762 lucy_PolyReader* arg_polyreader;
8763 lucy_SortWriter* retval;
8764  
8765 CFISH_UNUSED_VAR(cv);
8766 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8767 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
8768 }
8769 0 SP -= items;
8770  
8771 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8772 locations, 4);
8773 0 sv = ST(locations[0]);
8774 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
8775 0 sv = ST(locations[1]);
8776 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
8777 0 sv = ST(locations[2]);
8778 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
8779 0 sv = ST(locations[3]);
8780 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
8781 0 arg_self = (lucy_SortWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
8782  
8783 0 retval = lucy_SortWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader);
8784 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
8785 0 XSRETURN(1);
8786 }
8787  
8788  
8789 XS_INTERNAL(XS_Lucy_Index_SortWriter_add_inverted_doc);
8790 0 XS_INTERNAL(XS_Lucy_Index_SortWriter_add_inverted_doc) {
8791 0 dXSARGS;
8792 static const XSBind_ParamSpec param_specs[2] = {
8793 XSBIND_PARAM("inverter", 1),
8794 XSBIND_PARAM("doc_id", 1)
8795 };
8796 int32_t locations[2];
8797 SV *sv;
8798 lucy_SortWriter* arg_self;
8799 lucy_Inverter* arg_inverter;
8800 int32_t arg_doc_id;
8801 LUCY_SortWriter_Add_Inverted_Doc_t method;
8802  
8803 CFISH_UNUSED_VAR(cv);
8804 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8805 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8806 }
8807 0 SP -= items;
8808  
8809 /* Locate args on Perl stack. */
8810 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8811 locations, 2);
8812 0 arg_self = (lucy_SortWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTWRITER, NULL);
8813 0 sv = ST(locations[0]);
8814 0 arg_inverter = (lucy_Inverter*)XSBind_arg_to_cfish(aTHX_ sv, "inverter", LUCY_INVERTER, NULL);
8815 0 sv = ST(locations[1]);
8816 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
8817 0 XSBind_undef_arg_error(aTHX_ "doc_id");
8818 }
8819 0 arg_doc_id = (int32_t)SvIV(sv);
8820  
8821 /* Execute */
8822 0 method = CFISH_METHOD_PTR(LUCY_SORTWRITER, LUCY_SortWriter_Add_Inverted_Doc);
8823 0 method(arg_self, arg_inverter, arg_doc_id);
8824 0 XSRETURN(0);
8825 }
8826  
8827 XS_INTERNAL(XS_Lucy_Index_SortWriter_add_segment);
8828 0 XS_INTERNAL(XS_Lucy_Index_SortWriter_add_segment) {
8829 0 dXSARGS;
8830 static const XSBind_ParamSpec param_specs[2] = {
8831 XSBIND_PARAM("reader", 1),
8832 XSBIND_PARAM("doc_map", 0)
8833 };
8834 int32_t locations[2];
8835 SV *sv;
8836 lucy_SortWriter* arg_self;
8837 lucy_SegReader* arg_reader;
8838 lucy_I32Array* arg_doc_map;
8839 LUCY_SortWriter_Add_Segment_t method;
8840  
8841 CFISH_UNUSED_VAR(cv);
8842 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
8843 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8844 }
8845 0 SP -= items;
8846  
8847 /* Locate args on Perl stack. */
8848 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8849 locations, 2);
8850 0 arg_self = (lucy_SortWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTWRITER, NULL);
8851 0 sv = ST(locations[0]);
8852 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
8853 0 sv = ST(locations[1]);
8854 0 ▶ arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_map = locations[1] < items ? (lucy_I32Array*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL) : NULL; 0 0 0
8855  
8856 /* Execute */
8857 0 method = CFISH_METHOD_PTR(LUCY_SORTWRITER, LUCY_SortWriter_Add_Segment);
8858 0 method(arg_self, arg_reader, arg_doc_map);
8859 0 XSRETURN(0);
8860 }
8861  
8862 XS_INTERNAL(XS_Lucy_Index_SortWriter_metadata);
8863 0 XS_INTERNAL(XS_Lucy_Index_SortWriter_metadata) {
8864 0 dXSARGS;
8865 lucy_SortWriter* arg_self;
8866 LUCY_SortWriter_Metadata_t method;
8867 cfish_Hash* retval;
8868  
8869 CFISH_UNUSED_VAR(cv);
8870 0 SP -= items;
8871 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8872 0 XSBind_invalid_args_error(aTHX_ cv, "self");
8873 }
8874  
8875 /* Extract vars from Perl stack. */
8876 0 arg_self = (lucy_SortWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTWRITER, NULL);
8877  
8878 /* Execute */
8879 0 method = CFISH_METHOD_PTR(LUCY_SORTWRITER, LUCY_SortWriter_Metadata);
8880 0 retval = method(arg_self);
8881 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
8882 0 CFISH_DECREF(retval);
8883 0 sv_2mortal( ST(0) );
8884 0 XSRETURN(1);
8885 }
8886  
8887 XS_INTERNAL(XS_Lucy_Index_SortWriter_format);
8888 0 XS_INTERNAL(XS_Lucy_Index_SortWriter_format) {
8889 0 dXSARGS;
8890 lucy_SortWriter* arg_self;
8891 LUCY_SortWriter_Format_t method;
8892 int32_t retval;
8893  
8894 CFISH_UNUSED_VAR(cv);
8895 0 SP -= items;
8896 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8897 0 XSBind_invalid_args_error(aTHX_ cv, "self");
8898 }
8899  
8900 /* Extract vars from Perl stack. */
8901 0 arg_self = (lucy_SortWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTWRITER, NULL);
8902  
8903 /* Execute */
8904 0 method = CFISH_METHOD_PTR(LUCY_SORTWRITER, LUCY_SortWriter_Format);
8905 0 retval = method(arg_self);
8906 0 ST(0) = newSViv(retval);
8907 0 sv_2mortal( ST(0) );
8908 0 XSRETURN(1);
8909 }
8910  
8911 XS_INTERNAL(XS_Lucy_Index_SortWriter_finish);
8912 0 XS_INTERNAL(XS_Lucy_Index_SortWriter_finish) {
8913 0 dXSARGS;
8914 lucy_SortWriter* arg_self;
8915 LUCY_SortWriter_Finish_t method;
8916  
8917 CFISH_UNUSED_VAR(cv);
8918 0 SP -= items;
8919 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8920 0 XSBind_invalid_args_error(aTHX_ cv, "self");
8921 }
8922  
8923 /* Extract vars from Perl stack. */
8924 0 arg_self = (lucy_SortWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTWRITER, NULL);
8925  
8926 /* Execute */
8927 0 method = CFISH_METHOD_PTR(LUCY_SORTWRITER, LUCY_SortWriter_Finish);
8928 0 method(arg_self);
8929 0 XSRETURN(0);
8930 }
8931  
8932 XS_INTERNAL(XS_Lucy_Index_DocVector_new);
8933 0 XS_INTERNAL(XS_Lucy_Index_DocVector_new) {
8934 0 dXSARGS;
8935 lucy_DocVector* arg_self;
8936 lucy_DocVector* retval;
8937  
8938 CFISH_UNUSED_VAR(cv);
8939 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
8940 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
8941 }
8942 0 SP -= items;
8943  
8944 0 arg_self = (lucy_DocVector*)XSBind_new_blank_obj(aTHX_ ST(0));
8945  
8946 0 retval = lucy_DocVec_init(arg_self);
8947 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
8948 0 XSRETURN(1);
8949 }
8950  
8951  
8952 XS_INTERNAL(XS_Lucy_Index_DocVector_term_vector);
8953 3 XS_INTERNAL(XS_Lucy_Index_DocVector_term_vector) {
8954 3 dXSARGS;
8955 static const XSBind_ParamSpec param_specs[2] = {
8956 XSBIND_PARAM("field", 1),
8957 XSBIND_PARAM("term", 1)
8958 };
8959 int32_t locations[2];
8960 SV *sv;
8961 lucy_DocVector* arg_self;
8962 cfish_String* arg_field;
8963 cfish_String* arg_term;
8964 LUCY_DocVec_Term_Vector_t method;
8965 lucy_TermVector* retval;
8966  
8967 CFISH_UNUSED_VAR(cv);
8968 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
8969 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
8970 }
8971 3 SP -= items;
8972  
8973 /* Locate args on Perl stack. */
8974 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
8975 locations, 2);
8976 3 arg_self = (lucy_DocVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCVECTOR, NULL);
8977 3 sv = ST(locations[0]);
8978 3 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
8979 3 sv = ST(locations[1]);
8980 3 arg_term = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
8981  
8982 /* Execute */
8983 3 method = CFISH_METHOD_PTR(LUCY_DOCVECTOR, LUCY_DocVec_Term_Vector);
8984 3 retval = method(arg_self, arg_field, arg_term);
8985 3 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
8986 3 CFISH_DECREF(retval);
8987 3 sv_2mortal( ST(0) );
8988 3 XSRETURN(1);
8989 }
8990  
8991 XS_INTERNAL(XS_Lucy_Index_DocVector_add_field_buf);
8992 0 XS_INTERNAL(XS_Lucy_Index_DocVector_add_field_buf) {
8993 0 dXSARGS;
8994 static const XSBind_ParamSpec param_specs[2] = {
8995 XSBIND_PARAM("field", 1),
8996 XSBIND_PARAM("field_buf", 1)
8997 };
8998 int32_t locations[2];
8999 SV *sv;
9000 lucy_DocVector* arg_self;
9001 cfish_String* arg_field;
9002 cfish_Blob* arg_field_buf;
9003 LUCY_DocVec_Add_Field_Buf_t method;
9004  
9005 CFISH_UNUSED_VAR(cv);
9006 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
9007 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
9008 }
9009 0 SP -= items;
9010  
9011 /* Locate args on Perl stack. */
9012 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
9013 locations, 2);
9014 0 arg_self = (lucy_DocVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCVECTOR, NULL);
9015 0 sv = ST(locations[0]);
9016 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
9017 0 sv = ST(locations[1]);
9018 0 arg_field_buf = (cfish_Blob*)XSBind_arg_to_cfish(aTHX_ sv, "field_buf", CFISH_BLOB, NULL);
9019  
9020 /* Execute */
9021 0 method = CFISH_METHOD_PTR(LUCY_DOCVECTOR, LUCY_DocVec_Add_Field_Buf);
9022 0 method(arg_self, arg_field, arg_field_buf);
9023 0 XSRETURN(0);
9024 }
9025  
9026 XS_INTERNAL(XS_Lucy_Index_DocVector_field_buf);
9027 0 XS_INTERNAL(XS_Lucy_Index_DocVector_field_buf) {
9028 0 dXSARGS;
9029 SV *sv;
9030 lucy_DocVector* arg_self;
9031 cfish_String* arg_field;
9032 LUCY_DocVec_Field_Buf_t method;
9033 cfish_Blob* retval;
9034  
9035 CFISH_UNUSED_VAR(cv);
9036 0 SP -= items;
9037 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9038 0 XSBind_invalid_args_error(aTHX_ cv, "self, field");
9039 }
9040  
9041 /* Extract vars from Perl stack. */
9042 0 arg_self = (lucy_DocVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCVECTOR, NULL);
9043 0 sv = ST(1);
9044 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
9045  
9046 /* Execute */
9047 0 method = CFISH_METHOD_PTR(LUCY_DOCVECTOR, LUCY_DocVec_Field_Buf);
9048 0 retval = method(arg_self, arg_field);
9049 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9050 0 sv_2mortal( ST(0) );
9051 0 XSRETURN(1);
9052 }
9053  
9054 XS_INTERNAL(XS_Lucy_Index_DocVector_serialize);
9055 0 XS_INTERNAL(XS_Lucy_Index_DocVector_serialize) {
9056 0 dXSARGS;
9057 SV *sv;
9058 lucy_DocVector* arg_self;
9059 lucy_OutStream* arg_outstream;
9060 LUCY_DocVec_Serialize_t method;
9061  
9062 CFISH_UNUSED_VAR(cv);
9063 0 SP -= items;
9064 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9065 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
9066 }
9067  
9068 /* Extract vars from Perl stack. */
9069 0 arg_self = (lucy_DocVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCVECTOR, NULL);
9070 0 sv = ST(1);
9071 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
9072  
9073 /* Execute */
9074 0 method = CFISH_METHOD_PTR(LUCY_DOCVECTOR, LUCY_DocVec_Serialize);
9075 0 method(arg_self, arg_outstream);
9076 0 XSRETURN(0);
9077 }
9078  
9079 XS_INTERNAL(XS_Lucy_Index_DocVector_deserialize);
9080 0 XS_INTERNAL(XS_Lucy_Index_DocVector_deserialize) {
9081 0 dXSARGS;
9082 SV *sv;
9083 lucy_DocVector* arg_self;
9084 lucy_InStream* arg_instream;
9085 LUCY_DocVec_Deserialize_t method;
9086 lucy_DocVector* retval;
9087  
9088 CFISH_UNUSED_VAR(cv);
9089 0 SP -= items;
9090 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9091 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
9092 }
9093  
9094 /* Extract vars from Perl stack. */
9095 0 arg_self = (lucy_DocVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DOCVECTOR, NULL);
9096 0 sv = ST(1);
9097 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
9098  
9099 /* Execute */
9100 0 method = CFISH_METHOD_PTR(LUCY_DOCVECTOR, LUCY_DocVec_Deserialize);
9101 0 arg_self = (lucy_DocVector*)CFISH_INCREF(arg_self);
9102 0 retval = method(arg_self, arg_instream);
9103 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9104 0 CFISH_DECREF(retval);
9105 0 sv_2mortal( ST(0) );
9106 0 XSRETURN(1);
9107 }
9108  
9109 XS_INTERNAL(XS_Lucy_Index_FilePurger_new);
9110 0 XS_INTERNAL(XS_Lucy_Index_FilePurger_new) {
9111 0 dXSARGS;
9112 static const XSBind_ParamSpec param_specs[2] = {
9113 XSBIND_PARAM("folder", 1),
9114 XSBIND_PARAM("manager", 0)
9115 };
9116 int32_t locations[2];
9117 SV *sv;
9118 lucy_FilePurger* arg_self;
9119 lucy_Folder* arg_folder;
9120 lucy_IndexManager* arg_manager;
9121 lucy_FilePurger* retval;
9122  
9123 CFISH_UNUSED_VAR(cv);
9124 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
9125 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
9126 }
9127 0 SP -= items;
9128  
9129 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
9130 locations, 2);
9131 0 sv = ST(locations[0]);
9132 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
9133 0 sv = ST(locations[1]);
9134 0 ▶ arg_manager = locations[1] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_manager = locations[1] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL; 0 0 0
9135 0 arg_self = (lucy_FilePurger*)XSBind_new_blank_obj(aTHX_ ST(0));
9136  
9137 0 retval = lucy_FilePurger_init(arg_self, arg_folder, arg_manager);
9138 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
9139 0 XSRETURN(1);
9140 }
9141  
9142  
9143 XS_INTERNAL(XS_Lucy_Index_FilePurger_purge_snapshots);
9144 0 XS_INTERNAL(XS_Lucy_Index_FilePurger_purge_snapshots) {
9145 0 dXSARGS;
9146 SV *sv;
9147 lucy_FilePurger* arg_self;
9148 lucy_Snapshot* arg_current;
9149 LUCY_FilePurger_Purge_Snapshots_t method;
9150  
9151 CFISH_UNUSED_VAR(cv);
9152 0 SP -= items;
9153 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9154 0 XSBind_invalid_args_error(aTHX_ cv, "self, current");
9155 }
9156  
9157 /* Extract vars from Perl stack. */
9158 0 arg_self = (lucy_FilePurger*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEPURGER, NULL);
9159 0 sv = ST(1);
9160 0 arg_current = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "current", LUCY_SNAPSHOT, NULL);
9161  
9162 /* Execute */
9163 0 method = CFISH_METHOD_PTR(LUCY_FILEPURGER, LUCY_FilePurger_Purge_Snapshots);
9164 0 method(arg_self, arg_current);
9165 0 XSRETURN(0);
9166 }
9167  
9168 XS_INTERNAL(XS_Lucy_Index_FilePurger_purge_aborted_merge);
9169 0 XS_INTERNAL(XS_Lucy_Index_FilePurger_purge_aborted_merge) {
9170 0 dXSARGS;
9171 lucy_FilePurger* arg_self;
9172 LUCY_FilePurger_Purge_Aborted_Merge_t method;
9173  
9174 CFISH_UNUSED_VAR(cv);
9175 0 SP -= items;
9176 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9177 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9178 }
9179  
9180 /* Extract vars from Perl stack. */
9181 0 arg_self = (lucy_FilePurger*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEPURGER, NULL);
9182  
9183 /* Execute */
9184 0 method = CFISH_METHOD_PTR(LUCY_FILEPURGER, LUCY_FilePurger_Purge_Aborted_Merge);
9185 0 method(arg_self);
9186 0 XSRETURN(0);
9187 }
9188  
9189 XS_INTERNAL(XS_Lucy_Index_IndexManager_new);
9190 57 XS_INTERNAL(XS_Lucy_Index_IndexManager_new) {
9191 57 dXSARGS;
9192 static const XSBind_ParamSpec param_specs[1] = {
9193 XSBIND_PARAM("host", 0)
9194 };
9195 int32_t locations[1];
9196 SV *sv;
9197 lucy_IndexManager* arg_self;
9198 cfish_String* arg_host;
9199 lucy_IndexManager* retval;
9200  
9201 CFISH_UNUSED_VAR(cv);
9202 57 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 57 57
9203 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
9204 }
9205 57 SP -= items;
9206  
9207 57 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
9208 locations, 1);
9209 57 sv = ST(locations[0]);
9210 57 ▶ arg_host = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "host", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_host = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "host", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 5 52 57
9211 57 arg_self = (lucy_IndexManager*)XSBind_new_blank_obj(aTHX_ ST(0));
9212  
9213 57 retval = lucy_IxManager_init(arg_self, arg_host);
9214 57 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
9215 57 XSRETURN(1);
9216 }
9217  
9218  
9219 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_folder);
9220 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_folder) {
9221 1 dXSARGS;
9222 SV *sv;
9223 lucy_IndexManager* arg_self;
9224 lucy_Folder* arg_folder;
9225 LUCY_IxManager_Set_Folder_t method;
9226  
9227 CFISH_UNUSED_VAR(cv);
9228 1 SP -= items;
9229 1 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 1 0 1
if (items < 1 || items > 2) { 0 1 1
9230 0 XSBind_invalid_args_error(aTHX_ cv, "self, [folder]");
9231 }
9232  
9233 /* Extract vars from Perl stack. */
9234 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9235 1 sv = ST(1);
9236 1 ▶ arg_folder = 1 < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_folder = 1 < items ? (lucy_Folder*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "folder", LUCY_FOLDER, NULL) : NULL; 1 0 1
9237  
9238 /* Execute */
9239 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Set_Folder);
9240 1 method(arg_self, arg_folder);
9241 1 XSRETURN(0);
9242 }
9243  
9244 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_folder);
9245 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_folder) {
9246 0 dXSARGS;
9247 lucy_IndexManager* arg_self;
9248 LUCY_IxManager_Get_Folder_t method;
9249 lucy_Folder* retval;
9250  
9251 CFISH_UNUSED_VAR(cv);
9252 0 SP -= items;
9253 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9254 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9255 }
9256  
9257 /* Extract vars from Perl stack. */
9258 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9259  
9260 /* Execute */
9261 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Get_Folder);
9262 0 retval = method(arg_self);
9263 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9264 0 sv_2mortal( ST(0) );
9265 0 XSRETURN(1);
9266 }
9267  
9268 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_host);
9269 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_host) {
9270 0 dXSARGS;
9271 lucy_IndexManager* arg_self;
9272 LUCY_IxManager_Get_Host_t method;
9273 cfish_String* retval;
9274  
9275 CFISH_UNUSED_VAR(cv);
9276 0 SP -= items;
9277 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9278 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9279 }
9280  
9281 /* Extract vars from Perl stack. */
9282 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9283  
9284 /* Execute */
9285 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Get_Host);
9286 0 retval = method(arg_self);
9287 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9288 0 sv_2mortal( ST(0) );
9289 0 XSRETURN(1);
9290 }
9291  
9292 XS_INTERNAL(XS_Lucy_Index_IndexManager_recycle);
9293 23 XS_INTERNAL(XS_Lucy_Index_IndexManager_recycle) {
9294 23 dXSARGS;
9295 static const XSBind_ParamSpec param_specs[4] = {
9296 XSBIND_PARAM("reader", 1),
9297 XSBIND_PARAM("del_writer", 1),
9298 XSBIND_PARAM("cutoff", 1),
9299 XSBIND_PARAM("optimize", 0)
9300 };
9301 int32_t locations[4];
9302 SV *sv;
9303 lucy_IndexManager* arg_self;
9304 lucy_PolyReader* arg_reader;
9305 lucy_DeletionsWriter* arg_del_writer;
9306 int64_t arg_cutoff;
9307 bool arg_optimize;
9308 LUCY_IxManager_Recycle_t method;
9309 cfish_Vector* retval;
9310  
9311 CFISH_UNUSED_VAR(cv);
9312 23 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 23 23
9313 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
9314 }
9315 23 SP -= items;
9316  
9317 /* Locate args on Perl stack. */
9318 23 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
9319 locations, 4);
9320 23 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9321 23 sv = ST(locations[0]);
9322 23 arg_reader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_POLYREADER, NULL);
9323 23 sv = ST(locations[1]);
9324 23 arg_del_writer = (lucy_DeletionsWriter*)XSBind_arg_to_cfish(aTHX_ sv, "del_writer", LUCY_DELETIONSWRITER, NULL);
9325 23 sv = ST(locations[2]);
9326 23 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 23 23
9327 0 XSBind_undef_arg_error(aTHX_ "cutoff");
9328 }
9329 23 arg_cutoff = (int64_t)SvNV(sv);
9330 23 sv = ST(locations[3]);
9331 23 ▶ arg_optimize = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_optimize = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 21 2 23
arg_optimize = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 21 0 21
9332 23 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 21 2 23
? XSBind_sv_true(aTHX_ sv) : false; 0 21 21
9333  
9334 /* Execute */
9335 23 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Recycle);
9336 23 retval = method(arg_self, arg_reader, arg_del_writer, arg_cutoff, arg_optimize);
9337 23 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9338 23 CFISH_DECREF(retval);
9339 23 sv_2mortal( ST(0) );
9340 23 XSRETURN(1);
9341 }
9342  
9343 XS_INTERNAL(XS_Lucy_Index_IndexManager_choose_sparse);
9344 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_choose_sparse) {
9345 0 dXSARGS;
9346 SV *sv;
9347 lucy_IndexManager* arg_self;
9348 lucy_I32Array* arg_doc_counts;
9349 LUCY_IxManager_Choose_Sparse_t method;
9350 uint32_t retval;
9351  
9352 CFISH_UNUSED_VAR(cv);
9353 0 SP -= items;
9354 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9355 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_counts");
9356 }
9357  
9358 /* Extract vars from Perl stack. */
9359 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9360 0 sv = ST(1);
9361 0 arg_doc_counts = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "doc_counts", LUCY_I32ARRAY, NULL);
9362  
9363 /* Execute */
9364 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Choose_Sparse);
9365 0 retval = method(arg_self, arg_doc_counts);
9366 0 ST(0) = newSVuv(retval);
9367 0 sv_2mortal( ST(0) );
9368 0 XSRETURN(1);
9369 }
9370  
9371 XS_INTERNAL(XS_Lucy_Index_IndexManager_make_write_lock);
9372 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_make_write_lock) {
9373 0 dXSARGS;
9374 lucy_IndexManager* arg_self;
9375 LUCY_IxManager_Make_Write_Lock_t method;
9376 lucy_Lock* retval;
9377  
9378 CFISH_UNUSED_VAR(cv);
9379 0 SP -= items;
9380 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9381 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9382 }
9383  
9384 /* Extract vars from Perl stack. */
9385 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9386  
9387 /* Execute */
9388 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Make_Write_Lock);
9389 0 retval = method(arg_self);
9390 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9391 0 CFISH_DECREF(retval);
9392 0 sv_2mortal( ST(0) );
9393 0 XSRETURN(1);
9394 }
9395  
9396 XS_INTERNAL(XS_Lucy_Index_IndexManager_make_merge_lock);
9397 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_make_merge_lock) {
9398 0 dXSARGS;
9399 lucy_IndexManager* arg_self;
9400 LUCY_IxManager_Make_Merge_Lock_t method;
9401 lucy_Lock* retval;
9402  
9403 CFISH_UNUSED_VAR(cv);
9404 0 SP -= items;
9405 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9406 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9407 }
9408  
9409 /* Extract vars from Perl stack. */
9410 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9411  
9412 /* Execute */
9413 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Make_Merge_Lock);
9414 0 retval = method(arg_self);
9415 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9416 0 CFISH_DECREF(retval);
9417 0 sv_2mortal( ST(0) );
9418 0 XSRETURN(1);
9419 }
9420  
9421 XS_INTERNAL(XS_Lucy_Index_IndexManager_write_merge_data);
9422 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_write_merge_data) {
9423 0 dXSARGS;
9424 SV *sv;
9425 lucy_IndexManager* arg_self;
9426 int64_t arg_cutoff;
9427 LUCY_IxManager_Write_Merge_Data_t method;
9428  
9429 CFISH_UNUSED_VAR(cv);
9430 0 SP -= items;
9431 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9432 0 XSBind_invalid_args_error(aTHX_ cv, "self, cutoff");
9433 }
9434  
9435 /* Extract vars from Perl stack. */
9436 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9437 0 sv = ST(1);
9438 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
9439 0 XSBind_undef_arg_error(aTHX_ "cutoff");
9440 }
9441 0 arg_cutoff = (int64_t)SvNV(sv);
9442  
9443 /* Execute */
9444 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Write_Merge_Data);
9445 0 method(arg_self, arg_cutoff);
9446 0 XSRETURN(0);
9447 }
9448  
9449 XS_INTERNAL(XS_Lucy_Index_IndexManager_read_merge_data);
9450 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_read_merge_data) {
9451 0 dXSARGS;
9452 lucy_IndexManager* arg_self;
9453 LUCY_IxManager_Read_Merge_Data_t method;
9454 cfish_Hash* retval;
9455  
9456 CFISH_UNUSED_VAR(cv);
9457 0 SP -= items;
9458 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9459 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9460 }
9461  
9462 /* Extract vars from Perl stack. */
9463 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9464  
9465 /* Execute */
9466 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Read_Merge_Data);
9467 0 retval = method(arg_self);
9468 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9469 0 CFISH_DECREF(retval);
9470 0 sv_2mortal( ST(0) );
9471 0 XSRETURN(1);
9472 }
9473  
9474 XS_INTERNAL(XS_Lucy_Index_IndexManager_remove_merge_data);
9475 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_remove_merge_data) {
9476 0 dXSARGS;
9477 lucy_IndexManager* arg_self;
9478 LUCY_IxManager_Remove_Merge_Data_t method;
9479 bool retval;
9480  
9481 CFISH_UNUSED_VAR(cv);
9482 0 SP -= items;
9483 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9484 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9485 }
9486  
9487 /* Extract vars from Perl stack. */
9488 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9489  
9490 /* Execute */
9491 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Remove_Merge_Data);
9492 0 retval = method(arg_self);
9493 0 ST(0) = newSViv(!!retval);
9494 0 sv_2mortal( ST(0) );
9495 0 XSRETURN(1);
9496 }
9497  
9498 XS_INTERNAL(XS_Lucy_Index_IndexManager_make_snapshot_lock);
9499 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_make_snapshot_lock) {
9500 0 dXSARGS;
9501 SV *sv;
9502 lucy_IndexManager* arg_self;
9503 cfish_String* arg_filename;
9504 LUCY_IxManager_Make_Snapshot_Lock_t method;
9505 lucy_Lock* retval;
9506  
9507 CFISH_UNUSED_VAR(cv);
9508 0 SP -= items;
9509 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9510 0 XSBind_invalid_args_error(aTHX_ cv, "self, filename");
9511 }
9512  
9513 /* Extract vars from Perl stack. */
9514 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9515 0 sv = ST(1);
9516 0 arg_filename = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "filename", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
9517  
9518 /* Execute */
9519 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Make_Snapshot_Lock);
9520 0 retval = method(arg_self, arg_filename);
9521 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
9522 0 CFISH_DECREF(retval);
9523 0 sv_2mortal( ST(0) );
9524 0 XSRETURN(1);
9525 }
9526  
9527 XS_INTERNAL(XS_Lucy_Index_IndexManager_highest_seg_num);
9528 0 XS_INTERNAL(XS_Lucy_Index_IndexManager_highest_seg_num) {
9529 0 dXSARGS;
9530 SV *sv;
9531 lucy_IndexManager* arg_self;
9532 lucy_Snapshot* arg_snapshot;
9533 LUCY_IxManager_Highest_Seg_Num_t method;
9534 int64_t retval;
9535  
9536 CFISH_UNUSED_VAR(cv);
9537 0 SP -= items;
9538 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9539 0 XSBind_invalid_args_error(aTHX_ cv, "self, snapshot");
9540 }
9541  
9542 /* Extract vars from Perl stack. */
9543 0 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9544 0 sv = ST(1);
9545 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
9546  
9547 /* Execute */
9548 0 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Highest_Seg_Num);
9549 0 retval = method(arg_self, arg_snapshot);
9550 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
9551 0 sv_2mortal( ST(0) );
9552 0 XSRETURN(1);
9553 }
9554  
9555 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_write_lock_timeout);
9556 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_write_lock_timeout) {
9557 1 dXSARGS;
9558 SV *sv;
9559 lucy_IndexManager* arg_self;
9560 uint32_t arg_timeout;
9561 LUCY_IxManager_Set_Write_Lock_Timeout_t method;
9562  
9563 CFISH_UNUSED_VAR(cv);
9564 1 SP -= items;
9565 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
9566 0 XSBind_invalid_args_error(aTHX_ cv, "self, timeout");
9567 }
9568  
9569 /* Extract vars from Perl stack. */
9570 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9571 1 sv = ST(1);
9572 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
9573 0 XSBind_undef_arg_error(aTHX_ "timeout");
9574 }
9575 1 arg_timeout = (uint32_t)SvUV(sv);
9576  
9577 /* Execute */
9578 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Set_Write_Lock_Timeout);
9579 1 method(arg_self, arg_timeout);
9580 1 XSRETURN(0);
9581 }
9582  
9583 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_write_lock_timeout);
9584 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_write_lock_timeout) {
9585 1 dXSARGS;
9586 lucy_IndexManager* arg_self;
9587 LUCY_IxManager_Get_Write_Lock_Timeout_t method;
9588 uint32_t retval;
9589  
9590 CFISH_UNUSED_VAR(cv);
9591 1 SP -= items;
9592 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
9593 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9594 }
9595  
9596 /* Extract vars from Perl stack. */
9597 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9598  
9599 /* Execute */
9600 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Get_Write_Lock_Timeout);
9601 1 retval = method(arg_self);
9602 1 ST(0) = newSVuv(retval);
9603 1 sv_2mortal( ST(0) );
9604 1 XSRETURN(1);
9605 }
9606  
9607 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_write_lock_interval);
9608 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_write_lock_interval) {
9609 1 dXSARGS;
9610 SV *sv;
9611 lucy_IndexManager* arg_self;
9612 uint32_t arg_timeout;
9613 LUCY_IxManager_Set_Write_Lock_Interval_t method;
9614  
9615 CFISH_UNUSED_VAR(cv);
9616 1 SP -= items;
9617 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
9618 0 XSBind_invalid_args_error(aTHX_ cv, "self, timeout");
9619 }
9620  
9621 /* Extract vars from Perl stack. */
9622 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9623 1 sv = ST(1);
9624 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
9625 0 XSBind_undef_arg_error(aTHX_ "timeout");
9626 }
9627 1 arg_timeout = (uint32_t)SvUV(sv);
9628  
9629 /* Execute */
9630 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Set_Write_Lock_Interval);
9631 1 method(arg_self, arg_timeout);
9632 1 XSRETURN(0);
9633 }
9634  
9635 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_write_lock_interval);
9636 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_write_lock_interval) {
9637 1 dXSARGS;
9638 lucy_IndexManager* arg_self;
9639 LUCY_IxManager_Get_Write_Lock_Interval_t method;
9640 uint32_t retval;
9641  
9642 CFISH_UNUSED_VAR(cv);
9643 1 SP -= items;
9644 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
9645 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9646 }
9647  
9648 /* Extract vars from Perl stack. */
9649 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9650  
9651 /* Execute */
9652 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Get_Write_Lock_Interval);
9653 1 retval = method(arg_self);
9654 1 ST(0) = newSVuv(retval);
9655 1 sv_2mortal( ST(0) );
9656 1 XSRETURN(1);
9657 }
9658  
9659 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_merge_lock_timeout);
9660 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_merge_lock_timeout) {
9661 1 dXSARGS;
9662 SV *sv;
9663 lucy_IndexManager* arg_self;
9664 uint32_t arg_timeout;
9665 LUCY_IxManager_Set_Merge_Lock_Timeout_t method;
9666  
9667 CFISH_UNUSED_VAR(cv);
9668 1 SP -= items;
9669 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
9670 0 XSBind_invalid_args_error(aTHX_ cv, "self, timeout");
9671 }
9672  
9673 /* Extract vars from Perl stack. */
9674 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9675 1 sv = ST(1);
9676 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
9677 0 XSBind_undef_arg_error(aTHX_ "timeout");
9678 }
9679 1 arg_timeout = (uint32_t)SvUV(sv);
9680  
9681 /* Execute */
9682 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Set_Merge_Lock_Timeout);
9683 1 method(arg_self, arg_timeout);
9684 1 XSRETURN(0);
9685 }
9686  
9687 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_merge_lock_timeout);
9688 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_merge_lock_timeout) {
9689 1 dXSARGS;
9690 lucy_IndexManager* arg_self;
9691 LUCY_IxManager_Get_Merge_Lock_Timeout_t method;
9692 uint32_t retval;
9693  
9694 CFISH_UNUSED_VAR(cv);
9695 1 SP -= items;
9696 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
9697 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9698 }
9699  
9700 /* Extract vars from Perl stack. */
9701 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9702  
9703 /* Execute */
9704 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Get_Merge_Lock_Timeout);
9705 1 retval = method(arg_self);
9706 1 ST(0) = newSVuv(retval);
9707 1 sv_2mortal( ST(0) );
9708 1 XSRETURN(1);
9709 }
9710  
9711 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_merge_lock_interval);
9712 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_set_merge_lock_interval) {
9713 1 dXSARGS;
9714 SV *sv;
9715 lucy_IndexManager* arg_self;
9716 uint32_t arg_timeout;
9717 LUCY_IxManager_Set_Merge_Lock_Interval_t method;
9718  
9719 CFISH_UNUSED_VAR(cv);
9720 1 SP -= items;
9721 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
9722 0 XSBind_invalid_args_error(aTHX_ cv, "self, timeout");
9723 }
9724  
9725 /* Extract vars from Perl stack. */
9726 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9727 1 sv = ST(1);
9728 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
9729 0 XSBind_undef_arg_error(aTHX_ "timeout");
9730 }
9731 1 arg_timeout = (uint32_t)SvUV(sv);
9732  
9733 /* Execute */
9734 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Set_Merge_Lock_Interval);
9735 1 method(arg_self, arg_timeout);
9736 1 XSRETURN(0);
9737 }
9738  
9739 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_merge_lock_interval);
9740 1 XS_INTERNAL(XS_Lucy_Index_IndexManager_get_merge_lock_interval) {
9741 1 dXSARGS;
9742 lucy_IndexManager* arg_self;
9743 LUCY_IxManager_Get_Merge_Lock_Interval_t method;
9744 uint32_t retval;
9745  
9746 CFISH_UNUSED_VAR(cv);
9747 1 SP -= items;
9748 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
9749 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9750 }
9751  
9752 /* Extract vars from Perl stack. */
9753 1 arg_self = (lucy_IndexManager*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXMANAGER, NULL);
9754  
9755 /* Execute */
9756 1 method = CFISH_METHOD_PTR(LUCY_INDEXMANAGER, LUCY_IxManager_Get_Merge_Lock_Interval);
9757 1 retval = method(arg_self);
9758 1 ST(0) = newSVuv(retval);
9759 1 sv_2mortal( ST(0) );
9760 1 XSRETURN(1);
9761 }
9762  
9763 XS_INTERNAL(XS_Lucy_Index_Indexer__new);
9764 311 XS_INTERNAL(XS_Lucy_Index_Indexer__new) {
9765 311 dXSARGS;
9766 static const XSBind_ParamSpec param_specs[4] = {
9767 XSBIND_PARAM("schema", 0),
9768 XSBIND_PARAM("index", 1),
9769 XSBIND_PARAM("manager", 0),
9770 XSBIND_PARAM("flags", 0)
9771 };
9772 int32_t locations[4];
9773 SV *sv;
9774 lucy_Indexer* arg_self;
9775 lucy_Schema* arg_schema;
9776 cfish_Obj* arg_index;
9777 lucy_IndexManager* arg_manager;
9778 int32_t arg_flags;
9779 lucy_Indexer* retval;
9780  
9781 CFISH_UNUSED_VAR(cv);
9782 311 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 311 311
9783 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
9784 }
9785 311 SP -= items;
9786  
9787 311 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
9788 locations, 4);
9789 311 sv = ST(locations[0]);
9790 311 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 295 16 311
9791 311 sv = ST(locations[1]);
9792 311 arg_index = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "index", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
9793 311 sv = ST(locations[2]);
9794 311 ▶ arg_manager = locations[2] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_manager = locations[2] < items ? (lucy_IndexManager*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "manager", LUCY_INDEXMANAGER, NULL) : NULL; 53 258 311
9795 311 sv = ST(locations[3]);
9796 311 ▶ arg_flags = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_flags = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 311 0 311
9797 622 ▶ ? (int32_t)SvIV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : 0; 311 0 311
9798 311 arg_self = (lucy_Indexer*)XSBind_new_blank_obj(aTHX_ ST(0));
9799  
9800 311 retval = lucy_Indexer_init(arg_self, arg_schema, arg_index, arg_manager, arg_flags);
9801 310 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
9802 310 XSRETURN(1);
9803 }
9804  
9805  
9806 XS_INTERNAL(XS_Lucy_Index_Indexer_add_index);
9807 4 XS_INTERNAL(XS_Lucy_Index_Indexer_add_index) {
9808 4 dXSARGS;
9809 SV *sv;
9810 lucy_Indexer* arg_self;
9811 cfish_Obj* arg_index;
9812 LUCY_Indexer_Add_Index_t method;
9813  
9814 CFISH_UNUSED_VAR(cv);
9815 4 SP -= items;
9816 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
9817 0 XSBind_invalid_args_error(aTHX_ cv, "self, index");
9818 }
9819  
9820 /* Extract vars from Perl stack. */
9821 4 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
9822 4 sv = ST(1);
9823 4 arg_index = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "index", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
9824  
9825 /* Execute */
9826 4 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Add_Index);
9827 4 method(arg_self, arg_index);
9828 4 XSRETURN(0);
9829 }
9830  
9831 XS_INTERNAL(XS_Lucy_Index_Indexer_delete_by_term);
9832 63 XS_INTERNAL(XS_Lucy_Index_Indexer_delete_by_term) {
9833 63 dXSARGS;
9834 static const XSBind_ParamSpec param_specs[2] = {
9835 XSBIND_PARAM("field", 1),
9836 XSBIND_PARAM("term", 1)
9837 };
9838 int32_t locations[2];
9839 SV *sv;
9840 lucy_Indexer* arg_self;
9841 cfish_String* arg_field;
9842 cfish_Obj* arg_term;
9843 LUCY_Indexer_Delete_By_Term_t method;
9844  
9845 CFISH_UNUSED_VAR(cv);
9846 63 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 63 63
9847 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
9848 }
9849 63 SP -= items;
9850  
9851 /* Locate args on Perl stack. */
9852 63 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
9853 locations, 2);
9854 63 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
9855 63 sv = ST(locations[0]);
9856 63 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
9857 63 sv = ST(locations[1]);
9858 63 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
9859  
9860 /* Execute */
9861 63 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Delete_By_Term);
9862 63 method(arg_self, arg_field, arg_term);
9863 63 XSRETURN(0);
9864 }
9865  
9866 XS_INTERNAL(XS_Lucy_Index_Indexer_delete_by_query);
9867 1 XS_INTERNAL(XS_Lucy_Index_Indexer_delete_by_query) {
9868 1 dXSARGS;
9869 SV *sv;
9870 lucy_Indexer* arg_self;
9871 lucy_Query* arg_query;
9872 LUCY_Indexer_Delete_By_Query_t method;
9873  
9874 CFISH_UNUSED_VAR(cv);
9875 1 SP -= items;
9876 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
9877 0 XSBind_invalid_args_error(aTHX_ cv, "self, query");
9878 }
9879  
9880 /* Extract vars from Perl stack. */
9881 1 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
9882 1 sv = ST(1);
9883 1 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
9884  
9885 /* Execute */
9886 1 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Delete_By_Query);
9887 1 method(arg_self, arg_query);
9888 1 XSRETURN(0);
9889 }
9890  
9891 XS_INTERNAL(XS_Lucy_Index_Indexer_delete_by_doc_id);
9892 0 XS_INTERNAL(XS_Lucy_Index_Indexer_delete_by_doc_id) {
9893 0 dXSARGS;
9894 SV *sv;
9895 lucy_Indexer* arg_self;
9896 int32_t arg_doc_id;
9897 LUCY_Indexer_Delete_By_Doc_ID_t method;
9898  
9899 CFISH_UNUSED_VAR(cv);
9900 0 SP -= items;
9901 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
9902 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
9903 }
9904  
9905 /* Extract vars from Perl stack. */
9906 0 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
9907 0 sv = ST(1);
9908 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
9909 0 XSBind_undef_arg_error(aTHX_ "doc_id");
9910 }
9911 0 arg_doc_id = (int32_t)SvIV(sv);
9912  
9913 /* Execute */
9914 0 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Delete_By_Doc_ID);
9915 0 method(arg_self, arg_doc_id);
9916 0 XSRETURN(0);
9917 }
9918  
9919 XS_INTERNAL(XS_Lucy_Index_Indexer_optimize);
9920 30 XS_INTERNAL(XS_Lucy_Index_Indexer_optimize) {
9921 30 dXSARGS;
9922 lucy_Indexer* arg_self;
9923 LUCY_Indexer_Optimize_t method;
9924  
9925 CFISH_UNUSED_VAR(cv);
9926 30 SP -= items;
9927 30 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 30 30
9928 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9929 }
9930  
9931 /* Extract vars from Perl stack. */
9932 30 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
9933  
9934 /* Execute */
9935 30 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Optimize);
9936 30 method(arg_self);
9937 30 XSRETURN(0);
9938 }
9939  
9940 XS_INTERNAL(XS_Lucy_Index_Indexer_commit);
9941 307 XS_INTERNAL(XS_Lucy_Index_Indexer_commit) {
9942 307 dXSARGS;
9943 lucy_Indexer* arg_self;
9944 LUCY_Indexer_Commit_t method;
9945  
9946 CFISH_UNUSED_VAR(cv);
9947 307 SP -= items;
9948 307 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 307 307
9949 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9950 }
9951  
9952 /* Extract vars from Perl stack. */
9953 307 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
9954  
9955 /* Execute */
9956 307 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Commit);
9957 307 method(arg_self);
9958 306 XSRETURN(0);
9959 }
9960  
9961 XS_INTERNAL(XS_Lucy_Index_Indexer_prepare_commit);
9962 0 XS_INTERNAL(XS_Lucy_Index_Indexer_prepare_commit) {
9963 0 dXSARGS;
9964 lucy_Indexer* arg_self;
9965 LUCY_Indexer_Prepare_Commit_t method;
9966  
9967 CFISH_UNUSED_VAR(cv);
9968 0 SP -= items;
9969 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9970 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9971 }
9972  
9973 /* Extract vars from Perl stack. */
9974 0 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
9975  
9976 /* Execute */
9977 0 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Prepare_Commit);
9978 0 method(arg_self);
9979 0 XSRETURN(0);
9980 }
9981  
9982 XS_INTERNAL(XS_Lucy_Index_Indexer_get_schema);
9983 0 XS_INTERNAL(XS_Lucy_Index_Indexer_get_schema) {
9984 0 dXSARGS;
9985 lucy_Indexer* arg_self;
9986 LUCY_Indexer_Get_Schema_t method;
9987 lucy_Schema* retval;
9988  
9989 CFISH_UNUSED_VAR(cv);
9990 0 SP -= items;
9991 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
9992 0 XSBind_invalid_args_error(aTHX_ cv, "self");
9993 }
9994  
9995 /* Extract vars from Perl stack. */
9996 0 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
9997  
9998 /* Execute */
9999 0 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Get_Schema);
10000 0 retval = method(arg_self);
10001 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10002 0 sv_2mortal( ST(0) );
10003 0 XSRETURN(1);
10004 }
10005  
10006 XS_INTERNAL(XS_Lucy_Index_Indexer_get_seg_writer);
10007 0 XS_INTERNAL(XS_Lucy_Index_Indexer_get_seg_writer) {
10008 0 dXSARGS;
10009 lucy_Indexer* arg_self;
10010 LUCY_Indexer_Get_Seg_Writer_t method;
10011 lucy_SegWriter* retval;
10012  
10013 CFISH_UNUSED_VAR(cv);
10014 0 SP -= items;
10015 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10016 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10017 }
10018  
10019 /* Extract vars from Perl stack. */
10020 0 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
10021  
10022 /* Execute */
10023 0 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Get_Seg_Writer);
10024 0 retval = method(arg_self);
10025 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10026 0 sv_2mortal( ST(0) );
10027 0 XSRETURN(1);
10028 }
10029  
10030 XS_INTERNAL(XS_Lucy_Index_Indexer_get_stock_doc);
10031 0 XS_INTERNAL(XS_Lucy_Index_Indexer_get_stock_doc) {
10032 0 dXSARGS;
10033 lucy_Indexer* arg_self;
10034 LUCY_Indexer_Get_Stock_Doc_t method;
10035 lucy_Doc* retval;
10036  
10037 CFISH_UNUSED_VAR(cv);
10038 0 SP -= items;
10039 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10040 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10041 }
10042  
10043 /* Extract vars from Perl stack. */
10044 0 arg_self = (lucy_Indexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXER, NULL);
10045  
10046 /* Execute */
10047 0 method = CFISH_METHOD_PTR(LUCY_INDEXER, LUCY_Indexer_Get_Stock_Doc);
10048 0 retval = method(arg_self);
10049 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10050 0 sv_2mortal( ST(0) );
10051 0 XSRETURN(1);
10052 }
10053  
10054 XS_INTERNAL(XS_Lucy_Index_Inverter_new);
10055 0 XS_INTERNAL(XS_Lucy_Index_Inverter_new) {
10056 0 dXSARGS;
10057 static const XSBind_ParamSpec param_specs[2] = {
10058 XSBIND_PARAM("schema", 1),
10059 XSBIND_PARAM("segment", 1)
10060 };
10061 int32_t locations[2];
10062 SV *sv;
10063 lucy_Inverter* arg_self;
10064 lucy_Schema* arg_schema;
10065 lucy_Segment* arg_segment;
10066 lucy_Inverter* retval;
10067  
10068 CFISH_UNUSED_VAR(cv);
10069 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
10070 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
10071 }
10072 0 SP -= items;
10073  
10074 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
10075 locations, 2);
10076 0 sv = ST(locations[0]);
10077 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
10078 0 sv = ST(locations[1]);
10079 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
10080 0 arg_self = (lucy_Inverter*)XSBind_new_blank_obj(aTHX_ ST(0));
10081  
10082 0 retval = lucy_Inverter_init(arg_self, arg_schema, arg_segment);
10083 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
10084 0 XSRETURN(1);
10085 }
10086  
10087  
10088 XS_INTERNAL(XS_Lucy_Index_Inverter_invert_doc);
10089 0 XS_INTERNAL(XS_Lucy_Index_Inverter_invert_doc) {
10090 0 dXSARGS;
10091 SV *sv;
10092 lucy_Inverter* arg_self;
10093 lucy_Doc* arg_doc;
10094 LUCY_Inverter_Invert_Doc_t method;
10095  
10096 CFISH_UNUSED_VAR(cv);
10097 0 SP -= items;
10098 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
10099 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc");
10100 }
10101  
10102 /* Extract vars from Perl stack. */
10103 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10104 0 sv = ST(1);
10105 0 arg_doc = (lucy_Doc*)XSBind_arg_to_cfish(aTHX_ sv, "doc", LUCY_DOC, NULL);
10106  
10107 /* Execute */
10108 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Invert_Doc);
10109 0 method(arg_self, arg_doc);
10110 0 XSRETURN(0);
10111 }
10112  
10113 XS_INTERNAL(XS_Lucy_Index_Inverter_set_doc);
10114 0 XS_INTERNAL(XS_Lucy_Index_Inverter_set_doc) {
10115 0 dXSARGS;
10116 SV *sv;
10117 lucy_Inverter* arg_self;
10118 lucy_Doc* arg_doc;
10119 LUCY_Inverter_Set_Doc_t method;
10120  
10121 CFISH_UNUSED_VAR(cv);
10122 0 SP -= items;
10123 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
10124 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc");
10125 }
10126  
10127 /* Extract vars from Perl stack. */
10128 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10129 0 sv = ST(1);
10130 0 arg_doc = (lucy_Doc*)XSBind_arg_to_cfish(aTHX_ sv, "doc", LUCY_DOC, NULL);
10131  
10132 /* Execute */
10133 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Set_Doc);
10134 0 method(arg_self, arg_doc);
10135 0 XSRETURN(0);
10136 }
10137  
10138 XS_INTERNAL(XS_Lucy_Index_Inverter_set_boost);
10139 0 XS_INTERNAL(XS_Lucy_Index_Inverter_set_boost) {
10140 0 dXSARGS;
10141 SV *sv;
10142 lucy_Inverter* arg_self;
10143 float arg_boost;
10144 LUCY_Inverter_Set_Boost_t method;
10145  
10146 CFISH_UNUSED_VAR(cv);
10147 0 SP -= items;
10148 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
10149 0 XSBind_invalid_args_error(aTHX_ cv, "self, boost");
10150 }
10151  
10152 /* Extract vars from Perl stack. */
10153 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10154 0 sv = ST(1);
10155 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
10156 0 XSBind_undef_arg_error(aTHX_ "boost");
10157 }
10158 0 arg_boost = (float)SvNV(sv);
10159  
10160 /* Execute */
10161 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Set_Boost);
10162 0 method(arg_self, arg_boost);
10163 0 XSRETURN(0);
10164 }
10165  
10166 XS_INTERNAL(XS_Lucy_Index_Inverter_add_field);
10167 0 XS_INTERNAL(XS_Lucy_Index_Inverter_add_field) {
10168 0 dXSARGS;
10169 SV *sv;
10170 lucy_Inverter* arg_self;
10171 lucy_InverterEntry* arg_entry;
10172 LUCY_Inverter_Add_Field_t method;
10173  
10174 CFISH_UNUSED_VAR(cv);
10175 0 SP -= items;
10176 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
10177 0 XSBind_invalid_args_error(aTHX_ cv, "self, entry");
10178 }
10179  
10180 /* Extract vars from Perl stack. */
10181 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10182 0 sv = ST(1);
10183 0 arg_entry = (lucy_InverterEntry*)XSBind_arg_to_cfish(aTHX_ sv, "entry", LUCY_INVERTERENTRY, NULL);
10184  
10185 /* Execute */
10186 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Add_Field);
10187 0 method(arg_self, arg_entry);
10188 0 XSRETURN(0);
10189 }
10190  
10191 XS_INTERNAL(XS_Lucy_Index_Inverter_clear);
10192 0 XS_INTERNAL(XS_Lucy_Index_Inverter_clear) {
10193 0 dXSARGS;
10194 lucy_Inverter* arg_self;
10195 LUCY_Inverter_Clear_t method;
10196  
10197 CFISH_UNUSED_VAR(cv);
10198 0 SP -= items;
10199 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10200 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10201 }
10202  
10203 /* Extract vars from Perl stack. */
10204 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10205  
10206 /* Execute */
10207 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Clear);
10208 0 method(arg_self);
10209 0 XSRETURN(0);
10210 }
10211  
10212 XS_INTERNAL(XS_Lucy_Index_Inverter_iterate);
10213 13 XS_INTERNAL(XS_Lucy_Index_Inverter_iterate) {
10214 13 dXSARGS;
10215 lucy_Inverter* arg_self;
10216 LUCY_Inverter_Iterate_t method;
10217 uint32_t retval;
10218  
10219 CFISH_UNUSED_VAR(cv);
10220 13 SP -= items;
10221 13 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 13 13
10222 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10223 }
10224  
10225 /* Extract vars from Perl stack. */
10226 13 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10227  
10228 /* Execute */
10229 13 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Iterate);
10230 13 retval = method(arg_self);
10231 13 ST(0) = newSVuv(retval);
10232 13 sv_2mortal( ST(0) );
10233 13 XSRETURN(1);
10234 }
10235  
10236 XS_INTERNAL(XS_Lucy_Index_Inverter_next);
10237 65 XS_INTERNAL(XS_Lucy_Index_Inverter_next) {
10238 65 dXSARGS;
10239 lucy_Inverter* arg_self;
10240 LUCY_Inverter_Next_t method;
10241 int32_t retval;
10242  
10243 CFISH_UNUSED_VAR(cv);
10244 65 SP -= items;
10245 65 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 65 65
10246 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10247 }
10248  
10249 /* Extract vars from Perl stack. */
10250 65 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10251  
10252 /* Execute */
10253 65 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Next);
10254 65 retval = method(arg_self);
10255 65 ST(0) = newSViv(retval);
10256 65 sv_2mortal( ST(0) );
10257 65 XSRETURN(1);
10258 }
10259  
10260 XS_INTERNAL(XS_Lucy_Index_Inverter_get_doc);
10261 13 XS_INTERNAL(XS_Lucy_Index_Inverter_get_doc) {
10262 13 dXSARGS;
10263 lucy_Inverter* arg_self;
10264 LUCY_Inverter_Get_Doc_t method;
10265 lucy_Doc* retval;
10266  
10267 CFISH_UNUSED_VAR(cv);
10268 13 SP -= items;
10269 13 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 13 13
10270 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10271 }
10272  
10273 /* Extract vars from Perl stack. */
10274 13 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10275  
10276 /* Execute */
10277 13 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Get_Doc);
10278 13 retval = method(arg_self);
10279 13 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10280 13 sv_2mortal( ST(0) );
10281 13 XSRETURN(1);
10282 }
10283  
10284 XS_INTERNAL(XS_Lucy_Index_Inverter_get_boost);
10285 0 XS_INTERNAL(XS_Lucy_Index_Inverter_get_boost) {
10286 0 dXSARGS;
10287 lucy_Inverter* arg_self;
10288 LUCY_Inverter_Get_Boost_t method;
10289 float retval;
10290  
10291 CFISH_UNUSED_VAR(cv);
10292 0 SP -= items;
10293 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10294 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10295 }
10296  
10297 /* Extract vars from Perl stack. */
10298 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10299  
10300 /* Execute */
10301 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Get_Boost);
10302 0 retval = method(arg_self);
10303 0 ST(0) = newSVnv(retval);
10304 0 sv_2mortal( ST(0) );
10305 0 XSRETURN(1);
10306 }
10307  
10308 XS_INTERNAL(XS_Lucy_Index_Inverter_get_field_name);
10309 39 XS_INTERNAL(XS_Lucy_Index_Inverter_get_field_name) {
10310 39 dXSARGS;
10311 lucy_Inverter* arg_self;
10312 LUCY_Inverter_Get_Field_Name_t method;
10313 cfish_String* retval;
10314  
10315 CFISH_UNUSED_VAR(cv);
10316 39 SP -= items;
10317 39 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 39 39
10318 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10319 }
10320  
10321 /* Extract vars from Perl stack. */
10322 39 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10323  
10324 /* Execute */
10325 39 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Get_Field_Name);
10326 39 retval = method(arg_self);
10327 39 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10328 39 sv_2mortal( ST(0) );
10329 39 XSRETURN(1);
10330 }
10331  
10332 XS_INTERNAL(XS_Lucy_Index_Inverter_get_value);
10333 39 XS_INTERNAL(XS_Lucy_Index_Inverter_get_value) {
10334 39 dXSARGS;
10335 lucy_Inverter* arg_self;
10336 LUCY_Inverter_Get_Value_t method;
10337 cfish_Obj* retval;
10338  
10339 CFISH_UNUSED_VAR(cv);
10340 39 SP -= items;
10341 39 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 39 39
10342 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10343 }
10344  
10345 /* Extract vars from Perl stack. */
10346 39 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10347  
10348 /* Execute */
10349 39 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Get_Value);
10350 39 retval = method(arg_self);
10351 39 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10352 39 sv_2mortal( ST(0) );
10353 39 XSRETURN(1);
10354 }
10355  
10356 XS_INTERNAL(XS_Lucy_Index_Inverter_get_type);
10357 52 XS_INTERNAL(XS_Lucy_Index_Inverter_get_type) {
10358 52 dXSARGS;
10359 lucy_Inverter* arg_self;
10360 LUCY_Inverter_Get_Type_t method;
10361 lucy_FieldType* retval;
10362  
10363 CFISH_UNUSED_VAR(cv);
10364 52 SP -= items;
10365 52 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 52 52
10366 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10367 }
10368  
10369 /* Extract vars from Perl stack. */
10370 52 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10371  
10372 /* Execute */
10373 52 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Get_Type);
10374 52 retval = method(arg_self);
10375 52 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10376 52 sv_2mortal( ST(0) );
10377 52 XSRETURN(1);
10378 }
10379  
10380 XS_INTERNAL(XS_Lucy_Index_Inverter_get_analyzer);
10381 0 XS_INTERNAL(XS_Lucy_Index_Inverter_get_analyzer) {
10382 0 dXSARGS;
10383 lucy_Inverter* arg_self;
10384 LUCY_Inverter_Get_Analyzer_t method;
10385 lucy_Analyzer* retval;
10386  
10387 CFISH_UNUSED_VAR(cv);
10388 0 SP -= items;
10389 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10390 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10391 }
10392  
10393 /* Extract vars from Perl stack. */
10394 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10395  
10396 /* Execute */
10397 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Get_Analyzer);
10398 0 retval = method(arg_self);
10399 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10400 0 sv_2mortal( ST(0) );
10401 0 XSRETURN(1);
10402 }
10403  
10404 XS_INTERNAL(XS_Lucy_Index_Inverter_get_similarity);
10405 0 XS_INTERNAL(XS_Lucy_Index_Inverter_get_similarity) {
10406 0 dXSARGS;
10407 lucy_Inverter* arg_self;
10408 LUCY_Inverter_Get_Similarity_t method;
10409 lucy_Similarity* retval;
10410  
10411 CFISH_UNUSED_VAR(cv);
10412 0 SP -= items;
10413 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10414 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10415 }
10416  
10417 /* Extract vars from Perl stack. */
10418 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10419  
10420 /* Execute */
10421 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Get_Similarity);
10422 0 retval = method(arg_self);
10423 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10424 0 sv_2mortal( ST(0) );
10425 0 XSRETURN(1);
10426 }
10427  
10428 XS_INTERNAL(XS_Lucy_Index_Inverter_get_inversion);
10429 0 XS_INTERNAL(XS_Lucy_Index_Inverter_get_inversion) {
10430 0 dXSARGS;
10431 lucy_Inverter* arg_self;
10432 LUCY_Inverter_Get_Inversion_t method;
10433 lucy_Inversion* retval;
10434  
10435 CFISH_UNUSED_VAR(cv);
10436 0 SP -= items;
10437 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10438 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10439 }
10440  
10441 /* Extract vars from Perl stack. */
10442 0 arg_self = (lucy_Inverter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTER, NULL);
10443  
10444 /* Execute */
10445 0 method = CFISH_METHOD_PTR(LUCY_INVERTER, LUCY_Inverter_Get_Inversion);
10446 0 retval = method(arg_self);
10447 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10448 0 sv_2mortal( ST(0) );
10449 0 XSRETURN(1);
10450 }
10451  
10452 XS_INTERNAL(XS_Lucy_Index_Inverter_InverterEntry_new);
10453 0 XS_INTERNAL(XS_Lucy_Index_Inverter_InverterEntry_new) {
10454 0 dXSARGS;
10455 static const XSBind_ParamSpec param_specs[3] = {
10456 XSBIND_PARAM("schema", 1),
10457 XSBIND_PARAM("field_name", 1),
10458 XSBIND_PARAM("field_num", 1)
10459 };
10460 int32_t locations[3];
10461 SV *sv;
10462 lucy_InverterEntry* arg_self;
10463 lucy_Schema* arg_schema;
10464 cfish_String* arg_field_name;
10465 int32_t arg_field_num;
10466 lucy_InverterEntry* retval;
10467  
10468 CFISH_UNUSED_VAR(cv);
10469 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
10470 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
10471 }
10472 0 SP -= items;
10473  
10474 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
10475 locations, 3);
10476 0 sv = ST(locations[0]);
10477 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
10478 0 sv = ST(locations[1]);
10479 0 arg_field_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field_name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
10480 0 sv = ST(locations[2]);
10481 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
10482 0 XSBind_undef_arg_error(aTHX_ "field_num");
10483 }
10484 0 arg_field_num = (int32_t)SvIV(sv);
10485 0 arg_self = (lucy_InverterEntry*)XSBind_new_blank_obj(aTHX_ ST(0));
10486  
10487 0 retval = lucy_InvEntry_init(arg_self, arg_schema, arg_field_name, arg_field_num);
10488 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
10489 0 XSRETURN(1);
10490 }
10491  
10492  
10493 XS_INTERNAL(XS_Lucy_Index_Inverter_InverterEntry_compare_to);
10494 0 XS_INTERNAL(XS_Lucy_Index_Inverter_InverterEntry_compare_to) {
10495 0 dXSARGS;
10496 SV *sv;
10497 lucy_InverterEntry* arg_self;
10498 cfish_Obj* arg_other;
10499 LUCY_InvEntry_Compare_To_t method;
10500 int32_t retval;
10501  
10502 CFISH_UNUSED_VAR(cv);
10503 0 SP -= items;
10504 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
10505 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
10506 }
10507  
10508 /* Extract vars from Perl stack. */
10509 0 arg_self = (lucy_InverterEntry*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTERENTRY, NULL);
10510 0 sv = ST(1);
10511 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
10512  
10513 /* Execute */
10514 0 method = CFISH_METHOD_PTR(LUCY_INVERTERENTRY, LUCY_InvEntry_Compare_To);
10515 0 retval = method(arg_self, arg_other);
10516 0 ST(0) = newSViv(retval);
10517 0 sv_2mortal( ST(0) );
10518 0 XSRETURN(1);
10519 }
10520  
10521 XS_INTERNAL(XS_Lucy_Index_Inverter_InverterEntry_clear);
10522 0 XS_INTERNAL(XS_Lucy_Index_Inverter_InverterEntry_clear) {
10523 0 dXSARGS;
10524 lucy_InverterEntry* arg_self;
10525 LUCY_InvEntry_Clear_t method;
10526  
10527 CFISH_UNUSED_VAR(cv);
10528 0 SP -= items;
10529 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10530 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10531 }
10532  
10533 /* Extract vars from Perl stack. */
10534 0 arg_self = (lucy_InverterEntry*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INVERTERENTRY, NULL);
10535  
10536 /* Execute */
10537 0 method = CFISH_METHOD_PTR(LUCY_INVERTERENTRY, LUCY_InvEntry_Clear);
10538 0 method(arg_self);
10539 0 XSRETURN(0);
10540 }
10541  
10542 XS_INTERNAL(XS_Lucy_Index_Lexicon_new);
10543 0 XS_INTERNAL(XS_Lucy_Index_Lexicon_new) {
10544 0 dXSARGS;
10545 static const XSBind_ParamSpec param_specs[1] = {
10546 XSBIND_PARAM("field", 1)
10547 };
10548 int32_t locations[1];
10549 SV *sv;
10550 lucy_Lexicon* arg_self;
10551 cfish_String* arg_field;
10552 lucy_Lexicon* retval;
10553  
10554 CFISH_UNUSED_VAR(cv);
10555 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
10556 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
10557 }
10558 0 SP -= items;
10559  
10560 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
10561 locations, 1);
10562 0 sv = ST(locations[0]);
10563 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
10564 0 arg_self = (lucy_Lexicon*)XSBind_new_blank_obj(aTHX_ ST(0));
10565  
10566 0 retval = lucy_Lex_init(arg_self, arg_field);
10567 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
10568 0 XSRETURN(1);
10569 }
10570  
10571  
10572 XS_INTERNAL(XS_Lucy_Index_Lexicon_seek);
10573 0 XS_INTERNAL(XS_Lucy_Index_Lexicon_seek) {
10574 0 dXSARGS;
10575 SV *sv;
10576 lucy_Lexicon* arg_self;
10577 cfish_Obj* arg_target;
10578 LUCY_Lex_Seek_t method;
10579  
10580 CFISH_UNUSED_VAR(cv);
10581 0 SP -= items;
10582 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
10583 0 XSBind_invalid_args_error(aTHX_ cv, "self, [target]");
10584 }
10585  
10586 /* Extract vars from Perl stack. */
10587 0 arg_self = (lucy_Lexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICON, NULL);
10588 0 sv = ST(1);
10589 0 ▶ arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
10590  
10591 /* Execute */
10592 0 method = CFISH_METHOD_PTR(LUCY_LEXICON, LUCY_Lex_Seek);
10593 0 method(arg_self, arg_target);
10594 0 XSRETURN(0);
10595 }
10596  
10597 XS_INTERNAL(XS_Lucy_Index_Lexicon_next);
10598 0 XS_INTERNAL(XS_Lucy_Index_Lexicon_next) {
10599 0 dXSARGS;
10600 lucy_Lexicon* arg_self;
10601 LUCY_Lex_Next_t method;
10602 bool retval;
10603  
10604 CFISH_UNUSED_VAR(cv);
10605 0 SP -= items;
10606 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10607 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10608 }
10609  
10610 /* Extract vars from Perl stack. */
10611 0 arg_self = (lucy_Lexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICON, NULL);
10612  
10613 /* Execute */
10614 0 method = CFISH_METHOD_PTR(LUCY_LEXICON, LUCY_Lex_Next);
10615 0 retval = method(arg_self);
10616 0 ST(0) = newSViv(!!retval);
10617 0 sv_2mortal( ST(0) );
10618 0 XSRETURN(1);
10619 }
10620  
10621 XS_INTERNAL(XS_Lucy_Index_Lexicon_reset);
10622 0 XS_INTERNAL(XS_Lucy_Index_Lexicon_reset) {
10623 0 dXSARGS;
10624 lucy_Lexicon* arg_self;
10625 LUCY_Lex_Reset_t method;
10626  
10627 CFISH_UNUSED_VAR(cv);
10628 0 SP -= items;
10629 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10630 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10631 }
10632  
10633 /* Extract vars from Perl stack. */
10634 0 arg_self = (lucy_Lexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICON, NULL);
10635  
10636 /* Execute */
10637 0 method = CFISH_METHOD_PTR(LUCY_LEXICON, LUCY_Lex_Reset);
10638 0 method(arg_self);
10639 0 XSRETURN(0);
10640 }
10641  
10642 XS_INTERNAL(XS_Lucy_Index_Lexicon_doc_freq);
10643 0 XS_INTERNAL(XS_Lucy_Index_Lexicon_doc_freq) {
10644 0 dXSARGS;
10645 lucy_Lexicon* arg_self;
10646 LUCY_Lex_Doc_Freq_t method;
10647 int32_t retval;
10648  
10649 CFISH_UNUSED_VAR(cv);
10650 0 SP -= items;
10651 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10652 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10653 }
10654  
10655 /* Extract vars from Perl stack. */
10656 0 arg_self = (lucy_Lexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICON, NULL);
10657  
10658 /* Execute */
10659 0 method = CFISH_METHOD_PTR(LUCY_LEXICON, LUCY_Lex_Doc_Freq);
10660 0 retval = method(arg_self);
10661 0 ST(0) = newSViv(retval);
10662 0 sv_2mortal( ST(0) );
10663 0 XSRETURN(1);
10664 }
10665  
10666 XS_INTERNAL(XS_Lucy_Index_Lexicon_get_term);
10667 0 XS_INTERNAL(XS_Lucy_Index_Lexicon_get_term) {
10668 0 dXSARGS;
10669 lucy_Lexicon* arg_self;
10670 LUCY_Lex_Get_Term_t method;
10671 cfish_Obj* retval;
10672  
10673 CFISH_UNUSED_VAR(cv);
10674 0 SP -= items;
10675 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10676 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10677 }
10678  
10679 /* Extract vars from Perl stack. */
10680 0 arg_self = (lucy_Lexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICON, NULL);
10681  
10682 /* Execute */
10683 0 method = CFISH_METHOD_PTR(LUCY_LEXICON, LUCY_Lex_Get_Term);
10684 0 retval = method(arg_self);
10685 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10686 0 sv_2mortal( ST(0) );
10687 0 XSRETURN(1);
10688 }
10689  
10690 XS_INTERNAL(XS_Lucy_Index_Lexicon_get_field);
10691 16 XS_INTERNAL(XS_Lucy_Index_Lexicon_get_field) {
10692 16 dXSARGS;
10693 lucy_Lexicon* arg_self;
10694 LUCY_Lex_Get_Field_t method;
10695 cfish_String* retval;
10696  
10697 CFISH_UNUSED_VAR(cv);
10698 16 SP -= items;
10699 16 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 16 16
10700 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10701 }
10702  
10703 /* Extract vars from Perl stack. */
10704 16 arg_self = (lucy_Lexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXICON, NULL);
10705  
10706 /* Execute */
10707 16 method = CFISH_METHOD_PTR(LUCY_LEXICON, LUCY_Lex_Get_Field);
10708 16 retval = method(arg_self);
10709 16 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10710 16 sv_2mortal( ST(0) );
10711 16 XSRETURN(1);
10712 }
10713  
10714 XS_INTERNAL(XS_Lucy_Index_LexIndex_new);
10715 0 XS_INTERNAL(XS_Lucy_Index_LexIndex_new) {
10716 0 dXSARGS;
10717 static const XSBind_ParamSpec param_specs[4] = {
10718 XSBIND_PARAM("schema", 1),
10719 XSBIND_PARAM("folder", 1),
10720 XSBIND_PARAM("segment", 1),
10721 XSBIND_PARAM("field", 1)
10722 };
10723 int32_t locations[4];
10724 SV *sv;
10725 lucy_LexIndex* arg_self;
10726 lucy_Schema* arg_schema;
10727 lucy_Folder* arg_folder;
10728 lucy_Segment* arg_segment;
10729 cfish_String* arg_field;
10730 lucy_LexIndex* retval;
10731  
10732 CFISH_UNUSED_VAR(cv);
10733 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
10734 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
10735 }
10736 0 SP -= items;
10737  
10738 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
10739 locations, 4);
10740 0 sv = ST(locations[0]);
10741 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
10742 0 sv = ST(locations[1]);
10743 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
10744 0 sv = ST(locations[2]);
10745 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
10746 0 sv = ST(locations[3]);
10747 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
10748 0 arg_self = (lucy_LexIndex*)XSBind_new_blank_obj(aTHX_ ST(0));
10749  
10750 0 retval = lucy_LexIndex_init(arg_self, arg_schema, arg_folder, arg_segment, arg_field);
10751 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
10752 0 XSRETURN(1);
10753 }
10754  
10755  
10756 XS_INTERNAL(XS_Lucy_Index_LexIndex_seek);
10757 0 XS_INTERNAL(XS_Lucy_Index_LexIndex_seek) {
10758 0 dXSARGS;
10759 SV *sv;
10760 lucy_LexIndex* arg_self;
10761 cfish_Obj* arg_target;
10762 LUCY_LexIndex_Seek_t method;
10763  
10764 CFISH_UNUSED_VAR(cv);
10765 0 SP -= items;
10766 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
10767 0 XSBind_invalid_args_error(aTHX_ cv, "self, [target]");
10768 }
10769  
10770 /* Extract vars from Perl stack. */
10771 0 arg_self = (lucy_LexIndex*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXINDEX, NULL);
10772 0 sv = ST(1);
10773 0 ▶ arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
10774  
10775 /* Execute */
10776 0 method = CFISH_METHOD_PTR(LUCY_LEXINDEX, LUCY_LexIndex_Seek);
10777 0 method(arg_self, arg_target);
10778 0 XSRETURN(0);
10779 }
10780  
10781 XS_INTERNAL(XS_Lucy_Index_LexIndex_get_term_num);
10782 0 XS_INTERNAL(XS_Lucy_Index_LexIndex_get_term_num) {
10783 0 dXSARGS;
10784 lucy_LexIndex* arg_self;
10785 LUCY_LexIndex_Get_Term_Num_t method;
10786 int32_t retval;
10787  
10788 CFISH_UNUSED_VAR(cv);
10789 0 SP -= items;
10790 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10791 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10792 }
10793  
10794 /* Extract vars from Perl stack. */
10795 0 arg_self = (lucy_LexIndex*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXINDEX, NULL);
10796  
10797 /* Execute */
10798 0 method = CFISH_METHOD_PTR(LUCY_LEXINDEX, LUCY_LexIndex_Get_Term_Num);
10799 0 retval = method(arg_self);
10800 0 ST(0) = newSViv(retval);
10801 0 sv_2mortal( ST(0) );
10802 0 XSRETURN(1);
10803 }
10804  
10805 XS_INTERNAL(XS_Lucy_Index_LexIndex_get_term_info);
10806 0 XS_INTERNAL(XS_Lucy_Index_LexIndex_get_term_info) {
10807 0 dXSARGS;
10808 lucy_LexIndex* arg_self;
10809 LUCY_LexIndex_Get_Term_Info_t method;
10810 lucy_TermInfo* retval;
10811  
10812 CFISH_UNUSED_VAR(cv);
10813 0 SP -= items;
10814 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10815 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10816 }
10817  
10818 /* Extract vars from Perl stack. */
10819 0 arg_self = (lucy_LexIndex*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXINDEX, NULL);
10820  
10821 /* Execute */
10822 0 method = CFISH_METHOD_PTR(LUCY_LEXINDEX, LUCY_LexIndex_Get_Term_Info);
10823 0 retval = method(arg_self);
10824 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10825 0 sv_2mortal( ST(0) );
10826 0 XSRETURN(1);
10827 }
10828  
10829 XS_INTERNAL(XS_Lucy_Index_LexIndex_get_term);
10830 0 XS_INTERNAL(XS_Lucy_Index_LexIndex_get_term) {
10831 0 dXSARGS;
10832 lucy_LexIndex* arg_self;
10833 LUCY_LexIndex_Get_Term_t method;
10834 cfish_Obj* retval;
10835  
10836 CFISH_UNUSED_VAR(cv);
10837 0 SP -= items;
10838 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10839 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10840 }
10841  
10842 /* Extract vars from Perl stack. */
10843 0 arg_self = (lucy_LexIndex*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEXINDEX, NULL);
10844  
10845 /* Execute */
10846 0 method = CFISH_METHOD_PTR(LUCY_LEXINDEX, LUCY_LexIndex_Get_Term);
10847 0 retval = method(arg_self);
10848 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10849 0 sv_2mortal( ST(0) );
10850 0 XSRETURN(1);
10851 }
10852  
10853 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_new);
10854 0 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_new) {
10855 0 dXSARGS;
10856 static const XSBind_ParamSpec param_specs[2] = {
10857 XSBIND_PARAM("field", 1),
10858 XSBIND_PARAM("sub_readers", 1)
10859 };
10860 int32_t locations[2];
10861 SV *sv;
10862 lucy_PolyLexicon* arg_self;
10863 cfish_String* arg_field;
10864 cfish_Vector* arg_sub_readers;
10865 lucy_PolyLexicon* retval;
10866  
10867 CFISH_UNUSED_VAR(cv);
10868 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
10869 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
10870 }
10871 0 SP -= items;
10872  
10873 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
10874 locations, 2);
10875 0 sv = ST(locations[0]);
10876 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
10877 0 sv = ST(locations[1]);
10878 0 arg_sub_readers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "sub_readers", CFISH_VECTOR, NULL);
10879 0 arg_self = (lucy_PolyLexicon*)XSBind_new_blank_obj(aTHX_ ST(0));
10880  
10881 0 retval = lucy_PolyLex_init(arg_self, arg_field, arg_sub_readers);
10882 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
10883 0 XSRETURN(1);
10884 }
10885  
10886  
10887 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_seek);
10888 14 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_seek) {
10889 14 dXSARGS;
10890 SV *sv;
10891 lucy_PolyLexicon* arg_self;
10892 cfish_Obj* arg_target;
10893 LUCY_PolyLex_Seek_t method;
10894  
10895 CFISH_UNUSED_VAR(cv);
10896 14 SP -= items;
10897 14 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 14 0 14
if (items < 1 || items > 2) { 0 14 14
10898 0 XSBind_invalid_args_error(aTHX_ cv, "self, [target]");
10899 }
10900  
10901 /* Extract vars from Perl stack. */
10902 14 arg_self = (lucy_PolyLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYLEXICON, NULL);
10903 14 sv = ST(1);
10904 14 ▶ arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 14 0 14
10905  
10906 /* Execute */
10907 14 method = CFISH_METHOD_PTR(LUCY_POLYLEXICON, LUCY_PolyLex_Seek);
10908 14 method(arg_self, arg_target);
10909 14 XSRETURN(0);
10910 }
10911  
10912 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_next);
10913 735 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_next) {
10914 735 dXSARGS;
10915 lucy_PolyLexicon* arg_self;
10916 LUCY_PolyLex_Next_t method;
10917 bool retval;
10918  
10919 CFISH_UNUSED_VAR(cv);
10920 735 SP -= items;
10921 735 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 735 735
10922 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10923 }
10924  
10925 /* Extract vars from Perl stack. */
10926 735 arg_self = (lucy_PolyLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYLEXICON, NULL);
10927  
10928 /* Execute */
10929 735 method = CFISH_METHOD_PTR(LUCY_POLYLEXICON, LUCY_PolyLex_Next);
10930 735 retval = method(arg_self);
10931 735 ST(0) = newSViv(!!retval);
10932 735 sv_2mortal( ST(0) );
10933 735 XSRETURN(1);
10934 }
10935  
10936 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_reset);
10937 7 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_reset) {
10938 7 dXSARGS;
10939 lucy_PolyLexicon* arg_self;
10940 LUCY_PolyLex_Reset_t method;
10941  
10942 CFISH_UNUSED_VAR(cv);
10943 7 SP -= items;
10944 7 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 7 7
10945 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10946 }
10947  
10948 /* Extract vars from Perl stack. */
10949 7 arg_self = (lucy_PolyLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYLEXICON, NULL);
10950  
10951 /* Execute */
10952 7 method = CFISH_METHOD_PTR(LUCY_POLYLEXICON, LUCY_PolyLex_Reset);
10953 7 method(arg_self);
10954 7 XSRETURN(0);
10955 }
10956  
10957 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_get_term);
10958 742 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_get_term) {
10959 742 dXSARGS;
10960 lucy_PolyLexicon* arg_self;
10961 LUCY_PolyLex_Get_Term_t method;
10962 cfish_Obj* retval;
10963  
10964 CFISH_UNUSED_VAR(cv);
10965 742 SP -= items;
10966 742 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 742 742
10967 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10968 }
10969  
10970 /* Extract vars from Perl stack. */
10971 742 arg_self = (lucy_PolyLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYLEXICON, NULL);
10972  
10973 /* Execute */
10974 742 method = CFISH_METHOD_PTR(LUCY_POLYLEXICON, LUCY_PolyLex_Get_Term);
10975 742 retval = method(arg_self);
10976 742 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
10977 742 sv_2mortal( ST(0) );
10978 742 XSRETURN(1);
10979 }
10980  
10981 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_get_num_seg_lexicons);
10982 0 XS_INTERNAL(XS_Lucy_Index_PolyLexicon_get_num_seg_lexicons) {
10983 0 dXSARGS;
10984 lucy_PolyLexicon* arg_self;
10985 LUCY_PolyLex_Get_Num_Seg_Lexicons_t method;
10986 uint32_t retval;
10987  
10988 CFISH_UNUSED_VAR(cv);
10989 0 SP -= items;
10990 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
10991 0 XSBind_invalid_args_error(aTHX_ cv, "self");
10992 }
10993  
10994 /* Extract vars from Perl stack. */
10995 0 arg_self = (lucy_PolyLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYLEXICON, NULL);
10996  
10997 /* Execute */
10998 0 method = CFISH_METHOD_PTR(LUCY_POLYLEXICON, LUCY_PolyLex_Get_Num_Seg_Lexicons);
10999 0 retval = method(arg_self);
11000 0 ST(0) = newSVuv(retval);
11001 0 sv_2mortal( ST(0) );
11002 0 XSRETURN(1);
11003 }
11004  
11005 XS_INTERNAL(XS_Lucy_Index_RawLexicon_new);
11006 0 XS_INTERNAL(XS_Lucy_Index_RawLexicon_new) {
11007 0 dXSARGS;
11008 static const XSBind_ParamSpec param_specs[5] = {
11009 XSBIND_PARAM("schema", 1),
11010 XSBIND_PARAM("field", 1),
11011 XSBIND_PARAM("instream", 1),
11012 XSBIND_PARAM("start", 1),
11013 XSBIND_PARAM("end", 1)
11014 };
11015 int32_t locations[5];
11016 SV *sv;
11017 lucy_RawLexicon* arg_self;
11018 lucy_Schema* arg_schema;
11019 cfish_String* arg_field;
11020 lucy_InStream* arg_instream;
11021 int64_t arg_start;
11022 int64_t arg_end;
11023 lucy_RawLexicon* retval;
11024  
11025 CFISH_UNUSED_VAR(cv);
11026 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
11027 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
11028 }
11029 0 SP -= items;
11030  
11031 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
11032 locations, 5);
11033 0 sv = ST(locations[0]);
11034 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
11035 0 sv = ST(locations[1]);
11036 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
11037 0 sv = ST(locations[2]);
11038 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
11039 0 sv = ST(locations[3]);
11040 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
11041 0 XSBind_undef_arg_error(aTHX_ "start");
11042 }
11043 0 arg_start = (int64_t)SvNV(sv);
11044 0 sv = ST(locations[4]);
11045 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
11046 0 XSBind_undef_arg_error(aTHX_ "end");
11047 }
11048 0 arg_end = (int64_t)SvNV(sv);
11049 0 arg_self = (lucy_RawLexicon*)XSBind_new_blank_obj(aTHX_ ST(0));
11050  
11051 0 retval = lucy_RawLex_init(arg_self, arg_schema, arg_field, arg_instream, arg_start, arg_end);
11052 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
11053 0 XSRETURN(1);
11054 }
11055  
11056  
11057 XS_INTERNAL(XS_Lucy_Index_RawLexicon_next);
11058 0 XS_INTERNAL(XS_Lucy_Index_RawLexicon_next) {
11059 0 dXSARGS;
11060 lucy_RawLexicon* arg_self;
11061 LUCY_RawLex_Next_t method;
11062 bool retval;
11063  
11064 CFISH_UNUSED_VAR(cv);
11065 0 SP -= items;
11066 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11067 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11068 }
11069  
11070 /* Extract vars from Perl stack. */
11071 0 arg_self = (lucy_RawLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWLEXICON, NULL);
11072  
11073 /* Execute */
11074 0 method = CFISH_METHOD_PTR(LUCY_RAWLEXICON, LUCY_RawLex_Next);
11075 0 retval = method(arg_self);
11076 0 ST(0) = newSViv(!!retval);
11077 0 sv_2mortal( ST(0) );
11078 0 XSRETURN(1);
11079 }
11080  
11081 XS_INTERNAL(XS_Lucy_Index_RawLexicon_get_term);
11082 0 XS_INTERNAL(XS_Lucy_Index_RawLexicon_get_term) {
11083 0 dXSARGS;
11084 lucy_RawLexicon* arg_self;
11085 LUCY_RawLex_Get_Term_t method;
11086 cfish_Obj* retval;
11087  
11088 CFISH_UNUSED_VAR(cv);
11089 0 SP -= items;
11090 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11091 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11092 }
11093  
11094 /* Extract vars from Perl stack. */
11095 0 arg_self = (lucy_RawLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWLEXICON, NULL);
11096  
11097 /* Execute */
11098 0 method = CFISH_METHOD_PTR(LUCY_RAWLEXICON, LUCY_RawLex_Get_Term);
11099 0 retval = method(arg_self);
11100 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11101 0 sv_2mortal( ST(0) );
11102 0 XSRETURN(1);
11103 }
11104  
11105 XS_INTERNAL(XS_Lucy_Index_RawLexicon_doc_freq);
11106 0 XS_INTERNAL(XS_Lucy_Index_RawLexicon_doc_freq) {
11107 0 dXSARGS;
11108 lucy_RawLexicon* arg_self;
11109 LUCY_RawLex_Doc_Freq_t method;
11110 int32_t retval;
11111  
11112 CFISH_UNUSED_VAR(cv);
11113 0 SP -= items;
11114 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11115 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11116 }
11117  
11118 /* Extract vars from Perl stack. */
11119 0 arg_self = (lucy_RawLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWLEXICON, NULL);
11120  
11121 /* Execute */
11122 0 method = CFISH_METHOD_PTR(LUCY_RAWLEXICON, LUCY_RawLex_Doc_Freq);
11123 0 retval = method(arg_self);
11124 0 ST(0) = newSViv(retval);
11125 0 sv_2mortal( ST(0) );
11126 0 XSRETURN(1);
11127 }
11128  
11129 XS_INTERNAL(XS_Lucy_Index_SegLexicon_new);
11130 0 XS_INTERNAL(XS_Lucy_Index_SegLexicon_new) {
11131 0 dXSARGS;
11132 static const XSBind_ParamSpec param_specs[4] = {
11133 XSBIND_PARAM("schema", 1),
11134 XSBIND_PARAM("folder", 1),
11135 XSBIND_PARAM("segment", 1),
11136 XSBIND_PARAM("field", 1)
11137 };
11138 int32_t locations[4];
11139 SV *sv;
11140 lucy_SegLexicon* arg_self;
11141 lucy_Schema* arg_schema;
11142 lucy_Folder* arg_folder;
11143 lucy_Segment* arg_segment;
11144 cfish_String* arg_field;
11145 lucy_SegLexicon* retval;
11146  
11147 CFISH_UNUSED_VAR(cv);
11148 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
11149 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
11150 }
11151 0 SP -= items;
11152  
11153 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
11154 locations, 4);
11155 0 sv = ST(locations[0]);
11156 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
11157 0 sv = ST(locations[1]);
11158 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
11159 0 sv = ST(locations[2]);
11160 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
11161 0 sv = ST(locations[3]);
11162 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
11163 0 arg_self = (lucy_SegLexicon*)XSBind_new_blank_obj(aTHX_ ST(0));
11164  
11165 0 retval = lucy_SegLex_init(arg_self, arg_schema, arg_folder, arg_segment, arg_field);
11166 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
11167 0 XSRETURN(1);
11168 }
11169  
11170  
11171 XS_INTERNAL(XS_Lucy_Index_SegLexicon_get_term_info);
11172 3 XS_INTERNAL(XS_Lucy_Index_SegLexicon_get_term_info) {
11173 3 dXSARGS;
11174 lucy_SegLexicon* arg_self;
11175 LUCY_SegLex_Get_Term_Info_t method;
11176 lucy_TermInfo* retval;
11177  
11178 CFISH_UNUSED_VAR(cv);
11179 3 SP -= items;
11180 3 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 3 3
11181 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11182 }
11183  
11184 /* Extract vars from Perl stack. */
11185 3 arg_self = (lucy_SegLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXICON, NULL);
11186  
11187 /* Execute */
11188 3 method = CFISH_METHOD_PTR(LUCY_SEGLEXICON, LUCY_SegLex_Get_Term_Info);
11189 3 retval = method(arg_self);
11190 3 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11191 3 sv_2mortal( ST(0) );
11192 3 XSRETURN(1);
11193 }
11194  
11195 XS_INTERNAL(XS_Lucy_Index_SegLexicon_get_field_num);
11196 0 XS_INTERNAL(XS_Lucy_Index_SegLexicon_get_field_num) {
11197 0 dXSARGS;
11198 lucy_SegLexicon* arg_self;
11199 LUCY_SegLex_Get_Field_Num_t method;
11200 int32_t retval;
11201  
11202 CFISH_UNUSED_VAR(cv);
11203 0 SP -= items;
11204 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11205 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11206 }
11207  
11208 /* Extract vars from Perl stack. */
11209 0 arg_self = (lucy_SegLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXICON, NULL);
11210  
11211 /* Execute */
11212 0 method = CFISH_METHOD_PTR(LUCY_SEGLEXICON, LUCY_SegLex_Get_Field_Num);
11213 0 retval = method(arg_self);
11214 0 ST(0) = newSViv(retval);
11215 0 sv_2mortal( ST(0) );
11216 0 XSRETURN(1);
11217 }
11218  
11219 XS_INTERNAL(XS_Lucy_Index_SegLexicon_get_segment);
11220 0 XS_INTERNAL(XS_Lucy_Index_SegLexicon_get_segment) {
11221 0 dXSARGS;
11222 lucy_SegLexicon* arg_self;
11223 LUCY_SegLex_Get_Segment_t method;
11224 lucy_Segment* retval;
11225  
11226 CFISH_UNUSED_VAR(cv);
11227 0 SP -= items;
11228 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11229 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11230 }
11231  
11232 /* Extract vars from Perl stack. */
11233 0 arg_self = (lucy_SegLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXICON, NULL);
11234  
11235 /* Execute */
11236 0 method = CFISH_METHOD_PTR(LUCY_SEGLEXICON, LUCY_SegLex_Get_Segment);
11237 0 retval = method(arg_self);
11238 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11239 0 sv_2mortal( ST(0) );
11240 0 XSRETURN(1);
11241 }
11242  
11243 XS_INTERNAL(XS_Lucy_Index_SegLexicon_seek);
11244 3 XS_INTERNAL(XS_Lucy_Index_SegLexicon_seek) {
11245 3 dXSARGS;
11246 SV *sv;
11247 lucy_SegLexicon* arg_self;
11248 cfish_Obj* arg_target;
11249 LUCY_SegLex_Seek_t method;
11250  
11251 CFISH_UNUSED_VAR(cv);
11252 3 SP -= items;
11253 3 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 3 0 3
if (items < 1 || items > 2) { 0 3 3
11254 0 XSBind_invalid_args_error(aTHX_ cv, "self, [target]");
11255 }
11256  
11257 /* Extract vars from Perl stack. */
11258 3 arg_self = (lucy_SegLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXICON, NULL);
11259 3 sv = ST(1);
11260 3 ▶ arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 3 0 3
11261  
11262 /* Execute */
11263 3 method = CFISH_METHOD_PTR(LUCY_SEGLEXICON, LUCY_SegLex_Seek);
11264 3 method(arg_self, arg_target);
11265 3 XSRETURN(0);
11266 }
11267  
11268 XS_INTERNAL(XS_Lucy_Index_SegLexicon_reset);
11269 1 XS_INTERNAL(XS_Lucy_Index_SegLexicon_reset) {
11270 1 dXSARGS;
11271 lucy_SegLexicon* arg_self;
11272 LUCY_SegLex_Reset_t method;
11273  
11274 CFISH_UNUSED_VAR(cv);
11275 1 SP -= items;
11276 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
11277 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11278 }
11279  
11280 /* Extract vars from Perl stack. */
11281 1 arg_self = (lucy_SegLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXICON, NULL);
11282  
11283 /* Execute */
11284 1 method = CFISH_METHOD_PTR(LUCY_SEGLEXICON, LUCY_SegLex_Reset);
11285 1 method(arg_self);
11286 1 XSRETURN(0);
11287 }
11288  
11289 XS_INTERNAL(XS_Lucy_Index_SegLexicon_get_term);
11290 9120 XS_INTERNAL(XS_Lucy_Index_SegLexicon_get_term) {
11291 9120 dXSARGS;
11292 lucy_SegLexicon* arg_self;
11293 LUCY_SegLex_Get_Term_t method;
11294 cfish_Obj* retval;
11295  
11296 CFISH_UNUSED_VAR(cv);
11297 9120 SP -= items;
11298 9120 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 9120 9120
11299 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11300 }
11301  
11302 /* Extract vars from Perl stack. */
11303 9120 arg_self = (lucy_SegLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXICON, NULL);
11304  
11305 /* Execute */
11306 9120 method = CFISH_METHOD_PTR(LUCY_SEGLEXICON, LUCY_SegLex_Get_Term);
11307 9120 retval = method(arg_self);
11308 9120 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11309 9120 sv_2mortal( ST(0) );
11310 9120 XSRETURN(1);
11311 }
11312  
11313 XS_INTERNAL(XS_Lucy_Index_SegLexicon_doc_freq);
11314 0 XS_INTERNAL(XS_Lucy_Index_SegLexicon_doc_freq) {
11315 0 dXSARGS;
11316 lucy_SegLexicon* arg_self;
11317 LUCY_SegLex_Doc_Freq_t method;
11318 int32_t retval;
11319  
11320 CFISH_UNUSED_VAR(cv);
11321 0 SP -= items;
11322 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11323 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11324 }
11325  
11326 /* Extract vars from Perl stack. */
11327 0 arg_self = (lucy_SegLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXICON, NULL);
11328  
11329 /* Execute */
11330 0 method = CFISH_METHOD_PTR(LUCY_SEGLEXICON, LUCY_SegLex_Doc_Freq);
11331 0 retval = method(arg_self);
11332 0 ST(0) = newSViv(retval);
11333 0 sv_2mortal( ST(0) );
11334 0 XSRETURN(1);
11335 }
11336  
11337 XS_INTERNAL(XS_Lucy_Index_SegLexicon_next);
11338 9124 XS_INTERNAL(XS_Lucy_Index_SegLexicon_next) {
11339 9124 dXSARGS;
11340 lucy_SegLexicon* arg_self;
11341 LUCY_SegLex_Next_t method;
11342 bool retval;
11343  
11344 CFISH_UNUSED_VAR(cv);
11345 9124 SP -= items;
11346 9124 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 9124 9124
11347 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11348 }
11349  
11350 /* Extract vars from Perl stack. */
11351 9124 arg_self = (lucy_SegLexicon*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXICON, NULL);
11352  
11353 /* Execute */
11354 9124 method = CFISH_METHOD_PTR(LUCY_SEGLEXICON, LUCY_SegLex_Next);
11355 9124 retval = method(arg_self);
11356 9124 ST(0) = newSViv(!!retval);
11357 9124 sv_2mortal( ST(0) );
11358 9124 XSRETURN(1);
11359 }
11360  
11361 XS_INTERNAL(XS_Lucy_Index_Segment_new);
11362 5 XS_INTERNAL(XS_Lucy_Index_Segment_new) {
11363 5 dXSARGS;
11364 static const XSBind_ParamSpec param_specs[1] = {
11365 XSBIND_PARAM("number", 1)
11366 };
11367 int32_t locations[1];
11368 SV *sv;
11369 lucy_Segment* arg_self;
11370 int64_t arg_number;
11371 lucy_Segment* retval;
11372  
11373 CFISH_UNUSED_VAR(cv);
11374 5 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 5 5
11375 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
11376 }
11377 5 SP -= items;
11378  
11379 5 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
11380 locations, 1);
11381 5 sv = ST(locations[0]);
11382 5 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 5 5
11383 0 XSBind_undef_arg_error(aTHX_ "number");
11384 }
11385 5 arg_number = (int64_t)SvNV(sv);
11386 5 arg_self = (lucy_Segment*)XSBind_new_blank_obj(aTHX_ ST(0));
11387  
11388 5 retval = lucy_Seg_init(arg_self, arg_number);
11389 5 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
11390 5 XSRETURN(1);
11391 }
11392  
11393  
11394 XS_INTERNAL(XS_Lucy_Index_Segment_add_field);
11395 0 XS_INTERNAL(XS_Lucy_Index_Segment_add_field) {
11396 0 dXSARGS;
11397 SV *sv;
11398 lucy_Segment* arg_self;
11399 cfish_String* arg_field;
11400 LUCY_Seg_Add_Field_t method;
11401 int32_t retval;
11402  
11403 CFISH_UNUSED_VAR(cv);
11404 0 SP -= items;
11405 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
11406 0 XSBind_invalid_args_error(aTHX_ cv, "self, field");
11407 }
11408  
11409 /* Extract vars from Perl stack. */
11410 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11411 0 sv = ST(1);
11412 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
11413  
11414 /* Execute */
11415 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Add_Field);
11416 0 retval = method(arg_self, arg_field);
11417 0 ST(0) = newSViv(retval);
11418 0 sv_2mortal( ST(0) );
11419 0 XSRETURN(1);
11420 }
11421  
11422 XS_INTERNAL(XS_Lucy_Index_Segment_store_metadata);
11423 8 XS_INTERNAL(XS_Lucy_Index_Segment_store_metadata) {
11424 8 dXSARGS;
11425 static const XSBind_ParamSpec param_specs[2] = {
11426 XSBIND_PARAM("key", 1),
11427 XSBIND_PARAM("metadata", 1)
11428 };
11429 int32_t locations[2];
11430 SV *sv;
11431 lucy_Segment* arg_self;
11432 cfish_String* arg_key;
11433 cfish_Obj* arg_metadata;
11434 LUCY_Seg_Store_Metadata_t method;
11435  
11436 CFISH_UNUSED_VAR(cv);
11437 8 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 8 8
11438 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
11439 }
11440 8 SP -= items;
11441  
11442 /* Locate args on Perl stack. */
11443 8 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
11444 locations, 2);
11445 8 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11446 8 sv = ST(locations[0]);
11447 8 arg_key = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "key", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
11448 8 sv = ST(locations[1]);
11449 8 arg_metadata = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "metadata", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
11450  
11451 /* Execute */
11452 8 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Store_Metadata);
11453 8 arg_metadata = (cfish_Obj*)CFISH_INCREF(arg_metadata);
11454 8 method(arg_self, arg_key, arg_metadata);
11455 8 XSRETURN(0);
11456 }
11457  
11458 XS_INTERNAL(XS_Lucy_Index_Segment_fetch_metadata);
11459 13 XS_INTERNAL(XS_Lucy_Index_Segment_fetch_metadata) {
11460 13 dXSARGS;
11461 SV *sv;
11462 lucy_Segment* arg_self;
11463 cfish_String* arg_key;
11464 LUCY_Seg_Fetch_Metadata_t method;
11465 cfish_Obj* retval;
11466  
11467 CFISH_UNUSED_VAR(cv);
11468 13 SP -= items;
11469 13 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 13 13
11470 0 XSBind_invalid_args_error(aTHX_ cv, "self, key");
11471 }
11472  
11473 /* Extract vars from Perl stack. */
11474 13 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11475 13 sv = ST(1);
11476 13 arg_key = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "key", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
11477  
11478 /* Execute */
11479 13 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Fetch_Metadata);
11480 13 retval = method(arg_self, arg_key);
11481 13 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11482 13 sv_2mortal( ST(0) );
11483 13 XSRETURN(1);
11484 }
11485  
11486 XS_INTERNAL(XS_Lucy_Index_Segment_field_num);
11487 0 XS_INTERNAL(XS_Lucy_Index_Segment_field_num) {
11488 0 dXSARGS;
11489 SV *sv;
11490 lucy_Segment* arg_self;
11491 cfish_String* arg_field;
11492 LUCY_Seg_Field_Num_t method;
11493 int32_t retval;
11494  
11495 CFISH_UNUSED_VAR(cv);
11496 0 SP -= items;
11497 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
11498 0 XSBind_invalid_args_error(aTHX_ cv, "self, field");
11499 }
11500  
11501 /* Extract vars from Perl stack. */
11502 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11503 0 sv = ST(1);
11504 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
11505  
11506 /* Execute */
11507 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Field_Num);
11508 0 retval = method(arg_self, arg_field);
11509 0 ST(0) = newSViv(retval);
11510 0 sv_2mortal( ST(0) );
11511 0 XSRETURN(1);
11512 }
11513  
11514 XS_INTERNAL(XS_Lucy_Index_Segment_field_name);
11515 0 XS_INTERNAL(XS_Lucy_Index_Segment_field_name) {
11516 0 dXSARGS;
11517 SV *sv;
11518 lucy_Segment* arg_self;
11519 int32_t arg_field_num;
11520 LUCY_Seg_Field_Name_t method;
11521 cfish_String* retval;
11522  
11523 CFISH_UNUSED_VAR(cv);
11524 0 SP -= items;
11525 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
11526 0 XSBind_invalid_args_error(aTHX_ cv, "self, field_num");
11527 }
11528  
11529 /* Extract vars from Perl stack. */
11530 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11531 0 sv = ST(1);
11532 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
11533 0 XSBind_undef_arg_error(aTHX_ "field_num");
11534 }
11535 0 arg_field_num = (int32_t)SvIV(sv);
11536  
11537 /* Execute */
11538 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Field_Name);
11539 0 retval = method(arg_self, arg_field_num);
11540 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11541 0 sv_2mortal( ST(0) );
11542 0 XSRETURN(1);
11543 }
11544  
11545 XS_INTERNAL(XS_Lucy_Index_Segment_get_name);
11546 31 XS_INTERNAL(XS_Lucy_Index_Segment_get_name) {
11547 31 dXSARGS;
11548 lucy_Segment* arg_self;
11549 LUCY_Seg_Get_Name_t method;
11550 cfish_String* retval;
11551  
11552 CFISH_UNUSED_VAR(cv);
11553 31 SP -= items;
11554 31 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 31 31
11555 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11556 }
11557  
11558 /* Extract vars from Perl stack. */
11559 31 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11560  
11561 /* Execute */
11562 31 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Get_Name);
11563 31 retval = method(arg_self);
11564 31 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11565 31 sv_2mortal( ST(0) );
11566 31 XSRETURN(1);
11567 }
11568  
11569 XS_INTERNAL(XS_Lucy_Index_Segment_get_number);
11570 0 XS_INTERNAL(XS_Lucy_Index_Segment_get_number) {
11571 0 dXSARGS;
11572 lucy_Segment* arg_self;
11573 LUCY_Seg_Get_Number_t method;
11574 int64_t retval;
11575  
11576 CFISH_UNUSED_VAR(cv);
11577 0 SP -= items;
11578 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11579 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11580 }
11581  
11582 /* Extract vars from Perl stack. */
11583 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11584  
11585 /* Execute */
11586 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Get_Number);
11587 0 retval = method(arg_self);
11588 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
11589 0 sv_2mortal( ST(0) );
11590 0 XSRETURN(1);
11591 }
11592  
11593 XS_INTERNAL(XS_Lucy_Index_Segment_set_count);
11594 0 XS_INTERNAL(XS_Lucy_Index_Segment_set_count) {
11595 0 dXSARGS;
11596 SV *sv;
11597 lucy_Segment* arg_self;
11598 int64_t arg_count;
11599 LUCY_Seg_Set_Count_t method;
11600  
11601 CFISH_UNUSED_VAR(cv);
11602 0 SP -= items;
11603 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
11604 0 XSBind_invalid_args_error(aTHX_ cv, "self, count");
11605 }
11606  
11607 /* Extract vars from Perl stack. */
11608 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11609 0 sv = ST(1);
11610 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
11611 0 XSBind_undef_arg_error(aTHX_ "count");
11612 }
11613 0 arg_count = (int64_t)SvNV(sv);
11614  
11615 /* Execute */
11616 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Set_Count);
11617 0 method(arg_self, arg_count);
11618 0 XSRETURN(0);
11619 }
11620  
11621 XS_INTERNAL(XS_Lucy_Index_Segment_get_count);
11622 0 XS_INTERNAL(XS_Lucy_Index_Segment_get_count) {
11623 0 dXSARGS;
11624 lucy_Segment* arg_self;
11625 LUCY_Seg_Get_Count_t method;
11626 int64_t retval;
11627  
11628 CFISH_UNUSED_VAR(cv);
11629 0 SP -= items;
11630 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11631 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11632 }
11633  
11634 /* Extract vars from Perl stack. */
11635 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11636  
11637 /* Execute */
11638 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Get_Count);
11639 0 retval = method(arg_self);
11640 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
11641 0 sv_2mortal( ST(0) );
11642 0 XSRETURN(1);
11643 }
11644  
11645 XS_INTERNAL(XS_Lucy_Index_Segment_increment_count);
11646 0 XS_INTERNAL(XS_Lucy_Index_Segment_increment_count) {
11647 0 dXSARGS;
11648 SV *sv;
11649 lucy_Segment* arg_self;
11650 int64_t arg_increment;
11651 LUCY_Seg_Increment_Count_t method;
11652 int64_t retval;
11653  
11654 CFISH_UNUSED_VAR(cv);
11655 0 SP -= items;
11656 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
11657 0 XSBind_invalid_args_error(aTHX_ cv, "self, increment");
11658 }
11659  
11660 /* Extract vars from Perl stack. */
11661 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11662 0 sv = ST(1);
11663 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
11664 0 XSBind_undef_arg_error(aTHX_ "increment");
11665 }
11666 0 arg_increment = (int64_t)SvNV(sv);
11667  
11668 /* Execute */
11669 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Increment_Count);
11670 0 retval = method(arg_self, arg_increment);
11671 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
11672 0 sv_2mortal( ST(0) );
11673 0 XSRETURN(1);
11674 }
11675  
11676 XS_INTERNAL(XS_Lucy_Index_Segment_get_metadata);
11677 0 XS_INTERNAL(XS_Lucy_Index_Segment_get_metadata) {
11678 0 dXSARGS;
11679 lucy_Segment* arg_self;
11680 LUCY_Seg_Get_Metadata_t method;
11681 cfish_Hash* retval;
11682  
11683 CFISH_UNUSED_VAR(cv);
11684 0 SP -= items;
11685 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11686 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11687 }
11688  
11689 /* Extract vars from Perl stack. */
11690 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11691  
11692 /* Execute */
11693 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Get_Metadata);
11694 0 retval = method(arg_self);
11695 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11696 0 sv_2mortal( ST(0) );
11697 0 XSRETURN(1);
11698 }
11699  
11700 XS_INTERNAL(XS_Lucy_Index_Segment_write_file);
11701 1 XS_INTERNAL(XS_Lucy_Index_Segment_write_file) {
11702 1 dXSARGS;
11703 SV *sv;
11704 lucy_Segment* arg_self;
11705 lucy_Folder* arg_folder;
11706 LUCY_Seg_Write_File_t method;
11707  
11708 CFISH_UNUSED_VAR(cv);
11709 1 SP -= items;
11710 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
11711 0 XSBind_invalid_args_error(aTHX_ cv, "self, folder");
11712 }
11713  
11714 /* Extract vars from Perl stack. */
11715 1 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11716 1 sv = ST(1);
11717 1 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
11718  
11719 /* Execute */
11720 1 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Write_File);
11721 1 method(arg_self, arg_folder);
11722 1 XSRETURN(0);
11723 }
11724  
11725 XS_INTERNAL(XS_Lucy_Index_Segment_read_file);
11726 3 XS_INTERNAL(XS_Lucy_Index_Segment_read_file) {
11727 3 dXSARGS;
11728 SV *sv;
11729 lucy_Segment* arg_self;
11730 lucy_Folder* arg_folder;
11731 LUCY_Seg_Read_File_t method;
11732 bool retval;
11733  
11734 CFISH_UNUSED_VAR(cv);
11735 3 SP -= items;
11736 3 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 3 3
11737 0 XSBind_invalid_args_error(aTHX_ cv, "self, folder");
11738 }
11739  
11740 /* Extract vars from Perl stack. */
11741 3 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11742 3 sv = ST(1);
11743 3 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
11744  
11745 /* Execute */
11746 3 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Read_File);
11747 3 retval = method(arg_self, arg_folder);
11748 3 ST(0) = newSViv(!!retval);
11749 3 sv_2mortal( ST(0) );
11750 3 XSRETURN(1);
11751 }
11752  
11753 XS_INTERNAL(XS_Lucy_Index_Segment_compare_to);
11754 0 XS_INTERNAL(XS_Lucy_Index_Segment_compare_to) {
11755 0 dXSARGS;
11756 SV *sv;
11757 lucy_Segment* arg_self;
11758 cfish_Obj* arg_other;
11759 LUCY_Seg_Compare_To_t method;
11760 int32_t retval;
11761  
11762 CFISH_UNUSED_VAR(cv);
11763 0 SP -= items;
11764 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
11765 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
11766 }
11767  
11768 /* Extract vars from Perl stack. */
11769 0 arg_self = (lucy_Segment*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGMENT, NULL);
11770 0 sv = ST(1);
11771 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
11772  
11773 /* Execute */
11774 0 method = CFISH_METHOD_PTR(LUCY_SEGMENT, LUCY_Seg_Compare_To);
11775 0 retval = method(arg_self, arg_other);
11776 0 ST(0) = newSViv(retval);
11777 0 sv_2mortal( ST(0) );
11778 0 XSRETURN(1);
11779 }
11780  
11781 XS_INTERNAL(XS_Lucy_Index_Similarity_new);
11782 10 XS_INTERNAL(XS_Lucy_Index_Similarity_new) {
11783 10 dXSARGS;
11784 lucy_Similarity* arg_self;
11785 lucy_Similarity* retval;
11786  
11787 CFISH_UNUSED_VAR(cv);
11788 10 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 10 10
11789 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
11790 }
11791 10 SP -= items;
11792  
11793 10 arg_self = (lucy_Similarity*)XSBind_new_blank_obj(aTHX_ ST(0));
11794  
11795 10 retval = lucy_Sim_init(arg_self);
11796 10 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
11797 10 XSRETURN(1);
11798 }
11799  
11800  
11801 XS_INTERNAL(XS_Lucy_Index_Similarity_make_posting);
11802 0 XS_INTERNAL(XS_Lucy_Index_Similarity_make_posting) {
11803 0 dXSARGS;
11804 lucy_Similarity* arg_self;
11805 LUCY_Sim_Make_Posting_t method;
11806 lucy_Posting* retval;
11807  
11808 CFISH_UNUSED_VAR(cv);
11809 0 SP -= items;
11810 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
11811 0 XSBind_invalid_args_error(aTHX_ cv, "self");
11812 }
11813  
11814 /* Extract vars from Perl stack. */
11815 0 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
11816  
11817 /* Execute */
11818 0 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Make_Posting);
11819 0 retval = method(arg_self);
11820 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11821 0 CFISH_DECREF(retval);
11822 0 sv_2mortal( ST(0) );
11823 0 XSRETURN(1);
11824 }
11825  
11826 XS_INTERNAL(XS_Lucy_Index_Similarity_make_posting_writer);
11827 0 XS_INTERNAL(XS_Lucy_Index_Similarity_make_posting_writer) {
11828 0 dXSARGS;
11829 static const XSBind_ParamSpec param_specs[5] = {
11830 XSBIND_PARAM("schema", 1),
11831 XSBIND_PARAM("snapshot", 1),
11832 XSBIND_PARAM("segment", 1),
11833 XSBIND_PARAM("polyreader", 1),
11834 XSBIND_PARAM("field_num", 1)
11835 };
11836 int32_t locations[5];
11837 SV *sv;
11838 lucy_Similarity* arg_self;
11839 lucy_Schema* arg_schema;
11840 lucy_Snapshot* arg_snapshot;
11841 lucy_Segment* arg_segment;
11842 lucy_PolyReader* arg_polyreader;
11843 int32_t arg_field_num;
11844 LUCY_Sim_Make_Posting_Writer_t method;
11845 lucy_PostingWriter* retval;
11846  
11847 CFISH_UNUSED_VAR(cv);
11848 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
11849 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
11850 }
11851 0 SP -= items;
11852  
11853 /* Locate args on Perl stack. */
11854 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
11855 locations, 5);
11856 0 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
11857 0 sv = ST(locations[0]);
11858 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
11859 0 sv = ST(locations[1]);
11860 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
11861 0 sv = ST(locations[2]);
11862 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
11863 0 sv = ST(locations[3]);
11864 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
11865 0 sv = ST(locations[4]);
11866 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
11867 0 XSBind_undef_arg_error(aTHX_ "field_num");
11868 }
11869 0 arg_field_num = (int32_t)SvIV(sv);
11870  
11871 /* Execute */
11872 0 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Make_Posting_Writer);
11873 0 retval = method(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader, arg_field_num);
11874 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
11875 0 CFISH_DECREF(retval);
11876 0 sv_2mortal( ST(0) );
11877 0 XSRETURN(1);
11878 }
11879  
11880 XS_INTERNAL(XS_Lucy_Index_Similarity_tf);
11881 2 XS_INTERNAL(XS_Lucy_Index_Similarity_tf) {
11882 2 dXSARGS;
11883 SV *sv;
11884 lucy_Similarity* arg_self;
11885 float arg_freq;
11886 LUCY_Sim_TF_t method;
11887 float retval;
11888  
11889 CFISH_UNUSED_VAR(cv);
11890 2 SP -= items;
11891 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
11892 0 XSBind_invalid_args_error(aTHX_ cv, "self, freq");
11893 }
11894  
11895 /* Extract vars from Perl stack. */
11896 2 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
11897 2 sv = ST(1);
11898 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
11899 0 XSBind_undef_arg_error(aTHX_ "freq");
11900 }
11901 2 arg_freq = (float)SvNV(sv);
11902  
11903 /* Execute */
11904 2 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_TF);
11905 2 retval = method(arg_self, arg_freq);
11906 2 ST(0) = newSVnv(retval);
11907 2 sv_2mortal( ST(0) );
11908 2 XSRETURN(1);
11909 }
11910  
11911 XS_INTERNAL(XS_Lucy_Index_Similarity_idf);
11912 2 XS_INTERNAL(XS_Lucy_Index_Similarity_idf) {
11913 2 dXSARGS;
11914 static const XSBind_ParamSpec param_specs[2] = {
11915 XSBIND_PARAM("doc_freq", 1),
11916 XSBIND_PARAM("total_docs", 1)
11917 };
11918 int32_t locations[2];
11919 SV *sv;
11920 lucy_Similarity* arg_self;
11921 int64_t arg_doc_freq;
11922 int64_t arg_total_docs;
11923 LUCY_Sim_IDF_t method;
11924 float retval;
11925  
11926 CFISH_UNUSED_VAR(cv);
11927 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
11928 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
11929 }
11930 2 SP -= items;
11931  
11932 /* Locate args on Perl stack. */
11933 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
11934 locations, 2);
11935 2 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
11936 2 sv = ST(locations[0]);
11937 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
11938 0 XSBind_undef_arg_error(aTHX_ "doc_freq");
11939 }
11940 2 arg_doc_freq = (int64_t)SvNV(sv);
11941 2 sv = ST(locations[1]);
11942 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
11943 0 XSBind_undef_arg_error(aTHX_ "total_docs");
11944 }
11945 2 arg_total_docs = (int64_t)SvNV(sv);
11946  
11947 /* Execute */
11948 2 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_IDF);
11949 2 retval = method(arg_self, arg_doc_freq, arg_total_docs);
11950 2 ST(0) = newSVnv(retval);
11951 2 sv_2mortal( ST(0) );
11952 2 XSRETURN(1);
11953 }
11954  
11955 XS_INTERNAL(XS_Lucy_Index_Similarity_coord);
11956 2 XS_INTERNAL(XS_Lucy_Index_Similarity_coord) {
11957 2 dXSARGS;
11958 static const XSBind_ParamSpec param_specs[2] = {
11959 XSBIND_PARAM("overlap", 1),
11960 XSBIND_PARAM("max_overlap", 1)
11961 };
11962 int32_t locations[2];
11963 SV *sv;
11964 lucy_Similarity* arg_self;
11965 uint32_t arg_overlap;
11966 uint32_t arg_max_overlap;
11967 LUCY_Sim_Coord_t method;
11968 float retval;
11969  
11970 CFISH_UNUSED_VAR(cv);
11971 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
11972 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
11973 }
11974 2 SP -= items;
11975  
11976 /* Locate args on Perl stack. */
11977 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
11978 locations, 2);
11979 2 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
11980 2 sv = ST(locations[0]);
11981 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
11982 0 XSBind_undef_arg_error(aTHX_ "overlap");
11983 }
11984 2 arg_overlap = (uint32_t)SvUV(sv);
11985 2 sv = ST(locations[1]);
11986 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
11987 0 XSBind_undef_arg_error(aTHX_ "max_overlap");
11988 }
11989 2 arg_max_overlap = (uint32_t)SvUV(sv);
11990  
11991 /* Execute */
11992 2 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Coord);
11993 2 retval = method(arg_self, arg_overlap, arg_max_overlap);
11994 2 ST(0) = newSVnv(retval);
11995 2 sv_2mortal( ST(0) );
11996 2 XSRETURN(1);
11997 }
11998  
11999 XS_INTERNAL(XS_Lucy_Index_Similarity_length_norm);
12000 0 XS_INTERNAL(XS_Lucy_Index_Similarity_length_norm) {
12001 0 dXSARGS;
12002 SV *sv;
12003 lucy_Similarity* arg_self;
12004 uint32_t arg_num_tokens;
12005 LUCY_Sim_Length_Norm_t method;
12006 float retval;
12007  
12008 CFISH_UNUSED_VAR(cv);
12009 0 SP -= items;
12010 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
12011 0 XSBind_invalid_args_error(aTHX_ cv, "self, num_tokens");
12012 }
12013  
12014 /* Extract vars from Perl stack. */
12015 0 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12016 0 sv = ST(1);
12017 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12018 0 XSBind_undef_arg_error(aTHX_ "num_tokens");
12019 }
12020 0 arg_num_tokens = (uint32_t)SvUV(sv);
12021  
12022 /* Execute */
12023 0 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Length_Norm);
12024 0 retval = method(arg_self, arg_num_tokens);
12025 0 ST(0) = newSVnv(retval);
12026 0 sv_2mortal( ST(0) );
12027 0 XSRETURN(1);
12028 }
12029  
12030 XS_INTERNAL(XS_Lucy_Index_Similarity_query_norm);
12031 0 XS_INTERNAL(XS_Lucy_Index_Similarity_query_norm) {
12032 0 dXSARGS;
12033 SV *sv;
12034 lucy_Similarity* arg_self;
12035 float arg_sum_of_squared_weights;
12036 LUCY_Sim_Query_Norm_t method;
12037 float retval;
12038  
12039 CFISH_UNUSED_VAR(cv);
12040 0 SP -= items;
12041 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
12042 0 XSBind_invalid_args_error(aTHX_ cv, "self, sum_of_squared_weights");
12043 }
12044  
12045 /* Extract vars from Perl stack. */
12046 0 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12047 0 sv = ST(1);
12048 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12049 0 XSBind_undef_arg_error(aTHX_ "sum_of_squared_weights");
12050 }
12051 0 arg_sum_of_squared_weights = (float)SvNV(sv);
12052  
12053 /* Execute */
12054 0 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Query_Norm);
12055 0 retval = method(arg_self, arg_sum_of_squared_weights);
12056 0 ST(0) = newSVnv(retval);
12057 0 sv_2mortal( ST(0) );
12058 0 XSRETURN(1);
12059 }
12060  
12061 XS_INTERNAL(XS_Lucy_Index_Similarity_encode_norm);
12062 258 XS_INTERNAL(XS_Lucy_Index_Similarity_encode_norm) {
12063 258 dXSARGS;
12064 SV *sv;
12065 lucy_Similarity* arg_self;
12066 float arg_f;
12067 LUCY_Sim_Encode_Norm_t method;
12068 uint8_t retval;
12069  
12070 CFISH_UNUSED_VAR(cv);
12071 258 SP -= items;
12072 258 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 258 258
12073 0 XSBind_invalid_args_error(aTHX_ cv, "self, f");
12074 }
12075  
12076 /* Extract vars from Perl stack. */
12077 258 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12078 258 sv = ST(1);
12079 258 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 258 258
12080 0 XSBind_undef_arg_error(aTHX_ "f");
12081 }
12082 258 arg_f = (float)SvNV(sv);
12083  
12084 /* Execute */
12085 258 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Encode_Norm);
12086 258 retval = method(arg_self, arg_f);
12087 258 ST(0) = newSVuv(retval);
12088 258 sv_2mortal( ST(0) );
12089 258 XSRETURN(1);
12090 }
12091  
12092 XS_INTERNAL(XS_Lucy_Index_Similarity_decode_norm);
12093 261 XS_INTERNAL(XS_Lucy_Index_Similarity_decode_norm) {
12094 261 dXSARGS;
12095 SV *sv;
12096 lucy_Similarity* arg_self;
12097 uint32_t arg_input;
12098 LUCY_Sim_Decode_Norm_t method;
12099 float retval;
12100  
12101 CFISH_UNUSED_VAR(cv);
12102 261 SP -= items;
12103 261 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 261 261
12104 0 XSBind_invalid_args_error(aTHX_ cv, "self, input");
12105 }
12106  
12107 /* Extract vars from Perl stack. */
12108 261 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12109 261 sv = ST(1);
12110 261 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 261 261
12111 0 XSBind_undef_arg_error(aTHX_ "input");
12112 }
12113 261 arg_input = (uint32_t)SvUV(sv);
12114  
12115 /* Execute */
12116 261 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Decode_Norm);
12117 261 retval = method(arg_self, arg_input);
12118 261 ST(0) = newSVnv(retval);
12119 261 sv_2mortal( ST(0) );
12120 261 XSRETURN(1);
12121 }
12122  
12123 XS_INTERNAL(XS_Lucy_Index_Similarity_dump);
12124 1 XS_INTERNAL(XS_Lucy_Index_Similarity_dump) {
12125 1 dXSARGS;
12126 lucy_Similarity* arg_self;
12127 LUCY_Sim_Dump_t method;
12128 cfish_Obj* retval;
12129  
12130 CFISH_UNUSED_VAR(cv);
12131 1 SP -= items;
12132 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
12133 0 XSBind_invalid_args_error(aTHX_ cv, "self");
12134 }
12135  
12136 /* Extract vars from Perl stack. */
12137 1 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12138  
12139 /* Execute */
12140 1 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Dump);
12141 1 retval = method(arg_self);
12142 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
12143 1 CFISH_DECREF(retval);
12144 1 sv_2mortal( ST(0) );
12145 1 XSRETURN(1);
12146 }
12147  
12148 XS_INTERNAL(XS_Lucy_Index_Similarity_load);
12149 1 XS_INTERNAL(XS_Lucy_Index_Similarity_load) {
12150 1 dXSARGS;
12151 SV *sv;
12152 lucy_Similarity* arg_self;
12153 cfish_Obj* arg_dump;
12154 LUCY_Sim_Load_t method;
12155 lucy_Similarity* retval;
12156  
12157 CFISH_UNUSED_VAR(cv);
12158 1 SP -= items;
12159 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
12160 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
12161 }
12162  
12163 /* Extract vars from Perl stack. */
12164 1 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12165 1 sv = ST(1);
12166 1 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
12167  
12168 /* Execute */
12169 1 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Load);
12170 1 retval = method(arg_self, arg_dump);
12171 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
12172 1 CFISH_DECREF(retval);
12173 1 sv_2mortal( ST(0) );
12174 1 XSRETURN(1);
12175 }
12176  
12177 XS_INTERNAL(XS_Lucy_Index_Similarity_equals);
12178 1 XS_INTERNAL(XS_Lucy_Index_Similarity_equals) {
12179 1 dXSARGS;
12180 SV *sv;
12181 lucy_Similarity* arg_self;
12182 cfish_Obj* arg_other;
12183 LUCY_Sim_Equals_t method;
12184 bool retval;
12185  
12186 CFISH_UNUSED_VAR(cv);
12187 1 SP -= items;
12188 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
12189 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
12190 }
12191  
12192 /* Extract vars from Perl stack. */
12193 1 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12194 1 sv = ST(1);
12195 1 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
12196  
12197 /* Execute */
12198 1 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Equals);
12199 1 retval = method(arg_self, arg_other);
12200 1 ST(0) = newSViv(!!retval);
12201 1 sv_2mortal( ST(0) );
12202 1 XSRETURN(1);
12203 }
12204  
12205 XS_INTERNAL(XS_Lucy_Index_Similarity_serialize);
12206 0 XS_INTERNAL(XS_Lucy_Index_Similarity_serialize) {
12207 0 dXSARGS;
12208 SV *sv;
12209 lucy_Similarity* arg_self;
12210 lucy_OutStream* arg_outstream;
12211 LUCY_Sim_Serialize_t method;
12212  
12213 CFISH_UNUSED_VAR(cv);
12214 0 SP -= items;
12215 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
12216 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
12217 }
12218  
12219 /* Extract vars from Perl stack. */
12220 0 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12221 0 sv = ST(1);
12222 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
12223  
12224 /* Execute */
12225 0 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Serialize);
12226 0 method(arg_self, arg_outstream);
12227 0 XSRETURN(0);
12228 }
12229  
12230 XS_INTERNAL(XS_Lucy_Index_Similarity_deserialize);
12231 0 XS_INTERNAL(XS_Lucy_Index_Similarity_deserialize) {
12232 0 dXSARGS;
12233 SV *sv;
12234 lucy_Similarity* arg_self;
12235 lucy_InStream* arg_instream;
12236 LUCY_Sim_Deserialize_t method;
12237 lucy_Similarity* retval;
12238  
12239 CFISH_UNUSED_VAR(cv);
12240 0 SP -= items;
12241 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
12242 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
12243 }
12244  
12245 /* Extract vars from Perl stack. */
12246 0 arg_self = (lucy_Similarity*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMILARITY, NULL);
12247 0 sv = ST(1);
12248 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
12249  
12250 /* Execute */
12251 0 method = CFISH_METHOD_PTR(LUCY_SIMILARITY, LUCY_Sim_Deserialize);
12252 0 arg_self = (lucy_Similarity*)CFISH_INCREF(arg_self);
12253 0 retval = method(arg_self, arg_instream);
12254 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
12255 0 CFISH_DECREF(retval);
12256 0 sv_2mortal( ST(0) );
12257 0 XSRETURN(1);
12258 }
12259  
12260 XS_INTERNAL(XS_Lucy_Index_Snapshot_new);
12261 6 XS_INTERNAL(XS_Lucy_Index_Snapshot_new) {
12262 6 dXSARGS;
12263 lucy_Snapshot* arg_self;
12264 lucy_Snapshot* retval;
12265  
12266 CFISH_UNUSED_VAR(cv);
12267 6 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 6 6
12268 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
12269 }
12270 6 SP -= items;
12271  
12272 6 arg_self = (lucy_Snapshot*)XSBind_new_blank_obj(aTHX_ ST(0));
12273  
12274 6 retval = lucy_Snapshot_init(arg_self);
12275 6 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
12276 6 XSRETURN(1);
12277 }
12278  
12279  
12280 XS_INTERNAL(XS_Lucy_Index_Snapshot_list);
12281 1 XS_INTERNAL(XS_Lucy_Index_Snapshot_list) {
12282 1 dXSARGS;
12283 lucy_Snapshot* arg_self;
12284 LUCY_Snapshot_List_t method;
12285 cfish_Vector* retval;
12286  
12287 CFISH_UNUSED_VAR(cv);
12288 1 SP -= items;
12289 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
12290 0 XSBind_invalid_args_error(aTHX_ cv, "self");
12291 }
12292  
12293 /* Extract vars from Perl stack. */
12294 1 arg_self = (lucy_Snapshot*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNAPSHOT, NULL);
12295  
12296 /* Execute */
12297 1 method = CFISH_METHOD_PTR(LUCY_SNAPSHOT, LUCY_Snapshot_List);
12298 1 retval = method(arg_self);
12299 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
12300 1 CFISH_DECREF(retval);
12301 1 sv_2mortal( ST(0) );
12302 1 XSRETURN(1);
12303 }
12304  
12305 XS_INTERNAL(XS_Lucy_Index_Snapshot_num_entries);
12306 0 XS_INTERNAL(XS_Lucy_Index_Snapshot_num_entries) {
12307 0 dXSARGS;
12308 lucy_Snapshot* arg_self;
12309 LUCY_Snapshot_Num_Entries_t method;
12310 uint32_t retval;
12311  
12312 CFISH_UNUSED_VAR(cv);
12313 0 SP -= items;
12314 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
12315 0 XSBind_invalid_args_error(aTHX_ cv, "self");
12316 }
12317  
12318 /* Extract vars from Perl stack. */
12319 0 arg_self = (lucy_Snapshot*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNAPSHOT, NULL);
12320  
12321 /* Execute */
12322 0 method = CFISH_METHOD_PTR(LUCY_SNAPSHOT, LUCY_Snapshot_Num_Entries);
12323 0 retval = method(arg_self);
12324 0 ST(0) = newSVuv(retval);
12325 0 sv_2mortal( ST(0) );
12326 0 XSRETURN(1);
12327 }
12328  
12329 XS_INTERNAL(XS_Lucy_Index_Snapshot_add_entry);
12330 4 XS_INTERNAL(XS_Lucy_Index_Snapshot_add_entry) {
12331 4 dXSARGS;
12332 SV *sv;
12333 lucy_Snapshot* arg_self;
12334 cfish_String* arg_entry;
12335 LUCY_Snapshot_Add_Entry_t method;
12336  
12337 CFISH_UNUSED_VAR(cv);
12338 4 SP -= items;
12339 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
12340 0 XSBind_invalid_args_error(aTHX_ cv, "self, entry");
12341 }
12342  
12343 /* Extract vars from Perl stack. */
12344 4 arg_self = (lucy_Snapshot*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNAPSHOT, NULL);
12345 4 sv = ST(1);
12346 4 arg_entry = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "entry", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
12347  
12348 /* Execute */
12349 4 method = CFISH_METHOD_PTR(LUCY_SNAPSHOT, LUCY_Snapshot_Add_Entry);
12350 4 method(arg_self, arg_entry);
12351 4 XSRETURN(0);
12352 }
12353  
12354 XS_INTERNAL(XS_Lucy_Index_Snapshot_delete_entry);
12355 1 XS_INTERNAL(XS_Lucy_Index_Snapshot_delete_entry) {
12356 1 dXSARGS;
12357 SV *sv;
12358 lucy_Snapshot* arg_self;
12359 cfish_String* arg_entry;
12360 LUCY_Snapshot_Delete_Entry_t method;
12361 bool retval;
12362  
12363 CFISH_UNUSED_VAR(cv);
12364 1 SP -= items;
12365 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
12366 0 XSBind_invalid_args_error(aTHX_ cv, "self, entry");
12367 }
12368  
12369 /* Extract vars from Perl stack. */
12370 1 arg_self = (lucy_Snapshot*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNAPSHOT, NULL);
12371 1 sv = ST(1);
12372 1 arg_entry = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "entry", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
12373  
12374 /* Execute */
12375 1 method = CFISH_METHOD_PTR(LUCY_SNAPSHOT, LUCY_Snapshot_Delete_Entry);
12376 1 retval = method(arg_self, arg_entry);
12377 1 ST(0) = newSViv(!!retval);
12378 1 sv_2mortal( ST(0) );
12379 1 XSRETURN(1);
12380 }
12381  
12382 XS_INTERNAL(XS_Lucy_Index_Snapshot_read_file);
12383 6 XS_INTERNAL(XS_Lucy_Index_Snapshot_read_file) {
12384 6 dXSARGS;
12385 static const XSBind_ParamSpec param_specs[2] = {
12386 XSBIND_PARAM("folder", 1),
12387 XSBIND_PARAM("path", 0)
12388 };
12389 int32_t locations[2];
12390 SV *sv;
12391 lucy_Snapshot* arg_self;
12392 lucy_Folder* arg_folder;
12393 cfish_String* arg_path;
12394 LUCY_Snapshot_Read_File_t method;
12395 lucy_Snapshot* retval;
12396  
12397 CFISH_UNUSED_VAR(cv);
12398 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
12399 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
12400 }
12401 6 SP -= items;
12402  
12403 /* Locate args on Perl stack. */
12404 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
12405 locations, 2);
12406 6 arg_self = (lucy_Snapshot*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNAPSHOT, NULL);
12407 6 sv = ST(locations[0]);
12408 6 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
12409 6 sv = ST(locations[1]);
12410 6 ▶ arg_path = locations[1] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = locations[1] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 1 5 6
12411  
12412 /* Execute */
12413 6 method = CFISH_METHOD_PTR(LUCY_SNAPSHOT, LUCY_Snapshot_Read_File);
12414 6 retval = method(arg_self, arg_folder, arg_path);
12415 6 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
12416 6 sv_2mortal( ST(0) );
12417 6 XSRETURN(1);
12418 }
12419  
12420 XS_INTERNAL(XS_Lucy_Index_Snapshot_write_file);
12421 2 XS_INTERNAL(XS_Lucy_Index_Snapshot_write_file) {
12422 2 dXSARGS;
12423 static const XSBind_ParamSpec param_specs[2] = {
12424 XSBIND_PARAM("folder", 1),
12425 XSBIND_PARAM("path", 0)
12426 };
12427 int32_t locations[2];
12428 SV *sv;
12429 lucy_Snapshot* arg_self;
12430 lucy_Folder* arg_folder;
12431 cfish_String* arg_path;
12432 LUCY_Snapshot_Write_File_t method;
12433  
12434 CFISH_UNUSED_VAR(cv);
12435 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
12436 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
12437 }
12438 2 SP -= items;
12439  
12440 /* Locate args on Perl stack. */
12441 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
12442 locations, 2);
12443 2 arg_self = (lucy_Snapshot*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNAPSHOT, NULL);
12444 2 sv = ST(locations[0]);
12445 2 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
12446 2 sv = ST(locations[1]);
12447 2 ▶ arg_path = locations[1] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = locations[1] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 2 2
12448  
12449 /* Execute */
12450 2 method = CFISH_METHOD_PTR(LUCY_SNAPSHOT, LUCY_Snapshot_Write_File);
12451 2 method(arg_self, arg_folder, arg_path);
12452 2 XSRETURN(0);
12453 }
12454  
12455 XS_INTERNAL(XS_Lucy_Index_Snapshot_set_path);
12456 1 XS_INTERNAL(XS_Lucy_Index_Snapshot_set_path) {
12457 1 dXSARGS;
12458 SV *sv;
12459 lucy_Snapshot* arg_self;
12460 cfish_String* arg_path;
12461 LUCY_Snapshot_Set_Path_t method;
12462  
12463 CFISH_UNUSED_VAR(cv);
12464 1 SP -= items;
12465 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
12466 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
12467 }
12468  
12469 /* Extract vars from Perl stack. */
12470 1 arg_self = (lucy_Snapshot*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNAPSHOT, NULL);
12471 1 sv = ST(1);
12472 1 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
12473  
12474 /* Execute */
12475 1 method = CFISH_METHOD_PTR(LUCY_SNAPSHOT, LUCY_Snapshot_Set_Path);
12476 1 method(arg_self, arg_path);
12477 1 XSRETURN(0);
12478 }
12479  
12480 XS_INTERNAL(XS_Lucy_Index_Snapshot_get_path);
12481 1 XS_INTERNAL(XS_Lucy_Index_Snapshot_get_path) {
12482 1 dXSARGS;
12483 lucy_Snapshot* arg_self;
12484 LUCY_Snapshot_Get_Path_t method;
12485 cfish_String* retval;
12486  
12487 CFISH_UNUSED_VAR(cv);
12488 1 SP -= items;
12489 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
12490 0 XSBind_invalid_args_error(aTHX_ cv, "self");
12491 }
12492  
12493 /* Extract vars from Perl stack. */
12494 1 arg_self = (lucy_Snapshot*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SNAPSHOT, NULL);
12495  
12496 /* Execute */
12497 1 method = CFISH_METHOD_PTR(LUCY_SNAPSHOT, LUCY_Snapshot_Get_Path);
12498 1 retval = method(arg_self);
12499 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
12500 1 sv_2mortal( ST(0) );
12501 1 XSRETURN(1);
12502 }
12503  
12504 XS_INTERNAL(XS_Lucy_Index_SortCache_get_cardinality);
12505 0 XS_INTERNAL(XS_Lucy_Index_SortCache_get_cardinality) {
12506 0 dXSARGS;
12507 lucy_SortCache* arg_self;
12508 LUCY_SortCache_Get_Cardinality_t method;
12509 int32_t retval;
12510  
12511 CFISH_UNUSED_VAR(cv);
12512 0 SP -= items;
12513 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
12514 0 XSBind_invalid_args_error(aTHX_ cv, "self");
12515 }
12516  
12517 /* Extract vars from Perl stack. */
12518 0 arg_self = (lucy_SortCache*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCACHE, NULL);
12519  
12520 /* Execute */
12521 0 method = CFISH_METHOD_PTR(LUCY_SORTCACHE, LUCY_SortCache_Get_Cardinality);
12522 0 retval = method(arg_self);
12523 0 ST(0) = newSViv(retval);
12524 0 sv_2mortal( ST(0) );
12525 0 XSRETURN(1);
12526 }
12527  
12528 XS_INTERNAL(XS_Lucy_Index_SortCache_get_ord_width);
12529 0 XS_INTERNAL(XS_Lucy_Index_SortCache_get_ord_width) {
12530 0 dXSARGS;
12531 lucy_SortCache* arg_self;
12532 LUCY_SortCache_Get_Ord_Width_t method;
12533 int32_t retval;
12534  
12535 CFISH_UNUSED_VAR(cv);
12536 0 SP -= items;
12537 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
12538 0 XSBind_invalid_args_error(aTHX_ cv, "self");
12539 }
12540  
12541 /* Extract vars from Perl stack. */
12542 0 arg_self = (lucy_SortCache*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCACHE, NULL);
12543  
12544 /* Execute */
12545 0 method = CFISH_METHOD_PTR(LUCY_SORTCACHE, LUCY_SortCache_Get_Ord_Width);
12546 0 retval = method(arg_self);
12547 0 ST(0) = newSViv(retval);
12548 0 sv_2mortal( ST(0) );
12549 0 XSRETURN(1);
12550 }
12551  
12552 XS_INTERNAL(XS_Lucy_Index_SortCache_get_null_ord);
12553 0 XS_INTERNAL(XS_Lucy_Index_SortCache_get_null_ord) {
12554 0 dXSARGS;
12555 lucy_SortCache* arg_self;
12556 LUCY_SortCache_Get_Null_Ord_t method;
12557 int32_t retval;
12558  
12559 CFISH_UNUSED_VAR(cv);
12560 0 SP -= items;
12561 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
12562 0 XSBind_invalid_args_error(aTHX_ cv, "self");
12563 }
12564  
12565 /* Extract vars from Perl stack. */
12566 0 arg_self = (lucy_SortCache*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCACHE, NULL);
12567  
12568 /* Execute */
12569 0 method = CFISH_METHOD_PTR(LUCY_SORTCACHE, LUCY_SortCache_Get_Null_Ord);
12570 0 retval = method(arg_self);
12571 0 ST(0) = newSViv(retval);
12572 0 sv_2mortal( ST(0) );
12573 0 XSRETURN(1);
12574 }
12575  
12576 XS_INTERNAL(XS_Lucy_Index_SortCache_ordinal);
12577 0 XS_INTERNAL(XS_Lucy_Index_SortCache_ordinal) {
12578 0 dXSARGS;
12579 SV *sv;
12580 lucy_SortCache* arg_self;
12581 int32_t arg_doc_id;
12582 LUCY_SortCache_Ordinal_t method;
12583 int32_t retval;
12584  
12585 CFISH_UNUSED_VAR(cv);
12586 0 SP -= items;
12587 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
12588 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
12589 }
12590  
12591 /* Extract vars from Perl stack. */
12592 0 arg_self = (lucy_SortCache*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCACHE, NULL);
12593 0 sv = ST(1);
12594 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12595 0 XSBind_undef_arg_error(aTHX_ "doc_id");
12596 }
12597 0 arg_doc_id = (int32_t)SvIV(sv);
12598  
12599 /* Execute */
12600 0 method = CFISH_METHOD_PTR(LUCY_SORTCACHE, LUCY_SortCache_Ordinal);
12601 0 retval = method(arg_self, arg_doc_id);
12602 0 ST(0) = newSViv(retval);
12603 0 sv_2mortal( ST(0) );
12604 0 XSRETURN(1);
12605 }
12606  
12607 XS_INTERNAL(XS_Lucy_Index_SortCache_find);
12608 0 XS_INTERNAL(XS_Lucy_Index_SortCache_find) {
12609 0 dXSARGS;
12610 SV *sv;
12611 lucy_SortCache* arg_self;
12612 cfish_Obj* arg_term;
12613 LUCY_SortCache_Find_t method;
12614 int32_t retval;
12615  
12616 CFISH_UNUSED_VAR(cv);
12617 0 SP -= items;
12618 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
12619 0 XSBind_invalid_args_error(aTHX_ cv, "self, [term]");
12620 }
12621  
12622 /* Extract vars from Perl stack. */
12623 0 arg_self = (lucy_SortCache*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCACHE, NULL);
12624 0 sv = ST(1);
12625 0 ▶ arg_term = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_term = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
12626  
12627 /* Execute */
12628 0 method = CFISH_METHOD_PTR(LUCY_SORTCACHE, LUCY_SortCache_Find);
12629 0 retval = method(arg_self, arg_term);
12630 0 ST(0) = newSViv(retval);
12631 0 sv_2mortal( ST(0) );
12632 0 XSRETURN(1);
12633 }
12634  
12635 XS_INTERNAL(XS_Lucy_Index_SortCache_set_native_ords);
12636 0 XS_INTERNAL(XS_Lucy_Index_SortCache_set_native_ords) {
12637 0 dXSARGS;
12638 SV *sv;
12639 lucy_SortCache* arg_self;
12640 bool arg_native_ords;
12641 LUCY_SortCache_Set_Native_Ords_t method;
12642  
12643 CFISH_UNUSED_VAR(cv);
12644 0 SP -= items;
12645 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
12646 0 XSBind_invalid_args_error(aTHX_ cv, "self, native_ords");
12647 }
12648  
12649 /* Extract vars from Perl stack. */
12650 0 arg_self = (lucy_SortCache*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCACHE, NULL);
12651 0 sv = ST(1);
12652 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12653 0 XSBind_undef_arg_error(aTHX_ "native_ords");
12654 }
12655 0 arg_native_ords = XSBind_sv_true(aTHX_ sv);
12656  
12657 /* Execute */
12658 0 method = CFISH_METHOD_PTR(LUCY_SORTCACHE, LUCY_SortCache_Set_Native_Ords);
12659 0 method(arg_self, arg_native_ords);
12660 0 XSRETURN(0);
12661 }
12662  
12663 XS_INTERNAL(XS_Lucy_Index_SortCache_get_native_ords);
12664 0 XS_INTERNAL(XS_Lucy_Index_SortCache_get_native_ords) {
12665 0 dXSARGS;
12666 lucy_SortCache* arg_self;
12667 LUCY_SortCache_Get_Native_Ords_t method;
12668 bool retval;
12669  
12670 CFISH_UNUSED_VAR(cv);
12671 0 SP -= items;
12672 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
12673 0 XSBind_invalid_args_error(aTHX_ cv, "self");
12674 }
12675  
12676 /* Extract vars from Perl stack. */
12677 0 arg_self = (lucy_SortCache*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCACHE, NULL);
12678  
12679 /* Execute */
12680 0 method = CFISH_METHOD_PTR(LUCY_SORTCACHE, LUCY_SortCache_Get_Native_Ords);
12681 0 retval = method(arg_self);
12682 0 ST(0) = newSViv(!!retval);
12683 0 sv_2mortal( ST(0) );
12684 0 XSRETURN(1);
12685 }
12686  
12687 XS_INTERNAL(XS_Lucy_Index_SortCache_NumericSortCache_new);
12688 0 XS_INTERNAL(XS_Lucy_Index_SortCache_NumericSortCache_new) {
12689 0 dXSARGS;
12690 static const XSBind_ParamSpec param_specs[8] = {
12691 XSBIND_PARAM("field", 1),
12692 XSBIND_PARAM("type", 1),
12693 XSBIND_PARAM("cardinality", 1),
12694 XSBIND_PARAM("doc_max", 1),
12695 XSBIND_PARAM("null_ord", 0),
12696 XSBIND_PARAM("ord_width", 1),
12697 XSBIND_PARAM("ord_in", 1),
12698 XSBIND_PARAM("dat_in", 1)
12699 };
12700 int32_t locations[8];
12701 SV *sv;
12702 lucy_NumericSortCache* arg_self;
12703 cfish_String* arg_field;
12704 lucy_FieldType* arg_type;
12705 int32_t arg_cardinality;
12706 int32_t arg_doc_max;
12707 int32_t arg_null_ord;
12708 int32_t arg_ord_width;
12709 lucy_InStream* arg_ord_in;
12710 lucy_InStream* arg_dat_in;
12711 lucy_NumericSortCache* retval;
12712  
12713 CFISH_UNUSED_VAR(cv);
12714 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
12715 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
12716 }
12717 0 SP -= items;
12718  
12719 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
12720 locations, 8);
12721 0 sv = ST(locations[0]);
12722 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
12723 0 sv = ST(locations[1]);
12724 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
12725 0 sv = ST(locations[2]);
12726 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12727 0 XSBind_undef_arg_error(aTHX_ "cardinality");
12728 }
12729 0 arg_cardinality = (int32_t)SvIV(sv);
12730 0 sv = ST(locations[3]);
12731 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12732 0 XSBind_undef_arg_error(aTHX_ "doc_max");
12733 }
12734 0 arg_doc_max = (int32_t)SvIV(sv);
12735 0 sv = ST(locations[4]);
12736 0 ▶ arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
12737 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
12738 0 sv = ST(locations[5]);
12739 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12740 0 XSBind_undef_arg_error(aTHX_ "ord_width");
12741 }
12742 0 arg_ord_width = (int32_t)SvIV(sv);
12743 0 sv = ST(locations[6]);
12744 0 arg_ord_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "ord_in", LUCY_INSTREAM, NULL);
12745 0 sv = ST(locations[7]);
12746 0 arg_dat_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "dat_in", LUCY_INSTREAM, NULL);
12747 0 arg_self = (lucy_NumericSortCache*)XSBind_new_blank_obj(aTHX_ ST(0));
12748  
12749 0 retval = lucy_NumSortCache_init(arg_self, arg_field, arg_type, arg_cardinality, arg_doc_max, arg_null_ord, arg_ord_width, arg_ord_in, arg_dat_in);
12750 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
12751 0 XSRETURN(1);
12752 }
12753  
12754  
12755 XS_INTERNAL(XS_Lucy_Index_SortCache_Float32SortCache_new);
12756 0 XS_INTERNAL(XS_Lucy_Index_SortCache_Float32SortCache_new) {
12757 0 dXSARGS;
12758 static const XSBind_ParamSpec param_specs[8] = {
12759 XSBIND_PARAM("field", 1),
12760 XSBIND_PARAM("type", 1),
12761 XSBIND_PARAM("cardinality", 1),
12762 XSBIND_PARAM("doc_max", 1),
12763 XSBIND_PARAM("null_ord", 0),
12764 XSBIND_PARAM("ord_width", 1),
12765 XSBIND_PARAM("ord_in", 1),
12766 XSBIND_PARAM("dat_in", 1)
12767 };
12768 int32_t locations[8];
12769 SV *sv;
12770 lucy_Float32SortCache* arg_self;
12771 cfish_String* arg_field;
12772 lucy_FieldType* arg_type;
12773 int32_t arg_cardinality;
12774 int32_t arg_doc_max;
12775 int32_t arg_null_ord;
12776 int32_t arg_ord_width;
12777 lucy_InStream* arg_ord_in;
12778 lucy_InStream* arg_dat_in;
12779 lucy_Float32SortCache* retval;
12780  
12781 CFISH_UNUSED_VAR(cv);
12782 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
12783 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
12784 }
12785 0 SP -= items;
12786  
12787 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
12788 locations, 8);
12789 0 sv = ST(locations[0]);
12790 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
12791 0 sv = ST(locations[1]);
12792 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
12793 0 sv = ST(locations[2]);
12794 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12795 0 XSBind_undef_arg_error(aTHX_ "cardinality");
12796 }
12797 0 arg_cardinality = (int32_t)SvIV(sv);
12798 0 sv = ST(locations[3]);
12799 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12800 0 XSBind_undef_arg_error(aTHX_ "doc_max");
12801 }
12802 0 arg_doc_max = (int32_t)SvIV(sv);
12803 0 sv = ST(locations[4]);
12804 0 ▶ arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
12805 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
12806 0 sv = ST(locations[5]);
12807 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12808 0 XSBind_undef_arg_error(aTHX_ "ord_width");
12809 }
12810 0 arg_ord_width = (int32_t)SvIV(sv);
12811 0 sv = ST(locations[6]);
12812 0 arg_ord_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "ord_in", LUCY_INSTREAM, NULL);
12813 0 sv = ST(locations[7]);
12814 0 arg_dat_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "dat_in", LUCY_INSTREAM, NULL);
12815 0 arg_self = (lucy_Float32SortCache*)XSBind_new_blank_obj(aTHX_ ST(0));
12816  
12817 0 retval = lucy_F32SortCache_init(arg_self, arg_field, arg_type, arg_cardinality, arg_doc_max, arg_null_ord, arg_ord_width, arg_ord_in, arg_dat_in);
12818 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
12819 0 XSRETURN(1);
12820 }
12821  
12822  
12823 XS_INTERNAL(XS_Lucy_Index_SortCache_Float64SortCache_new);
12824 0 XS_INTERNAL(XS_Lucy_Index_SortCache_Float64SortCache_new) {
12825 0 dXSARGS;
12826 static const XSBind_ParamSpec param_specs[8] = {
12827 XSBIND_PARAM("field", 1),
12828 XSBIND_PARAM("type", 1),
12829 XSBIND_PARAM("cardinality", 1),
12830 XSBIND_PARAM("doc_max", 1),
12831 XSBIND_PARAM("null_ord", 0),
12832 XSBIND_PARAM("ord_width", 1),
12833 XSBIND_PARAM("ord_in", 1),
12834 XSBIND_PARAM("dat_in", 1)
12835 };
12836 int32_t locations[8];
12837 SV *sv;
12838 lucy_Float64SortCache* arg_self;
12839 cfish_String* arg_field;
12840 lucy_FieldType* arg_type;
12841 int32_t arg_cardinality;
12842 int32_t arg_doc_max;
12843 int32_t arg_null_ord;
12844 int32_t arg_ord_width;
12845 lucy_InStream* arg_ord_in;
12846 lucy_InStream* arg_dat_in;
12847 lucy_Float64SortCache* retval;
12848  
12849 CFISH_UNUSED_VAR(cv);
12850 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
12851 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
12852 }
12853 0 SP -= items;
12854  
12855 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
12856 locations, 8);
12857 0 sv = ST(locations[0]);
12858 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
12859 0 sv = ST(locations[1]);
12860 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
12861 0 sv = ST(locations[2]);
12862 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12863 0 XSBind_undef_arg_error(aTHX_ "cardinality");
12864 }
12865 0 arg_cardinality = (int32_t)SvIV(sv);
12866 0 sv = ST(locations[3]);
12867 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12868 0 XSBind_undef_arg_error(aTHX_ "doc_max");
12869 }
12870 0 arg_doc_max = (int32_t)SvIV(sv);
12871 0 sv = ST(locations[4]);
12872 0 ▶ arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
12873 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
12874 0 sv = ST(locations[5]);
12875 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12876 0 XSBind_undef_arg_error(aTHX_ "ord_width");
12877 }
12878 0 arg_ord_width = (int32_t)SvIV(sv);
12879 0 sv = ST(locations[6]);
12880 0 arg_ord_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "ord_in", LUCY_INSTREAM, NULL);
12881 0 sv = ST(locations[7]);
12882 0 arg_dat_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "dat_in", LUCY_INSTREAM, NULL);
12883 0 arg_self = (lucy_Float64SortCache*)XSBind_new_blank_obj(aTHX_ ST(0));
12884  
12885 0 retval = lucy_F64SortCache_init(arg_self, arg_field, arg_type, arg_cardinality, arg_doc_max, arg_null_ord, arg_ord_width, arg_ord_in, arg_dat_in);
12886 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
12887 0 XSRETURN(1);
12888 }
12889  
12890  
12891 XS_INTERNAL(XS_Lucy_Index_SortCache_Int32SortCache_new);
12892 0 XS_INTERNAL(XS_Lucy_Index_SortCache_Int32SortCache_new) {
12893 0 dXSARGS;
12894 static const XSBind_ParamSpec param_specs[8] = {
12895 XSBIND_PARAM("field", 1),
12896 XSBIND_PARAM("type", 1),
12897 XSBIND_PARAM("cardinality", 1),
12898 XSBIND_PARAM("doc_max", 1),
12899 XSBIND_PARAM("null_ord", 0),
12900 XSBIND_PARAM("ord_width", 1),
12901 XSBIND_PARAM("ord_in", 1),
12902 XSBIND_PARAM("dat_in", 1)
12903 };
12904 int32_t locations[8];
12905 SV *sv;
12906 lucy_Int32SortCache* arg_self;
12907 cfish_String* arg_field;
12908 lucy_FieldType* arg_type;
12909 int32_t arg_cardinality;
12910 int32_t arg_doc_max;
12911 int32_t arg_null_ord;
12912 int32_t arg_ord_width;
12913 lucy_InStream* arg_ord_in;
12914 lucy_InStream* arg_dat_in;
12915 lucy_Int32SortCache* retval;
12916  
12917 CFISH_UNUSED_VAR(cv);
12918 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
12919 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
12920 }
12921 0 SP -= items;
12922  
12923 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
12924 locations, 8);
12925 0 sv = ST(locations[0]);
12926 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
12927 0 sv = ST(locations[1]);
12928 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
12929 0 sv = ST(locations[2]);
12930 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12931 0 XSBind_undef_arg_error(aTHX_ "cardinality");
12932 }
12933 0 arg_cardinality = (int32_t)SvIV(sv);
12934 0 sv = ST(locations[3]);
12935 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12936 0 XSBind_undef_arg_error(aTHX_ "doc_max");
12937 }
12938 0 arg_doc_max = (int32_t)SvIV(sv);
12939 0 sv = ST(locations[4]);
12940 0 ▶ arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
12941 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
12942 0 sv = ST(locations[5]);
12943 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12944 0 XSBind_undef_arg_error(aTHX_ "ord_width");
12945 }
12946 0 arg_ord_width = (int32_t)SvIV(sv);
12947 0 sv = ST(locations[6]);
12948 0 arg_ord_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "ord_in", LUCY_INSTREAM, NULL);
12949 0 sv = ST(locations[7]);
12950 0 arg_dat_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "dat_in", LUCY_INSTREAM, NULL);
12951 0 arg_self = (lucy_Int32SortCache*)XSBind_new_blank_obj(aTHX_ ST(0));
12952  
12953 0 retval = lucy_I32SortCache_init(arg_self, arg_field, arg_type, arg_cardinality, arg_doc_max, arg_null_ord, arg_ord_width, arg_ord_in, arg_dat_in);
12954 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
12955 0 XSRETURN(1);
12956 }
12957  
12958  
12959 XS_INTERNAL(XS_Lucy_Index_SortCache_Int64SortCache_new);
12960 0 XS_INTERNAL(XS_Lucy_Index_SortCache_Int64SortCache_new) {
12961 0 dXSARGS;
12962 static const XSBind_ParamSpec param_specs[8] = {
12963 XSBIND_PARAM("field", 1),
12964 XSBIND_PARAM("type", 1),
12965 XSBIND_PARAM("cardinality", 1),
12966 XSBIND_PARAM("doc_max", 1),
12967 XSBIND_PARAM("null_ord", 0),
12968 XSBIND_PARAM("ord_width", 1),
12969 XSBIND_PARAM("ord_in", 1),
12970 XSBIND_PARAM("dat_in", 1)
12971 };
12972 int32_t locations[8];
12973 SV *sv;
12974 lucy_Int64SortCache* arg_self;
12975 cfish_String* arg_field;
12976 lucy_FieldType* arg_type;
12977 int32_t arg_cardinality;
12978 int32_t arg_doc_max;
12979 int32_t arg_null_ord;
12980 int32_t arg_ord_width;
12981 lucy_InStream* arg_ord_in;
12982 lucy_InStream* arg_dat_in;
12983 lucy_Int64SortCache* retval;
12984  
12985 CFISH_UNUSED_VAR(cv);
12986 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
12987 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
12988 }
12989 0 SP -= items;
12990  
12991 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
12992 locations, 8);
12993 0 sv = ST(locations[0]);
12994 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
12995 0 sv = ST(locations[1]);
12996 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
12997 0 sv = ST(locations[2]);
12998 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
12999 0 XSBind_undef_arg_error(aTHX_ "cardinality");
13000 }
13001 0 arg_cardinality = (int32_t)SvIV(sv);
13002 0 sv = ST(locations[3]);
13003 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13004 0 XSBind_undef_arg_error(aTHX_ "doc_max");
13005 }
13006 0 arg_doc_max = (int32_t)SvIV(sv);
13007 0 sv = ST(locations[4]);
13008 0 ▶ arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
13009 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
13010 0 sv = ST(locations[5]);
13011 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13012 0 XSBind_undef_arg_error(aTHX_ "ord_width");
13013 }
13014 0 arg_ord_width = (int32_t)SvIV(sv);
13015 0 sv = ST(locations[6]);
13016 0 arg_ord_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "ord_in", LUCY_INSTREAM, NULL);
13017 0 sv = ST(locations[7]);
13018 0 arg_dat_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "dat_in", LUCY_INSTREAM, NULL);
13019 0 arg_self = (lucy_Int64SortCache*)XSBind_new_blank_obj(aTHX_ ST(0));
13020  
13021 0 retval = lucy_I64SortCache_init(arg_self, arg_field, arg_type, arg_cardinality, arg_doc_max, arg_null_ord, arg_ord_width, arg_ord_in, arg_dat_in);
13022 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
13023 0 XSRETURN(1);
13024 }
13025  
13026  
13027 XS_INTERNAL(XS_Lucy_Index_SortCache_TextSortCache_new);
13028 0 XS_INTERNAL(XS_Lucy_Index_SortCache_TextSortCache_new) {
13029 0 dXSARGS;
13030 static const XSBind_ParamSpec param_specs[9] = {
13031 XSBIND_PARAM("field", 1),
13032 XSBIND_PARAM("type", 1),
13033 XSBIND_PARAM("cardinality", 1),
13034 XSBIND_PARAM("doc_max", 1),
13035 XSBIND_PARAM("null_ord", 0),
13036 XSBIND_PARAM("ord_width", 1),
13037 XSBIND_PARAM("ord_in", 1),
13038 XSBIND_PARAM("ix_in", 1),
13039 XSBIND_PARAM("dat_in", 1)
13040 };
13041 int32_t locations[9];
13042 SV *sv;
13043 lucy_TextSortCache* arg_self;
13044 cfish_String* arg_field;
13045 lucy_FieldType* arg_type;
13046 int32_t arg_cardinality;
13047 int32_t arg_doc_max;
13048 int32_t arg_null_ord;
13049 int32_t arg_ord_width;
13050 lucy_InStream* arg_ord_in;
13051 lucy_InStream* arg_ix_in;
13052 lucy_InStream* arg_dat_in;
13053 lucy_TextSortCache* retval;
13054  
13055 CFISH_UNUSED_VAR(cv);
13056 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
13057 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
13058 }
13059 0 SP -= items;
13060  
13061 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
13062 locations, 9);
13063 0 sv = ST(locations[0]);
13064 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
13065 0 sv = ST(locations[1]);
13066 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
13067 0 sv = ST(locations[2]);
13068 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13069 0 XSBind_undef_arg_error(aTHX_ "cardinality");
13070 }
13071 0 arg_cardinality = (int32_t)SvIV(sv);
13072 0 sv = ST(locations[3]);
13073 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13074 0 XSBind_undef_arg_error(aTHX_ "doc_max");
13075 }
13076 0 arg_doc_max = (int32_t)SvIV(sv);
13077 0 sv = ST(locations[4]);
13078 0 ▶ arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_null_ord = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
13079 0 ▶ ? (int32_t)SvIV(sv) : -1;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : -1; 0 0 0
13080 0 sv = ST(locations[5]);
13081 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13082 0 XSBind_undef_arg_error(aTHX_ "ord_width");
13083 }
13084 0 arg_ord_width = (int32_t)SvIV(sv);
13085 0 sv = ST(locations[6]);
13086 0 arg_ord_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "ord_in", LUCY_INSTREAM, NULL);
13087 0 sv = ST(locations[7]);
13088 0 arg_ix_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "ix_in", LUCY_INSTREAM, NULL);
13089 0 sv = ST(locations[8]);
13090 0 arg_dat_in = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "dat_in", LUCY_INSTREAM, NULL);
13091 0 arg_self = (lucy_TextSortCache*)XSBind_new_blank_obj(aTHX_ ST(0));
13092  
13093 0 retval = lucy_TextSortCache_init(arg_self, arg_field, arg_type, arg_cardinality, arg_doc_max, arg_null_ord, arg_ord_width, arg_ord_in, arg_ix_in, arg_dat_in);
13094 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
13095 0 XSRETURN(1);
13096 }
13097  
13098  
13099 XS_INTERNAL(XS_Lucy_Index_TermInfo_new);
13100 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_new) {
13101 0 dXSARGS;
13102 static const XSBind_ParamSpec param_specs[1] = {
13103 XSBIND_PARAM("doc_freq", 0)
13104 };
13105 int32_t locations[1];
13106 SV *sv;
13107 lucy_TermInfo* arg_self;
13108 int32_t arg_doc_freq;
13109 lucy_TermInfo* retval;
13110  
13111 CFISH_UNUSED_VAR(cv);
13112 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
13113 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
13114 }
13115 0 SP -= items;
13116  
13117 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
13118 locations, 1);
13119 0 sv = ST(locations[0]);
13120 0 ▶ arg_doc_freq = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_doc_freq = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
13121 0 ▶ ? (int32_t)SvIV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : 0; 0 0 0
13122 0 arg_self = (lucy_TermInfo*)XSBind_new_blank_obj(aTHX_ ST(0));
13123  
13124 0 retval = lucy_TInfo_init(arg_self, arg_doc_freq);
13125 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
13126 0 XSRETURN(1);
13127 }
13128  
13129  
13130 XS_INTERNAL(XS_Lucy_Index_TermInfo_get_doc_freq);
13131 3 XS_INTERNAL(XS_Lucy_Index_TermInfo_get_doc_freq) {
13132 3 dXSARGS;
13133 lucy_TermInfo* arg_self;
13134 LUCY_TInfo_Get_Doc_Freq_t method;
13135 int32_t retval;
13136  
13137 CFISH_UNUSED_VAR(cv);
13138 3 SP -= items;
13139 3 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 3 3
13140 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13141 }
13142  
13143 /* Extract vars from Perl stack. */
13144 3 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13145  
13146 /* Execute */
13147 3 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Get_Doc_Freq);
13148 3 retval = method(arg_self);
13149 3 ST(0) = newSViv(retval);
13150 3 sv_2mortal( ST(0) );
13151 3 XSRETURN(1);
13152 }
13153  
13154 XS_INTERNAL(XS_Lucy_Index_TermInfo_get_lex_filepos);
13155 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_get_lex_filepos) {
13156 0 dXSARGS;
13157 lucy_TermInfo* arg_self;
13158 LUCY_TInfo_Get_Lex_FilePos_t method;
13159 int64_t retval;
13160  
13161 CFISH_UNUSED_VAR(cv);
13162 0 SP -= items;
13163 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13164 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13165 }
13166  
13167 /* Extract vars from Perl stack. */
13168 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13169  
13170 /* Execute */
13171 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Get_Lex_FilePos);
13172 0 retval = method(arg_self);
13173 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
13174 0 sv_2mortal( ST(0) );
13175 0 XSRETURN(1);
13176 }
13177  
13178 XS_INTERNAL(XS_Lucy_Index_TermInfo_get_post_filepos);
13179 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_get_post_filepos) {
13180 0 dXSARGS;
13181 lucy_TermInfo* arg_self;
13182 LUCY_TInfo_Get_Post_FilePos_t method;
13183 int64_t retval;
13184  
13185 CFISH_UNUSED_VAR(cv);
13186 0 SP -= items;
13187 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13188 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13189 }
13190  
13191 /* Extract vars from Perl stack. */
13192 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13193  
13194 /* Execute */
13195 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Get_Post_FilePos);
13196 0 retval = method(arg_self);
13197 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
13198 0 sv_2mortal( ST(0) );
13199 0 XSRETURN(1);
13200 }
13201  
13202 XS_INTERNAL(XS_Lucy_Index_TermInfo_get_skip_filepos);
13203 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_get_skip_filepos) {
13204 0 dXSARGS;
13205 lucy_TermInfo* arg_self;
13206 LUCY_TInfo_Get_Skip_FilePos_t method;
13207 int64_t retval;
13208  
13209 CFISH_UNUSED_VAR(cv);
13210 0 SP -= items;
13211 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13212 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13213 }
13214  
13215 /* Extract vars from Perl stack. */
13216 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13217  
13218 /* Execute */
13219 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Get_Skip_FilePos);
13220 0 retval = method(arg_self);
13221 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
13222 0 sv_2mortal( ST(0) );
13223 0 XSRETURN(1);
13224 }
13225  
13226 XS_INTERNAL(XS_Lucy_Index_TermInfo_set_doc_freq);
13227 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_set_doc_freq) {
13228 0 dXSARGS;
13229 SV *sv;
13230 lucy_TermInfo* arg_self;
13231 int32_t arg_doc_freq;
13232 LUCY_TInfo_Set_Doc_Freq_t method;
13233  
13234 CFISH_UNUSED_VAR(cv);
13235 0 SP -= items;
13236 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13237 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_freq");
13238 }
13239  
13240 /* Extract vars from Perl stack. */
13241 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13242 0 sv = ST(1);
13243 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13244 0 XSBind_undef_arg_error(aTHX_ "doc_freq");
13245 }
13246 0 arg_doc_freq = (int32_t)SvIV(sv);
13247  
13248 /* Execute */
13249 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Set_Doc_Freq);
13250 0 method(arg_self, arg_doc_freq);
13251 0 XSRETURN(0);
13252 }
13253  
13254 XS_INTERNAL(XS_Lucy_Index_TermInfo_set_lex_filepos);
13255 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_set_lex_filepos) {
13256 0 dXSARGS;
13257 SV *sv;
13258 lucy_TermInfo* arg_self;
13259 int64_t arg_filepos;
13260 LUCY_TInfo_Set_Lex_FilePos_t method;
13261  
13262 CFISH_UNUSED_VAR(cv);
13263 0 SP -= items;
13264 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13265 0 XSBind_invalid_args_error(aTHX_ cv, "self, filepos");
13266 }
13267  
13268 /* Extract vars from Perl stack. */
13269 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13270 0 sv = ST(1);
13271 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13272 0 XSBind_undef_arg_error(aTHX_ "filepos");
13273 }
13274 0 arg_filepos = (int64_t)SvNV(sv);
13275  
13276 /* Execute */
13277 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Set_Lex_FilePos);
13278 0 method(arg_self, arg_filepos);
13279 0 XSRETURN(0);
13280 }
13281  
13282 XS_INTERNAL(XS_Lucy_Index_TermInfo_set_post_filepos);
13283 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_set_post_filepos) {
13284 0 dXSARGS;
13285 SV *sv;
13286 lucy_TermInfo* arg_self;
13287 int64_t arg_filepos;
13288 LUCY_TInfo_Set_Post_FilePos_t method;
13289  
13290 CFISH_UNUSED_VAR(cv);
13291 0 SP -= items;
13292 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13293 0 XSBind_invalid_args_error(aTHX_ cv, "self, filepos");
13294 }
13295  
13296 /* Extract vars from Perl stack. */
13297 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13298 0 sv = ST(1);
13299 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13300 0 XSBind_undef_arg_error(aTHX_ "filepos");
13301 }
13302 0 arg_filepos = (int64_t)SvNV(sv);
13303  
13304 /* Execute */
13305 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Set_Post_FilePos);
13306 0 method(arg_self, arg_filepos);
13307 0 XSRETURN(0);
13308 }
13309  
13310 XS_INTERNAL(XS_Lucy_Index_TermInfo_set_skip_filepos);
13311 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_set_skip_filepos) {
13312 0 dXSARGS;
13313 SV *sv;
13314 lucy_TermInfo* arg_self;
13315 int64_t arg_filepos;
13316 LUCY_TInfo_Set_Skip_FilePos_t method;
13317  
13318 CFISH_UNUSED_VAR(cv);
13319 0 SP -= items;
13320 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13321 0 XSBind_invalid_args_error(aTHX_ cv, "self, filepos");
13322 }
13323  
13324 /* Extract vars from Perl stack. */
13325 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13326 0 sv = ST(1);
13327 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13328 0 XSBind_undef_arg_error(aTHX_ "filepos");
13329 }
13330 0 arg_filepos = (int64_t)SvNV(sv);
13331  
13332 /* Execute */
13333 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Set_Skip_FilePos);
13334 0 method(arg_self, arg_filepos);
13335 0 XSRETURN(0);
13336 }
13337  
13338 XS_INTERNAL(XS_Lucy_Index_TermInfo_reset);
13339 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_reset) {
13340 0 dXSARGS;
13341 lucy_TermInfo* arg_self;
13342 LUCY_TInfo_Reset_t method;
13343  
13344 CFISH_UNUSED_VAR(cv);
13345 0 SP -= items;
13346 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13347 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13348 }
13349  
13350 /* Extract vars from Perl stack. */
13351 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13352  
13353 /* Execute */
13354 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Reset);
13355 0 method(arg_self);
13356 0 XSRETURN(0);
13357 }
13358  
13359 XS_INTERNAL(XS_Lucy_Index_TermInfo_mimic);
13360 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_mimic) {
13361 0 dXSARGS;
13362 SV *sv;
13363 lucy_TermInfo* arg_self;
13364 cfish_Obj* arg_other;
13365 LUCY_TInfo_Mimic_t method;
13366  
13367 CFISH_UNUSED_VAR(cv);
13368 0 SP -= items;
13369 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13370 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
13371 }
13372  
13373 /* Extract vars from Perl stack. */
13374 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13375 0 sv = ST(1);
13376 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
13377  
13378 /* Execute */
13379 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Mimic);
13380 0 method(arg_self, arg_other);
13381 0 XSRETURN(0);
13382 }
13383  
13384 XS_INTERNAL(XS_Lucy_Index_TermInfo_clone);
13385 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_clone) {
13386 0 dXSARGS;
13387 lucy_TermInfo* arg_self;
13388 LUCY_TInfo_Clone_t method;
13389 lucy_TermInfo* retval;
13390  
13391 CFISH_UNUSED_VAR(cv);
13392 0 SP -= items;
13393 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13394 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13395 }
13396  
13397 /* Extract vars from Perl stack. */
13398 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13399  
13400 /* Execute */
13401 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_Clone);
13402 0 retval = method(arg_self);
13403 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
13404 0 CFISH_DECREF(retval);
13405 0 sv_2mortal( ST(0) );
13406 0 XSRETURN(1);
13407 }
13408  
13409 XS_INTERNAL(XS_Lucy_Index_TermInfo_to_string);
13410 0 XS_INTERNAL(XS_Lucy_Index_TermInfo_to_string) {
13411 0 dXSARGS;
13412 lucy_TermInfo* arg_self;
13413 LUCY_TInfo_To_String_t method;
13414 cfish_String* retval;
13415  
13416 CFISH_UNUSED_VAR(cv);
13417 0 SP -= items;
13418 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13419 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13420 }
13421  
13422 /* Extract vars from Perl stack. */
13423 0 arg_self = (lucy_TermInfo*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMINFO, NULL);
13424  
13425 /* Execute */
13426 0 method = CFISH_METHOD_PTR(LUCY_TERMINFO, LUCY_TInfo_To_String);
13427 0 retval = method(arg_self);
13428 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
13429 0 CFISH_DECREF(retval);
13430 0 sv_2mortal( ST(0) );
13431 0 XSRETURN(1);
13432 }
13433  
13434 XS_INTERNAL(XS_Lucy_Index_TermVector_new);
13435 0 XS_INTERNAL(XS_Lucy_Index_TermVector_new) {
13436 0 dXSARGS;
13437 static const XSBind_ParamSpec param_specs[5] = {
13438 XSBIND_PARAM("field", 1),
13439 XSBIND_PARAM("text", 1),
13440 XSBIND_PARAM("positions", 1),
13441 XSBIND_PARAM("start_offsets", 1),
13442 XSBIND_PARAM("end_offsets", 1)
13443 };
13444 int32_t locations[5];
13445 SV *sv;
13446 lucy_TermVector* arg_self;
13447 cfish_String* arg_field;
13448 cfish_String* arg_text;
13449 lucy_I32Array* arg_positions;
13450 lucy_I32Array* arg_start_offsets;
13451 lucy_I32Array* arg_end_offsets;
13452 lucy_TermVector* retval;
13453  
13454 CFISH_UNUSED_VAR(cv);
13455 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
13456 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
13457 }
13458 0 SP -= items;
13459  
13460 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
13461 locations, 5);
13462 0 sv = ST(locations[0]);
13463 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
13464 0 sv = ST(locations[1]);
13465 0 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
13466 0 sv = ST(locations[2]);
13467 0 arg_positions = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "positions", LUCY_I32ARRAY, NULL);
13468 0 sv = ST(locations[3]);
13469 0 arg_start_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "start_offsets", LUCY_I32ARRAY, NULL);
13470 0 sv = ST(locations[4]);
13471 0 arg_end_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "end_offsets", LUCY_I32ARRAY, NULL);
13472 0 arg_self = (lucy_TermVector*)XSBind_new_blank_obj(aTHX_ ST(0));
13473  
13474 0 retval = lucy_TV_init(arg_self, arg_field, arg_text, arg_positions, arg_start_offsets, arg_end_offsets);
13475 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
13476 0 XSRETURN(1);
13477 }
13478  
13479  
13480 XS_INTERNAL(XS_Lucy_Index_TermVector_get_positions);
13481 0 XS_INTERNAL(XS_Lucy_Index_TermVector_get_positions) {
13482 0 dXSARGS;
13483 lucy_TermVector* arg_self;
13484 LUCY_TV_Get_Positions_t method;
13485 lucy_I32Array* retval;
13486  
13487 CFISH_UNUSED_VAR(cv);
13488 0 SP -= items;
13489 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13490 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13491 }
13492  
13493 /* Extract vars from Perl stack. */
13494 0 arg_self = (lucy_TermVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMVECTOR, NULL);
13495  
13496 /* Execute */
13497 0 method = CFISH_METHOD_PTR(LUCY_TERMVECTOR, LUCY_TV_Get_Positions);
13498 0 retval = method(arg_self);
13499 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
13500 0 sv_2mortal( ST(0) );
13501 0 XSRETURN(1);
13502 }
13503  
13504 XS_INTERNAL(XS_Lucy_Index_TermVector_get_start_offsets);
13505 0 XS_INTERNAL(XS_Lucy_Index_TermVector_get_start_offsets) {
13506 0 dXSARGS;
13507 lucy_TermVector* arg_self;
13508 LUCY_TV_Get_Start_Offsets_t method;
13509 lucy_I32Array* retval;
13510  
13511 CFISH_UNUSED_VAR(cv);
13512 0 SP -= items;
13513 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13514 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13515 }
13516  
13517 /* Extract vars from Perl stack. */
13518 0 arg_self = (lucy_TermVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMVECTOR, NULL);
13519  
13520 /* Execute */
13521 0 method = CFISH_METHOD_PTR(LUCY_TERMVECTOR, LUCY_TV_Get_Start_Offsets);
13522 0 retval = method(arg_self);
13523 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
13524 0 sv_2mortal( ST(0) );
13525 0 XSRETURN(1);
13526 }
13527  
13528 XS_INTERNAL(XS_Lucy_Index_TermVector_get_end_offsets);
13529 1 XS_INTERNAL(XS_Lucy_Index_TermVector_get_end_offsets) {
13530 1 dXSARGS;
13531 lucy_TermVector* arg_self;
13532 LUCY_TV_Get_End_Offsets_t method;
13533 lucy_I32Array* retval;
13534  
13535 CFISH_UNUSED_VAR(cv);
13536 1 SP -= items;
13537 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
13538 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13539 }
13540  
13541 /* Extract vars from Perl stack. */
13542 1 arg_self = (lucy_TermVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMVECTOR, NULL);
13543  
13544 /* Execute */
13545 1 method = CFISH_METHOD_PTR(LUCY_TERMVECTOR, LUCY_TV_Get_End_Offsets);
13546 1 retval = method(arg_self);
13547 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
13548 1 sv_2mortal( ST(0) );
13549 1 XSRETURN(1);
13550 }
13551  
13552 XS_INTERNAL(XS_Lucy_Index_TermVector_serialize);
13553 0 XS_INTERNAL(XS_Lucy_Index_TermVector_serialize) {
13554 0 dXSARGS;
13555 SV *sv;
13556 lucy_TermVector* arg_self;
13557 lucy_OutStream* arg_outstream;
13558 LUCY_TV_Serialize_t method;
13559  
13560 CFISH_UNUSED_VAR(cv);
13561 0 SP -= items;
13562 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13563 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
13564 }
13565  
13566 /* Extract vars from Perl stack. */
13567 0 arg_self = (lucy_TermVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMVECTOR, NULL);
13568 0 sv = ST(1);
13569 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
13570  
13571 /* Execute */
13572 0 method = CFISH_METHOD_PTR(LUCY_TERMVECTOR, LUCY_TV_Serialize);
13573 0 method(arg_self, arg_outstream);
13574 0 XSRETURN(0);
13575 }
13576  
13577 XS_INTERNAL(XS_Lucy_Index_TermVector_deserialize);
13578 0 XS_INTERNAL(XS_Lucy_Index_TermVector_deserialize) {
13579 0 dXSARGS;
13580 SV *sv;
13581 lucy_TermVector* arg_self;
13582 lucy_InStream* arg_instream;
13583 LUCY_TV_Deserialize_t method;
13584 lucy_TermVector* retval;
13585  
13586 CFISH_UNUSED_VAR(cv);
13587 0 SP -= items;
13588 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13589 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
13590 }
13591  
13592 /* Extract vars from Perl stack. */
13593 0 arg_self = (lucy_TermVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMVECTOR, NULL);
13594 0 sv = ST(1);
13595 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
13596  
13597 /* Execute */
13598 0 method = CFISH_METHOD_PTR(LUCY_TERMVECTOR, LUCY_TV_Deserialize);
13599 0 arg_self = (lucy_TermVector*)CFISH_INCREF(arg_self);
13600 0 retval = method(arg_self, arg_instream);
13601 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
13602 0 CFISH_DECREF(retval);
13603 0 sv_2mortal( ST(0) );
13604 0 XSRETURN(1);
13605 }
13606  
13607 XS_INTERNAL(XS_Lucy_Index_TermVector_equals);
13608 1 XS_INTERNAL(XS_Lucy_Index_TermVector_equals) {
13609 1 dXSARGS;
13610 SV *sv;
13611 lucy_TermVector* arg_self;
13612 cfish_Obj* arg_other;
13613 LUCY_TV_Equals_t method;
13614 bool retval;
13615  
13616 CFISH_UNUSED_VAR(cv);
13617 1 SP -= items;
13618 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
13619 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
13620 }
13621  
13622 /* Extract vars from Perl stack. */
13623 1 arg_self = (lucy_TermVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMVECTOR, NULL);
13624 1 sv = ST(1);
13625 1 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
13626  
13627 /* Execute */
13628 1 method = CFISH_METHOD_PTR(LUCY_TERMVECTOR, LUCY_TV_Equals);
13629 1 retval = method(arg_self, arg_other);
13630 1 ST(0) = newSViv(!!retval);
13631 1 sv_2mortal( ST(0) );
13632 1 XSRETURN(1);
13633 }
13634  
13635 XS_INTERNAL(XS_Lucy_Object_BitVector_new);
13636 60 XS_INTERNAL(XS_Lucy_Object_BitVector_new) {
13637 60 dXSARGS;
13638 static const XSBind_ParamSpec param_specs[1] = {
13639 XSBIND_PARAM("capacity", 0)
13640 };
13641 int32_t locations[1];
13642 SV *sv;
13643 lucy_BitVector* arg_self;
13644 size_t arg_capacity;
13645 lucy_BitVector* retval;
13646  
13647 CFISH_UNUSED_VAR(cv);
13648 60 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 60 60
13649 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
13650 }
13651 60 SP -= items;
13652  
13653 60 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
13654 locations, 1);
13655 60 sv = ST(locations[0]);
13656 58 ▶ arg_capacity = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_capacity = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 58 0 58
13657 118 ▶ ? (size_t)SvIV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (size_t)SvIV(sv) : 0; 58 2 60
13658 60 arg_self = (lucy_BitVector*)XSBind_new_blank_obj(aTHX_ ST(0));
13659  
13660 60 retval = lucy_BitVec_init(arg_self, arg_capacity);
13661 60 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
13662 60 XSRETURN(1);
13663 }
13664  
13665  
13666 XS_INTERNAL(XS_Lucy_Object_BitVector_get);
13667 10 XS_INTERNAL(XS_Lucy_Object_BitVector_get) {
13668 10 dXSARGS;
13669 SV *sv;
13670 lucy_BitVector* arg_self;
13671 size_t arg_tick;
13672 LUCY_BitVec_Get_t method;
13673 bool retval;
13674  
13675 CFISH_UNUSED_VAR(cv);
13676 10 SP -= items;
13677 10 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 10 10
13678 0 XSBind_invalid_args_error(aTHX_ cv, "self, tick");
13679 }
13680  
13681 /* Extract vars from Perl stack. */
13682 10 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13683 10 sv = ST(1);
13684 10 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 10 10
13685 0 XSBind_undef_arg_error(aTHX_ "tick");
13686 }
13687 10 arg_tick = (size_t)SvIV(sv);
13688  
13689 /* Execute */
13690 10 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Get);
13691 10 retval = method(arg_self, arg_tick);
13692 10 ST(0) = newSViv(!!retval);
13693 10 sv_2mortal( ST(0) );
13694 10 XSRETURN(1);
13695 }
13696  
13697 XS_INTERNAL(XS_Lucy_Object_BitVector_set);
13698 38 XS_INTERNAL(XS_Lucy_Object_BitVector_set) {
13699 38 dXSARGS;
13700 SV *sv;
13701 lucy_BitVector* arg_self;
13702 size_t arg_tick;
13703 LUCY_BitVec_Set_t method;
13704  
13705 CFISH_UNUSED_VAR(cv);
13706 38 SP -= items;
13707 38 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 38 38
13708 0 XSBind_invalid_args_error(aTHX_ cv, "self, tick");
13709 }
13710  
13711 /* Extract vars from Perl stack. */
13712 38 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13713 38 sv = ST(1);
13714 38 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 38 38
13715 0 XSBind_undef_arg_error(aTHX_ "tick");
13716 }
13717 38 arg_tick = (size_t)SvIV(sv);
13718  
13719 /* Execute */
13720 38 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Set);
13721 38 method(arg_self, arg_tick);
13722 38 XSRETURN(0);
13723 }
13724  
13725 XS_INTERNAL(XS_Lucy_Object_BitVector_get_capacity);
13726 1 XS_INTERNAL(XS_Lucy_Object_BitVector_get_capacity) {
13727 1 dXSARGS;
13728 lucy_BitVector* arg_self;
13729 LUCY_BitVec_Get_Capacity_t method;
13730 size_t retval;
13731  
13732 CFISH_UNUSED_VAR(cv);
13733 1 SP -= items;
13734 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
13735 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13736 }
13737  
13738 /* Extract vars from Perl stack. */
13739 1 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13740  
13741 /* Execute */
13742 1 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Get_Capacity);
13743 1 retval = method(arg_self);
13744 1 ST(0) = newSViv(retval);
13745 1 sv_2mortal( ST(0) );
13746 1 XSRETURN(1);
13747 }
13748  
13749 XS_INTERNAL(XS_Lucy_Object_BitVector_next_hit);
13750 0 XS_INTERNAL(XS_Lucy_Object_BitVector_next_hit) {
13751 0 dXSARGS;
13752 SV *sv;
13753 lucy_BitVector* arg_self;
13754 size_t arg_tick;
13755 LUCY_BitVec_Next_Hit_t method;
13756 int32_t retval;
13757  
13758 CFISH_UNUSED_VAR(cv);
13759 0 SP -= items;
13760 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13761 0 XSBind_invalid_args_error(aTHX_ cv, "self, tick");
13762 }
13763  
13764 /* Extract vars from Perl stack. */
13765 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13766 0 sv = ST(1);
13767 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13768 0 XSBind_undef_arg_error(aTHX_ "tick");
13769 }
13770 0 arg_tick = (size_t)SvIV(sv);
13771  
13772 /* Execute */
13773 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Next_Hit);
13774 0 retval = method(arg_self, arg_tick);
13775 0 ST(0) = newSViv(retval);
13776 0 sv_2mortal( ST(0) );
13777 0 XSRETURN(1);
13778 }
13779  
13780 XS_INTERNAL(XS_Lucy_Object_BitVector_clear);
13781 0 XS_INTERNAL(XS_Lucy_Object_BitVector_clear) {
13782 0 dXSARGS;
13783 SV *sv;
13784 lucy_BitVector* arg_self;
13785 size_t arg_tick;
13786 LUCY_BitVec_Clear_t method;
13787  
13788 CFISH_UNUSED_VAR(cv);
13789 0 SP -= items;
13790 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13791 0 XSBind_invalid_args_error(aTHX_ cv, "self, tick");
13792 }
13793  
13794 /* Extract vars from Perl stack. */
13795 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13796 0 sv = ST(1);
13797 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13798 0 XSBind_undef_arg_error(aTHX_ "tick");
13799 }
13800 0 arg_tick = (size_t)SvIV(sv);
13801  
13802 /* Execute */
13803 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Clear);
13804 0 method(arg_self, arg_tick);
13805 0 XSRETURN(0);
13806 }
13807  
13808 XS_INTERNAL(XS_Lucy_Object_BitVector_clear_all);
13809 0 XS_INTERNAL(XS_Lucy_Object_BitVector_clear_all) {
13810 0 dXSARGS;
13811 lucy_BitVector* arg_self;
13812 LUCY_BitVec_Clear_All_t method;
13813  
13814 CFISH_UNUSED_VAR(cv);
13815 0 SP -= items;
13816 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
13817 0 XSBind_invalid_args_error(aTHX_ cv, "self");
13818 }
13819  
13820 /* Extract vars from Perl stack. */
13821 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13822  
13823 /* Execute */
13824 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Clear_All);
13825 0 method(arg_self);
13826 0 XSRETURN(0);
13827 }
13828  
13829 XS_INTERNAL(XS_Lucy_Object_BitVector_grow);
13830 0 XS_INTERNAL(XS_Lucy_Object_BitVector_grow) {
13831 0 dXSARGS;
13832 SV *sv;
13833 lucy_BitVector* arg_self;
13834 size_t arg_capacity;
13835 LUCY_BitVec_Grow_t method;
13836  
13837 CFISH_UNUSED_VAR(cv);
13838 0 SP -= items;
13839 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13840 0 XSBind_invalid_args_error(aTHX_ cv, "self, capacity");
13841 }
13842  
13843 /* Extract vars from Perl stack. */
13844 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13845 0 sv = ST(1);
13846 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
13847 0 XSBind_undef_arg_error(aTHX_ "capacity");
13848 }
13849 0 arg_capacity = (size_t)SvIV(sv);
13850  
13851 /* Execute */
13852 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Grow);
13853 0 method(arg_self, arg_capacity);
13854 0 XSRETURN(0);
13855 }
13856  
13857 XS_INTERNAL(XS_Lucy_Object_BitVector_mimic);
13858 0 XS_INTERNAL(XS_Lucy_Object_BitVector_mimic) {
13859 0 dXSARGS;
13860 SV *sv;
13861 lucy_BitVector* arg_self;
13862 cfish_Obj* arg_other;
13863 LUCY_BitVec_Mimic_t method;
13864  
13865 CFISH_UNUSED_VAR(cv);
13866 0 SP -= items;
13867 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13868 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
13869 }
13870  
13871 /* Extract vars from Perl stack. */
13872 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13873 0 sv = ST(1);
13874 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
13875  
13876 /* Execute */
13877 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Mimic);
13878 0 method(arg_self, arg_other);
13879 0 XSRETURN(0);
13880 }
13881  
13882 XS_INTERNAL(XS_Lucy_Object_BitVector_and);
13883 0 XS_INTERNAL(XS_Lucy_Object_BitVector_and) {
13884 0 dXSARGS;
13885 SV *sv;
13886 lucy_BitVector* arg_self;
13887 const lucy_BitVector* arg_other;
13888 LUCY_BitVec_And_t method;
13889  
13890 CFISH_UNUSED_VAR(cv);
13891 0 SP -= items;
13892 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13893 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
13894 }
13895  
13896 /* Extract vars from Perl stack. */
13897 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13898 0 sv = ST(1);
13899 0 arg_other = (lucy_BitVector*)XSBind_arg_to_cfish(aTHX_ sv, "other", LUCY_BITVECTOR, NULL);
13900  
13901 /* Execute */
13902 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_And);
13903 0 method(arg_self, arg_other);
13904 0 XSRETURN(0);
13905 }
13906  
13907 XS_INTERNAL(XS_Lucy_Object_BitVector_or);
13908 0 XS_INTERNAL(XS_Lucy_Object_BitVector_or) {
13909 0 dXSARGS;
13910 SV *sv;
13911 lucy_BitVector* arg_self;
13912 const lucy_BitVector* arg_other;
13913 LUCY_BitVec_Or_t method;
13914  
13915 CFISH_UNUSED_VAR(cv);
13916 0 SP -= items;
13917 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13918 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
13919 }
13920  
13921 /* Extract vars from Perl stack. */
13922 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13923 0 sv = ST(1);
13924 0 arg_other = (lucy_BitVector*)XSBind_arg_to_cfish(aTHX_ sv, "other", LUCY_BITVECTOR, NULL);
13925  
13926 /* Execute */
13927 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Or);
13928 0 method(arg_self, arg_other);
13929 0 XSRETURN(0);
13930 }
13931  
13932 XS_INTERNAL(XS_Lucy_Object_BitVector_xor);
13933 0 XS_INTERNAL(XS_Lucy_Object_BitVector_xor) {
13934 0 dXSARGS;
13935 SV *sv;
13936 lucy_BitVector* arg_self;
13937 const lucy_BitVector* arg_other;
13938 LUCY_BitVec_Xor_t method;
13939  
13940 CFISH_UNUSED_VAR(cv);
13941 0 SP -= items;
13942 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13943 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
13944 }
13945  
13946 /* Extract vars from Perl stack. */
13947 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13948 0 sv = ST(1);
13949 0 arg_other = (lucy_BitVector*)XSBind_arg_to_cfish(aTHX_ sv, "other", LUCY_BITVECTOR, NULL);
13950  
13951 /* Execute */
13952 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Xor);
13953 0 method(arg_self, arg_other);
13954 0 XSRETURN(0);
13955 }
13956  
13957 XS_INTERNAL(XS_Lucy_Object_BitVector_and_not);
13958 0 XS_INTERNAL(XS_Lucy_Object_BitVector_and_not) {
13959 0 dXSARGS;
13960 SV *sv;
13961 lucy_BitVector* arg_self;
13962 const lucy_BitVector* arg_other;
13963 LUCY_BitVec_And_Not_t method;
13964  
13965 CFISH_UNUSED_VAR(cv);
13966 0 SP -= items;
13967 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13968 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
13969 }
13970  
13971 /* Extract vars from Perl stack. */
13972 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13973 0 sv = ST(1);
13974 0 arg_other = (lucy_BitVector*)XSBind_arg_to_cfish(aTHX_ sv, "other", LUCY_BITVECTOR, NULL);
13975  
13976 /* Execute */
13977 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_And_Not);
13978 0 method(arg_self, arg_other);
13979 0 XSRETURN(0);
13980 }
13981  
13982 XS_INTERNAL(XS_Lucy_Object_BitVector_flip);
13983 0 XS_INTERNAL(XS_Lucy_Object_BitVector_flip) {
13984 0 dXSARGS;
13985 SV *sv;
13986 lucy_BitVector* arg_self;
13987 size_t arg_tick;
13988 LUCY_BitVec_Flip_t method;
13989  
13990 CFISH_UNUSED_VAR(cv);
13991 0 SP -= items;
13992 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
13993 0 XSBind_invalid_args_error(aTHX_ cv, "self, tick");
13994 }
13995  
13996 /* Extract vars from Perl stack. */
13997 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
13998 0 sv = ST(1);
13999 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14000 0 XSBind_undef_arg_error(aTHX_ "tick");
14001 }
14002 0 arg_tick = (size_t)SvIV(sv);
14003  
14004 /* Execute */
14005 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Flip);
14006 0 method(arg_self, arg_tick);
14007 0 XSRETURN(0);
14008 }
14009  
14010 XS_INTERNAL(XS_Lucy_Object_BitVector_flip_block);
14011 0 XS_INTERNAL(XS_Lucy_Object_BitVector_flip_block) {
14012 0 dXSARGS;
14013 static const XSBind_ParamSpec param_specs[2] = {
14014 XSBIND_PARAM("offset", 1),
14015 XSBIND_PARAM("length", 1)
14016 };
14017 int32_t locations[2];
14018 SV *sv;
14019 lucy_BitVector* arg_self;
14020 size_t arg_offset;
14021 size_t arg_length;
14022 LUCY_BitVec_Flip_Block_t method;
14023  
14024 CFISH_UNUSED_VAR(cv);
14025 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
14026 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
14027 }
14028 0 SP -= items;
14029  
14030 /* Locate args on Perl stack. */
14031 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
14032 locations, 2);
14033 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
14034 0 sv = ST(locations[0]);
14035 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14036 0 XSBind_undef_arg_error(aTHX_ "offset");
14037 }
14038 0 arg_offset = (size_t)SvIV(sv);
14039 0 sv = ST(locations[1]);
14040 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14041 0 XSBind_undef_arg_error(aTHX_ "length");
14042 }
14043 0 arg_length = (size_t)SvIV(sv);
14044  
14045 /* Execute */
14046 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Flip_Block);
14047 0 method(arg_self, arg_offset, arg_length);
14048 0 XSRETURN(0);
14049 }
14050  
14051 XS_INTERNAL(XS_Lucy_Object_BitVector_count);
14052 1 XS_INTERNAL(XS_Lucy_Object_BitVector_count) {
14053 1 dXSARGS;
14054 lucy_BitVector* arg_self;
14055 LUCY_BitVec_Count_t method;
14056 size_t retval;
14057  
14058 CFISH_UNUSED_VAR(cv);
14059 1 SP -= items;
14060 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
14061 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14062 }
14063  
14064 /* Extract vars from Perl stack. */
14065 1 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
14066  
14067 /* Execute */
14068 1 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Count);
14069 1 retval = method(arg_self);
14070 1 ST(0) = newSViv(retval);
14071 1 sv_2mortal( ST(0) );
14072 1 XSRETURN(1);
14073 }
14074  
14075 XS_INTERNAL(XS_Lucy_Object_BitVector_to_array);
14076 39 XS_INTERNAL(XS_Lucy_Object_BitVector_to_array) {
14077 39 dXSARGS;
14078 lucy_BitVector* arg_self;
14079 LUCY_BitVec_To_Array_t method;
14080 lucy_I32Array* retval;
14081  
14082 CFISH_UNUSED_VAR(cv);
14083 39 SP -= items;
14084 39 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 39 39
14085 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14086 }
14087  
14088 /* Extract vars from Perl stack. */
14089 39 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
14090  
14091 /* Execute */
14092 39 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_To_Array);
14093 39 retval = method(arg_self);
14094 39 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
14095 39 CFISH_DECREF(retval);
14096 39 sv_2mortal( ST(0) );
14097 39 XSRETURN(1);
14098 }
14099  
14100 XS_INTERNAL(XS_Lucy_Object_BitVector_clone);
14101 0 XS_INTERNAL(XS_Lucy_Object_BitVector_clone) {
14102 0 dXSARGS;
14103 lucy_BitVector* arg_self;
14104 LUCY_BitVec_Clone_t method;
14105 lucy_BitVector* retval;
14106  
14107 CFISH_UNUSED_VAR(cv);
14108 0 SP -= items;
14109 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
14110 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14111 }
14112  
14113 /* Extract vars from Perl stack. */
14114 0 arg_self = (lucy_BitVector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECTOR, NULL);
14115  
14116 /* Execute */
14117 0 method = CFISH_METHOD_PTR(LUCY_BITVECTOR, LUCY_BitVec_Clone);
14118 0 retval = method(arg_self);
14119 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
14120 0 CFISH_DECREF(retval);
14121 0 sv_2mortal( ST(0) );
14122 0 XSRETURN(1);
14123 }
14124  
14125 XS_INTERNAL(XS_Lucy_Index_BitVecDelDocs_new);
14126 0 XS_INTERNAL(XS_Lucy_Index_BitVecDelDocs_new) {
14127 0 dXSARGS;
14128 static const XSBind_ParamSpec param_specs[2] = {
14129 XSBIND_PARAM("folder", 1),
14130 XSBIND_PARAM("filename", 1)
14131 };
14132 int32_t locations[2];
14133 SV *sv;
14134 lucy_BitVecDelDocs* arg_self;
14135 lucy_Folder* arg_folder;
14136 cfish_String* arg_filename;
14137 lucy_BitVecDelDocs* retval;
14138  
14139 CFISH_UNUSED_VAR(cv);
14140 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
14141 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
14142 }
14143 0 SP -= items;
14144  
14145 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
14146 locations, 2);
14147 0 sv = ST(locations[0]);
14148 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
14149 0 sv = ST(locations[1]);
14150 0 arg_filename = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "filename", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
14151 0 arg_self = (lucy_BitVecDelDocs*)XSBind_new_blank_obj(aTHX_ ST(0));
14152  
14153 0 retval = lucy_BitVecDelDocs_init(arg_self, arg_folder, arg_filename);
14154 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
14155 0 XSRETURN(1);
14156 }
14157  
14158  
14159 XS_INTERNAL(XS_Lucy_Object_I32Array_set);
14160 0 XS_INTERNAL(XS_Lucy_Object_I32Array_set) {
14161 0 dXSARGS;
14162 static const XSBind_ParamSpec param_specs[2] = {
14163 XSBIND_PARAM("tick", 1),
14164 XSBIND_PARAM("value", 1)
14165 };
14166 int32_t locations[2];
14167 SV *sv;
14168 lucy_I32Array* arg_self;
14169 size_t arg_tick;
14170 int32_t arg_value;
14171 LUCY_I32Arr_Set_t method;
14172  
14173 CFISH_UNUSED_VAR(cv);
14174 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
14175 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
14176 }
14177 0 SP -= items;
14178  
14179 /* Locate args on Perl stack. */
14180 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
14181 locations, 2);
14182 0 arg_self = (lucy_I32Array*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_I32ARRAY, NULL);
14183 0 sv = ST(locations[0]);
14184 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14185 0 XSBind_undef_arg_error(aTHX_ "tick");
14186 }
14187 0 arg_tick = (size_t)SvIV(sv);
14188 0 sv = ST(locations[1]);
14189 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14190 0 XSBind_undef_arg_error(aTHX_ "value");
14191 }
14192 0 arg_value = (int32_t)SvIV(sv);
14193  
14194 /* Execute */
14195 0 method = CFISH_METHOD_PTR(LUCY_I32ARRAY, LUCY_I32Arr_Set);
14196 0 method(arg_self, arg_tick, arg_value);
14197 0 XSRETURN(0);
14198 }
14199  
14200 XS_INTERNAL(XS_Lucy_Object_I32Array_get);
14201 56 XS_INTERNAL(XS_Lucy_Object_I32Array_get) {
14202 56 dXSARGS;
14203 SV *sv;
14204 lucy_I32Array* arg_self;
14205 size_t arg_tick;
14206 LUCY_I32Arr_Get_t method;
14207 int32_t retval;
14208  
14209 CFISH_UNUSED_VAR(cv);
14210 56 SP -= items;
14211 56 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 56 56
14212 0 XSBind_invalid_args_error(aTHX_ cv, "self, tick");
14213 }
14214  
14215 /* Extract vars from Perl stack. */
14216 56 arg_self = (lucy_I32Array*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_I32ARRAY, NULL);
14217 56 sv = ST(1);
14218 56 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 56 56
14219 0 XSBind_undef_arg_error(aTHX_ "tick");
14220 }
14221 56 arg_tick = (size_t)SvIV(sv);
14222  
14223 /* Execute */
14224 56 method = CFISH_METHOD_PTR(LUCY_I32ARRAY, LUCY_I32Arr_Get);
14225 56 retval = method(arg_self, arg_tick);
14226 56 ST(0) = newSViv(retval);
14227 56 sv_2mortal( ST(0) );
14228 56 XSRETURN(1);
14229 }
14230  
14231 XS_INTERNAL(XS_Lucy_Object_I32Array_get_size);
14232 3763 XS_INTERNAL(XS_Lucy_Object_I32Array_get_size) {
14233 3763 dXSARGS;
14234 lucy_I32Array* arg_self;
14235 LUCY_I32Arr_Get_Size_t method;
14236 size_t retval;
14237  
14238 CFISH_UNUSED_VAR(cv);
14239 3763 SP -= items;
14240 3763 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 3763 3763
14241 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14242 }
14243  
14244 /* Extract vars from Perl stack. */
14245 3763 arg_self = (lucy_I32Array*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_I32ARRAY, NULL);
14246  
14247 /* Execute */
14248 3763 method = CFISH_METHOD_PTR(LUCY_I32ARRAY, LUCY_I32Arr_Get_Size);
14249 3763 retval = method(arg_self);
14250 3763 ST(0) = newSViv(retval);
14251 3763 sv_2mortal( ST(0) );
14252 3763 XSRETURN(1);
14253 }
14254  
14255 XS_INTERNAL(XS_Lucy_Plan_Architecture_new);
14256 154 XS_INTERNAL(XS_Lucy_Plan_Architecture_new) {
14257 154 dXSARGS;
14258 lucy_Architecture* arg_self;
14259 lucy_Architecture* retval;
14260  
14261 CFISH_UNUSED_VAR(cv);
14262 154 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 154 154
14263 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
14264 }
14265 154 SP -= items;
14266  
14267 154 arg_self = (lucy_Architecture*)XSBind_new_blank_obj(aTHX_ ST(0));
14268  
14269 154 retval = lucy_Arch_init(arg_self);
14270 154 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
14271 154 XSRETURN(1);
14272 }
14273  
14274  
14275 XS_INTERNAL(XS_Lucy_Plan_Architecture_init_seg_writer);
14276 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_init_seg_writer) {
14277 0 dXSARGS;
14278 SV *sv;
14279 lucy_Architecture* arg_self;
14280 lucy_SegWriter* arg_writer;
14281 LUCY_Arch_Init_Seg_Writer_t method;
14282  
14283 CFISH_UNUSED_VAR(cv);
14284 0 SP -= items;
14285 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14286 0 XSBind_invalid_args_error(aTHX_ cv, "self, writer");
14287 }
14288  
14289 /* Extract vars from Perl stack. */
14290 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14291 0 sv = ST(1);
14292 0 arg_writer = (lucy_SegWriter*)XSBind_arg_to_cfish(aTHX_ sv, "writer", LUCY_SEGWRITER, NULL);
14293  
14294 /* Execute */
14295 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Init_Seg_Writer);
14296 0 method(arg_self, arg_writer);
14297 0 XSRETURN(0);
14298 }
14299  
14300 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_lexicon_writer);
14301 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_lexicon_writer) {
14302 0 dXSARGS;
14303 SV *sv;
14304 lucy_Architecture* arg_self;
14305 lucy_SegWriter* arg_writer;
14306 LUCY_Arch_Register_Lexicon_Writer_t method;
14307  
14308 CFISH_UNUSED_VAR(cv);
14309 0 SP -= items;
14310 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14311 0 XSBind_invalid_args_error(aTHX_ cv, "self, writer");
14312 }
14313  
14314 /* Extract vars from Perl stack. */
14315 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14316 0 sv = ST(1);
14317 0 arg_writer = (lucy_SegWriter*)XSBind_arg_to_cfish(aTHX_ sv, "writer", LUCY_SEGWRITER, NULL);
14318  
14319 /* Execute */
14320 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Lexicon_Writer);
14321 0 method(arg_self, arg_writer);
14322 0 XSRETURN(0);
14323 }
14324  
14325 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_posting_list_writer);
14326 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_posting_list_writer) {
14327 0 dXSARGS;
14328 SV *sv;
14329 lucy_Architecture* arg_self;
14330 lucy_SegWriter* arg_writer;
14331 LUCY_Arch_Register_Posting_List_Writer_t method;
14332  
14333 CFISH_UNUSED_VAR(cv);
14334 0 SP -= items;
14335 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14336 0 XSBind_invalid_args_error(aTHX_ cv, "self, writer");
14337 }
14338  
14339 /* Extract vars from Perl stack. */
14340 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14341 0 sv = ST(1);
14342 0 arg_writer = (lucy_SegWriter*)XSBind_arg_to_cfish(aTHX_ sv, "writer", LUCY_SEGWRITER, NULL);
14343  
14344 /* Execute */
14345 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Posting_List_Writer);
14346 0 method(arg_self, arg_writer);
14347 0 XSRETURN(0);
14348 }
14349  
14350 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_doc_writer);
14351 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_doc_writer) {
14352 0 dXSARGS;
14353 SV *sv;
14354 lucy_Architecture* arg_self;
14355 lucy_SegWriter* arg_writer;
14356 LUCY_Arch_Register_Doc_Writer_t method;
14357  
14358 CFISH_UNUSED_VAR(cv);
14359 0 SP -= items;
14360 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14361 0 XSBind_invalid_args_error(aTHX_ cv, "self, writer");
14362 }
14363  
14364 /* Extract vars from Perl stack. */
14365 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14366 0 sv = ST(1);
14367 0 arg_writer = (lucy_SegWriter*)XSBind_arg_to_cfish(aTHX_ sv, "writer", LUCY_SEGWRITER, NULL);
14368  
14369 /* Execute */
14370 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Doc_Writer);
14371 0 method(arg_self, arg_writer);
14372 0 XSRETURN(0);
14373 }
14374  
14375 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_sort_writer);
14376 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_sort_writer) {
14377 0 dXSARGS;
14378 SV *sv;
14379 lucy_Architecture* arg_self;
14380 lucy_SegWriter* arg_writer;
14381 LUCY_Arch_Register_Sort_Writer_t method;
14382  
14383 CFISH_UNUSED_VAR(cv);
14384 0 SP -= items;
14385 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14386 0 XSBind_invalid_args_error(aTHX_ cv, "self, writer");
14387 }
14388  
14389 /* Extract vars from Perl stack. */
14390 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14391 0 sv = ST(1);
14392 0 arg_writer = (lucy_SegWriter*)XSBind_arg_to_cfish(aTHX_ sv, "writer", LUCY_SEGWRITER, NULL);
14393  
14394 /* Execute */
14395 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Sort_Writer);
14396 0 method(arg_self, arg_writer);
14397 0 XSRETURN(0);
14398 }
14399  
14400 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_highlight_writer);
14401 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_highlight_writer) {
14402 0 dXSARGS;
14403 SV *sv;
14404 lucy_Architecture* arg_self;
14405 lucy_SegWriter* arg_writer;
14406 LUCY_Arch_Register_Highlight_Writer_t method;
14407  
14408 CFISH_UNUSED_VAR(cv);
14409 0 SP -= items;
14410 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14411 0 XSBind_invalid_args_error(aTHX_ cv, "self, writer");
14412 }
14413  
14414 /* Extract vars from Perl stack. */
14415 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14416 0 sv = ST(1);
14417 0 arg_writer = (lucy_SegWriter*)XSBind_arg_to_cfish(aTHX_ sv, "writer", LUCY_SEGWRITER, NULL);
14418  
14419 /* Execute */
14420 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Highlight_Writer);
14421 0 method(arg_self, arg_writer);
14422 0 XSRETURN(0);
14423 }
14424  
14425 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_deletions_writer);
14426 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_deletions_writer) {
14427 0 dXSARGS;
14428 SV *sv;
14429 lucy_Architecture* arg_self;
14430 lucy_SegWriter* arg_writer;
14431 LUCY_Arch_Register_Deletions_Writer_t method;
14432  
14433 CFISH_UNUSED_VAR(cv);
14434 0 SP -= items;
14435 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14436 0 XSBind_invalid_args_error(aTHX_ cv, "self, writer");
14437 }
14438  
14439 /* Extract vars from Perl stack. */
14440 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14441 0 sv = ST(1);
14442 0 arg_writer = (lucy_SegWriter*)XSBind_arg_to_cfish(aTHX_ sv, "writer", LUCY_SEGWRITER, NULL);
14443  
14444 /* Execute */
14445 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Deletions_Writer);
14446 0 method(arg_self, arg_writer);
14447 0 XSRETURN(0);
14448 }
14449  
14450 XS_INTERNAL(XS_Lucy_Plan_Architecture_init_seg_reader);
14451 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_init_seg_reader) {
14452 0 dXSARGS;
14453 SV *sv;
14454 lucy_Architecture* arg_self;
14455 lucy_SegReader* arg_reader;
14456 LUCY_Arch_Init_Seg_Reader_t method;
14457  
14458 CFISH_UNUSED_VAR(cv);
14459 0 SP -= items;
14460 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14461 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
14462 }
14463  
14464 /* Extract vars from Perl stack. */
14465 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14466 0 sv = ST(1);
14467 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
14468  
14469 /* Execute */
14470 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Init_Seg_Reader);
14471 0 method(arg_self, arg_reader);
14472 0 XSRETURN(0);
14473 }
14474  
14475 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_doc_reader);
14476 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_doc_reader) {
14477 0 dXSARGS;
14478 SV *sv;
14479 lucy_Architecture* arg_self;
14480 lucy_SegReader* arg_reader;
14481 LUCY_Arch_Register_Doc_Reader_t method;
14482  
14483 CFISH_UNUSED_VAR(cv);
14484 0 SP -= items;
14485 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14486 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
14487 }
14488  
14489 /* Extract vars from Perl stack. */
14490 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14491 0 sv = ST(1);
14492 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
14493  
14494 /* Execute */
14495 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Doc_Reader);
14496 0 method(arg_self, arg_reader);
14497 0 XSRETURN(0);
14498 }
14499  
14500 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_posting_list_reader);
14501 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_posting_list_reader) {
14502 0 dXSARGS;
14503 SV *sv;
14504 lucy_Architecture* arg_self;
14505 lucy_SegReader* arg_reader;
14506 LUCY_Arch_Register_Posting_List_Reader_t method;
14507  
14508 CFISH_UNUSED_VAR(cv);
14509 0 SP -= items;
14510 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14511 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
14512 }
14513  
14514 /* Extract vars from Perl stack. */
14515 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14516 0 sv = ST(1);
14517 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
14518  
14519 /* Execute */
14520 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Posting_List_Reader);
14521 0 method(arg_self, arg_reader);
14522 0 XSRETURN(0);
14523 }
14524  
14525 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_sort_reader);
14526 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_sort_reader) {
14527 0 dXSARGS;
14528 SV *sv;
14529 lucy_Architecture* arg_self;
14530 lucy_SegReader* arg_reader;
14531 LUCY_Arch_Register_Sort_Reader_t method;
14532  
14533 CFISH_UNUSED_VAR(cv);
14534 0 SP -= items;
14535 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14536 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
14537 }
14538  
14539 /* Extract vars from Perl stack. */
14540 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14541 0 sv = ST(1);
14542 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
14543  
14544 /* Execute */
14545 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Sort_Reader);
14546 0 method(arg_self, arg_reader);
14547 0 XSRETURN(0);
14548 }
14549  
14550 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_highlight_reader);
14551 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_highlight_reader) {
14552 0 dXSARGS;
14553 SV *sv;
14554 lucy_Architecture* arg_self;
14555 lucy_SegReader* arg_reader;
14556 LUCY_Arch_Register_Highlight_Reader_t method;
14557  
14558 CFISH_UNUSED_VAR(cv);
14559 0 SP -= items;
14560 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14561 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
14562 }
14563  
14564 /* Extract vars from Perl stack. */
14565 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14566 0 sv = ST(1);
14567 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
14568  
14569 /* Execute */
14570 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Highlight_Reader);
14571 0 method(arg_self, arg_reader);
14572 0 XSRETURN(0);
14573 }
14574  
14575 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_lexicon_reader);
14576 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_lexicon_reader) {
14577 0 dXSARGS;
14578 SV *sv;
14579 lucy_Architecture* arg_self;
14580 lucy_SegReader* arg_reader;
14581 LUCY_Arch_Register_Lexicon_Reader_t method;
14582  
14583 CFISH_UNUSED_VAR(cv);
14584 0 SP -= items;
14585 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14586 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
14587 }
14588  
14589 /* Extract vars from Perl stack. */
14590 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14591 0 sv = ST(1);
14592 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
14593  
14594 /* Execute */
14595 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Lexicon_Reader);
14596 0 method(arg_self, arg_reader);
14597 0 XSRETURN(0);
14598 }
14599  
14600 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_deletions_reader);
14601 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_register_deletions_reader) {
14602 0 dXSARGS;
14603 SV *sv;
14604 lucy_Architecture* arg_self;
14605 lucy_SegReader* arg_reader;
14606 LUCY_Arch_Register_Deletions_Reader_t method;
14607  
14608 CFISH_UNUSED_VAR(cv);
14609 0 SP -= items;
14610 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14611 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
14612 }
14613  
14614 /* Extract vars from Perl stack. */
14615 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14616 0 sv = ST(1);
14617 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
14618  
14619 /* Execute */
14620 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Register_Deletions_Reader);
14621 0 method(arg_self, arg_reader);
14622 0 XSRETURN(0);
14623 }
14624  
14625 XS_INTERNAL(XS_Lucy_Plan_Architecture_make_similarity);
14626 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_make_similarity) {
14627 0 dXSARGS;
14628 lucy_Architecture* arg_self;
14629 LUCY_Arch_Make_Similarity_t method;
14630 lucy_Similarity* retval;
14631  
14632 CFISH_UNUSED_VAR(cv);
14633 0 SP -= items;
14634 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
14635 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14636 }
14637  
14638 /* Extract vars from Perl stack. */
14639 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14640  
14641 /* Execute */
14642 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Make_Similarity);
14643 0 retval = method(arg_self);
14644 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
14645 0 CFISH_DECREF(retval);
14646 0 sv_2mortal( ST(0) );
14647 0 XSRETURN(1);
14648 }
14649  
14650 XS_INTERNAL(XS_Lucy_Plan_Architecture_index_interval);
14651 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_index_interval) {
14652 0 dXSARGS;
14653 lucy_Architecture* arg_self;
14654 LUCY_Arch_Index_Interval_t method;
14655 int32_t retval;
14656  
14657 CFISH_UNUSED_VAR(cv);
14658 0 SP -= items;
14659 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
14660 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14661 }
14662  
14663 /* Extract vars from Perl stack. */
14664 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14665  
14666 /* Execute */
14667 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Index_Interval);
14668 0 retval = method(arg_self);
14669 0 ST(0) = newSViv(retval);
14670 0 sv_2mortal( ST(0) );
14671 0 XSRETURN(1);
14672 }
14673  
14674 XS_INTERNAL(XS_Lucy_Plan_Architecture_skip_interval);
14675 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_skip_interval) {
14676 0 dXSARGS;
14677 lucy_Architecture* arg_self;
14678 LUCY_Arch_Skip_Interval_t method;
14679 int32_t retval;
14680  
14681 CFISH_UNUSED_VAR(cv);
14682 0 SP -= items;
14683 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
14684 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14685 }
14686  
14687 /* Extract vars from Perl stack. */
14688 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14689  
14690 /* Execute */
14691 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Skip_Interval);
14692 0 retval = method(arg_self);
14693 0 ST(0) = newSViv(retval);
14694 0 sv_2mortal( ST(0) );
14695 0 XSRETURN(1);
14696 }
14697  
14698 XS_INTERNAL(XS_Lucy_Plan_Architecture_equals);
14699 0 XS_INTERNAL(XS_Lucy_Plan_Architecture_equals) {
14700 0 dXSARGS;
14701 SV *sv;
14702 lucy_Architecture* arg_self;
14703 cfish_Obj* arg_other;
14704 LUCY_Arch_Equals_t method;
14705 bool retval;
14706  
14707 CFISH_UNUSED_VAR(cv);
14708 0 SP -= items;
14709 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14710 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
14711 }
14712  
14713 /* Extract vars from Perl stack. */
14714 0 arg_self = (lucy_Architecture*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ARCHITECTURE, NULL);
14715 0 sv = ST(1);
14716 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
14717  
14718 /* Execute */
14719 0 method = CFISH_METHOD_PTR(LUCY_ARCHITECTURE, LUCY_Arch_Equals);
14720 0 retval = method(arg_self, arg_other);
14721 0 ST(0) = newSViv(!!retval);
14722 0 sv_2mortal( ST(0) );
14723 0 XSRETURN(1);
14724 }
14725  
14726 XS_INTERNAL(XS_Lucy_Plan_FieldType_new);
14727 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_new) {
14728 0 dXSARGS;
14729 static const XSBind_ParamSpec param_specs[4] = {
14730 XSBIND_PARAM("boost", 0),
14731 XSBIND_PARAM("indexed", 0),
14732 XSBIND_PARAM("stored", 0),
14733 XSBIND_PARAM("sortable", 0)
14734 };
14735 int32_t locations[4];
14736 SV *sv;
14737 lucy_FieldType* arg_self;
14738 float arg_boost;
14739 bool arg_indexed;
14740 bool arg_stored;
14741 bool arg_sortable;
14742 lucy_FieldType* retval;
14743  
14744 CFISH_UNUSED_VAR(cv);
14745 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
14746 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
14747 }
14748 0 SP -= items;
14749  
14750 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
14751 locations, 4);
14752 0 sv = ST(locations[0]);
14753 0 ▶ arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
14754 0 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 0 0 0
14755 0 sv = ST(locations[1]);
14756 0 ▶ arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
14757 0 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
14758 0 sv = ST(locations[2]);
14759 0 ▶ arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
14760 0 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
14761 0 sv = ST(locations[3]);
14762 0 ▶ arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
14763 0 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
14764 0 arg_self = (lucy_FieldType*)XSBind_new_blank_obj(aTHX_ ST(0));
14765  
14766 0 retval = lucy_FType_init2(arg_self, arg_boost, arg_indexed, arg_stored, arg_sortable);
14767 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
14768 0 XSRETURN(1);
14769 }
14770  
14771  
14772 XS_INTERNAL(XS_Lucy_Plan_FieldType_set_boost);
14773 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_set_boost) {
14774 0 dXSARGS;
14775 SV *sv;
14776 lucy_FieldType* arg_self;
14777 float arg_boost;
14778 LUCY_FType_Set_Boost_t method;
14779  
14780 CFISH_UNUSED_VAR(cv);
14781 0 SP -= items;
14782 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14783 0 XSBind_invalid_args_error(aTHX_ cv, "self, boost");
14784 }
14785  
14786 /* Extract vars from Perl stack. */
14787 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14788 0 sv = ST(1);
14789 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14790 0 XSBind_undef_arg_error(aTHX_ "boost");
14791 }
14792 0 arg_boost = (float)SvNV(sv);
14793  
14794 /* Execute */
14795 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Set_Boost);
14796 0 method(arg_self, arg_boost);
14797 0 XSRETURN(0);
14798 }
14799  
14800 XS_INTERNAL(XS_Lucy_Plan_FieldType_get_boost);
14801 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_get_boost) {
14802 0 dXSARGS;
14803 lucy_FieldType* arg_self;
14804 LUCY_FType_Get_Boost_t method;
14805 float retval;
14806  
14807 CFISH_UNUSED_VAR(cv);
14808 0 SP -= items;
14809 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
14810 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14811 }
14812  
14813 /* Extract vars from Perl stack. */
14814 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14815  
14816 /* Execute */
14817 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Get_Boost);
14818 0 retval = method(arg_self);
14819 0 ST(0) = newSVnv(retval);
14820 0 sv_2mortal( ST(0) );
14821 0 XSRETURN(1);
14822 }
14823  
14824 XS_INTERNAL(XS_Lucy_Plan_FieldType_set_indexed);
14825 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_set_indexed) {
14826 0 dXSARGS;
14827 SV *sv;
14828 lucy_FieldType* arg_self;
14829 bool arg_indexed;
14830 LUCY_FType_Set_Indexed_t method;
14831  
14832 CFISH_UNUSED_VAR(cv);
14833 0 SP -= items;
14834 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14835 0 XSBind_invalid_args_error(aTHX_ cv, "self, indexed");
14836 }
14837  
14838 /* Extract vars from Perl stack. */
14839 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14840 0 sv = ST(1);
14841 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14842 0 XSBind_undef_arg_error(aTHX_ "indexed");
14843 }
14844 0 arg_indexed = XSBind_sv_true(aTHX_ sv);
14845  
14846 /* Execute */
14847 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Set_Indexed);
14848 0 method(arg_self, arg_indexed);
14849 0 XSRETURN(0);
14850 }
14851  
14852 XS_INTERNAL(XS_Lucy_Plan_FieldType_indexed);
14853 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_indexed) {
14854 0 dXSARGS;
14855 lucy_FieldType* arg_self;
14856 LUCY_FType_Indexed_t method;
14857 bool retval;
14858  
14859 CFISH_UNUSED_VAR(cv);
14860 0 SP -= items;
14861 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
14862 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14863 }
14864  
14865 /* Extract vars from Perl stack. */
14866 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14867  
14868 /* Execute */
14869 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Indexed);
14870 0 retval = method(arg_self);
14871 0 ST(0) = newSViv(!!retval);
14872 0 sv_2mortal( ST(0) );
14873 0 XSRETURN(1);
14874 }
14875  
14876 XS_INTERNAL(XS_Lucy_Plan_FieldType_set_stored);
14877 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_set_stored) {
14878 0 dXSARGS;
14879 SV *sv;
14880 lucy_FieldType* arg_self;
14881 bool arg_stored;
14882 LUCY_FType_Set_Stored_t method;
14883  
14884 CFISH_UNUSED_VAR(cv);
14885 0 SP -= items;
14886 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14887 0 XSBind_invalid_args_error(aTHX_ cv, "self, stored");
14888 }
14889  
14890 /* Extract vars from Perl stack. */
14891 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14892 0 sv = ST(1);
14893 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14894 0 XSBind_undef_arg_error(aTHX_ "stored");
14895 }
14896 0 arg_stored = XSBind_sv_true(aTHX_ sv);
14897  
14898 /* Execute */
14899 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Set_Stored);
14900 0 method(arg_self, arg_stored);
14901 0 XSRETURN(0);
14902 }
14903  
14904 XS_INTERNAL(XS_Lucy_Plan_FieldType_stored);
14905 52 XS_INTERNAL(XS_Lucy_Plan_FieldType_stored) {
14906 52 dXSARGS;
14907 lucy_FieldType* arg_self;
14908 LUCY_FType_Stored_t method;
14909 bool retval;
14910  
14911 CFISH_UNUSED_VAR(cv);
14912 52 SP -= items;
14913 52 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 52 52
14914 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14915 }
14916  
14917 /* Extract vars from Perl stack. */
14918 52 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14919  
14920 /* Execute */
14921 52 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Stored);
14922 52 retval = method(arg_self);
14923 52 ST(0) = newSViv(!!retval);
14924 52 sv_2mortal( ST(0) );
14925 52 XSRETURN(1);
14926 }
14927  
14928 XS_INTERNAL(XS_Lucy_Plan_FieldType_set_sortable);
14929 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_set_sortable) {
14930 0 dXSARGS;
14931 SV *sv;
14932 lucy_FieldType* arg_self;
14933 bool arg_sortable;
14934 LUCY_FType_Set_Sortable_t method;
14935  
14936 CFISH_UNUSED_VAR(cv);
14937 0 SP -= items;
14938 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
14939 0 XSBind_invalid_args_error(aTHX_ cv, "self, sortable");
14940 }
14941  
14942 /* Extract vars from Perl stack. */
14943 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14944 0 sv = ST(1);
14945 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
14946 0 XSBind_undef_arg_error(aTHX_ "sortable");
14947 }
14948 0 arg_sortable = XSBind_sv_true(aTHX_ sv);
14949  
14950 /* Execute */
14951 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Set_Sortable);
14952 0 method(arg_self, arg_sortable);
14953 0 XSRETURN(0);
14954 }
14955  
14956 XS_INTERNAL(XS_Lucy_Plan_FieldType_sortable);
14957 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_sortable) {
14958 0 dXSARGS;
14959 lucy_FieldType* arg_self;
14960 LUCY_FType_Sortable_t method;
14961 bool retval;
14962  
14963 CFISH_UNUSED_VAR(cv);
14964 0 SP -= items;
14965 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
14966 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14967 }
14968  
14969 /* Extract vars from Perl stack. */
14970 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14971  
14972 /* Execute */
14973 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Sortable);
14974 0 retval = method(arg_self);
14975 0 ST(0) = newSViv(!!retval);
14976 0 sv_2mortal( ST(0) );
14977 0 XSRETURN(1);
14978 }
14979  
14980 XS_INTERNAL(XS_Lucy_Plan_FieldType_binary);
14981 18 XS_INTERNAL(XS_Lucy_Plan_FieldType_binary) {
14982 18 dXSARGS;
14983 lucy_FieldType* arg_self;
14984 LUCY_FType_Binary_t method;
14985 bool retval;
14986  
14987 CFISH_UNUSED_VAR(cv);
14988 18 SP -= items;
14989 18 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 18 18
14990 0 XSBind_invalid_args_error(aTHX_ cv, "self");
14991 }
14992  
14993 /* Extract vars from Perl stack. */
14994 18 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
14995  
14996 /* Execute */
14997 18 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Binary);
14998 18 retval = method(arg_self);
14999 18 ST(0) = newSViv(!!retval);
15000 18 sv_2mortal( ST(0) );
15001 18 XSRETURN(1);
15002 }
15003  
15004 XS_INTERNAL(XS_Lucy_Plan_FieldType_compare_values);
15005 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_compare_values) {
15006 0 dXSARGS;
15007 static const XSBind_ParamSpec param_specs[2] = {
15008 XSBIND_PARAM("a", 1),
15009 XSBIND_PARAM("b", 1)
15010 };
15011 int32_t locations[2];
15012 SV *sv;
15013 lucy_FieldType* arg_self;
15014 cfish_Obj* arg_a;
15015 cfish_Obj* arg_b;
15016 LUCY_FType_Compare_Values_t method;
15017 int32_t retval;
15018  
15019 CFISH_UNUSED_VAR(cv);
15020 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
15021 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
15022 }
15023 0 SP -= items;
15024  
15025 /* Locate args on Perl stack. */
15026 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
15027 locations, 2);
15028 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
15029 0 sv = ST(locations[0]);
15030 0 arg_a = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "a", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15031 0 sv = ST(locations[1]);
15032 0 arg_b = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "b", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15033  
15034 /* Execute */
15035 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Compare_Values);
15036 0 retval = method(arg_self, arg_a, arg_b);
15037 0 ST(0) = newSViv(retval);
15038 0 sv_2mortal( ST(0) );
15039 0 XSRETURN(1);
15040 }
15041  
15042 XS_INTERNAL(XS_Lucy_Plan_FieldType_make_term_stepper);
15043 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_make_term_stepper) {
15044 0 dXSARGS;
15045 lucy_FieldType* arg_self;
15046 LUCY_FType_Make_Term_Stepper_t method;
15047 lucy_TermStepper* retval;
15048  
15049 CFISH_UNUSED_VAR(cv);
15050 0 SP -= items;
15051 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15052 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15053 }
15054  
15055 /* Extract vars from Perl stack. */
15056 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
15057  
15058 /* Execute */
15059 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Make_Term_Stepper);
15060 0 retval = method(arg_self);
15061 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15062 0 CFISH_DECREF(retval);
15063 0 sv_2mortal( ST(0) );
15064 0 XSRETURN(1);
15065 }
15066  
15067 XS_INTERNAL(XS_Lucy_Plan_FieldType_primitive_id);
15068 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_primitive_id) {
15069 0 dXSARGS;
15070 lucy_FieldType* arg_self;
15071 LUCY_FType_Primitive_ID_t method;
15072 int8_t retval;
15073  
15074 CFISH_UNUSED_VAR(cv);
15075 0 SP -= items;
15076 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15077 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15078 }
15079  
15080 /* Extract vars from Perl stack. */
15081 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
15082  
15083 /* Execute */
15084 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Primitive_ID);
15085 0 retval = method(arg_self);
15086 0 ST(0) = newSViv(retval);
15087 0 sv_2mortal( ST(0) );
15088 0 XSRETURN(1);
15089 }
15090  
15091 XS_INTERNAL(XS_Lucy_Plan_FieldType_dump_for_schema);
15092 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_dump_for_schema) {
15093 0 dXSARGS;
15094 lucy_FieldType* arg_self;
15095 LUCY_FType_Dump_For_Schema_t method;
15096 cfish_Hash* retval;
15097  
15098 CFISH_UNUSED_VAR(cv);
15099 0 SP -= items;
15100 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15101 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15102 }
15103  
15104 /* Extract vars from Perl stack. */
15105 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
15106  
15107 /* Execute */
15108 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Dump_For_Schema);
15109 0 retval = method(arg_self);
15110 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15111 0 CFISH_DECREF(retval);
15112 0 sv_2mortal( ST(0) );
15113 0 XSRETURN(1);
15114 }
15115  
15116 XS_INTERNAL(XS_Lucy_Plan_FieldType_dump);
15117 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_dump) {
15118 0 dXSARGS;
15119 lucy_FieldType* arg_self;
15120 LUCY_FType_Dump_t method;
15121 cfish_Obj* retval;
15122  
15123 CFISH_UNUSED_VAR(cv);
15124 0 SP -= items;
15125 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15126 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15127 }
15128  
15129 /* Extract vars from Perl stack. */
15130 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
15131  
15132 /* Execute */
15133 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Dump);
15134 0 retval = method(arg_self);
15135 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15136 0 CFISH_DECREF(retval);
15137 0 sv_2mortal( ST(0) );
15138 0 XSRETURN(1);
15139 }
15140  
15141 XS_INTERNAL(XS_Lucy_Plan_FieldType_load);
15142 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_load) {
15143 0 dXSARGS;
15144 SV *sv;
15145 lucy_FieldType* arg_self;
15146 cfish_Obj* arg_dump;
15147 LUCY_FType_Load_t method;
15148 cfish_Obj* retval;
15149  
15150 CFISH_UNUSED_VAR(cv);
15151 0 SP -= items;
15152 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15153 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
15154 }
15155  
15156 /* Extract vars from Perl stack. */
15157 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
15158 0 sv = ST(1);
15159 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15160  
15161 /* Execute */
15162 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Load);
15163 0 retval = method(arg_self, arg_dump);
15164 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15165 0 CFISH_DECREF(retval);
15166 0 sv_2mortal( ST(0) );
15167 0 XSRETURN(1);
15168 }
15169  
15170 XS_INTERNAL(XS_Lucy_Plan_FieldType_equals);
15171 0 XS_INTERNAL(XS_Lucy_Plan_FieldType_equals) {
15172 0 dXSARGS;
15173 SV *sv;
15174 lucy_FieldType* arg_self;
15175 cfish_Obj* arg_other;
15176 LUCY_FType_Equals_t method;
15177 bool retval;
15178  
15179 CFISH_UNUSED_VAR(cv);
15180 0 SP -= items;
15181 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15182 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
15183 }
15184  
15185 /* Extract vars from Perl stack. */
15186 0 arg_self = (lucy_FieldType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FIELDTYPE, NULL);
15187 0 sv = ST(1);
15188 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15189  
15190 /* Execute */
15191 0 method = CFISH_METHOD_PTR(LUCY_FIELDTYPE, LUCY_FType_Equals);
15192 0 retval = method(arg_self, arg_other);
15193 0 ST(0) = newSViv(!!retval);
15194 0 sv_2mortal( ST(0) );
15195 0 XSRETURN(1);
15196 }
15197  
15198 XS_INTERNAL(XS_Lucy_Plan_BlobType_new);
15199 2 XS_INTERNAL(XS_Lucy_Plan_BlobType_new) {
15200 2 dXSARGS;
15201 static const XSBind_ParamSpec param_specs[1] = {
15202 XSBIND_PARAM("stored", 1)
15203 };
15204 int32_t locations[1];
15205 SV *sv;
15206 lucy_BlobType* arg_self;
15207 bool arg_stored;
15208 lucy_BlobType* retval;
15209  
15210 CFISH_UNUSED_VAR(cv);
15211 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
15212 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
15213 }
15214 2 SP -= items;
15215  
15216 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
15217 locations, 1);
15218 2 sv = ST(locations[0]);
15219 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
15220 0 XSBind_undef_arg_error(aTHX_ "stored");
15221 }
15222 2 arg_stored = XSBind_sv_true(aTHX_ sv);
15223 2 arg_self = (lucy_BlobType*)XSBind_new_blank_obj(aTHX_ ST(0));
15224  
15225 2 retval = lucy_BlobType_init(arg_self, arg_stored);
15226 2 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
15227 2 XSRETURN(1);
15228 }
15229  
15230  
15231 XS_INTERNAL(XS_Lucy_Plan_BlobType_binary);
15232 6 XS_INTERNAL(XS_Lucy_Plan_BlobType_binary) {
15233 6 dXSARGS;
15234 lucy_BlobType* arg_self;
15235 LUCY_BlobType_Binary_t method;
15236 bool retval;
15237  
15238 CFISH_UNUSED_VAR(cv);
15239 6 SP -= items;
15240 6 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 6 6
15241 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15242 }
15243  
15244 /* Extract vars from Perl stack. */
15245 6 arg_self = (lucy_BlobType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBTYPE, NULL);
15246  
15247 /* Execute */
15248 6 method = CFISH_METHOD_PTR(LUCY_BLOBTYPE, LUCY_BlobType_Binary);
15249 6 retval = method(arg_self);
15250 6 ST(0) = newSViv(!!retval);
15251 6 sv_2mortal( ST(0) );
15252 6 XSRETURN(1);
15253 }
15254  
15255 XS_INTERNAL(XS_Lucy_Plan_BlobType_set_sortable);
15256 0 XS_INTERNAL(XS_Lucy_Plan_BlobType_set_sortable) {
15257 0 dXSARGS;
15258 SV *sv;
15259 lucy_BlobType* arg_self;
15260 bool arg_sortable;
15261 LUCY_BlobType_Set_Sortable_t method;
15262  
15263 CFISH_UNUSED_VAR(cv);
15264 0 SP -= items;
15265 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15266 0 XSBind_invalid_args_error(aTHX_ cv, "self, sortable");
15267 }
15268  
15269 /* Extract vars from Perl stack. */
15270 0 arg_self = (lucy_BlobType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBTYPE, NULL);
15271 0 sv = ST(1);
15272 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
15273 0 XSBind_undef_arg_error(aTHX_ "sortable");
15274 }
15275 0 arg_sortable = XSBind_sv_true(aTHX_ sv);
15276  
15277 /* Execute */
15278 0 method = CFISH_METHOD_PTR(LUCY_BLOBTYPE, LUCY_BlobType_Set_Sortable);
15279 0 method(arg_self, arg_sortable);
15280 0 XSRETURN(0);
15281 }
15282  
15283 XS_INTERNAL(XS_Lucy_Plan_BlobType_primitive_id);
15284 0 XS_INTERNAL(XS_Lucy_Plan_BlobType_primitive_id) {
15285 0 dXSARGS;
15286 lucy_BlobType* arg_self;
15287 LUCY_BlobType_Primitive_ID_t method;
15288 int8_t retval;
15289  
15290 CFISH_UNUSED_VAR(cv);
15291 0 SP -= items;
15292 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15293 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15294 }
15295  
15296 /* Extract vars from Perl stack. */
15297 0 arg_self = (lucy_BlobType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBTYPE, NULL);
15298  
15299 /* Execute */
15300 0 method = CFISH_METHOD_PTR(LUCY_BLOBTYPE, LUCY_BlobType_Primitive_ID);
15301 0 retval = method(arg_self);
15302 0 ST(0) = newSViv(retval);
15303 0 sv_2mortal( ST(0) );
15304 0 XSRETURN(1);
15305 }
15306  
15307 XS_INTERNAL(XS_Lucy_Plan_BlobType_dump_for_schema);
15308 0 XS_INTERNAL(XS_Lucy_Plan_BlobType_dump_for_schema) {
15309 0 dXSARGS;
15310 lucy_BlobType* arg_self;
15311 LUCY_BlobType_Dump_For_Schema_t method;
15312 cfish_Hash* retval;
15313  
15314 CFISH_UNUSED_VAR(cv);
15315 0 SP -= items;
15316 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15317 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15318 }
15319  
15320 /* Extract vars from Perl stack. */
15321 0 arg_self = (lucy_BlobType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBTYPE, NULL);
15322  
15323 /* Execute */
15324 0 method = CFISH_METHOD_PTR(LUCY_BLOBTYPE, LUCY_BlobType_Dump_For_Schema);
15325 0 retval = method(arg_self);
15326 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15327 0 CFISH_DECREF(retval);
15328 0 sv_2mortal( ST(0) );
15329 0 XSRETURN(1);
15330 }
15331  
15332 XS_INTERNAL(XS_Lucy_Plan_BlobType_dump);
15333 0 XS_INTERNAL(XS_Lucy_Plan_BlobType_dump) {
15334 0 dXSARGS;
15335 lucy_BlobType* arg_self;
15336 LUCY_BlobType_Dump_t method;
15337 cfish_Hash* retval;
15338  
15339 CFISH_UNUSED_VAR(cv);
15340 0 SP -= items;
15341 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15342 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15343 }
15344  
15345 /* Extract vars from Perl stack. */
15346 0 arg_self = (lucy_BlobType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBTYPE, NULL);
15347  
15348 /* Execute */
15349 0 method = CFISH_METHOD_PTR(LUCY_BLOBTYPE, LUCY_BlobType_Dump);
15350 0 retval = method(arg_self);
15351 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15352 0 CFISH_DECREF(retval);
15353 0 sv_2mortal( ST(0) );
15354 0 XSRETURN(1);
15355 }
15356  
15357 XS_INTERNAL(XS_Lucy_Plan_BlobType_load);
15358 0 XS_INTERNAL(XS_Lucy_Plan_BlobType_load) {
15359 0 dXSARGS;
15360 SV *sv;
15361 lucy_BlobType* arg_self;
15362 cfish_Obj* arg_dump;
15363 LUCY_BlobType_Load_t method;
15364 lucy_BlobType* retval;
15365  
15366 CFISH_UNUSED_VAR(cv);
15367 0 SP -= items;
15368 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15369 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
15370 }
15371  
15372 /* Extract vars from Perl stack. */
15373 0 arg_self = (lucy_BlobType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBTYPE, NULL);
15374 0 sv = ST(1);
15375 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15376  
15377 /* Execute */
15378 0 method = CFISH_METHOD_PTR(LUCY_BLOBTYPE, LUCY_BlobType_Load);
15379 0 retval = method(arg_self, arg_dump);
15380 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15381 0 CFISH_DECREF(retval);
15382 0 sv_2mortal( ST(0) );
15383 0 XSRETURN(1);
15384 }
15385  
15386 XS_INTERNAL(XS_Lucy_Plan_BlobType_equals);
15387 0 XS_INTERNAL(XS_Lucy_Plan_BlobType_equals) {
15388 0 dXSARGS;
15389 SV *sv;
15390 lucy_BlobType* arg_self;
15391 cfish_Obj* arg_other;
15392 LUCY_BlobType_Equals_t method;
15393 bool retval;
15394  
15395 CFISH_UNUSED_VAR(cv);
15396 0 SP -= items;
15397 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15398 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
15399 }
15400  
15401 /* Extract vars from Perl stack. */
15402 0 arg_self = (lucy_BlobType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBTYPE, NULL);
15403 0 sv = ST(1);
15404 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15405  
15406 /* Execute */
15407 0 method = CFISH_METHOD_PTR(LUCY_BLOBTYPE, LUCY_BlobType_Equals);
15408 0 retval = method(arg_self, arg_other);
15409 0 ST(0) = newSViv(!!retval);
15410 0 sv_2mortal( ST(0) );
15411 0 XSRETURN(1);
15412 }
15413  
15414 XS_INTERNAL(XS_Lucy_Plan_NumericType_new);
15415 0 XS_INTERNAL(XS_Lucy_Plan_NumericType_new) {
15416 0 dXSARGS;
15417 lucy_NumericType* arg_self;
15418 lucy_NumericType* retval;
15419  
15420 CFISH_UNUSED_VAR(cv);
15421 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15422 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
15423 }
15424 0 SP -= items;
15425  
15426 0 arg_self = (lucy_NumericType*)XSBind_new_blank_obj(aTHX_ ST(0));
15427  
15428 0 retval = lucy_NumType_init(arg_self);
15429 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
15430 0 XSRETURN(1);
15431 }
15432  
15433  
15434 XS_INTERNAL(XS_Lucy_Plan_NumericType_binary);
15435 0 XS_INTERNAL(XS_Lucy_Plan_NumericType_binary) {
15436 0 dXSARGS;
15437 lucy_NumericType* arg_self;
15438 LUCY_NumType_Binary_t method;
15439 bool retval;
15440  
15441 CFISH_UNUSED_VAR(cv);
15442 0 SP -= items;
15443 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15444 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15445 }
15446  
15447 /* Extract vars from Perl stack. */
15448 0 arg_self = (lucy_NumericType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NUMERICTYPE, NULL);
15449  
15450 /* Execute */
15451 0 method = CFISH_METHOD_PTR(LUCY_NUMERICTYPE, LUCY_NumType_Binary);
15452 0 retval = method(arg_self);
15453 0 ST(0) = newSViv(!!retval);
15454 0 sv_2mortal( ST(0) );
15455 0 XSRETURN(1);
15456 }
15457  
15458 XS_INTERNAL(XS_Lucy_Plan_NumericType_specifier);
15459 0 XS_INTERNAL(XS_Lucy_Plan_NumericType_specifier) {
15460 0 dXSARGS;
15461 lucy_NumericType* arg_self;
15462 LUCY_NumType_Specifier_t method;
15463 cfish_String* retval;
15464  
15465 CFISH_UNUSED_VAR(cv);
15466 0 SP -= items;
15467 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15468 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15469 }
15470  
15471 /* Extract vars from Perl stack. */
15472 0 arg_self = (lucy_NumericType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NUMERICTYPE, NULL);
15473  
15474 /* Execute */
15475 0 method = CFISH_METHOD_PTR(LUCY_NUMERICTYPE, LUCY_NumType_Specifier);
15476 0 retval = method(arg_self);
15477 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15478 0 CFISH_DECREF(retval);
15479 0 sv_2mortal( ST(0) );
15480 0 XSRETURN(1);
15481 }
15482  
15483 XS_INTERNAL(XS_Lucy_Plan_NumericType_dump_for_schema);
15484 0 XS_INTERNAL(XS_Lucy_Plan_NumericType_dump_for_schema) {
15485 0 dXSARGS;
15486 lucy_NumericType* arg_self;
15487 LUCY_NumType_Dump_For_Schema_t method;
15488 cfish_Hash* retval;
15489  
15490 CFISH_UNUSED_VAR(cv);
15491 0 SP -= items;
15492 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15493 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15494 }
15495  
15496 /* Extract vars from Perl stack. */
15497 0 arg_self = (lucy_NumericType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NUMERICTYPE, NULL);
15498  
15499 /* Execute */
15500 0 method = CFISH_METHOD_PTR(LUCY_NUMERICTYPE, LUCY_NumType_Dump_For_Schema);
15501 0 retval = method(arg_self);
15502 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15503 0 CFISH_DECREF(retval);
15504 0 sv_2mortal( ST(0) );
15505 0 XSRETURN(1);
15506 }
15507  
15508 XS_INTERNAL(XS_Lucy_Plan_NumericType_dump);
15509 0 XS_INTERNAL(XS_Lucy_Plan_NumericType_dump) {
15510 0 dXSARGS;
15511 lucy_NumericType* arg_self;
15512 LUCY_NumType_Dump_t method;
15513 cfish_Hash* retval;
15514  
15515 CFISH_UNUSED_VAR(cv);
15516 0 SP -= items;
15517 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15518 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15519 }
15520  
15521 /* Extract vars from Perl stack. */
15522 0 arg_self = (lucy_NumericType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NUMERICTYPE, NULL);
15523  
15524 /* Execute */
15525 0 method = CFISH_METHOD_PTR(LUCY_NUMERICTYPE, LUCY_NumType_Dump);
15526 0 retval = method(arg_self);
15527 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15528 0 CFISH_DECREF(retval);
15529 0 sv_2mortal( ST(0) );
15530 0 XSRETURN(1);
15531 }
15532  
15533 XS_INTERNAL(XS_Lucy_Plan_NumericType_load);
15534 0 XS_INTERNAL(XS_Lucy_Plan_NumericType_load) {
15535 0 dXSARGS;
15536 SV *sv;
15537 lucy_NumericType* arg_self;
15538 cfish_Obj* arg_dump;
15539 LUCY_NumType_Load_t method;
15540 lucy_NumericType* retval;
15541  
15542 CFISH_UNUSED_VAR(cv);
15543 0 SP -= items;
15544 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15545 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
15546 }
15547  
15548 /* Extract vars from Perl stack. */
15549 0 arg_self = (lucy_NumericType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NUMERICTYPE, NULL);
15550 0 sv = ST(1);
15551 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15552  
15553 /* Execute */
15554 0 method = CFISH_METHOD_PTR(LUCY_NUMERICTYPE, LUCY_NumType_Load);
15555 0 retval = method(arg_self, arg_dump);
15556 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15557 0 CFISH_DECREF(retval);
15558 0 sv_2mortal( ST(0) );
15559 0 XSRETURN(1);
15560 }
15561  
15562 XS_INTERNAL(XS_Lucy_Plan_Float32Type_new);
15563 0 XS_INTERNAL(XS_Lucy_Plan_Float32Type_new) {
15564 0 dXSARGS;
15565 static const XSBind_ParamSpec param_specs[4] = {
15566 XSBIND_PARAM("boost", 0),
15567 XSBIND_PARAM("indexed", 0),
15568 XSBIND_PARAM("stored", 0),
15569 XSBIND_PARAM("sortable", 0)
15570 };
15571 int32_t locations[4];
15572 SV *sv;
15573 lucy_Float32Type* arg_self;
15574 float arg_boost;
15575 bool arg_indexed;
15576 bool arg_stored;
15577 bool arg_sortable;
15578 lucy_Float32Type* retval;
15579  
15580 CFISH_UNUSED_VAR(cv);
15581 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
15582 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
15583 }
15584 0 SP -= items;
15585  
15586 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
15587 locations, 4);
15588 0 sv = ST(locations[0]);
15589 0 ▶ arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15590 0 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 0 0 0
15591 0 sv = ST(locations[1]);
15592 0 ▶ arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15593 0 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
15594 0 sv = ST(locations[2]);
15595 0 ▶ arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15596 0 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
15597 0 sv = ST(locations[3]);
15598 0 ▶ arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15599 0 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
15600 0 arg_self = (lucy_Float32Type*)XSBind_new_blank_obj(aTHX_ ST(0));
15601  
15602 0 retval = lucy_Float32Type_init2(arg_self, arg_boost, arg_indexed, arg_stored, arg_sortable);
15603 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
15604 0 XSRETURN(1);
15605 }
15606  
15607  
15608 XS_INTERNAL(XS_Lucy_Plan_Float32Type_primitive_id);
15609 0 XS_INTERNAL(XS_Lucy_Plan_Float32Type_primitive_id) {
15610 0 dXSARGS;
15611 lucy_Float32Type* arg_self;
15612 LUCY_Float32Type_Primitive_ID_t method;
15613 int8_t retval;
15614  
15615 CFISH_UNUSED_VAR(cv);
15616 0 SP -= items;
15617 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15618 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15619 }
15620  
15621 /* Extract vars from Perl stack. */
15622 0 arg_self = (lucy_Float32Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FLOAT32TYPE, NULL);
15623  
15624 /* Execute */
15625 0 method = CFISH_METHOD_PTR(LUCY_FLOAT32TYPE, LUCY_Float32Type_Primitive_ID);
15626 0 retval = method(arg_self);
15627 0 ST(0) = newSViv(retval);
15628 0 sv_2mortal( ST(0) );
15629 0 XSRETURN(1);
15630 }
15631  
15632 XS_INTERNAL(XS_Lucy_Plan_Float32Type_specifier);
15633 0 XS_INTERNAL(XS_Lucy_Plan_Float32Type_specifier) {
15634 0 dXSARGS;
15635 lucy_Float32Type* arg_self;
15636 LUCY_Float32Type_Specifier_t method;
15637 cfish_String* retval;
15638  
15639 CFISH_UNUSED_VAR(cv);
15640 0 SP -= items;
15641 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15642 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15643 }
15644  
15645 /* Extract vars from Perl stack. */
15646 0 arg_self = (lucy_Float32Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FLOAT32TYPE, NULL);
15647  
15648 /* Execute */
15649 0 method = CFISH_METHOD_PTR(LUCY_FLOAT32TYPE, LUCY_Float32Type_Specifier);
15650 0 retval = method(arg_self);
15651 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15652 0 CFISH_DECREF(retval);
15653 0 sv_2mortal( ST(0) );
15654 0 XSRETURN(1);
15655 }
15656  
15657 XS_INTERNAL(XS_Lucy_Plan_Float32Type_equals);
15658 0 XS_INTERNAL(XS_Lucy_Plan_Float32Type_equals) {
15659 0 dXSARGS;
15660 SV *sv;
15661 lucy_Float32Type* arg_self;
15662 cfish_Obj* arg_other;
15663 LUCY_Float32Type_Equals_t method;
15664 bool retval;
15665  
15666 CFISH_UNUSED_VAR(cv);
15667 0 SP -= items;
15668 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15669 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
15670 }
15671  
15672 /* Extract vars from Perl stack. */
15673 0 arg_self = (lucy_Float32Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FLOAT32TYPE, NULL);
15674 0 sv = ST(1);
15675 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15676  
15677 /* Execute */
15678 0 method = CFISH_METHOD_PTR(LUCY_FLOAT32TYPE, LUCY_Float32Type_Equals);
15679 0 retval = method(arg_self, arg_other);
15680 0 ST(0) = newSViv(!!retval);
15681 0 sv_2mortal( ST(0) );
15682 0 XSRETURN(1);
15683 }
15684  
15685 XS_INTERNAL(XS_Lucy_Plan_Float64Type_new);
15686 1 XS_INTERNAL(XS_Lucy_Plan_Float64Type_new) {
15687 1 dXSARGS;
15688 static const XSBind_ParamSpec param_specs[4] = {
15689 XSBIND_PARAM("boost", 0),
15690 XSBIND_PARAM("indexed", 0),
15691 XSBIND_PARAM("stored", 0),
15692 XSBIND_PARAM("sortable", 0)
15693 };
15694 int32_t locations[4];
15695 SV *sv;
15696 lucy_Float64Type* arg_self;
15697 float arg_boost;
15698 bool arg_indexed;
15699 bool arg_stored;
15700 bool arg_sortable;
15701 lucy_Float64Type* retval;
15702  
15703 CFISH_UNUSED_VAR(cv);
15704 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
15705 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
15706 }
15707 1 SP -= items;
15708  
15709 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
15710 locations, 4);
15711 1 sv = ST(locations[0]);
15712 0 ▶ arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15713 1 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 0 1 1
15714 1 sv = ST(locations[1]);
15715 1 ▶ arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 1 0 1
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
15716 1 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 1 0 1
? XSBind_sv_true(aTHX_ sv) : true; 0 1 1
15717 1 sv = ST(locations[2]);
15718 1 ▶ arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15719 1 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 1 1
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
15720 1 sv = ST(locations[3]);
15721 1 ▶ arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15722 1 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 1 1
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
15723 1 arg_self = (lucy_Float64Type*)XSBind_new_blank_obj(aTHX_ ST(0));
15724  
15725 1 retval = lucy_Float64Type_init2(arg_self, arg_boost, arg_indexed, arg_stored, arg_sortable);
15726 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
15727 1 XSRETURN(1);
15728 }
15729  
15730  
15731 XS_INTERNAL(XS_Lucy_Plan_Float64Type_primitive_id);
15732 0 XS_INTERNAL(XS_Lucy_Plan_Float64Type_primitive_id) {
15733 0 dXSARGS;
15734 lucy_Float64Type* arg_self;
15735 LUCY_Float64Type_Primitive_ID_t method;
15736 int8_t retval;
15737  
15738 CFISH_UNUSED_VAR(cv);
15739 0 SP -= items;
15740 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15741 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15742 }
15743  
15744 /* Extract vars from Perl stack. */
15745 0 arg_self = (lucy_Float64Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FLOAT64TYPE, NULL);
15746  
15747 /* Execute */
15748 0 method = CFISH_METHOD_PTR(LUCY_FLOAT64TYPE, LUCY_Float64Type_Primitive_ID);
15749 0 retval = method(arg_self);
15750 0 ST(0) = newSViv(retval);
15751 0 sv_2mortal( ST(0) );
15752 0 XSRETURN(1);
15753 }
15754  
15755 XS_INTERNAL(XS_Lucy_Plan_Float64Type_specifier);
15756 0 XS_INTERNAL(XS_Lucy_Plan_Float64Type_specifier) {
15757 0 dXSARGS;
15758 lucy_Float64Type* arg_self;
15759 LUCY_Float64Type_Specifier_t method;
15760 cfish_String* retval;
15761  
15762 CFISH_UNUSED_VAR(cv);
15763 0 SP -= items;
15764 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15765 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15766 }
15767  
15768 /* Extract vars from Perl stack. */
15769 0 arg_self = (lucy_Float64Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FLOAT64TYPE, NULL);
15770  
15771 /* Execute */
15772 0 method = CFISH_METHOD_PTR(LUCY_FLOAT64TYPE, LUCY_Float64Type_Specifier);
15773 0 retval = method(arg_self);
15774 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15775 0 CFISH_DECREF(retval);
15776 0 sv_2mortal( ST(0) );
15777 0 XSRETURN(1);
15778 }
15779  
15780 XS_INTERNAL(XS_Lucy_Plan_Float64Type_equals);
15781 0 XS_INTERNAL(XS_Lucy_Plan_Float64Type_equals) {
15782 0 dXSARGS;
15783 SV *sv;
15784 lucy_Float64Type* arg_self;
15785 cfish_Obj* arg_other;
15786 LUCY_Float64Type_Equals_t method;
15787 bool retval;
15788  
15789 CFISH_UNUSED_VAR(cv);
15790 0 SP -= items;
15791 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15792 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
15793 }
15794  
15795 /* Extract vars from Perl stack. */
15796 0 arg_self = (lucy_Float64Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FLOAT64TYPE, NULL);
15797 0 sv = ST(1);
15798 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15799  
15800 /* Execute */
15801 0 method = CFISH_METHOD_PTR(LUCY_FLOAT64TYPE, LUCY_Float64Type_Equals);
15802 0 retval = method(arg_self, arg_other);
15803 0 ST(0) = newSViv(!!retval);
15804 0 sv_2mortal( ST(0) );
15805 0 XSRETURN(1);
15806 }
15807  
15808 XS_INTERNAL(XS_Lucy_Plan_Int32Type_new);
15809 2 XS_INTERNAL(XS_Lucy_Plan_Int32Type_new) {
15810 2 dXSARGS;
15811 static const XSBind_ParamSpec param_specs[4] = {
15812 XSBIND_PARAM("boost", 0),
15813 XSBIND_PARAM("indexed", 0),
15814 XSBIND_PARAM("stored", 0),
15815 XSBIND_PARAM("sortable", 0)
15816 };
15817 int32_t locations[4];
15818 SV *sv;
15819 lucy_Int32Type* arg_self;
15820 float arg_boost;
15821 bool arg_indexed;
15822 bool arg_stored;
15823 bool arg_sortable;
15824 lucy_Int32Type* retval;
15825  
15826 CFISH_UNUSED_VAR(cv);
15827 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
15828 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
15829 }
15830 2 SP -= items;
15831  
15832 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
15833 locations, 4);
15834 2 sv = ST(locations[0]);
15835 0 ▶ arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15836 2 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 0 2 2
15837 2 sv = ST(locations[1]);
15838 2 ▶ arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 2 0 2
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 2 2
15839 2 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 2 0 2
? XSBind_sv_true(aTHX_ sv) : true; 0 2 2
15840 2 sv = ST(locations[2]);
15841 2 ▶ arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 2 2
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15842 2 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 2 2
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
15843 2 sv = ST(locations[3]);
15844 2 ▶ arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 2 0 2
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 2 0 2
15845 2 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 2 0 2
? XSBind_sv_true(aTHX_ sv) : false; 2 0 2
15846 2 arg_self = (lucy_Int32Type*)XSBind_new_blank_obj(aTHX_ ST(0));
15847  
15848 2 retval = lucy_Int32Type_init2(arg_self, arg_boost, arg_indexed, arg_stored, arg_sortable);
15849 2 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
15850 2 XSRETURN(1);
15851 }
15852  
15853  
15854 XS_INTERNAL(XS_Lucy_Plan_Int32Type_primitive_id);
15855 0 XS_INTERNAL(XS_Lucy_Plan_Int32Type_primitive_id) {
15856 0 dXSARGS;
15857 lucy_Int32Type* arg_self;
15858 LUCY_Int32Type_Primitive_ID_t method;
15859 int8_t retval;
15860  
15861 CFISH_UNUSED_VAR(cv);
15862 0 SP -= items;
15863 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15864 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15865 }
15866  
15867 /* Extract vars from Perl stack. */
15868 0 arg_self = (lucy_Int32Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INT32TYPE, NULL);
15869  
15870 /* Execute */
15871 0 method = CFISH_METHOD_PTR(LUCY_INT32TYPE, LUCY_Int32Type_Primitive_ID);
15872 0 retval = method(arg_self);
15873 0 ST(0) = newSViv(retval);
15874 0 sv_2mortal( ST(0) );
15875 0 XSRETURN(1);
15876 }
15877  
15878 XS_INTERNAL(XS_Lucy_Plan_Int32Type_specifier);
15879 0 XS_INTERNAL(XS_Lucy_Plan_Int32Type_specifier) {
15880 0 dXSARGS;
15881 lucy_Int32Type* arg_self;
15882 LUCY_Int32Type_Specifier_t method;
15883 cfish_String* retval;
15884  
15885 CFISH_UNUSED_VAR(cv);
15886 0 SP -= items;
15887 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15888 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15889 }
15890  
15891 /* Extract vars from Perl stack. */
15892 0 arg_self = (lucy_Int32Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INT32TYPE, NULL);
15893  
15894 /* Execute */
15895 0 method = CFISH_METHOD_PTR(LUCY_INT32TYPE, LUCY_Int32Type_Specifier);
15896 0 retval = method(arg_self);
15897 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
15898 0 CFISH_DECREF(retval);
15899 0 sv_2mortal( ST(0) );
15900 0 XSRETURN(1);
15901 }
15902  
15903 XS_INTERNAL(XS_Lucy_Plan_Int32Type_equals);
15904 0 XS_INTERNAL(XS_Lucy_Plan_Int32Type_equals) {
15905 0 dXSARGS;
15906 SV *sv;
15907 lucy_Int32Type* arg_self;
15908 cfish_Obj* arg_other;
15909 LUCY_Int32Type_Equals_t method;
15910 bool retval;
15911  
15912 CFISH_UNUSED_VAR(cv);
15913 0 SP -= items;
15914 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
15915 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
15916 }
15917  
15918 /* Extract vars from Perl stack. */
15919 0 arg_self = (lucy_Int32Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INT32TYPE, NULL);
15920 0 sv = ST(1);
15921 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
15922  
15923 /* Execute */
15924 0 method = CFISH_METHOD_PTR(LUCY_INT32TYPE, LUCY_Int32Type_Equals);
15925 0 retval = method(arg_self, arg_other);
15926 0 ST(0) = newSViv(!!retval);
15927 0 sv_2mortal( ST(0) );
15928 0 XSRETURN(1);
15929 }
15930  
15931 XS_INTERNAL(XS_Lucy_Plan_Int64Type_new);
15932 0 XS_INTERNAL(XS_Lucy_Plan_Int64Type_new) {
15933 0 dXSARGS;
15934 static const XSBind_ParamSpec param_specs[4] = {
15935 XSBIND_PARAM("boost", 0),
15936 XSBIND_PARAM("indexed", 0),
15937 XSBIND_PARAM("stored", 0),
15938 XSBIND_PARAM("sortable", 0)
15939 };
15940 int32_t locations[4];
15941 SV *sv;
15942 lucy_Int64Type* arg_self;
15943 float arg_boost;
15944 bool arg_indexed;
15945 bool arg_stored;
15946 bool arg_sortable;
15947 lucy_Int64Type* retval;
15948  
15949 CFISH_UNUSED_VAR(cv);
15950 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
15951 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
15952 }
15953 0 SP -= items;
15954  
15955 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
15956 locations, 4);
15957 0 sv = ST(locations[0]);
15958 0 ▶ arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15959 0 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 0 0 0
15960 0 sv = ST(locations[1]);
15961 0 ▶ arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15962 0 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
15963 0 sv = ST(locations[2]);
15964 0 ▶ arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15965 0 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
15966 0 sv = ST(locations[3]);
15967 0 ▶ arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
15968 0 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
15969 0 arg_self = (lucy_Int64Type*)XSBind_new_blank_obj(aTHX_ ST(0));
15970  
15971 0 retval = lucy_Int64Type_init2(arg_self, arg_boost, arg_indexed, arg_stored, arg_sortable);
15972 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
15973 0 XSRETURN(1);
15974 }
15975  
15976  
15977 XS_INTERNAL(XS_Lucy_Plan_Int64Type_primitive_id);
15978 0 XS_INTERNAL(XS_Lucy_Plan_Int64Type_primitive_id) {
15979 0 dXSARGS;
15980 lucy_Int64Type* arg_self;
15981 LUCY_Int64Type_Primitive_ID_t method;
15982 int8_t retval;
15983  
15984 CFISH_UNUSED_VAR(cv);
15985 0 SP -= items;
15986 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
15987 0 XSBind_invalid_args_error(aTHX_ cv, "self");
15988 }
15989  
15990 /* Extract vars from Perl stack. */
15991 0 arg_self = (lucy_Int64Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INT64TYPE, NULL);
15992  
15993 /* Execute */
15994 0 method = CFISH_METHOD_PTR(LUCY_INT64TYPE, LUCY_Int64Type_Primitive_ID);
15995 0 retval = method(arg_self);
15996 0 ST(0) = newSViv(retval);
15997 0 sv_2mortal( ST(0) );
15998 0 XSRETURN(1);
15999 }
16000  
16001 XS_INTERNAL(XS_Lucy_Plan_Int64Type_specifier);
16002 0 XS_INTERNAL(XS_Lucy_Plan_Int64Type_specifier) {
16003 0 dXSARGS;
16004 lucy_Int64Type* arg_self;
16005 LUCY_Int64Type_Specifier_t method;
16006 cfish_String* retval;
16007  
16008 CFISH_UNUSED_VAR(cv);
16009 0 SP -= items;
16010 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16011 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16012 }
16013  
16014 /* Extract vars from Perl stack. */
16015 0 arg_self = (lucy_Int64Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INT64TYPE, NULL);
16016  
16017 /* Execute */
16018 0 method = CFISH_METHOD_PTR(LUCY_INT64TYPE, LUCY_Int64Type_Specifier);
16019 0 retval = method(arg_self);
16020 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16021 0 CFISH_DECREF(retval);
16022 0 sv_2mortal( ST(0) );
16023 0 XSRETURN(1);
16024 }
16025  
16026 XS_INTERNAL(XS_Lucy_Plan_Int64Type_equals);
16027 0 XS_INTERNAL(XS_Lucy_Plan_Int64Type_equals) {
16028 0 dXSARGS;
16029 SV *sv;
16030 lucy_Int64Type* arg_self;
16031 cfish_Obj* arg_other;
16032 LUCY_Int64Type_Equals_t method;
16033 bool retval;
16034  
16035 CFISH_UNUSED_VAR(cv);
16036 0 SP -= items;
16037 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16038 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
16039 }
16040  
16041 /* Extract vars from Perl stack. */
16042 0 arg_self = (lucy_Int64Type*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INT64TYPE, NULL);
16043 0 sv = ST(1);
16044 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
16045  
16046 /* Execute */
16047 0 method = CFISH_METHOD_PTR(LUCY_INT64TYPE, LUCY_Int64Type_Equals);
16048 0 retval = method(arg_self, arg_other);
16049 0 ST(0) = newSViv(!!retval);
16050 0 sv_2mortal( ST(0) );
16051 0 XSRETURN(1);
16052 }
16053  
16054 XS_INTERNAL(XS_Lucy_Plan_TextType_make_term_stepper);
16055 0 XS_INTERNAL(XS_Lucy_Plan_TextType_make_term_stepper) {
16056 0 dXSARGS;
16057 lucy_TextType* arg_self;
16058 LUCY_TextType_Make_Term_Stepper_t method;
16059 lucy_TermStepper* retval;
16060  
16061 CFISH_UNUSED_VAR(cv);
16062 0 SP -= items;
16063 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16064 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16065 }
16066  
16067 /* Extract vars from Perl stack. */
16068 0 arg_self = (lucy_TextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTYPE, NULL);
16069  
16070 /* Execute */
16071 0 method = CFISH_METHOD_PTR(LUCY_TEXTTYPE, LUCY_TextType_Make_Term_Stepper);
16072 0 retval = method(arg_self);
16073 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16074 0 CFISH_DECREF(retval);
16075 0 sv_2mortal( ST(0) );
16076 0 XSRETURN(1);
16077 }
16078  
16079 XS_INTERNAL(XS_Lucy_Plan_TextType_primitive_id);
16080 0 XS_INTERNAL(XS_Lucy_Plan_TextType_primitive_id) {
16081 0 dXSARGS;
16082 lucy_TextType* arg_self;
16083 LUCY_TextType_Primitive_ID_t method;
16084 int8_t retval;
16085  
16086 CFISH_UNUSED_VAR(cv);
16087 0 SP -= items;
16088 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16089 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16090 }
16091  
16092 /* Extract vars from Perl stack. */
16093 0 arg_self = (lucy_TextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTYPE, NULL);
16094  
16095 /* Execute */
16096 0 method = CFISH_METHOD_PTR(LUCY_TEXTTYPE, LUCY_TextType_Primitive_ID);
16097 0 retval = method(arg_self);
16098 0 ST(0) = newSViv(retval);
16099 0 sv_2mortal( ST(0) );
16100 0 XSRETURN(1);
16101 }
16102  
16103 XS_INTERNAL(XS_Lucy_Plan_FullTextType_new);
16104 39 XS_INTERNAL(XS_Lucy_Plan_FullTextType_new) {
16105 39 dXSARGS;
16106 static const XSBind_ParamSpec param_specs[6] = {
16107 XSBIND_PARAM("analyzer", 1),
16108 XSBIND_PARAM("boost", 0),
16109 XSBIND_PARAM("indexed", 0),
16110 XSBIND_PARAM("stored", 0),
16111 XSBIND_PARAM("sortable", 0),
16112 XSBIND_PARAM("highlightable", 0)
16113 };
16114 int32_t locations[6];
16115 SV *sv;
16116 lucy_FullTextType* arg_self;
16117 lucy_Analyzer* arg_analyzer;
16118 float arg_boost;
16119 bool arg_indexed;
16120 bool arg_stored;
16121 bool arg_sortable;
16122 bool arg_highlightable;
16123 lucy_FullTextType* retval;
16124  
16125 CFISH_UNUSED_VAR(cv);
16126 39 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 39 39
16127 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
16128 }
16129 39 SP -= items;
16130  
16131 39 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
16132 locations, 6);
16133 39 sv = ST(locations[0]);
16134 39 arg_analyzer = (lucy_Analyzer*)XSBind_arg_to_cfish(aTHX_ sv, "analyzer", LUCY_ANALYZER, NULL);
16135 39 sv = ST(locations[1]);
16136 2 ▶ arg_boost = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 2 0 2
16137 41 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 2 37 39
16138 39 sv = ST(locations[2]);
16139 39 ▶ arg_indexed = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_indexed = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 39 39
arg_indexed = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
16140 39 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 39 39
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
16141 39 sv = ST(locations[3]);
16142 39 ▶ arg_stored = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_stored = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 5 34 39
arg_stored = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 5 5
16143 39 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 5 34 39
? XSBind_sv_true(aTHX_ sv) : true; 0 5 5
16144 39 sv = ST(locations[4]);
16145 39 ▶ arg_sortable = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_sortable = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 39 39
arg_sortable = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
16146 39 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 39 39
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
16147 39 sv = ST(locations[5]);
16148 39 ▶ arg_highlightable = locations[5] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_highlightable = locations[5] < items && XSBind_sv_defined(aTHX_ sv) 7 32 39
arg_highlightable = locations[5] < items && XSBind_sv_defined(aTHX_ sv) 7 0 7
16149 39 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 7 32 39
? XSBind_sv_true(aTHX_ sv) : false; 7 0 7
16150 39 arg_self = (lucy_FullTextType*)XSBind_new_blank_obj(aTHX_ ST(0));
16151  
16152 39 retval = lucy_FullTextType_init2(arg_self, arg_analyzer, arg_boost, arg_indexed, arg_stored, arg_sortable, arg_highlightable);
16153 39 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
16154 39 XSRETURN(1);
16155 }
16156  
16157  
16158 XS_INTERNAL(XS_Lucy_Plan_FullTextType_set_highlightable);
16159 0 XS_INTERNAL(XS_Lucy_Plan_FullTextType_set_highlightable) {
16160 0 dXSARGS;
16161 SV *sv;
16162 lucy_FullTextType* arg_self;
16163 bool arg_highlightable;
16164 LUCY_FullTextType_Set_Highlightable_t method;
16165  
16166 CFISH_UNUSED_VAR(cv);
16167 0 SP -= items;
16168 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16169 0 XSBind_invalid_args_error(aTHX_ cv, "self, highlightable");
16170 }
16171  
16172 /* Extract vars from Perl stack. */
16173 0 arg_self = (lucy_FullTextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FULLTEXTTYPE, NULL);
16174 0 sv = ST(1);
16175 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
16176 0 XSBind_undef_arg_error(aTHX_ "highlightable");
16177 }
16178 0 arg_highlightable = XSBind_sv_true(aTHX_ sv);
16179  
16180 /* Execute */
16181 0 method = CFISH_METHOD_PTR(LUCY_FULLTEXTTYPE, LUCY_FullTextType_Set_Highlightable);
16182 0 method(arg_self, arg_highlightable);
16183 0 XSRETURN(0);
16184 }
16185  
16186 XS_INTERNAL(XS_Lucy_Plan_FullTextType_highlightable);
16187 0 XS_INTERNAL(XS_Lucy_Plan_FullTextType_highlightable) {
16188 0 dXSARGS;
16189 lucy_FullTextType* arg_self;
16190 LUCY_FullTextType_Highlightable_t method;
16191 bool retval;
16192  
16193 CFISH_UNUSED_VAR(cv);
16194 0 SP -= items;
16195 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16196 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16197 }
16198  
16199 /* Extract vars from Perl stack. */
16200 0 arg_self = (lucy_FullTextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FULLTEXTTYPE, NULL);
16201  
16202 /* Execute */
16203 0 method = CFISH_METHOD_PTR(LUCY_FULLTEXTTYPE, LUCY_FullTextType_Highlightable);
16204 0 retval = method(arg_self);
16205 0 ST(0) = newSViv(!!retval);
16206 0 sv_2mortal( ST(0) );
16207 0 XSRETURN(1);
16208 }
16209  
16210 XS_INTERNAL(XS_Lucy_Plan_FullTextType_get_analyzer);
16211 0 XS_INTERNAL(XS_Lucy_Plan_FullTextType_get_analyzer) {
16212 0 dXSARGS;
16213 lucy_FullTextType* arg_self;
16214 LUCY_FullTextType_Get_Analyzer_t method;
16215 lucy_Analyzer* retval;
16216  
16217 CFISH_UNUSED_VAR(cv);
16218 0 SP -= items;
16219 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16220 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16221 }
16222  
16223 /* Extract vars from Perl stack. */
16224 0 arg_self = (lucy_FullTextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FULLTEXTTYPE, NULL);
16225  
16226 /* Execute */
16227 0 method = CFISH_METHOD_PTR(LUCY_FULLTEXTTYPE, LUCY_FullTextType_Get_Analyzer);
16228 0 retval = method(arg_self);
16229 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16230 0 sv_2mortal( ST(0) );
16231 0 XSRETURN(1);
16232 }
16233  
16234 XS_INTERNAL(XS_Lucy_Plan_FullTextType_make_similarity);
16235 0 XS_INTERNAL(XS_Lucy_Plan_FullTextType_make_similarity) {
16236 0 dXSARGS;
16237 lucy_FullTextType* arg_self;
16238 LUCY_FullTextType_Make_Similarity_t method;
16239 lucy_Similarity* retval;
16240  
16241 CFISH_UNUSED_VAR(cv);
16242 0 SP -= items;
16243 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16244 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16245 }
16246  
16247 /* Extract vars from Perl stack. */
16248 0 arg_self = (lucy_FullTextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FULLTEXTTYPE, NULL);
16249  
16250 /* Execute */
16251 0 method = CFISH_METHOD_PTR(LUCY_FULLTEXTTYPE, LUCY_FullTextType_Make_Similarity);
16252 0 retval = method(arg_self);
16253 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16254 0 CFISH_DECREF(retval);
16255 0 sv_2mortal( ST(0) );
16256 0 XSRETURN(1);
16257 }
16258  
16259 XS_INTERNAL(XS_Lucy_Plan_FullTextType_dump_for_schema);
16260 0 XS_INTERNAL(XS_Lucy_Plan_FullTextType_dump_for_schema) {
16261 0 dXSARGS;
16262 lucy_FullTextType* arg_self;
16263 LUCY_FullTextType_Dump_For_Schema_t method;
16264 cfish_Hash* retval;
16265  
16266 CFISH_UNUSED_VAR(cv);
16267 0 SP -= items;
16268 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16269 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16270 }
16271  
16272 /* Extract vars from Perl stack. */
16273 0 arg_self = (lucy_FullTextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FULLTEXTTYPE, NULL);
16274  
16275 /* Execute */
16276 0 method = CFISH_METHOD_PTR(LUCY_FULLTEXTTYPE, LUCY_FullTextType_Dump_For_Schema);
16277 0 retval = method(arg_self);
16278 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16279 0 CFISH_DECREF(retval);
16280 0 sv_2mortal( ST(0) );
16281 0 XSRETURN(1);
16282 }
16283  
16284 XS_INTERNAL(XS_Lucy_Plan_FullTextType_dump);
16285 0 XS_INTERNAL(XS_Lucy_Plan_FullTextType_dump) {
16286 0 dXSARGS;
16287 lucy_FullTextType* arg_self;
16288 LUCY_FullTextType_Dump_t method;
16289 cfish_Hash* retval;
16290  
16291 CFISH_UNUSED_VAR(cv);
16292 0 SP -= items;
16293 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16294 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16295 }
16296  
16297 /* Extract vars from Perl stack. */
16298 0 arg_self = (lucy_FullTextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FULLTEXTTYPE, NULL);
16299  
16300 /* Execute */
16301 0 method = CFISH_METHOD_PTR(LUCY_FULLTEXTTYPE, LUCY_FullTextType_Dump);
16302 0 retval = method(arg_self);
16303 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16304 0 CFISH_DECREF(retval);
16305 0 sv_2mortal( ST(0) );
16306 0 XSRETURN(1);
16307 }
16308  
16309 XS_INTERNAL(XS_Lucy_Plan_FullTextType_load);
16310 0 XS_INTERNAL(XS_Lucy_Plan_FullTextType_load) {
16311 0 dXSARGS;
16312 SV *sv;
16313 lucy_FullTextType* arg_self;
16314 cfish_Obj* arg_dump;
16315 LUCY_FullTextType_Load_t method;
16316 lucy_FullTextType* retval;
16317  
16318 CFISH_UNUSED_VAR(cv);
16319 0 SP -= items;
16320 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16321 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
16322 }
16323  
16324 /* Extract vars from Perl stack. */
16325 0 arg_self = (lucy_FullTextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FULLTEXTTYPE, NULL);
16326 0 sv = ST(1);
16327 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
16328  
16329 /* Execute */
16330 0 method = CFISH_METHOD_PTR(LUCY_FULLTEXTTYPE, LUCY_FullTextType_Load);
16331 0 retval = method(arg_self, arg_dump);
16332 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16333 0 CFISH_DECREF(retval);
16334 0 sv_2mortal( ST(0) );
16335 0 XSRETURN(1);
16336 }
16337  
16338 XS_INTERNAL(XS_Lucy_Plan_FullTextType_equals);
16339 0 XS_INTERNAL(XS_Lucy_Plan_FullTextType_equals) {
16340 0 dXSARGS;
16341 SV *sv;
16342 lucy_FullTextType* arg_self;
16343 cfish_Obj* arg_other;
16344 LUCY_FullTextType_Equals_t method;
16345 bool retval;
16346  
16347 CFISH_UNUSED_VAR(cv);
16348 0 SP -= items;
16349 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16350 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
16351 }
16352  
16353 /* Extract vars from Perl stack. */
16354 0 arg_self = (lucy_FullTextType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FULLTEXTTYPE, NULL);
16355 0 sv = ST(1);
16356 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
16357  
16358 /* Execute */
16359 0 method = CFISH_METHOD_PTR(LUCY_FULLTEXTTYPE, LUCY_FullTextType_Equals);
16360 0 retval = method(arg_self, arg_other);
16361 0 ST(0) = newSViv(!!retval);
16362 0 sv_2mortal( ST(0) );
16363 0 XSRETURN(1);
16364 }
16365  
16366 XS_INTERNAL(XS_Lucy_Plan_StringType_new);
16367 14 XS_INTERNAL(XS_Lucy_Plan_StringType_new) {
16368 14 dXSARGS;
16369 static const XSBind_ParamSpec param_specs[4] = {
16370 XSBIND_PARAM("boost", 0),
16371 XSBIND_PARAM("indexed", 0),
16372 XSBIND_PARAM("stored", 0),
16373 XSBIND_PARAM("sortable", 0)
16374 };
16375 int32_t locations[4];
16376 SV *sv;
16377 lucy_StringType* arg_self;
16378 float arg_boost;
16379 bool arg_indexed;
16380 bool arg_stored;
16381 bool arg_sortable;
16382 lucy_StringType* retval;
16383  
16384 CFISH_UNUSED_VAR(cv);
16385 14 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 14 14
16386 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
16387 }
16388 14 SP -= items;
16389  
16390 14 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
16391 locations, 4);
16392 14 sv = ST(locations[0]);
16393 0 ▶ arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
16394 14 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 0 14 14
16395 14 sv = ST(locations[1]);
16396 14 ▶ arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 1 13 14
arg_indexed = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
16397 14 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 1 13 14
? XSBind_sv_true(aTHX_ sv) : true; 0 1 1
16398 14 sv = ST(locations[2]);
16399 14 ▶ arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 14 14
arg_stored = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
16400 14 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 0 14 14
? XSBind_sv_true(aTHX_ sv) : true; 0 0 0
16401 14 sv = ST(locations[3]);
16402 14 ▶ arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 11 3 14
arg_sortable = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 11 0 11
16403 14 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 11 3 14
? XSBind_sv_true(aTHX_ sv) : false; 11 0 11
16404 14 arg_self = (lucy_StringType*)XSBind_new_blank_obj(aTHX_ ST(0));
16405  
16406 14 retval = lucy_StringType_init2(arg_self, arg_boost, arg_indexed, arg_stored, arg_sortable);
16407 14 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
16408 14 XSRETURN(1);
16409 }
16410  
16411  
16412 XS_INTERNAL(XS_Lucy_Plan_StringType_make_similarity);
16413 0 XS_INTERNAL(XS_Lucy_Plan_StringType_make_similarity) {
16414 0 dXSARGS;
16415 lucy_StringType* arg_self;
16416 LUCY_StringType_Make_Similarity_t method;
16417 lucy_Similarity* retval;
16418  
16419 CFISH_UNUSED_VAR(cv);
16420 0 SP -= items;
16421 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16422 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16423 }
16424  
16425 /* Extract vars from Perl stack. */
16426 0 arg_self = (lucy_StringType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STRINGTYPE, NULL);
16427  
16428 /* Execute */
16429 0 method = CFISH_METHOD_PTR(LUCY_STRINGTYPE, LUCY_StringType_Make_Similarity);
16430 0 retval = method(arg_self);
16431 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16432 0 CFISH_DECREF(retval);
16433 0 sv_2mortal( ST(0) );
16434 0 XSRETURN(1);
16435 }
16436  
16437 XS_INTERNAL(XS_Lucy_Plan_StringType_dump_for_schema);
16438 0 XS_INTERNAL(XS_Lucy_Plan_StringType_dump_for_schema) {
16439 0 dXSARGS;
16440 lucy_StringType* arg_self;
16441 LUCY_StringType_Dump_For_Schema_t method;
16442 cfish_Hash* retval;
16443  
16444 CFISH_UNUSED_VAR(cv);
16445 0 SP -= items;
16446 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16447 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16448 }
16449  
16450 /* Extract vars from Perl stack. */
16451 0 arg_self = (lucy_StringType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STRINGTYPE, NULL);
16452  
16453 /* Execute */
16454 0 method = CFISH_METHOD_PTR(LUCY_STRINGTYPE, LUCY_StringType_Dump_For_Schema);
16455 0 retval = method(arg_self);
16456 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16457 0 CFISH_DECREF(retval);
16458 0 sv_2mortal( ST(0) );
16459 0 XSRETURN(1);
16460 }
16461  
16462 XS_INTERNAL(XS_Lucy_Plan_StringType_dump);
16463 0 XS_INTERNAL(XS_Lucy_Plan_StringType_dump) {
16464 0 dXSARGS;
16465 lucy_StringType* arg_self;
16466 LUCY_StringType_Dump_t method;
16467 cfish_Hash* retval;
16468  
16469 CFISH_UNUSED_VAR(cv);
16470 0 SP -= items;
16471 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16472 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16473 }
16474  
16475 /* Extract vars from Perl stack. */
16476 0 arg_self = (lucy_StringType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STRINGTYPE, NULL);
16477  
16478 /* Execute */
16479 0 method = CFISH_METHOD_PTR(LUCY_STRINGTYPE, LUCY_StringType_Dump);
16480 0 retval = method(arg_self);
16481 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16482 0 CFISH_DECREF(retval);
16483 0 sv_2mortal( ST(0) );
16484 0 XSRETURN(1);
16485 }
16486  
16487 XS_INTERNAL(XS_Lucy_Plan_StringType_load);
16488 0 XS_INTERNAL(XS_Lucy_Plan_StringType_load) {
16489 0 dXSARGS;
16490 SV *sv;
16491 lucy_StringType* arg_self;
16492 cfish_Obj* arg_dump;
16493 LUCY_StringType_Load_t method;
16494 lucy_StringType* retval;
16495  
16496 CFISH_UNUSED_VAR(cv);
16497 0 SP -= items;
16498 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16499 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
16500 }
16501  
16502 /* Extract vars from Perl stack. */
16503 0 arg_self = (lucy_StringType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STRINGTYPE, NULL);
16504 0 sv = ST(1);
16505 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
16506  
16507 /* Execute */
16508 0 method = CFISH_METHOD_PTR(LUCY_STRINGTYPE, LUCY_StringType_Load);
16509 0 retval = method(arg_self, arg_dump);
16510 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16511 0 CFISH_DECREF(retval);
16512 0 sv_2mortal( ST(0) );
16513 0 XSRETURN(1);
16514 }
16515  
16516 XS_INTERNAL(XS_Lucy_Plan_StringType_equals);
16517 0 XS_INTERNAL(XS_Lucy_Plan_StringType_equals) {
16518 0 dXSARGS;
16519 SV *sv;
16520 lucy_StringType* arg_self;
16521 cfish_Obj* arg_other;
16522 LUCY_StringType_Equals_t method;
16523 bool retval;
16524  
16525 CFISH_UNUSED_VAR(cv);
16526 0 SP -= items;
16527 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16528 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
16529 }
16530  
16531 /* Extract vars from Perl stack. */
16532 0 arg_self = (lucy_StringType*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STRINGTYPE, NULL);
16533 0 sv = ST(1);
16534 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
16535  
16536 /* Execute */
16537 0 method = CFISH_METHOD_PTR(LUCY_STRINGTYPE, LUCY_StringType_Equals);
16538 0 retval = method(arg_self, arg_other);
16539 0 ST(0) = newSViv(!!retval);
16540 0 sv_2mortal( ST(0) );
16541 0 XSRETURN(1);
16542 }
16543  
16544 XS_INTERNAL(XS_Lucy_Plan_Schema_new);
16545 38 XS_INTERNAL(XS_Lucy_Plan_Schema_new) {
16546 38 dXSARGS;
16547 lucy_Schema* arg_self;
16548 lucy_Schema* retval;
16549  
16550 CFISH_UNUSED_VAR(cv);
16551 38 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 38 38
16552 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
16553 }
16554 38 SP -= items;
16555  
16556 38 arg_self = (lucy_Schema*)XSBind_new_blank_obj(aTHX_ ST(0));
16557  
16558 38 retval = lucy_Schema_init(arg_self);
16559 38 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
16560 38 XSRETURN(1);
16561 }
16562  
16563  
16564 XS_INTERNAL(XS_Lucy_Plan_Schema_architecture);
16565 0 XS_INTERNAL(XS_Lucy_Plan_Schema_architecture) {
16566 0 dXSARGS;
16567 lucy_Schema* arg_self;
16568 LUCY_Schema_Architecture_t method;
16569 lucy_Architecture* retval;
16570  
16571 CFISH_UNUSED_VAR(cv);
16572 0 SP -= items;
16573 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16574 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16575 }
16576  
16577 /* Extract vars from Perl stack. */
16578 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16579  
16580 /* Execute */
16581 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Architecture);
16582 0 retval = method(arg_self);
16583 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16584 0 CFISH_DECREF(retval);
16585 0 sv_2mortal( ST(0) );
16586 0 XSRETURN(1);
16587 }
16588  
16589 XS_INTERNAL(XS_Lucy_Plan_Schema_spec_field);
16590 90 XS_INTERNAL(XS_Lucy_Plan_Schema_spec_field) {
16591 90 dXSARGS;
16592 static const XSBind_ParamSpec param_specs[2] = {
16593 XSBIND_PARAM("name", 1),
16594 XSBIND_PARAM("type", 1)
16595 };
16596 int32_t locations[2];
16597 SV *sv;
16598 lucy_Schema* arg_self;
16599 cfish_String* arg_name;
16600 lucy_FieldType* arg_type;
16601 LUCY_Schema_Spec_Field_t method;
16602  
16603 CFISH_UNUSED_VAR(cv);
16604 90 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 90 90
16605 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
16606 }
16607 90 SP -= items;
16608  
16609 /* Locate args on Perl stack. */
16610 90 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
16611 locations, 2);
16612 90 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16613 90 sv = ST(locations[0]);
16614 90 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
16615 90 sv = ST(locations[1]);
16616 90 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
16617  
16618 /* Execute */
16619 89 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Spec_Field);
16620 89 method(arg_self, arg_name, arg_type);
16621 89 XSRETURN(0);
16622 }
16623  
16624 XS_INTERNAL(XS_Lucy_Plan_Schema_fetch_type);
16625 27 XS_INTERNAL(XS_Lucy_Plan_Schema_fetch_type) {
16626 27 dXSARGS;
16627 SV *sv;
16628 lucy_Schema* arg_self;
16629 cfish_String* arg_field;
16630 LUCY_Schema_Fetch_Type_t method;
16631 lucy_FieldType* retval;
16632  
16633 CFISH_UNUSED_VAR(cv);
16634 27 SP -= items;
16635 27 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 27 27
16636 0 XSBind_invalid_args_error(aTHX_ cv, "self, field");
16637 }
16638  
16639 /* Extract vars from Perl stack. */
16640 27 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16641 27 sv = ST(1);
16642 27 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
16643  
16644 /* Execute */
16645 27 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Fetch_Type);
16646 27 retval = method(arg_self, arg_field);
16647 27 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16648 27 sv_2mortal( ST(0) );
16649 27 XSRETURN(1);
16650 }
16651  
16652 XS_INTERNAL(XS_Lucy_Plan_Schema_fetch_analyzer);
16653 0 XS_INTERNAL(XS_Lucy_Plan_Schema_fetch_analyzer) {
16654 0 dXSARGS;
16655 SV *sv;
16656 lucy_Schema* arg_self;
16657 cfish_String* arg_field;
16658 LUCY_Schema_Fetch_Analyzer_t method;
16659 lucy_Analyzer* retval;
16660  
16661 CFISH_UNUSED_VAR(cv);
16662 0 SP -= items;
16663 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
16664 0 XSBind_invalid_args_error(aTHX_ cv, "self, [field]");
16665 }
16666  
16667 /* Extract vars from Perl stack. */
16668 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16669 0 sv = ST(1);
16670 0 ▶ arg_field = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_field = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
16671  
16672 /* Execute */
16673 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Fetch_Analyzer);
16674 0 retval = method(arg_self, arg_field);
16675 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16676 0 sv_2mortal( ST(0) );
16677 0 XSRETURN(1);
16678 }
16679  
16680 XS_INTERNAL(XS_Lucy_Plan_Schema_fetch_sim);
16681 0 XS_INTERNAL(XS_Lucy_Plan_Schema_fetch_sim) {
16682 0 dXSARGS;
16683 SV *sv;
16684 lucy_Schema* arg_self;
16685 cfish_String* arg_field;
16686 LUCY_Schema_Fetch_Sim_t method;
16687 lucy_Similarity* retval;
16688  
16689 CFISH_UNUSED_VAR(cv);
16690 0 SP -= items;
16691 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
16692 0 XSBind_invalid_args_error(aTHX_ cv, "self, [field]");
16693 }
16694  
16695 /* Extract vars from Perl stack. */
16696 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16697 0 sv = ST(1);
16698 0 ▶ arg_field = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_field = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
16699  
16700 /* Execute */
16701 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Fetch_Sim);
16702 0 retval = method(arg_self, arg_field);
16703 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16704 0 sv_2mortal( ST(0) );
16705 0 XSRETURN(1);
16706 }
16707  
16708 XS_INTERNAL(XS_Lucy_Plan_Schema_num_fields);
16709 0 XS_INTERNAL(XS_Lucy_Plan_Schema_num_fields) {
16710 0 dXSARGS;
16711 lucy_Schema* arg_self;
16712 LUCY_Schema_Num_Fields_t method;
16713 uint32_t retval;
16714  
16715 CFISH_UNUSED_VAR(cv);
16716 0 SP -= items;
16717 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16718 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16719 }
16720  
16721 /* Extract vars from Perl stack. */
16722 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16723  
16724 /* Execute */
16725 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Num_Fields);
16726 0 retval = method(arg_self);
16727 0 ST(0) = newSVuv(retval);
16728 0 sv_2mortal( ST(0) );
16729 0 XSRETURN(1);
16730 }
16731  
16732 XS_INTERNAL(XS_Lucy_Plan_Schema_all_fields);
16733 7 XS_INTERNAL(XS_Lucy_Plan_Schema_all_fields) {
16734 7 dXSARGS;
16735 lucy_Schema* arg_self;
16736 LUCY_Schema_All_Fields_t method;
16737 cfish_Vector* retval;
16738  
16739 CFISH_UNUSED_VAR(cv);
16740 7 SP -= items;
16741 7 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 7 7
16742 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16743 }
16744  
16745 /* Extract vars from Perl stack. */
16746 7 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16747  
16748 /* Execute */
16749 7 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_All_Fields);
16750 7 retval = method(arg_self);
16751 7 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16752 7 CFISH_DECREF(retval);
16753 7 sv_2mortal( ST(0) );
16754 7 XSRETURN(1);
16755 }
16756  
16757 XS_INTERNAL(XS_Lucy_Plan_Schema_get_architecture);
16758 0 XS_INTERNAL(XS_Lucy_Plan_Schema_get_architecture) {
16759 0 dXSARGS;
16760 lucy_Schema* arg_self;
16761 LUCY_Schema_Get_Architecture_t method;
16762 lucy_Architecture* retval;
16763  
16764 CFISH_UNUSED_VAR(cv);
16765 0 SP -= items;
16766 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16767 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16768 }
16769  
16770 /* Extract vars from Perl stack. */
16771 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16772  
16773 /* Execute */
16774 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Get_Architecture);
16775 0 retval = method(arg_self);
16776 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16777 0 sv_2mortal( ST(0) );
16778 0 XSRETURN(1);
16779 }
16780  
16781 XS_INTERNAL(XS_Lucy_Plan_Schema_get_similarity);
16782 6 XS_INTERNAL(XS_Lucy_Plan_Schema_get_similarity) {
16783 6 dXSARGS;
16784 lucy_Schema* arg_self;
16785 LUCY_Schema_Get_Similarity_t method;
16786 lucy_Similarity* retval;
16787  
16788 CFISH_UNUSED_VAR(cv);
16789 6 SP -= items;
16790 6 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 6 6
16791 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16792 }
16793  
16794 /* Extract vars from Perl stack. */
16795 6 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16796  
16797 /* Execute */
16798 6 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Get_Similarity);
16799 6 retval = method(arg_self);
16800 6 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16801 6 sv_2mortal( ST(0) );
16802 6 XSRETURN(1);
16803 }
16804  
16805 XS_INTERNAL(XS_Lucy_Plan_Schema_dump);
16806 0 XS_INTERNAL(XS_Lucy_Plan_Schema_dump) {
16807 0 dXSARGS;
16808 lucy_Schema* arg_self;
16809 LUCY_Schema_Dump_t method;
16810 cfish_Hash* retval;
16811  
16812 CFISH_UNUSED_VAR(cv);
16813 0 SP -= items;
16814 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
16815 0 XSBind_invalid_args_error(aTHX_ cv, "self");
16816 }
16817  
16818 /* Extract vars from Perl stack. */
16819 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16820  
16821 /* Execute */
16822 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Dump);
16823 0 retval = method(arg_self);
16824 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16825 0 CFISH_DECREF(retval);
16826 0 sv_2mortal( ST(0) );
16827 0 XSRETURN(1);
16828 }
16829  
16830 XS_INTERNAL(XS_Lucy_Plan_Schema_load);
16831 0 XS_INTERNAL(XS_Lucy_Plan_Schema_load) {
16832 0 dXSARGS;
16833 SV *sv;
16834 lucy_Schema* arg_self;
16835 cfish_Obj* arg_dump;
16836 LUCY_Schema_Load_t method;
16837 lucy_Schema* retval;
16838  
16839 CFISH_UNUSED_VAR(cv);
16840 0 SP -= items;
16841 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16842 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
16843 }
16844  
16845 /* Extract vars from Perl stack. */
16846 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16847 0 sv = ST(1);
16848 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
16849  
16850 /* Execute */
16851 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Load);
16852 0 retval = method(arg_self, arg_dump);
16853 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
16854 0 CFISH_DECREF(retval);
16855 0 sv_2mortal( ST(0) );
16856 0 XSRETURN(1);
16857 }
16858  
16859 XS_INTERNAL(XS_Lucy_Plan_Schema_eat);
16860 0 XS_INTERNAL(XS_Lucy_Plan_Schema_eat) {
16861 0 dXSARGS;
16862 SV *sv;
16863 lucy_Schema* arg_self;
16864 lucy_Schema* arg_other;
16865 LUCY_Schema_Eat_t method;
16866  
16867 CFISH_UNUSED_VAR(cv);
16868 0 SP -= items;
16869 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16870 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
16871 }
16872  
16873 /* Extract vars from Perl stack. */
16874 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16875 0 sv = ST(1);
16876 0 arg_other = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "other", LUCY_SCHEMA, NULL);
16877  
16878 /* Execute */
16879 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Eat);
16880 0 method(arg_self, arg_other);
16881 0 XSRETURN(0);
16882 }
16883  
16884 XS_INTERNAL(XS_Lucy_Plan_Schema_write);
16885 0 XS_INTERNAL(XS_Lucy_Plan_Schema_write) {
16886 0 dXSARGS;
16887 static const XSBind_ParamSpec param_specs[2] = {
16888 XSBIND_PARAM("folder", 1),
16889 XSBIND_PARAM("filename", 0)
16890 };
16891 int32_t locations[2];
16892 SV *sv;
16893 lucy_Schema* arg_self;
16894 lucy_Folder* arg_folder;
16895 cfish_String* arg_filename;
16896 LUCY_Schema_Write_t method;
16897  
16898 CFISH_UNUSED_VAR(cv);
16899 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
16900 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
16901 }
16902 0 SP -= items;
16903  
16904 /* Locate args on Perl stack. */
16905 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
16906 locations, 2);
16907 0 arg_self = (lucy_Schema*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCHEMA, NULL);
16908 0 sv = ST(locations[0]);
16909 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
16910 0 sv = ST(locations[1]);
16911 0 ▶ arg_filename = locations[1] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "filename", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_filename = locations[1] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "filename", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
16912  
16913 /* Execute */
16914 0 method = CFISH_METHOD_PTR(LUCY_SCHEMA, LUCY_Schema_Write);
16915 0 method(arg_self, arg_folder, arg_filename);
16916 0 XSRETURN(0);
16917 }
16918  
16919 XS_INTERNAL(XS_Lucy_Search_Collector_new);
16920 1 XS_INTERNAL(XS_Lucy_Search_Collector_new) {
16921 1 dXSARGS;
16922 lucy_Collector* arg_self;
16923 lucy_Collector* retval;
16924  
16925 CFISH_UNUSED_VAR(cv);
16926 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
16927 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
16928 }
16929 1 SP -= items;
16930  
16931 1 arg_self = (lucy_Collector*)XSBind_new_blank_obj(aTHX_ ST(0));
16932  
16933 1 retval = lucy_Coll_init(arg_self);
16934 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
16935 1 XSRETURN(1);
16936 }
16937  
16938  
16939 XS_INTERNAL(XS_Lucy_Search_Collector_collect);
16940 0 XS_INTERNAL(XS_Lucy_Search_Collector_collect) {
16941 0 dXSARGS;
16942 SV *sv;
16943 lucy_Collector* arg_self;
16944 int32_t arg_doc_id;
16945 LUCY_Coll_Collect_t method;
16946  
16947 CFISH_UNUSED_VAR(cv);
16948 0 SP -= items;
16949 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16950 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
16951 }
16952  
16953 /* Extract vars from Perl stack. */
16954 0 arg_self = (lucy_Collector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COLLECTOR, NULL);
16955 0 sv = ST(1);
16956 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
16957 0 XSBind_undef_arg_error(aTHX_ "doc_id");
16958 }
16959 0 arg_doc_id = (int32_t)SvIV(sv);
16960  
16961 /* Execute */
16962 0 method = CFISH_METHOD_PTR(LUCY_COLLECTOR, LUCY_Coll_Collect);
16963 0 method(arg_self, arg_doc_id);
16964 0 XSRETURN(0);
16965 }
16966  
16967 XS_INTERNAL(XS_Lucy_Search_Collector_set_reader);
16968 0 XS_INTERNAL(XS_Lucy_Search_Collector_set_reader) {
16969 0 dXSARGS;
16970 SV *sv;
16971 lucy_Collector* arg_self;
16972 lucy_SegReader* arg_reader;
16973 LUCY_Coll_Set_Reader_t method;
16974  
16975 CFISH_UNUSED_VAR(cv);
16976 0 SP -= items;
16977 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
16978 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
16979 }
16980  
16981 /* Extract vars from Perl stack. */
16982 0 arg_self = (lucy_Collector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COLLECTOR, NULL);
16983 0 sv = ST(1);
16984 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
16985  
16986 /* Execute */
16987 0 method = CFISH_METHOD_PTR(LUCY_COLLECTOR, LUCY_Coll_Set_Reader);
16988 0 method(arg_self, arg_reader);
16989 0 XSRETURN(0);
16990 }
16991  
16992 XS_INTERNAL(XS_Lucy_Search_Collector_set_base);
16993 0 XS_INTERNAL(XS_Lucy_Search_Collector_set_base) {
16994 0 dXSARGS;
16995 SV *sv;
16996 lucy_Collector* arg_self;
16997 int32_t arg_base;
16998 LUCY_Coll_Set_Base_t method;
16999  
17000 CFISH_UNUSED_VAR(cv);
17001 0 SP -= items;
17002 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17003 0 XSBind_invalid_args_error(aTHX_ cv, "self, base");
17004 }
17005  
17006 /* Extract vars from Perl stack. */
17007 0 arg_self = (lucy_Collector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COLLECTOR, NULL);
17008 0 sv = ST(1);
17009 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
17010 0 XSBind_undef_arg_error(aTHX_ "base");
17011 }
17012 0 arg_base = (int32_t)SvIV(sv);
17013  
17014 /* Execute */
17015 0 method = CFISH_METHOD_PTR(LUCY_COLLECTOR, LUCY_Coll_Set_Base);
17016 0 method(arg_self, arg_base);
17017 0 XSRETURN(0);
17018 }
17019  
17020 XS_INTERNAL(XS_Lucy_Search_Collector_need_score);
17021 0 XS_INTERNAL(XS_Lucy_Search_Collector_need_score) {
17022 0 dXSARGS;
17023 lucy_Collector* arg_self;
17024 LUCY_Coll_Need_Score_t method;
17025 bool retval;
17026  
17027 CFISH_UNUSED_VAR(cv);
17028 0 SP -= items;
17029 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
17030 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17031 }
17032  
17033 /* Extract vars from Perl stack. */
17034 0 arg_self = (lucy_Collector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COLLECTOR, NULL);
17035  
17036 /* Execute */
17037 0 method = CFISH_METHOD_PTR(LUCY_COLLECTOR, LUCY_Coll_Need_Score);
17038 0 retval = method(arg_self);
17039 0 ST(0) = newSViv(!!retval);
17040 0 sv_2mortal( ST(0) );
17041 0 XSRETURN(1);
17042 }
17043  
17044 XS_INTERNAL(XS_Lucy_Search_Collector_set_matcher);
17045 35 XS_INTERNAL(XS_Lucy_Search_Collector_set_matcher) {
17046 35 dXSARGS;
17047 SV *sv;
17048 lucy_Collector* arg_self;
17049 lucy_Matcher* arg_matcher;
17050 LUCY_Coll_Set_Matcher_t method;
17051  
17052 CFISH_UNUSED_VAR(cv);
17053 35 SP -= items;
17054 35 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 35 35
17055 0 XSBind_invalid_args_error(aTHX_ cv, "self, matcher");
17056 }
17057  
17058 /* Extract vars from Perl stack. */
17059 35 arg_self = (lucy_Collector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COLLECTOR, NULL);
17060 35 sv = ST(1);
17061 35 arg_matcher = (lucy_Matcher*)XSBind_arg_to_cfish(aTHX_ sv, "matcher", LUCY_MATCHER, NULL);
17062  
17063 /* Execute */
17064 35 method = CFISH_METHOD_PTR(LUCY_COLLECTOR, LUCY_Coll_Set_Matcher);
17065 35 method(arg_self, arg_matcher);
17066 35 XSRETURN(0);
17067 }
17068  
17069 XS_INTERNAL(XS_Lucy_Search_Collector_BitCollector_new);
17070 42 XS_INTERNAL(XS_Lucy_Search_Collector_BitCollector_new) {
17071 42 dXSARGS;
17072 static const XSBind_ParamSpec param_specs[1] = {
17073 XSBIND_PARAM("bit_vector", 1)
17074 };
17075 int32_t locations[1];
17076 SV *sv;
17077 lucy_BitCollector* arg_self;
17078 lucy_BitVector* arg_bit_vector;
17079 lucy_BitCollector* retval;
17080  
17081 CFISH_UNUSED_VAR(cv);
17082 42 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 42 42
17083 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
17084 }
17085 42 SP -= items;
17086  
17087 42 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
17088 locations, 1);
17089 42 sv = ST(locations[0]);
17090 42 arg_bit_vector = (lucy_BitVector*)XSBind_arg_to_cfish(aTHX_ sv, "bit_vector", LUCY_BITVECTOR, NULL);
17091 42 arg_self = (lucy_BitCollector*)XSBind_new_blank_obj(aTHX_ ST(0));
17092  
17093 42 retval = lucy_BitColl_init(arg_self, arg_bit_vector);
17094 42 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
17095 42 XSRETURN(1);
17096 }
17097  
17098  
17099 XS_INTERNAL(XS_Lucy_Search_Collector_BitCollector_collect);
17100 4 XS_INTERNAL(XS_Lucy_Search_Collector_BitCollector_collect) {
17101 4 dXSARGS;
17102 SV *sv;
17103 lucy_BitCollector* arg_self;
17104 int32_t arg_doc_id;
17105 LUCY_BitColl_Collect_t method;
17106  
17107 CFISH_UNUSED_VAR(cv);
17108 4 SP -= items;
17109 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
17110 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
17111 }
17112  
17113 /* Extract vars from Perl stack. */
17114 4 arg_self = (lucy_BitCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITCOLLECTOR, NULL);
17115 4 sv = ST(1);
17116 4 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 4 4
17117 0 XSBind_undef_arg_error(aTHX_ "doc_id");
17118 }
17119 4 arg_doc_id = (int32_t)SvIV(sv);
17120  
17121 /* Execute */
17122 4 method = CFISH_METHOD_PTR(LUCY_BITCOLLECTOR, LUCY_BitColl_Collect);
17123 4 method(arg_self, arg_doc_id);
17124 4 XSRETURN(0);
17125 }
17126  
17127 XS_INTERNAL(XS_Lucy_Search_Collector_BitCollector_need_score);
17128 0 XS_INTERNAL(XS_Lucy_Search_Collector_BitCollector_need_score) {
17129 0 dXSARGS;
17130 lucy_BitCollector* arg_self;
17131 LUCY_BitColl_Need_Score_t method;
17132 bool retval;
17133  
17134 CFISH_UNUSED_VAR(cv);
17135 0 SP -= items;
17136 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
17137 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17138 }
17139  
17140 /* Extract vars from Perl stack. */
17141 0 arg_self = (lucy_BitCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITCOLLECTOR, NULL);
17142  
17143 /* Execute */
17144 0 method = CFISH_METHOD_PTR(LUCY_BITCOLLECTOR, LUCY_BitColl_Need_Score);
17145 0 retval = method(arg_self);
17146 0 ST(0) = newSViv(!!retval);
17147 0 sv_2mortal( ST(0) );
17148 0 XSRETURN(1);
17149 }
17150  
17151 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_new);
17152 1 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_new) {
17153 1 dXSARGS;
17154 static const XSBind_ParamSpec param_specs[2] = {
17155 XSBIND_PARAM("collector", 1),
17156 XSBIND_PARAM("offset", 1)
17157 };
17158 int32_t locations[2];
17159 SV *sv;
17160 lucy_OffsetCollector* arg_self;
17161 lucy_Collector* arg_collector;
17162 int32_t arg_offset;
17163 lucy_OffsetCollector* retval;
17164  
17165 CFISH_UNUSED_VAR(cv);
17166 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
17167 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
17168 }
17169 1 SP -= items;
17170  
17171 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
17172 locations, 2);
17173 1 sv = ST(locations[0]);
17174 1 arg_collector = (lucy_Collector*)XSBind_arg_to_cfish(aTHX_ sv, "collector", LUCY_COLLECTOR, NULL);
17175 1 sv = ST(locations[1]);
17176 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
17177 0 XSBind_undef_arg_error(aTHX_ "offset");
17178 }
17179 1 arg_offset = (int32_t)SvIV(sv);
17180 1 arg_self = (lucy_OffsetCollector*)XSBind_new_blank_obj(aTHX_ ST(0));
17181  
17182 1 retval = lucy_OffsetColl_init(arg_self, arg_collector, arg_offset);
17183 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
17184 1 XSRETURN(1);
17185 }
17186  
17187  
17188 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_collect);
17189 4 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_collect) {
17190 4 dXSARGS;
17191 SV *sv;
17192 lucy_OffsetCollector* arg_self;
17193 int32_t arg_doc_id;
17194 LUCY_OffsetColl_Collect_t method;
17195  
17196 CFISH_UNUSED_VAR(cv);
17197 4 SP -= items;
17198 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
17199 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
17200 }
17201  
17202 /* Extract vars from Perl stack. */
17203 4 arg_self = (lucy_OffsetCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OFFSETCOLLECTOR, NULL);
17204 4 sv = ST(1);
17205 4 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 4 4
17206 0 XSBind_undef_arg_error(aTHX_ "doc_id");
17207 }
17208 4 arg_doc_id = (int32_t)SvIV(sv);
17209  
17210 /* Execute */
17211 4 method = CFISH_METHOD_PTR(LUCY_OFFSETCOLLECTOR, LUCY_OffsetColl_Collect);
17212 4 method(arg_self, arg_doc_id);
17213 4 XSRETURN(0);
17214 }
17215  
17216 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_need_score);
17217 0 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_need_score) {
17218 0 dXSARGS;
17219 lucy_OffsetCollector* arg_self;
17220 LUCY_OffsetColl_Need_Score_t method;
17221 bool retval;
17222  
17223 CFISH_UNUSED_VAR(cv);
17224 0 SP -= items;
17225 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
17226 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17227 }
17228  
17229 /* Extract vars from Perl stack. */
17230 0 arg_self = (lucy_OffsetCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OFFSETCOLLECTOR, NULL);
17231  
17232 /* Execute */
17233 0 method = CFISH_METHOD_PTR(LUCY_OFFSETCOLLECTOR, LUCY_OffsetColl_Need_Score);
17234 0 retval = method(arg_self);
17235 0 ST(0) = newSViv(!!retval);
17236 0 sv_2mortal( ST(0) );
17237 0 XSRETURN(1);
17238 }
17239  
17240 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_set_reader);
17241 0 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_set_reader) {
17242 0 dXSARGS;
17243 SV *sv;
17244 lucy_OffsetCollector* arg_self;
17245 lucy_SegReader* arg_reader;
17246 LUCY_OffsetColl_Set_Reader_t method;
17247  
17248 CFISH_UNUSED_VAR(cv);
17249 0 SP -= items;
17250 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17251 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
17252 }
17253  
17254 /* Extract vars from Perl stack. */
17255 0 arg_self = (lucy_OffsetCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OFFSETCOLLECTOR, NULL);
17256 0 sv = ST(1);
17257 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
17258  
17259 /* Execute */
17260 0 method = CFISH_METHOD_PTR(LUCY_OFFSETCOLLECTOR, LUCY_OffsetColl_Set_Reader);
17261 0 method(arg_self, arg_reader);
17262 0 XSRETURN(0);
17263 }
17264  
17265 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_set_base);
17266 0 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_set_base) {
17267 0 dXSARGS;
17268 SV *sv;
17269 lucy_OffsetCollector* arg_self;
17270 int32_t arg_base;
17271 LUCY_OffsetColl_Set_Base_t method;
17272  
17273 CFISH_UNUSED_VAR(cv);
17274 0 SP -= items;
17275 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17276 0 XSBind_invalid_args_error(aTHX_ cv, "self, base");
17277 }
17278  
17279 /* Extract vars from Perl stack. */
17280 0 arg_self = (lucy_OffsetCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OFFSETCOLLECTOR, NULL);
17281 0 sv = ST(1);
17282 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
17283 0 XSBind_undef_arg_error(aTHX_ "base");
17284 }
17285 0 arg_base = (int32_t)SvIV(sv);
17286  
17287 /* Execute */
17288 0 method = CFISH_METHOD_PTR(LUCY_OFFSETCOLLECTOR, LUCY_OffsetColl_Set_Base);
17289 0 method(arg_self, arg_base);
17290 0 XSRETURN(0);
17291 }
17292  
17293 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_set_matcher);
17294 1 XS_INTERNAL(XS_Lucy_Search_Collector_OffsetCollector_set_matcher) {
17295 1 dXSARGS;
17296 SV *sv;
17297 lucy_OffsetCollector* arg_self;
17298 lucy_Matcher* arg_matcher;
17299 LUCY_OffsetColl_Set_Matcher_t method;
17300  
17301 CFISH_UNUSED_VAR(cv);
17302 1 SP -= items;
17303 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
17304 0 XSBind_invalid_args_error(aTHX_ cv, "self, matcher");
17305 }
17306  
17307 /* Extract vars from Perl stack. */
17308 1 arg_self = (lucy_OffsetCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OFFSETCOLLECTOR, NULL);
17309 1 sv = ST(1);
17310 1 arg_matcher = (lucy_Matcher*)XSBind_arg_to_cfish(aTHX_ sv, "matcher", LUCY_MATCHER, NULL);
17311  
17312 /* Execute */
17313 1 method = CFISH_METHOD_PTR(LUCY_OFFSETCOLLECTOR, LUCY_OffsetColl_Set_Matcher);
17314 1 method(arg_self, arg_matcher);
17315 1 XSRETURN(0);
17316 }
17317  
17318 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_new);
17319 1537 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_new) {
17320 1537 dXSARGS;
17321 static const XSBind_ParamSpec param_specs[3] = {
17322 XSBIND_PARAM("schema", 0),
17323 XSBIND_PARAM("sort_spec", 0),
17324 XSBIND_PARAM("wanted", 1)
17325 };
17326 int32_t locations[3];
17327 SV *sv;
17328 lucy_SortCollector* arg_self;
17329 lucy_Schema* arg_schema;
17330 lucy_SortSpec* arg_sort_spec;
17331 uint32_t arg_wanted;
17332 lucy_SortCollector* retval;
17333  
17334 CFISH_UNUSED_VAR(cv);
17335 1537 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1537 1537
17336 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
17337 }
17338 1537 SP -= items;
17339  
17340 1537 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
17341 locations, 3);
17342 1537 sv = ST(locations[0]);
17343 1537 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 1 1536 1537
17344 1537 sv = ST(locations[1]);
17345 1537 ▶ arg_sort_spec = locations[1] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_sort_spec = locations[1] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL; 1 1536 1537
17346 1537 sv = ST(locations[2]);
17347 1537 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1537 1537
17348 0 XSBind_undef_arg_error(aTHX_ "wanted");
17349 }
17350 1537 arg_wanted = (uint32_t)SvUV(sv);
17351 1537 arg_self = (lucy_SortCollector*)XSBind_new_blank_obj(aTHX_ ST(0));
17352  
17353 1537 retval = lucy_SortColl_init(arg_self, arg_schema, arg_sort_spec, arg_wanted);
17354 1537 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
17355 1537 XSRETURN(1);
17356 }
17357  
17358  
17359 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_collect);
17360 108 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_collect) {
17361 108 dXSARGS;
17362 SV *sv;
17363 lucy_SortCollector* arg_self;
17364 int32_t arg_doc_id;
17365 LUCY_SortColl_Collect_t method;
17366  
17367 CFISH_UNUSED_VAR(cv);
17368 108 SP -= items;
17369 108 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 108 108
17370 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
17371 }
17372  
17373 /* Extract vars from Perl stack. */
17374 108 arg_self = (lucy_SortCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCOLLECTOR, NULL);
17375 108 sv = ST(1);
17376 108 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 108 108
17377 0 XSBind_undef_arg_error(aTHX_ "doc_id");
17378 }
17379 108 arg_doc_id = (int32_t)SvIV(sv);
17380  
17381 /* Execute */
17382 108 method = CFISH_METHOD_PTR(LUCY_SORTCOLLECTOR, LUCY_SortColl_Collect);
17383 108 method(arg_self, arg_doc_id);
17384 108 XSRETURN(0);
17385 }
17386  
17387 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_pop_match_docs);
17388 1537 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_pop_match_docs) {
17389 1537 dXSARGS;
17390 lucy_SortCollector* arg_self;
17391 LUCY_SortColl_Pop_Match_Docs_t method;
17392 cfish_Vector* retval;
17393  
17394 CFISH_UNUSED_VAR(cv);
17395 1537 SP -= items;
17396 1537 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1537 1537
17397 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17398 }
17399  
17400 /* Extract vars from Perl stack. */
17401 1537 arg_self = (lucy_SortCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCOLLECTOR, NULL);
17402  
17403 /* Execute */
17404 1537 method = CFISH_METHOD_PTR(LUCY_SORTCOLLECTOR, LUCY_SortColl_Pop_Match_Docs);
17405 1537 retval = method(arg_self);
17406 1537 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
17407 1537 CFISH_DECREF(retval);
17408 1537 sv_2mortal( ST(0) );
17409 1537 XSRETURN(1);
17410 }
17411  
17412 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_get_total_hits);
17413 682 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_get_total_hits) {
17414 682 dXSARGS;
17415 lucy_SortCollector* arg_self;
17416 LUCY_SortColl_Get_Total_Hits_t method;
17417 uint32_t retval;
17418  
17419 CFISH_UNUSED_VAR(cv);
17420 682 SP -= items;
17421 682 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 682 682
17422 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17423 }
17424  
17425 /* Extract vars from Perl stack. */
17426 682 arg_self = (lucy_SortCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCOLLECTOR, NULL);
17427  
17428 /* Execute */
17429 682 method = CFISH_METHOD_PTR(LUCY_SORTCOLLECTOR, LUCY_SortColl_Get_Total_Hits);
17430 682 retval = method(arg_self);
17431 682 ST(0) = newSVuv(retval);
17432 682 sv_2mortal( ST(0) );
17433 682 XSRETURN(1);
17434 }
17435  
17436 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_set_reader);
17437 1 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_set_reader) {
17438 1 dXSARGS;
17439 SV *sv;
17440 lucy_SortCollector* arg_self;
17441 lucy_SegReader* arg_reader;
17442 LUCY_SortColl_Set_Reader_t method;
17443  
17444 CFISH_UNUSED_VAR(cv);
17445 1 SP -= items;
17446 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
17447 0 XSBind_invalid_args_error(aTHX_ cv, "self, reader");
17448 }
17449  
17450 /* Extract vars from Perl stack. */
17451 1 arg_self = (lucy_SortCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCOLLECTOR, NULL);
17452 1 sv = ST(1);
17453 1 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
17454  
17455 /* Execute */
17456 1 method = CFISH_METHOD_PTR(LUCY_SORTCOLLECTOR, LUCY_SortColl_Set_Reader);
17457 1 method(arg_self, arg_reader);
17458 1 XSRETURN(0);
17459 }
17460  
17461 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_need_score);
17462 0 XS_INTERNAL(XS_Lucy_Search_Collector_SortCollector_need_score) {
17463 0 dXSARGS;
17464 lucy_SortCollector* arg_self;
17465 LUCY_SortColl_Need_Score_t method;
17466 bool retval;
17467  
17468 CFISH_UNUSED_VAR(cv);
17469 0 SP -= items;
17470 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
17471 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17472 }
17473  
17474 /* Extract vars from Perl stack. */
17475 0 arg_self = (lucy_SortCollector*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTCOLLECTOR, NULL);
17476  
17477 /* Execute */
17478 0 method = CFISH_METHOD_PTR(LUCY_SORTCOLLECTOR, LUCY_SortColl_Need_Score);
17479 0 retval = method(arg_self);
17480 0 ST(0) = newSViv(!!retval);
17481 0 sv_2mortal( ST(0) );
17482 0 XSRETURN(1);
17483 }
17484  
17485 XS_INTERNAL(XS_Lucy_Search_Hits_new);
17486 0 XS_INTERNAL(XS_Lucy_Search_Hits_new) {
17487 0 dXSARGS;
17488 static const XSBind_ParamSpec param_specs[3] = {
17489 XSBIND_PARAM("searcher", 1),
17490 XSBIND_PARAM("top_docs", 1),
17491 XSBIND_PARAM("offset", 0)
17492 };
17493 int32_t locations[3];
17494 SV *sv;
17495 lucy_Hits* arg_self;
17496 lucy_Searcher* arg_searcher;
17497 lucy_TopDocs* arg_top_docs;
17498 uint32_t arg_offset;
17499 lucy_Hits* retval;
17500  
17501 CFISH_UNUSED_VAR(cv);
17502 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
17503 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
17504 }
17505 0 SP -= items;
17506  
17507 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
17508 locations, 3);
17509 0 sv = ST(locations[0]);
17510 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
17511 0 sv = ST(locations[1]);
17512 0 arg_top_docs = (lucy_TopDocs*)XSBind_arg_to_cfish(aTHX_ sv, "top_docs", LUCY_TOPDOCS, NULL);
17513 0 sv = ST(locations[2]);
17514 0 ▶ arg_offset = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_offset = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
17515 0 ▶ ? (uint32_t)SvUV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (uint32_t)SvUV(sv) : 0; 0 0 0
17516 0 arg_self = (lucy_Hits*)XSBind_new_blank_obj(aTHX_ ST(0));
17517  
17518 0 retval = lucy_Hits_init(arg_self, arg_searcher, arg_top_docs, arg_offset);
17519 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
17520 0 XSRETURN(1);
17521 }
17522  
17523  
17524 XS_INTERNAL(XS_Lucy_Search_Hits_next);
17525 398 XS_INTERNAL(XS_Lucy_Search_Hits_next) {
17526 398 dXSARGS;
17527 lucy_Hits* arg_self;
17528 LUCY_Hits_Next_t method;
17529 lucy_HitDoc* retval;
17530  
17531 CFISH_UNUSED_VAR(cv);
17532 398 SP -= items;
17533 398 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 398 398
17534 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17535 }
17536  
17537 /* Extract vars from Perl stack. */
17538 398 arg_self = (lucy_Hits*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITS, NULL);
17539  
17540 /* Execute */
17541 398 method = CFISH_METHOD_PTR(LUCY_HITS, LUCY_Hits_Next);
17542 398 retval = method(arg_self);
17543 398 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
17544 398 CFISH_DECREF(retval);
17545 398 sv_2mortal( ST(0) );
17546 398 XSRETURN(1);
17547 }
17548  
17549 XS_INTERNAL(XS_Lucy_Search_Hits_total_hits);
17550 356 XS_INTERNAL(XS_Lucy_Search_Hits_total_hits) {
17551 356 dXSARGS;
17552 lucy_Hits* arg_self;
17553 LUCY_Hits_Total_Hits_t method;
17554 uint32_t retval;
17555  
17556 CFISH_UNUSED_VAR(cv);
17557 356 SP -= items;
17558 356 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 356 356
17559 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17560 }
17561  
17562 /* Extract vars from Perl stack. */
17563 356 arg_self = (lucy_Hits*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITS, NULL);
17564  
17565 /* Execute */
17566 356 method = CFISH_METHOD_PTR(LUCY_HITS, LUCY_Hits_Total_Hits);
17567 356 retval = method(arg_self);
17568 356 ST(0) = newSVuv(retval);
17569 356 sv_2mortal( ST(0) );
17570 356 XSRETURN(1);
17571 }
17572  
17573 XS_INTERNAL(XS_Lucy_Search_MatchDoc_new);
17574 438 XS_INTERNAL(XS_Lucy_Search_MatchDoc_new) {
17575 438 dXSARGS;
17576 static const XSBind_ParamSpec param_specs[3] = {
17577 XSBIND_PARAM("doc_id", 1),
17578 XSBIND_PARAM("score", 1),
17579 XSBIND_PARAM("values", 0)
17580 };
17581 int32_t locations[3];
17582 SV *sv;
17583 lucy_MatchDoc* arg_self;
17584 int32_t arg_doc_id;
17585 float arg_score;
17586 cfish_Vector* arg_values;
17587 lucy_MatchDoc* retval;
17588  
17589 CFISH_UNUSED_VAR(cv);
17590 438 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 438 438
17591 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
17592 }
17593 438 SP -= items;
17594  
17595 438 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
17596 locations, 3);
17597 438 sv = ST(locations[0]);
17598 438 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 438 438
17599 0 XSBind_undef_arg_error(aTHX_ "doc_id");
17600 }
17601 438 arg_doc_id = (int32_t)SvIV(sv);
17602 438 sv = ST(locations[1]);
17603 438 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 438 438
17604 0 XSBind_undef_arg_error(aTHX_ "score");
17605 }
17606 438 arg_score = (float)SvNV(sv);
17607 438 sv = ST(locations[2]);
17608 438 ▶ arg_values = locations[2] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "values", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_values = locations[2] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "values", CFISH_VECTOR, NULL) : NULL; 401 37 438
17609 438 arg_self = (lucy_MatchDoc*)XSBind_new_blank_obj(aTHX_ ST(0));
17610  
17611 438 retval = lucy_MatchDoc_init(arg_self, arg_doc_id, arg_score, arg_values);
17612 438 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
17613 438 XSRETURN(1);
17614 }
17615  
17616  
17617 XS_INTERNAL(XS_Lucy_Search_MatchDoc_serialize);
17618 0 XS_INTERNAL(XS_Lucy_Search_MatchDoc_serialize) {
17619 0 dXSARGS;
17620 SV *sv;
17621 lucy_MatchDoc* arg_self;
17622 lucy_OutStream* arg_outstream;
17623 LUCY_MatchDoc_Serialize_t method;
17624  
17625 CFISH_UNUSED_VAR(cv);
17626 0 SP -= items;
17627 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17628 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
17629 }
17630  
17631 /* Extract vars from Perl stack. */
17632 0 arg_self = (lucy_MatchDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHDOC, NULL);
17633 0 sv = ST(1);
17634 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
17635  
17636 /* Execute */
17637 0 method = CFISH_METHOD_PTR(LUCY_MATCHDOC, LUCY_MatchDoc_Serialize);
17638 0 method(arg_self, arg_outstream);
17639 0 XSRETURN(0);
17640 }
17641  
17642 XS_INTERNAL(XS_Lucy_Search_MatchDoc_deserialize);
17643 0 XS_INTERNAL(XS_Lucy_Search_MatchDoc_deserialize) {
17644 0 dXSARGS;
17645 SV *sv;
17646 lucy_MatchDoc* arg_self;
17647 lucy_InStream* arg_instream;
17648 LUCY_MatchDoc_Deserialize_t method;
17649 lucy_MatchDoc* retval;
17650  
17651 CFISH_UNUSED_VAR(cv);
17652 0 SP -= items;
17653 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17654 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
17655 }
17656  
17657 /* Extract vars from Perl stack. */
17658 0 arg_self = (lucy_MatchDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHDOC, NULL);
17659 0 sv = ST(1);
17660 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
17661  
17662 /* Execute */
17663 0 method = CFISH_METHOD_PTR(LUCY_MATCHDOC, LUCY_MatchDoc_Deserialize);
17664 0 arg_self = (lucy_MatchDoc*)CFISH_INCREF(arg_self);
17665 0 retval = method(arg_self, arg_instream);
17666 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
17667 0 CFISH_DECREF(retval);
17668 0 sv_2mortal( ST(0) );
17669 0 XSRETURN(1);
17670 }
17671  
17672 XS_INTERNAL(XS_Lucy_Search_MatchDoc_get_doc_id);
17673 78713 XS_INTERNAL(XS_Lucy_Search_MatchDoc_get_doc_id) {
17674 78713 dXSARGS;
17675 lucy_MatchDoc* arg_self;
17676 LUCY_MatchDoc_Get_Doc_ID_t method;
17677 int32_t retval;
17678  
17679 CFISH_UNUSED_VAR(cv);
17680 78713 SP -= items;
17681 78713 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 78713 78713
17682 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17683 }
17684  
17685 /* Extract vars from Perl stack. */
17686 78713 arg_self = (lucy_MatchDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHDOC, NULL);
17687  
17688 /* Execute */
17689 78713 method = CFISH_METHOD_PTR(LUCY_MATCHDOC, LUCY_MatchDoc_Get_Doc_ID);
17690 78713 retval = method(arg_self);
17691 78713 ST(0) = newSViv(retval);
17692 78713 sv_2mortal( ST(0) );
17693 78713 XSRETURN(1);
17694 }
17695  
17696 XS_INTERNAL(XS_Lucy_Search_MatchDoc_set_doc_id);
17697 0 XS_INTERNAL(XS_Lucy_Search_MatchDoc_set_doc_id) {
17698 0 dXSARGS;
17699 SV *sv;
17700 lucy_MatchDoc* arg_self;
17701 int32_t arg_doc_id;
17702 LUCY_MatchDoc_Set_Doc_ID_t method;
17703  
17704 CFISH_UNUSED_VAR(cv);
17705 0 SP -= items;
17706 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17707 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
17708 }
17709  
17710 /* Extract vars from Perl stack. */
17711 0 arg_self = (lucy_MatchDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHDOC, NULL);
17712 0 sv = ST(1);
17713 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
17714 0 XSBind_undef_arg_error(aTHX_ "doc_id");
17715 }
17716 0 arg_doc_id = (int32_t)SvIV(sv);
17717  
17718 /* Execute */
17719 0 method = CFISH_METHOD_PTR(LUCY_MATCHDOC, LUCY_MatchDoc_Set_Doc_ID);
17720 0 method(arg_self, arg_doc_id);
17721 0 XSRETURN(0);
17722 }
17723  
17724 XS_INTERNAL(XS_Lucy_Search_MatchDoc_get_score);
17725 54618 XS_INTERNAL(XS_Lucy_Search_MatchDoc_get_score) {
17726 54618 dXSARGS;
17727 lucy_MatchDoc* arg_self;
17728 LUCY_MatchDoc_Get_Score_t method;
17729 float retval;
17730  
17731 CFISH_UNUSED_VAR(cv);
17732 54618 SP -= items;
17733 54618 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 54618 54618
17734 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17735 }
17736  
17737 /* Extract vars from Perl stack. */
17738 54618 arg_self = (lucy_MatchDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHDOC, NULL);
17739  
17740 /* Execute */
17741 54618 method = CFISH_METHOD_PTR(LUCY_MATCHDOC, LUCY_MatchDoc_Get_Score);
17742 54618 retval = method(arg_self);
17743 54618 ST(0) = newSVnv(retval);
17744 54618 sv_2mortal( ST(0) );
17745 54618 XSRETURN(1);
17746 }
17747  
17748 XS_INTERNAL(XS_Lucy_Search_MatchDoc_set_score);
17749 0 XS_INTERNAL(XS_Lucy_Search_MatchDoc_set_score) {
17750 0 dXSARGS;
17751 SV *sv;
17752 lucy_MatchDoc* arg_self;
17753 float arg_score;
17754 LUCY_MatchDoc_Set_Score_t method;
17755  
17756 CFISH_UNUSED_VAR(cv);
17757 0 SP -= items;
17758 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17759 0 XSBind_invalid_args_error(aTHX_ cv, "self, score");
17760 }
17761  
17762 /* Extract vars from Perl stack. */
17763 0 arg_self = (lucy_MatchDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHDOC, NULL);
17764 0 sv = ST(1);
17765 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
17766 0 XSBind_undef_arg_error(aTHX_ "score");
17767 }
17768 0 arg_score = (float)SvNV(sv);
17769  
17770 /* Execute */
17771 0 method = CFISH_METHOD_PTR(LUCY_MATCHDOC, LUCY_MatchDoc_Set_Score);
17772 0 method(arg_self, arg_score);
17773 0 XSRETURN(0);
17774 }
17775  
17776 XS_INTERNAL(XS_Lucy_Search_MatchDoc_get_values);
17777 4 XS_INTERNAL(XS_Lucy_Search_MatchDoc_get_values) {
17778 4 dXSARGS;
17779 lucy_MatchDoc* arg_self;
17780 LUCY_MatchDoc_Get_Values_t method;
17781 cfish_Vector* retval;
17782  
17783 CFISH_UNUSED_VAR(cv);
17784 4 SP -= items;
17785 4 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 4 4
17786 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17787 }
17788  
17789 /* Extract vars from Perl stack. */
17790 4 arg_self = (lucy_MatchDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHDOC, NULL);
17791  
17792 /* Execute */
17793 4 method = CFISH_METHOD_PTR(LUCY_MATCHDOC, LUCY_MatchDoc_Get_Values);
17794 4 retval = method(arg_self);
17795 4 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
17796 4 sv_2mortal( ST(0) );
17797 4 XSRETURN(1);
17798 }
17799  
17800 XS_INTERNAL(XS_Lucy_Search_MatchDoc_set_values);
17801 0 XS_INTERNAL(XS_Lucy_Search_MatchDoc_set_values) {
17802 0 dXSARGS;
17803 SV *sv;
17804 lucy_MatchDoc* arg_self;
17805 cfish_Vector* arg_values;
17806 LUCY_MatchDoc_Set_Values_t method;
17807  
17808 CFISH_UNUSED_VAR(cv);
17809 0 SP -= items;
17810 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17811 0 XSBind_invalid_args_error(aTHX_ cv, "self, values");
17812 }
17813  
17814 /* Extract vars from Perl stack. */
17815 0 arg_self = (lucy_MatchDoc*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHDOC, NULL);
17816 0 sv = ST(1);
17817 0 arg_values = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "values", CFISH_VECTOR, NULL);
17818  
17819 /* Execute */
17820 0 method = CFISH_METHOD_PTR(LUCY_MATCHDOC, LUCY_MatchDoc_Set_Values);
17821 0 method(arg_self, arg_values);
17822 0 XSRETURN(0);
17823 }
17824  
17825 XS_INTERNAL(XS_Lucy_Search_Matcher_new);
17826 1 XS_INTERNAL(XS_Lucy_Search_Matcher_new) {
17827 1 dXSARGS;
17828 lucy_Matcher* arg_self;
17829 lucy_Matcher* retval;
17830  
17831 CFISH_UNUSED_VAR(cv);
17832 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
17833 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
17834 }
17835 1 SP -= items;
17836  
17837 1 arg_self = (lucy_Matcher*)XSBind_new_blank_obj(aTHX_ ST(0));
17838  
17839 1 retval = lucy_Matcher_init(arg_self);
17840 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
17841 1 XSRETURN(1);
17842 }
17843  
17844  
17845 XS_INTERNAL(XS_Lucy_Search_Matcher_next);
17846 1 XS_INTERNAL(XS_Lucy_Search_Matcher_next) {
17847 1 dXSARGS;
17848 lucy_Matcher* arg_self;
17849 LUCY_Matcher_Next_t method;
17850 int32_t retval;
17851  
17852 CFISH_UNUSED_VAR(cv);
17853 1 SP -= items;
17854 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
17855 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17856 }
17857  
17858 /* Extract vars from Perl stack. */
17859 1 arg_self = (lucy_Matcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHER, NULL);
17860  
17861 /* Execute */
17862 1 method = CFISH_METHOD_PTR(LUCY_MATCHER, LUCY_Matcher_Next);
17863 1 retval = method(arg_self);
17864 0 ST(0) = newSViv(retval);
17865 0 sv_2mortal( ST(0) );
17866 0 XSRETURN(1);
17867 }
17868  
17869 XS_INTERNAL(XS_Lucy_Search_Matcher_advance);
17870 0 XS_INTERNAL(XS_Lucy_Search_Matcher_advance) {
17871 0 dXSARGS;
17872 SV *sv;
17873 lucy_Matcher* arg_self;
17874 int32_t arg_target;
17875 LUCY_Matcher_Advance_t method;
17876 int32_t retval;
17877  
17878 CFISH_UNUSED_VAR(cv);
17879 0 SP -= items;
17880 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
17881 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
17882 }
17883  
17884 /* Extract vars from Perl stack. */
17885 0 arg_self = (lucy_Matcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHER, NULL);
17886 0 sv = ST(1);
17887 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
17888 0 XSBind_undef_arg_error(aTHX_ "target");
17889 }
17890 0 arg_target = (int32_t)SvIV(sv);
17891  
17892 /* Execute */
17893 0 method = CFISH_METHOD_PTR(LUCY_MATCHER, LUCY_Matcher_Advance);
17894 0 retval = method(arg_self, arg_target);
17895 0 ST(0) = newSViv(retval);
17896 0 sv_2mortal( ST(0) );
17897 0 XSRETURN(1);
17898 }
17899  
17900 XS_INTERNAL(XS_Lucy_Search_Matcher_get_doc_id);
17901 1 XS_INTERNAL(XS_Lucy_Search_Matcher_get_doc_id) {
17902 1 dXSARGS;
17903 lucy_Matcher* arg_self;
17904 LUCY_Matcher_Get_Doc_ID_t method;
17905 int32_t retval;
17906  
17907 CFISH_UNUSED_VAR(cv);
17908 1 SP -= items;
17909 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
17910 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17911 }
17912  
17913 /* Extract vars from Perl stack. */
17914 1 arg_self = (lucy_Matcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHER, NULL);
17915  
17916 /* Execute */
17917 1 method = CFISH_METHOD_PTR(LUCY_MATCHER, LUCY_Matcher_Get_Doc_ID);
17918 1 retval = method(arg_self);
17919 0 ST(0) = newSViv(retval);
17920 0 sv_2mortal( ST(0) );
17921 0 XSRETURN(1);
17922 }
17923  
17924 XS_INTERNAL(XS_Lucy_Search_Matcher_score);
17925 1 XS_INTERNAL(XS_Lucy_Search_Matcher_score) {
17926 1 dXSARGS;
17927 lucy_Matcher* arg_self;
17928 LUCY_Matcher_Score_t method;
17929 float retval;
17930  
17931 CFISH_UNUSED_VAR(cv);
17932 1 SP -= items;
17933 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
17934 0 XSBind_invalid_args_error(aTHX_ cv, "self");
17935 }
17936  
17937 /* Extract vars from Perl stack. */
17938 1 arg_self = (lucy_Matcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHER, NULL);
17939  
17940 /* Execute */
17941 1 method = CFISH_METHOD_PTR(LUCY_MATCHER, LUCY_Matcher_Score);
17942 1 retval = method(arg_self);
17943 0 ST(0) = newSVnv(retval);
17944 0 sv_2mortal( ST(0) );
17945 0 XSRETURN(1);
17946 }
17947  
17948 XS_INTERNAL(XS_Lucy_Search_Matcher_collect);
17949 1560 XS_INTERNAL(XS_Lucy_Search_Matcher_collect) {
17950 1560 dXSARGS;
17951 static const XSBind_ParamSpec param_specs[2] = {
17952 XSBIND_PARAM("collector", 1),
17953 XSBIND_PARAM("deletions", 0)
17954 };
17955 int32_t locations[2];
17956 SV *sv;
17957 lucy_Matcher* arg_self;
17958 lucy_Collector* arg_collector;
17959 lucy_Matcher* arg_deletions;
17960 LUCY_Matcher_Collect_t method;
17961  
17962 CFISH_UNUSED_VAR(cv);
17963 1560 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1560 1560
17964 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
17965 }
17966 1560 SP -= items;
17967  
17968 /* Locate args on Perl stack. */
17969 1560 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
17970 locations, 2);
17971 1560 arg_self = (lucy_Matcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHER, NULL);
17972 1560 sv = ST(locations[0]);
17973 1560 arg_collector = (lucy_Collector*)XSBind_arg_to_cfish(aTHX_ sv, "collector", LUCY_COLLECTOR, NULL);
17974 1560 sv = ST(locations[1]);
17975 1560 ▶ arg_deletions = locations[1] < items ? (lucy_Matcher*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "deletions", LUCY_MATCHER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_deletions = locations[1] < items ? (lucy_Matcher*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "deletions", LUCY_MATCHER, NULL) : NULL; 19 1541 1560
17976  
17977 /* Execute */
17978 1560 method = CFISH_METHOD_PTR(LUCY_MATCHER, LUCY_Matcher_Collect);
17979 1560 method(arg_self, arg_collector, arg_deletions);
17980 1560 XSRETURN(0);
17981 }
17982  
17983 XS_INTERNAL(XS_Lucy_Index_PostingList_new);
17984 0 XS_INTERNAL(XS_Lucy_Index_PostingList_new) {
17985 0 dXSARGS;
17986 lucy_PostingList* arg_self;
17987 lucy_PostingList* retval;
17988  
17989 CFISH_UNUSED_VAR(cv);
17990 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
17991 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
17992 }
17993 0 SP -= items;
17994  
17995 0 arg_self = (lucy_PostingList*)XSBind_new_blank_obj(aTHX_ ST(0));
17996  
17997 0 retval = lucy_PList_init(arg_self);
17998 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
17999 0 XSRETURN(1);
18000 }
18001  
18002  
18003 XS_INTERNAL(XS_Lucy_Index_PostingList_get_posting);
18004 0 XS_INTERNAL(XS_Lucy_Index_PostingList_get_posting) {
18005 0 dXSARGS;
18006 lucy_PostingList* arg_self;
18007 LUCY_PList_Get_Posting_t method;
18008 lucy_Posting* retval;
18009  
18010 CFISH_UNUSED_VAR(cv);
18011 0 SP -= items;
18012 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18013 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18014 }
18015  
18016 /* Extract vars from Perl stack. */
18017 0 arg_self = (lucy_PostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLIST, NULL);
18018  
18019 /* Execute */
18020 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLIST, LUCY_PList_Get_Posting);
18021 0 retval = method(arg_self);
18022 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18023 0 sv_2mortal( ST(0) );
18024 0 XSRETURN(1);
18025 }
18026  
18027 XS_INTERNAL(XS_Lucy_Index_PostingList_get_doc_freq);
18028 0 XS_INTERNAL(XS_Lucy_Index_PostingList_get_doc_freq) {
18029 0 dXSARGS;
18030 lucy_PostingList* arg_self;
18031 LUCY_PList_Get_Doc_Freq_t method;
18032 uint32_t retval;
18033  
18034 CFISH_UNUSED_VAR(cv);
18035 0 SP -= items;
18036 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18037 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18038 }
18039  
18040 /* Extract vars from Perl stack. */
18041 0 arg_self = (lucy_PostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLIST, NULL);
18042  
18043 /* Execute */
18044 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLIST, LUCY_PList_Get_Doc_Freq);
18045 0 retval = method(arg_self);
18046 0 ST(0) = newSVuv(retval);
18047 0 sv_2mortal( ST(0) );
18048 0 XSRETURN(1);
18049 }
18050  
18051 XS_INTERNAL(XS_Lucy_Index_PostingList_seek);
18052 0 XS_INTERNAL(XS_Lucy_Index_PostingList_seek) {
18053 0 dXSARGS;
18054 SV *sv;
18055 lucy_PostingList* arg_self;
18056 cfish_Obj* arg_target;
18057 LUCY_PList_Seek_t method;
18058  
18059 CFISH_UNUSED_VAR(cv);
18060 0 SP -= items;
18061 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
18062 0 XSBind_invalid_args_error(aTHX_ cv, "self, [target]");
18063 }
18064  
18065 /* Extract vars from Perl stack. */
18066 0 arg_self = (lucy_PostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLIST, NULL);
18067 0 sv = ST(1);
18068 0 ▶ arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
18069  
18070 /* Execute */
18071 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLIST, LUCY_PList_Seek);
18072 0 method(arg_self, arg_target);
18073 0 XSRETURN(0);
18074 }
18075  
18076 XS_INTERNAL(XS_Lucy_Index_PostingList_seek_lex);
18077 0 XS_INTERNAL(XS_Lucy_Index_PostingList_seek_lex) {
18078 0 dXSARGS;
18079 SV *sv;
18080 lucy_PostingList* arg_self;
18081 lucy_Lexicon* arg_lexicon;
18082 LUCY_PList_Seek_Lex_t method;
18083  
18084 CFISH_UNUSED_VAR(cv);
18085 0 SP -= items;
18086 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
18087 0 XSBind_invalid_args_error(aTHX_ cv, "self, lexicon");
18088 }
18089  
18090 /* Extract vars from Perl stack. */
18091 0 arg_self = (lucy_PostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLIST, NULL);
18092 0 sv = ST(1);
18093 0 arg_lexicon = (lucy_Lexicon*)XSBind_arg_to_cfish(aTHX_ sv, "lexicon", LUCY_LEXICON, NULL);
18094  
18095 /* Execute */
18096 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLIST, LUCY_PList_Seek_Lex);
18097 0 method(arg_self, arg_lexicon);
18098 0 XSRETURN(0);
18099 }
18100  
18101 XS_INTERNAL(XS_Lucy_Index_PostingList_make_matcher);
18102 0 XS_INTERNAL(XS_Lucy_Index_PostingList_make_matcher) {
18103 0 dXSARGS;
18104 static const XSBind_ParamSpec param_specs[3] = {
18105 XSBIND_PARAM("similarity", 1),
18106 XSBIND_PARAM("compiler", 1),
18107 XSBIND_PARAM("need_score", 1)
18108 };
18109 int32_t locations[3];
18110 SV *sv;
18111 lucy_PostingList* arg_self;
18112 lucy_Similarity* arg_similarity;
18113 lucy_Compiler* arg_compiler;
18114 bool arg_need_score;
18115 LUCY_PList_Make_Matcher_t method;
18116 lucy_Matcher* retval;
18117  
18118 CFISH_UNUSED_VAR(cv);
18119 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
18120 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
18121 }
18122 0 SP -= items;
18123  
18124 /* Locate args on Perl stack. */
18125 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18126 locations, 3);
18127 0 arg_self = (lucy_PostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLIST, NULL);
18128 0 sv = ST(locations[0]);
18129 0 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
18130 0 sv = ST(locations[1]);
18131 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
18132 0 sv = ST(locations[2]);
18133 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18134 0 XSBind_undef_arg_error(aTHX_ "need_score");
18135 }
18136 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
18137  
18138 /* Execute */
18139 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLIST, LUCY_PList_Make_Matcher);
18140 0 retval = method(arg_self, arg_similarity, arg_compiler, arg_need_score);
18141 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18142 0 sv_2mortal( ST(0) );
18143 0 XSRETURN(1);
18144 }
18145  
18146 XS_INTERNAL(XS_Lucy_Index_PostingList_read_raw);
18147 0 XS_INTERNAL(XS_Lucy_Index_PostingList_read_raw) {
18148 0 dXSARGS;
18149 static const XSBind_ParamSpec param_specs[3] = {
18150 XSBIND_PARAM("last_doc_id", 1),
18151 XSBIND_PARAM("term_text", 1),
18152 XSBIND_PARAM("mem_pool", 1)
18153 };
18154 int32_t locations[3];
18155 SV *sv;
18156 lucy_PostingList* arg_self;
18157 int32_t arg_last_doc_id;
18158 cfish_String* arg_term_text;
18159 lucy_MemoryPool* arg_mem_pool;
18160 LUCY_PList_Read_Raw_t method;
18161 lucy_RawPosting* retval;
18162  
18163 CFISH_UNUSED_VAR(cv);
18164 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
18165 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
18166 }
18167 0 SP -= items;
18168  
18169 /* Locate args on Perl stack. */
18170 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18171 locations, 3);
18172 0 arg_self = (lucy_PostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGLIST, NULL);
18173 0 sv = ST(locations[0]);
18174 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18175 0 XSBind_undef_arg_error(aTHX_ "last_doc_id");
18176 }
18177 0 arg_last_doc_id = (int32_t)SvIV(sv);
18178 0 sv = ST(locations[1]);
18179 0 arg_term_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "term_text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
18180 0 sv = ST(locations[2]);
18181 0 arg_mem_pool = (lucy_MemoryPool*)XSBind_arg_to_cfish(aTHX_ sv, "mem_pool", LUCY_MEMORYPOOL, NULL);
18182  
18183 /* Execute */
18184 0 method = CFISH_METHOD_PTR(LUCY_POSTINGLIST, LUCY_PList_Read_Raw);
18185 0 retval = method(arg_self, arg_last_doc_id, arg_term_text, arg_mem_pool);
18186 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18187 0 sv_2mortal( ST(0) );
18188 0 XSRETURN(1);
18189 }
18190  
18191 XS_INTERNAL(XS_Lucy_Index_RawPostingList_new);
18192 0 XS_INTERNAL(XS_Lucy_Index_RawPostingList_new) {
18193 0 dXSARGS;
18194 static const XSBind_ParamSpec param_specs[5] = {
18195 XSBIND_PARAM("schema", 1),
18196 XSBIND_PARAM("field", 1),
18197 XSBIND_PARAM("instream", 1),
18198 XSBIND_PARAM("lex_start", 1),
18199 XSBIND_PARAM("lex_end", 1)
18200 };
18201 int32_t locations[5];
18202 SV *sv;
18203 lucy_RawPostingList* arg_self;
18204 lucy_Schema* arg_schema;
18205 cfish_String* arg_field;
18206 lucy_InStream* arg_instream;
18207 int64_t arg_lex_start;
18208 int64_t arg_lex_end;
18209 lucy_RawPostingList* retval;
18210  
18211 CFISH_UNUSED_VAR(cv);
18212 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
18213 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
18214 }
18215 0 SP -= items;
18216  
18217 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18218 locations, 5);
18219 0 sv = ST(locations[0]);
18220 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
18221 0 sv = ST(locations[1]);
18222 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
18223 0 sv = ST(locations[2]);
18224 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
18225 0 sv = ST(locations[3]);
18226 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18227 0 XSBind_undef_arg_error(aTHX_ "lex_start");
18228 }
18229 0 arg_lex_start = (int64_t)SvNV(sv);
18230 0 sv = ST(locations[4]);
18231 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18232 0 XSBind_undef_arg_error(aTHX_ "lex_end");
18233 }
18234 0 arg_lex_end = (int64_t)SvNV(sv);
18235 0 arg_self = (lucy_RawPostingList*)XSBind_new_blank_obj(aTHX_ ST(0));
18236  
18237 0 retval = lucy_RawPList_init(arg_self, arg_schema, arg_field, arg_instream, arg_lex_start, arg_lex_end);
18238 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
18239 0 XSRETURN(1);
18240 }
18241  
18242  
18243 XS_INTERNAL(XS_Lucy_Index_RawPostingList_read_raw);
18244 0 XS_INTERNAL(XS_Lucy_Index_RawPostingList_read_raw) {
18245 0 dXSARGS;
18246 static const XSBind_ParamSpec param_specs[3] = {
18247 XSBIND_PARAM("last_doc_id", 1),
18248 XSBIND_PARAM("term_text", 1),
18249 XSBIND_PARAM("mem_pool", 1)
18250 };
18251 int32_t locations[3];
18252 SV *sv;
18253 lucy_RawPostingList* arg_self;
18254 int32_t arg_last_doc_id;
18255 cfish_String* arg_term_text;
18256 lucy_MemoryPool* arg_mem_pool;
18257 LUCY_RawPList_Read_Raw_t method;
18258 lucy_RawPosting* retval;
18259  
18260 CFISH_UNUSED_VAR(cv);
18261 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
18262 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
18263 }
18264 0 SP -= items;
18265  
18266 /* Locate args on Perl stack. */
18267 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18268 locations, 3);
18269 0 arg_self = (lucy_RawPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWPOSTINGLIST, NULL);
18270 0 sv = ST(locations[0]);
18271 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18272 0 XSBind_undef_arg_error(aTHX_ "last_doc_id");
18273 }
18274 0 arg_last_doc_id = (int32_t)SvIV(sv);
18275 0 sv = ST(locations[1]);
18276 0 arg_term_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "term_text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
18277 0 sv = ST(locations[2]);
18278 0 arg_mem_pool = (lucy_MemoryPool*)XSBind_arg_to_cfish(aTHX_ sv, "mem_pool", LUCY_MEMORYPOOL, NULL);
18279  
18280 /* Execute */
18281 0 method = CFISH_METHOD_PTR(LUCY_RAWPOSTINGLIST, LUCY_RawPList_Read_Raw);
18282 0 retval = method(arg_self, arg_last_doc_id, arg_term_text, arg_mem_pool);
18283 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18284 0 sv_2mortal( ST(0) );
18285 0 XSRETURN(1);
18286 }
18287  
18288 XS_INTERNAL(XS_Lucy_Index_RawPostingList_get_posting);
18289 0 XS_INTERNAL(XS_Lucy_Index_RawPostingList_get_posting) {
18290 0 dXSARGS;
18291 lucy_RawPostingList* arg_self;
18292 LUCY_RawPList_Get_Posting_t method;
18293 lucy_Posting* retval;
18294  
18295 CFISH_UNUSED_VAR(cv);
18296 0 SP -= items;
18297 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18298 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18299 }
18300  
18301 /* Extract vars from Perl stack. */
18302 0 arg_self = (lucy_RawPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWPOSTINGLIST, NULL);
18303  
18304 /* Execute */
18305 0 method = CFISH_METHOD_PTR(LUCY_RAWPOSTINGLIST, LUCY_RawPList_Get_Posting);
18306 0 retval = method(arg_self);
18307 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18308 0 sv_2mortal( ST(0) );
18309 0 XSRETURN(1);
18310 }
18311  
18312 XS_INTERNAL(XS_Lucy_Index_SegPostingList_new);
18313 0 XS_INTERNAL(XS_Lucy_Index_SegPostingList_new) {
18314 0 dXSARGS;
18315 static const XSBind_ParamSpec param_specs[2] = {
18316 XSBIND_PARAM("plist_reader", 1),
18317 XSBIND_PARAM("field", 1)
18318 };
18319 int32_t locations[2];
18320 SV *sv;
18321 lucy_SegPostingList* arg_self;
18322 lucy_PostingListReader* arg_plist_reader;
18323 cfish_String* arg_field;
18324 lucy_SegPostingList* retval;
18325  
18326 CFISH_UNUSED_VAR(cv);
18327 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
18328 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
18329 }
18330 0 SP -= items;
18331  
18332 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18333 locations, 2);
18334 0 sv = ST(locations[0]);
18335 0 arg_plist_reader = (lucy_PostingListReader*)XSBind_arg_to_cfish(aTHX_ sv, "plist_reader", LUCY_POSTINGLISTREADER, NULL);
18336 0 sv = ST(locations[1]);
18337 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
18338 0 arg_self = (lucy_SegPostingList*)XSBind_new_blank_obj(aTHX_ ST(0));
18339  
18340 0 retval = lucy_SegPList_init(arg_self, arg_plist_reader, arg_field);
18341 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
18342 0 XSRETURN(1);
18343 }
18344  
18345  
18346 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_post_stream);
18347 1000 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_post_stream) {
18348 1000 dXSARGS;
18349 lucy_SegPostingList* arg_self;
18350 LUCY_SegPList_Get_Post_Stream_t method;
18351 lucy_InStream* retval;
18352  
18353 CFISH_UNUSED_VAR(cv);
18354 1000 SP -= items;
18355 1000 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1000 1000
18356 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18357 }
18358  
18359 /* Extract vars from Perl stack. */
18360 1000 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18361  
18362 /* Execute */
18363 1000 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Get_Post_Stream);
18364 1000 retval = method(arg_self);
18365 1000 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18366 1000 sv_2mortal( ST(0) );
18367 1000 XSRETURN(1);
18368 }
18369  
18370 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_count);
18371 1000 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_count) {
18372 1000 dXSARGS;
18373 lucy_SegPostingList* arg_self;
18374 LUCY_SegPList_Get_Count_t method;
18375 uint32_t retval;
18376  
18377 CFISH_UNUSED_VAR(cv);
18378 1000 SP -= items;
18379 1000 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1000 1000
18380 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18381 }
18382  
18383 /* Extract vars from Perl stack. */
18384 1000 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18385  
18386 /* Execute */
18387 1000 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Get_Count);
18388 1000 retval = method(arg_self);
18389 1000 ST(0) = newSVuv(retval);
18390 1000 sv_2mortal( ST(0) );
18391 1000 XSRETURN(1);
18392 }
18393  
18394 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_doc_freq);
18395 0 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_doc_freq) {
18396 0 dXSARGS;
18397 lucy_SegPostingList* arg_self;
18398 LUCY_SegPList_Get_Doc_Freq_t method;
18399 uint32_t retval;
18400  
18401 CFISH_UNUSED_VAR(cv);
18402 0 SP -= items;
18403 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18404 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18405 }
18406  
18407 /* Extract vars from Perl stack. */
18408 0 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18409  
18410 /* Execute */
18411 0 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Get_Doc_Freq);
18412 0 retval = method(arg_self);
18413 0 ST(0) = newSVuv(retval);
18414 0 sv_2mortal( ST(0) );
18415 0 XSRETURN(1);
18416 }
18417  
18418 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_doc_id);
18419 12938 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_doc_id) {
18420 12938 dXSARGS;
18421 lucy_SegPostingList* arg_self;
18422 LUCY_SegPList_Get_Doc_ID_t method;
18423 int32_t retval;
18424  
18425 CFISH_UNUSED_VAR(cv);
18426 12938 SP -= items;
18427 12938 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 12938 12938
18428 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18429 }
18430  
18431 /* Extract vars from Perl stack. */
18432 12938 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18433  
18434 /* Execute */
18435 12938 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Get_Doc_ID);
18436 12938 retval = method(arg_self);
18437 12938 ST(0) = newSViv(retval);
18438 12938 sv_2mortal( ST(0) );
18439 12938 XSRETURN(1);
18440 }
18441  
18442 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_posting);
18443 3 XS_INTERNAL(XS_Lucy_Index_SegPostingList_get_posting) {
18444 3 dXSARGS;
18445 lucy_SegPostingList* arg_self;
18446 LUCY_SegPList_Get_Posting_t method;
18447 lucy_Posting* retval;
18448  
18449 CFISH_UNUSED_VAR(cv);
18450 3 SP -= items;
18451 3 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 3 3
18452 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18453 }
18454  
18455 /* Extract vars from Perl stack. */
18456 3 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18457  
18458 /* Execute */
18459 3 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Get_Posting);
18460 3 retval = method(arg_self);
18461 3 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18462 3 sv_2mortal( ST(0) );
18463 3 XSRETURN(1);
18464 }
18465  
18466 XS_INTERNAL(XS_Lucy_Index_SegPostingList_next);
18467 11942 XS_INTERNAL(XS_Lucy_Index_SegPostingList_next) {
18468 11942 dXSARGS;
18469 lucy_SegPostingList* arg_self;
18470 LUCY_SegPList_Next_t method;
18471 int32_t retval;
18472  
18473 CFISH_UNUSED_VAR(cv);
18474 11942 SP -= items;
18475 11942 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 11942 11942
18476 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18477 }
18478  
18479 /* Extract vars from Perl stack. */
18480 11942 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18481  
18482 /* Execute */
18483 11942 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Next);
18484 11942 retval = method(arg_self);
18485 11942 ST(0) = newSViv(retval);
18486 11942 sv_2mortal( ST(0) );
18487 11942 XSRETURN(1);
18488 }
18489  
18490 XS_INTERNAL(XS_Lucy_Index_SegPostingList_advance);
18491 500 XS_INTERNAL(XS_Lucy_Index_SegPostingList_advance) {
18492 500 dXSARGS;
18493 SV *sv;
18494 lucy_SegPostingList* arg_self;
18495 int32_t arg_target;
18496 LUCY_SegPList_Advance_t method;
18497 int32_t retval;
18498  
18499 CFISH_UNUSED_VAR(cv);
18500 500 SP -= items;
18501 500 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 500 500
18502 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
18503 }
18504  
18505 /* Extract vars from Perl stack. */
18506 500 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18507 500 sv = ST(1);
18508 500 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 500 500
18509 0 XSBind_undef_arg_error(aTHX_ "target");
18510 }
18511 500 arg_target = (int32_t)SvIV(sv);
18512  
18513 /* Execute */
18514 500 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Advance);
18515 500 retval = method(arg_self, arg_target);
18516 500 ST(0) = newSViv(retval);
18517 500 sv_2mortal( ST(0) );
18518 500 XSRETURN(1);
18519 }
18520  
18521 XS_INTERNAL(XS_Lucy_Index_SegPostingList_seek);
18522 1001 XS_INTERNAL(XS_Lucy_Index_SegPostingList_seek) {
18523 1001 dXSARGS;
18524 SV *sv;
18525 lucy_SegPostingList* arg_self;
18526 cfish_Obj* arg_target;
18527 LUCY_SegPList_Seek_t method;
18528  
18529 CFISH_UNUSED_VAR(cv);
18530 1001 SP -= items;
18531 1001 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 1001 0 1001
if (items < 1 || items > 2) { 0 1001 1001
18532 0 XSBind_invalid_args_error(aTHX_ cv, "self, [target]");
18533 }
18534  
18535 /* Extract vars from Perl stack. */
18536 1001 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18537 1001 sv = ST(1);
18538 1001 ▶ arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_target = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "target", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 1001 0 1001
18539  
18540 /* Execute */
18541 1001 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Seek);
18542 1001 method(arg_self, arg_target);
18543 1001 XSRETURN(0);
18544 }
18545  
18546 XS_INTERNAL(XS_Lucy_Index_SegPostingList_seek_lex);
18547 0 XS_INTERNAL(XS_Lucy_Index_SegPostingList_seek_lex) {
18548 0 dXSARGS;
18549 SV *sv;
18550 lucy_SegPostingList* arg_self;
18551 lucy_Lexicon* arg_lexicon;
18552 LUCY_SegPList_Seek_Lex_t method;
18553  
18554 CFISH_UNUSED_VAR(cv);
18555 0 SP -= items;
18556 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
18557 0 XSBind_invalid_args_error(aTHX_ cv, "self, lexicon");
18558 }
18559  
18560 /* Extract vars from Perl stack. */
18561 0 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18562 0 sv = ST(1);
18563 0 arg_lexicon = (lucy_Lexicon*)XSBind_arg_to_cfish(aTHX_ sv, "lexicon", LUCY_LEXICON, NULL);
18564  
18565 /* Execute */
18566 0 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Seek_Lex);
18567 0 method(arg_self, arg_lexicon);
18568 0 XSRETURN(0);
18569 }
18570  
18571 XS_INTERNAL(XS_Lucy_Index_SegPostingList_make_matcher);
18572 0 XS_INTERNAL(XS_Lucy_Index_SegPostingList_make_matcher) {
18573 0 dXSARGS;
18574 static const XSBind_ParamSpec param_specs[3] = {
18575 XSBIND_PARAM("similarity", 1),
18576 XSBIND_PARAM("compiler", 1),
18577 XSBIND_PARAM("need_score", 1)
18578 };
18579 int32_t locations[3];
18580 SV *sv;
18581 lucy_SegPostingList* arg_self;
18582 lucy_Similarity* arg_similarity;
18583 lucy_Compiler* arg_compiler;
18584 bool arg_need_score;
18585 LUCY_SegPList_Make_Matcher_t method;
18586 lucy_Matcher* retval;
18587  
18588 CFISH_UNUSED_VAR(cv);
18589 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
18590 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
18591 }
18592 0 SP -= items;
18593  
18594 /* Locate args on Perl stack. */
18595 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18596 locations, 3);
18597 0 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18598 0 sv = ST(locations[0]);
18599 0 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
18600 0 sv = ST(locations[1]);
18601 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
18602 0 sv = ST(locations[2]);
18603 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18604 0 XSBind_undef_arg_error(aTHX_ "need_score");
18605 }
18606 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
18607  
18608 /* Execute */
18609 0 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Make_Matcher);
18610 0 retval = method(arg_self, arg_similarity, arg_compiler, arg_need_score);
18611 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18612 0 sv_2mortal( ST(0) );
18613 0 XSRETURN(1);
18614 }
18615  
18616 XS_INTERNAL(XS_Lucy_Index_SegPostingList_read_raw);
18617 0 XS_INTERNAL(XS_Lucy_Index_SegPostingList_read_raw) {
18618 0 dXSARGS;
18619 static const XSBind_ParamSpec param_specs[3] = {
18620 XSBIND_PARAM("last_doc_id", 1),
18621 XSBIND_PARAM("term_text", 1),
18622 XSBIND_PARAM("mem_pool", 1)
18623 };
18624 int32_t locations[3];
18625 SV *sv;
18626 lucy_SegPostingList* arg_self;
18627 int32_t arg_last_doc_id;
18628 cfish_String* arg_term_text;
18629 lucy_MemoryPool* arg_mem_pool;
18630 LUCY_SegPList_Read_Raw_t method;
18631 lucy_RawPosting* retval;
18632  
18633 CFISH_UNUSED_VAR(cv);
18634 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
18635 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
18636 }
18637 0 SP -= items;
18638  
18639 /* Locate args on Perl stack. */
18640 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18641 locations, 3);
18642 0 arg_self = (lucy_SegPostingList*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGPOSTINGLIST, NULL);
18643 0 sv = ST(locations[0]);
18644 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18645 0 XSBind_undef_arg_error(aTHX_ "last_doc_id");
18646 }
18647 0 arg_last_doc_id = (int32_t)SvIV(sv);
18648 0 sv = ST(locations[1]);
18649 0 arg_term_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "term_text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
18650 0 sv = ST(locations[2]);
18651 0 arg_mem_pool = (lucy_MemoryPool*)XSBind_arg_to_cfish(aTHX_ sv, "mem_pool", LUCY_MEMORYPOOL, NULL);
18652  
18653 /* Execute */
18654 0 method = CFISH_METHOD_PTR(LUCY_SEGPOSTINGLIST, LUCY_SegPList_Read_Raw);
18655 0 retval = method(arg_self, arg_last_doc_id, arg_term_text, arg_mem_pool);
18656 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
18657 0 sv_2mortal( ST(0) );
18658 0 XSRETURN(1);
18659 }
18660  
18661 XS_INTERNAL(XS_Lucy_Search_BitVecMatcher_new);
18662 18 XS_INTERNAL(XS_Lucy_Search_BitVecMatcher_new) {
18663 18 dXSARGS;
18664 static const XSBind_ParamSpec param_specs[1] = {
18665 XSBIND_PARAM("bit_vector", 1)
18666 };
18667 int32_t locations[1];
18668 SV *sv;
18669 lucy_BitVecMatcher* arg_self;
18670 lucy_BitVector* arg_bit_vector;
18671 lucy_BitVecMatcher* retval;
18672  
18673 CFISH_UNUSED_VAR(cv);
18674 18 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 18 18
18675 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
18676 }
18677 18 SP -= items;
18678  
18679 18 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18680 locations, 1);
18681 18 sv = ST(locations[0]);
18682 18 arg_bit_vector = (lucy_BitVector*)XSBind_arg_to_cfish(aTHX_ sv, "bit_vector", LUCY_BITVECTOR, NULL);
18683 18 arg_self = (lucy_BitVecMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
18684  
18685 18 retval = lucy_BitVecMatcher_init(arg_self, arg_bit_vector);
18686 18 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
18687 18 XSRETURN(1);
18688 }
18689  
18690  
18691 XS_INTERNAL(XS_Lucy_Search_BitVecMatcher_next);
18692 0 XS_INTERNAL(XS_Lucy_Search_BitVecMatcher_next) {
18693 0 dXSARGS;
18694 lucy_BitVecMatcher* arg_self;
18695 LUCY_BitVecMatcher_Next_t method;
18696 int32_t retval;
18697  
18698 CFISH_UNUSED_VAR(cv);
18699 0 SP -= items;
18700 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18701 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18702 }
18703  
18704 /* Extract vars from Perl stack. */
18705 0 arg_self = (lucy_BitVecMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECMATCHER, NULL);
18706  
18707 /* Execute */
18708 0 method = CFISH_METHOD_PTR(LUCY_BITVECMATCHER, LUCY_BitVecMatcher_Next);
18709 0 retval = method(arg_self);
18710 0 ST(0) = newSViv(retval);
18711 0 sv_2mortal( ST(0) );
18712 0 XSRETURN(1);
18713 }
18714  
18715 XS_INTERNAL(XS_Lucy_Search_BitVecMatcher_advance);
18716 0 XS_INTERNAL(XS_Lucy_Search_BitVecMatcher_advance) {
18717 0 dXSARGS;
18718 SV *sv;
18719 lucy_BitVecMatcher* arg_self;
18720 int32_t arg_target;
18721 LUCY_BitVecMatcher_Advance_t method;
18722 int32_t retval;
18723  
18724 CFISH_UNUSED_VAR(cv);
18725 0 SP -= items;
18726 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
18727 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
18728 }
18729  
18730 /* Extract vars from Perl stack. */
18731 0 arg_self = (lucy_BitVecMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECMATCHER, NULL);
18732 0 sv = ST(1);
18733 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18734 0 XSBind_undef_arg_error(aTHX_ "target");
18735 }
18736 0 arg_target = (int32_t)SvIV(sv);
18737  
18738 /* Execute */
18739 0 method = CFISH_METHOD_PTR(LUCY_BITVECMATCHER, LUCY_BitVecMatcher_Advance);
18740 0 retval = method(arg_self, arg_target);
18741 0 ST(0) = newSViv(retval);
18742 0 sv_2mortal( ST(0) );
18743 0 XSRETURN(1);
18744 }
18745  
18746 XS_INTERNAL(XS_Lucy_Search_BitVecMatcher_get_doc_id);
18747 0 XS_INTERNAL(XS_Lucy_Search_BitVecMatcher_get_doc_id) {
18748 0 dXSARGS;
18749 lucy_BitVecMatcher* arg_self;
18750 LUCY_BitVecMatcher_Get_Doc_ID_t method;
18751 int32_t retval;
18752  
18753 CFISH_UNUSED_VAR(cv);
18754 0 SP -= items;
18755 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18756 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18757 }
18758  
18759 /* Extract vars from Perl stack. */
18760 0 arg_self = (lucy_BitVecMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BITVECMATCHER, NULL);
18761  
18762 /* Execute */
18763 0 method = CFISH_METHOD_PTR(LUCY_BITVECMATCHER, LUCY_BitVecMatcher_Get_Doc_ID);
18764 0 retval = method(arg_self);
18765 0 ST(0) = newSViv(retval);
18766 0 sv_2mortal( ST(0) );
18767 0 XSRETURN(1);
18768 }
18769  
18770 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_new);
18771 0 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_new) {
18772 0 dXSARGS;
18773 static const XSBind_ParamSpec param_specs[2] = {
18774 XSBIND_PARAM("score", 1),
18775 XSBIND_PARAM("doc_max", 1)
18776 };
18777 int32_t locations[2];
18778 SV *sv;
18779 lucy_MatchAllMatcher* arg_self;
18780 float arg_score;
18781 int32_t arg_doc_max;
18782 lucy_MatchAllMatcher* retval;
18783  
18784 CFISH_UNUSED_VAR(cv);
18785 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
18786 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
18787 }
18788 0 SP -= items;
18789  
18790 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
18791 locations, 2);
18792 0 sv = ST(locations[0]);
18793 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18794 0 XSBind_undef_arg_error(aTHX_ "score");
18795 }
18796 0 arg_score = (float)SvNV(sv);
18797 0 sv = ST(locations[1]);
18798 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18799 0 XSBind_undef_arg_error(aTHX_ "doc_max");
18800 }
18801 0 arg_doc_max = (int32_t)SvIV(sv);
18802 0 arg_self = (lucy_MatchAllMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
18803  
18804 0 retval = lucy_MatchAllMatcher_init(arg_self, arg_score, arg_doc_max);
18805 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
18806 0 XSRETURN(1);
18807 }
18808  
18809  
18810 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_next);
18811 0 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_next) {
18812 0 dXSARGS;
18813 lucy_MatchAllMatcher* arg_self;
18814 LUCY_MatchAllMatcher_Next_t method;
18815 int32_t retval;
18816  
18817 CFISH_UNUSED_VAR(cv);
18818 0 SP -= items;
18819 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18820 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18821 }
18822  
18823 /* Extract vars from Perl stack. */
18824 0 arg_self = (lucy_MatchAllMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHALLMATCHER, NULL);
18825  
18826 /* Execute */
18827 0 method = CFISH_METHOD_PTR(LUCY_MATCHALLMATCHER, LUCY_MatchAllMatcher_Next);
18828 0 retval = method(arg_self);
18829 0 ST(0) = newSViv(retval);
18830 0 sv_2mortal( ST(0) );
18831 0 XSRETURN(1);
18832 }
18833  
18834 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_advance);
18835 0 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_advance) {
18836 0 dXSARGS;
18837 SV *sv;
18838 lucy_MatchAllMatcher* arg_self;
18839 int32_t arg_target;
18840 LUCY_MatchAllMatcher_Advance_t method;
18841 int32_t retval;
18842  
18843 CFISH_UNUSED_VAR(cv);
18844 0 SP -= items;
18845 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
18846 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
18847 }
18848  
18849 /* Extract vars from Perl stack. */
18850 0 arg_self = (lucy_MatchAllMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHALLMATCHER, NULL);
18851 0 sv = ST(1);
18852 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18853 0 XSBind_undef_arg_error(aTHX_ "target");
18854 }
18855 0 arg_target = (int32_t)SvIV(sv);
18856  
18857 /* Execute */
18858 0 method = CFISH_METHOD_PTR(LUCY_MATCHALLMATCHER, LUCY_MatchAllMatcher_Advance);
18859 0 retval = method(arg_self, arg_target);
18860 0 ST(0) = newSViv(retval);
18861 0 sv_2mortal( ST(0) );
18862 0 XSRETURN(1);
18863 }
18864  
18865 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_score);
18866 0 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_score) {
18867 0 dXSARGS;
18868 lucy_MatchAllMatcher* arg_self;
18869 LUCY_MatchAllMatcher_Score_t method;
18870 float retval;
18871  
18872 CFISH_UNUSED_VAR(cv);
18873 0 SP -= items;
18874 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18875 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18876 }
18877  
18878 /* Extract vars from Perl stack. */
18879 0 arg_self = (lucy_MatchAllMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHALLMATCHER, NULL);
18880  
18881 /* Execute */
18882 0 method = CFISH_METHOD_PTR(LUCY_MATCHALLMATCHER, LUCY_MatchAllMatcher_Score);
18883 0 retval = method(arg_self);
18884 0 ST(0) = newSVnv(retval);
18885 0 sv_2mortal( ST(0) );
18886 0 XSRETURN(1);
18887 }
18888  
18889 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_get_doc_id);
18890 0 XS_INTERNAL(XS_Lucy_Search_MatchAllMatcher_get_doc_id) {
18891 0 dXSARGS;
18892 lucy_MatchAllMatcher* arg_self;
18893 LUCY_MatchAllMatcher_Get_Doc_ID_t method;
18894 int32_t retval;
18895  
18896 CFISH_UNUSED_VAR(cv);
18897 0 SP -= items;
18898 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18899 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18900 }
18901  
18902 /* Extract vars from Perl stack. */
18903 0 arg_self = (lucy_MatchAllMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHALLMATCHER, NULL);
18904  
18905 /* Execute */
18906 0 method = CFISH_METHOD_PTR(LUCY_MATCHALLMATCHER, LUCY_MatchAllMatcher_Get_Doc_ID);
18907 0 retval = method(arg_self);
18908 0 ST(0) = newSViv(retval);
18909 0 sv_2mortal( ST(0) );
18910 0 XSRETURN(1);
18911 }
18912  
18913 XS_INTERNAL(XS_Lucy_Search_NoMatchMatcher_new);
18914 0 XS_INTERNAL(XS_Lucy_Search_NoMatchMatcher_new) {
18915 0 dXSARGS;
18916 lucy_NoMatchMatcher* arg_self;
18917 lucy_NoMatchMatcher* retval;
18918  
18919 CFISH_UNUSED_VAR(cv);
18920 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18921 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
18922 }
18923 0 SP -= items;
18924  
18925 0 arg_self = (lucy_NoMatchMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
18926  
18927 0 retval = lucy_NoMatchMatcher_init(arg_self);
18928 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
18929 0 XSRETURN(1);
18930 }
18931  
18932  
18933 XS_INTERNAL(XS_Lucy_Search_NoMatchMatcher_next);
18934 0 XS_INTERNAL(XS_Lucy_Search_NoMatchMatcher_next) {
18935 0 dXSARGS;
18936 lucy_NoMatchMatcher* arg_self;
18937 LUCY_NoMatchMatcher_Next_t method;
18938 int32_t retval;
18939  
18940 CFISH_UNUSED_VAR(cv);
18941 0 SP -= items;
18942 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
18943 0 XSBind_invalid_args_error(aTHX_ cv, "self");
18944 }
18945  
18946 /* Extract vars from Perl stack. */
18947 0 arg_self = (lucy_NoMatchMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHMATCHER, NULL);
18948  
18949 /* Execute */
18950 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHMATCHER, LUCY_NoMatchMatcher_Next);
18951 0 retval = method(arg_self);
18952 0 ST(0) = newSViv(retval);
18953 0 sv_2mortal( ST(0) );
18954 0 XSRETURN(1);
18955 }
18956  
18957 XS_INTERNAL(XS_Lucy_Search_NoMatchMatcher_advance);
18958 0 XS_INTERNAL(XS_Lucy_Search_NoMatchMatcher_advance) {
18959 0 dXSARGS;
18960 SV *sv;
18961 lucy_NoMatchMatcher* arg_self;
18962 int32_t arg_target;
18963 LUCY_NoMatchMatcher_Advance_t method;
18964 int32_t retval;
18965  
18966 CFISH_UNUSED_VAR(cv);
18967 0 SP -= items;
18968 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
18969 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
18970 }
18971  
18972 /* Extract vars from Perl stack. */
18973 0 arg_self = (lucy_NoMatchMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHMATCHER, NULL);
18974 0 sv = ST(1);
18975 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
18976 0 XSBind_undef_arg_error(aTHX_ "target");
18977 }
18978 0 arg_target = (int32_t)SvIV(sv);
18979  
18980 /* Execute */
18981 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHMATCHER, LUCY_NoMatchMatcher_Advance);
18982 0 retval = method(arg_self, arg_target);
18983 0 ST(0) = newSViv(retval);
18984 0 sv_2mortal( ST(0) );
18985 0 XSRETURN(1);
18986 }
18987  
18988 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_new);
18989 0 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_new) {
18990 0 dXSARGS;
18991 static const XSBind_ParamSpec param_specs[3] = {
18992 XSBIND_PARAM("similarity", 1),
18993 XSBIND_PARAM("posting_lists", 1),
18994 XSBIND_PARAM("compiler", 1)
18995 };
18996 int32_t locations[3];
18997 SV *sv;
18998 lucy_PhraseMatcher* arg_self;
18999 lucy_Similarity* arg_similarity;
19000 cfish_Vector* arg_posting_lists;
19001 lucy_Compiler* arg_compiler;
19002 lucy_PhraseMatcher* retval;
19003  
19004 CFISH_UNUSED_VAR(cv);
19005 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
19006 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
19007 }
19008 0 SP -= items;
19009  
19010 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
19011 locations, 3);
19012 0 sv = ST(locations[0]);
19013 0 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
19014 0 sv = ST(locations[1]);
19015 0 arg_posting_lists = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "posting_lists", CFISH_VECTOR, NULL);
19016 0 sv = ST(locations[2]);
19017 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
19018 0 arg_self = (lucy_PhraseMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
19019  
19020 0 retval = lucy_PhraseMatcher_init(arg_self, arg_similarity, arg_posting_lists, arg_compiler);
19021 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
19022 0 XSRETURN(1);
19023 }
19024  
19025  
19026 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_next);
19027 0 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_next) {
19028 0 dXSARGS;
19029 lucy_PhraseMatcher* arg_self;
19030 LUCY_PhraseMatcher_Next_t method;
19031 int32_t retval;
19032  
19033 CFISH_UNUSED_VAR(cv);
19034 0 SP -= items;
19035 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19036 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19037 }
19038  
19039 /* Extract vars from Perl stack. */
19040 0 arg_self = (lucy_PhraseMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEMATCHER, NULL);
19041  
19042 /* Execute */
19043 0 method = CFISH_METHOD_PTR(LUCY_PHRASEMATCHER, LUCY_PhraseMatcher_Next);
19044 0 retval = method(arg_self);
19045 0 ST(0) = newSViv(retval);
19046 0 sv_2mortal( ST(0) );
19047 0 XSRETURN(1);
19048 }
19049  
19050 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_advance);
19051 0 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_advance) {
19052 0 dXSARGS;
19053 SV *sv;
19054 lucy_PhraseMatcher* arg_self;
19055 int32_t arg_target;
19056 LUCY_PhraseMatcher_Advance_t method;
19057 int32_t retval;
19058  
19059 CFISH_UNUSED_VAR(cv);
19060 0 SP -= items;
19061 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
19062 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
19063 }
19064  
19065 /* Extract vars from Perl stack. */
19066 0 arg_self = (lucy_PhraseMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEMATCHER, NULL);
19067 0 sv = ST(1);
19068 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19069 0 XSBind_undef_arg_error(aTHX_ "target");
19070 }
19071 0 arg_target = (int32_t)SvIV(sv);
19072  
19073 /* Execute */
19074 0 method = CFISH_METHOD_PTR(LUCY_PHRASEMATCHER, LUCY_PhraseMatcher_Advance);
19075 0 retval = method(arg_self, arg_target);
19076 0 ST(0) = newSViv(retval);
19077 0 sv_2mortal( ST(0) );
19078 0 XSRETURN(1);
19079 }
19080  
19081 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_get_doc_id);
19082 0 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_get_doc_id) {
19083 0 dXSARGS;
19084 lucy_PhraseMatcher* arg_self;
19085 LUCY_PhraseMatcher_Get_Doc_ID_t method;
19086 int32_t retval;
19087  
19088 CFISH_UNUSED_VAR(cv);
19089 0 SP -= items;
19090 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19091 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19092 }
19093  
19094 /* Extract vars from Perl stack. */
19095 0 arg_self = (lucy_PhraseMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEMATCHER, NULL);
19096  
19097 /* Execute */
19098 0 method = CFISH_METHOD_PTR(LUCY_PHRASEMATCHER, LUCY_PhraseMatcher_Get_Doc_ID);
19099 0 retval = method(arg_self);
19100 0 ST(0) = newSViv(retval);
19101 0 sv_2mortal( ST(0) );
19102 0 XSRETURN(1);
19103 }
19104  
19105 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_score);
19106 0 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_score) {
19107 0 dXSARGS;
19108 lucy_PhraseMatcher* arg_self;
19109 LUCY_PhraseMatcher_Score_t method;
19110 float retval;
19111  
19112 CFISH_UNUSED_VAR(cv);
19113 0 SP -= items;
19114 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19115 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19116 }
19117  
19118 /* Extract vars from Perl stack. */
19119 0 arg_self = (lucy_PhraseMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEMATCHER, NULL);
19120  
19121 /* Execute */
19122 0 method = CFISH_METHOD_PTR(LUCY_PHRASEMATCHER, LUCY_PhraseMatcher_Score);
19123 0 retval = method(arg_self);
19124 0 ST(0) = newSVnv(retval);
19125 0 sv_2mortal( ST(0) );
19126 0 XSRETURN(1);
19127 }
19128  
19129 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_calc_phrase_freq);
19130 0 XS_INTERNAL(XS_Lucy_Search_PhraseMatcher_calc_phrase_freq) {
19131 0 dXSARGS;
19132 lucy_PhraseMatcher* arg_self;
19133 LUCY_PhraseMatcher_Calc_Phrase_Freq_t method;
19134 float retval;
19135  
19136 CFISH_UNUSED_VAR(cv);
19137 0 SP -= items;
19138 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19139 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19140 }
19141  
19142 /* Extract vars from Perl stack. */
19143 0 arg_self = (lucy_PhraseMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEMATCHER, NULL);
19144  
19145 /* Execute */
19146 0 method = CFISH_METHOD_PTR(LUCY_PHRASEMATCHER, LUCY_PhraseMatcher_Calc_Phrase_Freq);
19147 0 retval = method(arg_self);
19148 0 ST(0) = newSVnv(retval);
19149 0 sv_2mortal( ST(0) );
19150 0 XSRETURN(1);
19151 }
19152  
19153 XS_INTERNAL(XS_Lucy_Search_PolyMatcher_new);
19154 0 XS_INTERNAL(XS_Lucy_Search_PolyMatcher_new) {
19155 0 dXSARGS;
19156 static const XSBind_ParamSpec param_specs[2] = {
19157 XSBIND_PARAM("children", 1),
19158 XSBIND_PARAM("similarity", 0)
19159 };
19160 int32_t locations[2];
19161 SV *sv;
19162 lucy_PolyMatcher* arg_self;
19163 cfish_Vector* arg_children;
19164 lucy_Similarity* arg_similarity;
19165 lucy_PolyMatcher* retval;
19166  
19167 CFISH_UNUSED_VAR(cv);
19168 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
19169 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
19170 }
19171 0 SP -= items;
19172  
19173 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
19174 locations, 2);
19175 0 sv = ST(locations[0]);
19176 0 arg_children = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "children", CFISH_VECTOR, NULL);
19177 0 sv = ST(locations[1]);
19178 0 ▶ arg_similarity = locations[1] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_similarity = locations[1] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL; 0 0 0
19179 0 arg_self = (lucy_PolyMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
19180  
19181 0 retval = lucy_PolyMatcher_init(arg_self, arg_children, arg_similarity);
19182 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
19183 0 XSRETURN(1);
19184 }
19185  
19186  
19187 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_new);
19188 681 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_new) {
19189 681 dXSARGS;
19190 static const XSBind_ParamSpec param_specs[2] = {
19191 XSBIND_PARAM("children", 1),
19192 XSBIND_PARAM("similarity", 0)
19193 };
19194 int32_t locations[2];
19195 SV *sv;
19196 lucy_ANDMatcher* arg_self;
19197 cfish_Vector* arg_children;
19198 lucy_Similarity* arg_similarity;
19199 lucy_ANDMatcher* retval;
19200  
19201 CFISH_UNUSED_VAR(cv);
19202 681 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 681 681
19203 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
19204 }
19205 681 SP -= items;
19206  
19207 681 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
19208 locations, 2);
19209 681 sv = ST(locations[0]);
19210 681 arg_children = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "children", CFISH_VECTOR, NULL);
19211 681 sv = ST(locations[1]);
19212 681 ▶ arg_similarity = locations[1] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_similarity = locations[1] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL; 681 0 681
19213 681 arg_self = (lucy_ANDMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
19214  
19215 681 retval = lucy_ANDMatcher_init(arg_self, arg_children, arg_similarity);
19216 681 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
19217 681 XSRETURN(1);
19218 }
19219  
19220  
19221 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_next);
19222 0 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_next) {
19223 0 dXSARGS;
19224 lucy_ANDMatcher* arg_self;
19225 LUCY_ANDMatcher_Next_t method;
19226 int32_t retval;
19227  
19228 CFISH_UNUSED_VAR(cv);
19229 0 SP -= items;
19230 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19231 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19232 }
19233  
19234 /* Extract vars from Perl stack. */
19235 0 arg_self = (lucy_ANDMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANDMATCHER, NULL);
19236  
19237 /* Execute */
19238 0 method = CFISH_METHOD_PTR(LUCY_ANDMATCHER, LUCY_ANDMatcher_Next);
19239 0 retval = method(arg_self);
19240 0 ST(0) = newSViv(retval);
19241 0 sv_2mortal( ST(0) );
19242 0 XSRETURN(1);
19243 }
19244  
19245 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_advance);
19246 0 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_advance) {
19247 0 dXSARGS;
19248 SV *sv;
19249 lucy_ANDMatcher* arg_self;
19250 int32_t arg_target;
19251 LUCY_ANDMatcher_Advance_t method;
19252 int32_t retval;
19253  
19254 CFISH_UNUSED_VAR(cv);
19255 0 SP -= items;
19256 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
19257 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
19258 }
19259  
19260 /* Extract vars from Perl stack. */
19261 0 arg_self = (lucy_ANDMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANDMATCHER, NULL);
19262 0 sv = ST(1);
19263 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19264 0 XSBind_undef_arg_error(aTHX_ "target");
19265 }
19266 0 arg_target = (int32_t)SvIV(sv);
19267  
19268 /* Execute */
19269 0 method = CFISH_METHOD_PTR(LUCY_ANDMATCHER, LUCY_ANDMatcher_Advance);
19270 0 retval = method(arg_self, arg_target);
19271 0 ST(0) = newSViv(retval);
19272 0 sv_2mortal( ST(0) );
19273 0 XSRETURN(1);
19274 }
19275  
19276 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_score);
19277 0 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_score) {
19278 0 dXSARGS;
19279 lucy_ANDMatcher* arg_self;
19280 LUCY_ANDMatcher_Score_t method;
19281 float retval;
19282  
19283 CFISH_UNUSED_VAR(cv);
19284 0 SP -= items;
19285 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19286 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19287 }
19288  
19289 /* Extract vars from Perl stack. */
19290 0 arg_self = (lucy_ANDMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANDMATCHER, NULL);
19291  
19292 /* Execute */
19293 0 method = CFISH_METHOD_PTR(LUCY_ANDMATCHER, LUCY_ANDMatcher_Score);
19294 0 retval = method(arg_self);
19295 0 ST(0) = newSVnv(retval);
19296 0 sv_2mortal( ST(0) );
19297 0 XSRETURN(1);
19298 }
19299  
19300 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_get_doc_id);
19301 0 XS_INTERNAL(XS_Lucy_Search_ANDMatcher_get_doc_id) {
19302 0 dXSARGS;
19303 lucy_ANDMatcher* arg_self;
19304 LUCY_ANDMatcher_Get_Doc_ID_t method;
19305 int32_t retval;
19306  
19307 CFISH_UNUSED_VAR(cv);
19308 0 SP -= items;
19309 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19310 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19311 }
19312  
19313 /* Extract vars from Perl stack. */
19314 0 arg_self = (lucy_ANDMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANDMATCHER, NULL);
19315  
19316 /* Execute */
19317 0 method = CFISH_METHOD_PTR(LUCY_ANDMATCHER, LUCY_ANDMatcher_Get_Doc_ID);
19318 0 retval = method(arg_self);
19319 0 ST(0) = newSViv(retval);
19320 0 sv_2mortal( ST(0) );
19321 0 XSRETURN(1);
19322 }
19323  
19324 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_new);
19325 26 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_new) {
19326 26 dXSARGS;
19327 static const XSBind_ParamSpec param_specs[2] = {
19328 XSBIND_PARAM("negated_matcher", 1),
19329 XSBIND_PARAM("doc_max", 1)
19330 };
19331 int32_t locations[2];
19332 SV *sv;
19333 lucy_NOTMatcher* arg_self;
19334 lucy_Matcher* arg_negated_matcher;
19335 int32_t arg_doc_max;
19336 lucy_NOTMatcher* retval;
19337  
19338 CFISH_UNUSED_VAR(cv);
19339 26 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 26 26
19340 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
19341 }
19342 26 SP -= items;
19343  
19344 26 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
19345 locations, 2);
19346 26 sv = ST(locations[0]);
19347 26 arg_negated_matcher = (lucy_Matcher*)XSBind_arg_to_cfish(aTHX_ sv, "negated_matcher", LUCY_MATCHER, NULL);
19348 26 sv = ST(locations[1]);
19349 26 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 26 26
19350 0 XSBind_undef_arg_error(aTHX_ "doc_max");
19351 }
19352 26 arg_doc_max = (int32_t)SvIV(sv);
19353 26 arg_self = (lucy_NOTMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
19354  
19355 26 retval = lucy_NOTMatcher_init(arg_self, arg_negated_matcher, arg_doc_max);
19356 26 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
19357 26 XSRETURN(1);
19358 }
19359  
19360  
19361 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_next);
19362 0 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_next) {
19363 0 dXSARGS;
19364 lucy_NOTMatcher* arg_self;
19365 LUCY_NOTMatcher_Next_t method;
19366 int32_t retval;
19367  
19368 CFISH_UNUSED_VAR(cv);
19369 0 SP -= items;
19370 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19371 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19372 }
19373  
19374 /* Extract vars from Perl stack. */
19375 0 arg_self = (lucy_NOTMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTMATCHER, NULL);
19376  
19377 /* Execute */
19378 0 method = CFISH_METHOD_PTR(LUCY_NOTMATCHER, LUCY_NOTMatcher_Next);
19379 0 retval = method(arg_self);
19380 0 ST(0) = newSViv(retval);
19381 0 sv_2mortal( ST(0) );
19382 0 XSRETURN(1);
19383 }
19384  
19385 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_advance);
19386 0 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_advance) {
19387 0 dXSARGS;
19388 SV *sv;
19389 lucy_NOTMatcher* arg_self;
19390 int32_t arg_target;
19391 LUCY_NOTMatcher_Advance_t method;
19392 int32_t retval;
19393  
19394 CFISH_UNUSED_VAR(cv);
19395 0 SP -= items;
19396 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
19397 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
19398 }
19399  
19400 /* Extract vars from Perl stack. */
19401 0 arg_self = (lucy_NOTMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTMATCHER, NULL);
19402 0 sv = ST(1);
19403 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19404 0 XSBind_undef_arg_error(aTHX_ "target");
19405 }
19406 0 arg_target = (int32_t)SvIV(sv);
19407  
19408 /* Execute */
19409 0 method = CFISH_METHOD_PTR(LUCY_NOTMATCHER, LUCY_NOTMatcher_Advance);
19410 0 retval = method(arg_self, arg_target);
19411 0 ST(0) = newSViv(retval);
19412 0 sv_2mortal( ST(0) );
19413 0 XSRETURN(1);
19414 }
19415  
19416 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_score);
19417 0 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_score) {
19418 0 dXSARGS;
19419 lucy_NOTMatcher* arg_self;
19420 LUCY_NOTMatcher_Score_t method;
19421 float retval;
19422  
19423 CFISH_UNUSED_VAR(cv);
19424 0 SP -= items;
19425 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19426 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19427 }
19428  
19429 /* Extract vars from Perl stack. */
19430 0 arg_self = (lucy_NOTMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTMATCHER, NULL);
19431  
19432 /* Execute */
19433 0 method = CFISH_METHOD_PTR(LUCY_NOTMATCHER, LUCY_NOTMatcher_Score);
19434 0 retval = method(arg_self);
19435 0 ST(0) = newSVnv(retval);
19436 0 sv_2mortal( ST(0) );
19437 0 XSRETURN(1);
19438 }
19439  
19440 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_get_doc_id);
19441 0 XS_INTERNAL(XS_Lucy_Search_NOTMatcher_get_doc_id) {
19442 0 dXSARGS;
19443 lucy_NOTMatcher* arg_self;
19444 LUCY_NOTMatcher_Get_Doc_ID_t method;
19445 int32_t retval;
19446  
19447 CFISH_UNUSED_VAR(cv);
19448 0 SP -= items;
19449 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19450 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19451 }
19452  
19453 /* Extract vars from Perl stack. */
19454 0 arg_self = (lucy_NOTMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTMATCHER, NULL);
19455  
19456 /* Execute */
19457 0 method = CFISH_METHOD_PTR(LUCY_NOTMATCHER, LUCY_NOTMatcher_Get_Doc_ID);
19458 0 retval = method(arg_self);
19459 0 ST(0) = newSViv(retval);
19460 0 sv_2mortal( ST(0) );
19461 0 XSRETURN(1);
19462 }
19463  
19464 XS_INTERNAL(XS_Lucy_Search_ORMatcher_new);
19465 0 XS_INTERNAL(XS_Lucy_Search_ORMatcher_new) {
19466 0 dXSARGS;
19467 static const XSBind_ParamSpec param_specs[1] = {
19468 XSBIND_PARAM("children", 1)
19469 };
19470 int32_t locations[1];
19471 SV *sv;
19472 lucy_ORMatcher* arg_self;
19473 cfish_Vector* arg_children;
19474 lucy_ORMatcher* retval;
19475  
19476 CFISH_UNUSED_VAR(cv);
19477 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
19478 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
19479 }
19480 0 SP -= items;
19481  
19482 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
19483 locations, 1);
19484 0 sv = ST(locations[0]);
19485 0 arg_children = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "children", CFISH_VECTOR, NULL);
19486 0 arg_self = (lucy_ORMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
19487  
19488 0 retval = lucy_ORMatcher_init(arg_self, arg_children);
19489 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
19490 0 XSRETURN(1);
19491 }
19492  
19493  
19494 XS_INTERNAL(XS_Lucy_Search_ORMatcher_next);
19495 0 XS_INTERNAL(XS_Lucy_Search_ORMatcher_next) {
19496 0 dXSARGS;
19497 lucy_ORMatcher* arg_self;
19498 LUCY_ORMatcher_Next_t method;
19499 int32_t retval;
19500  
19501 CFISH_UNUSED_VAR(cv);
19502 0 SP -= items;
19503 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19504 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19505 }
19506  
19507 /* Extract vars from Perl stack. */
19508 0 arg_self = (lucy_ORMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORMATCHER, NULL);
19509  
19510 /* Execute */
19511 0 method = CFISH_METHOD_PTR(LUCY_ORMATCHER, LUCY_ORMatcher_Next);
19512 0 retval = method(arg_self);
19513 0 ST(0) = newSViv(retval);
19514 0 sv_2mortal( ST(0) );
19515 0 XSRETURN(1);
19516 }
19517  
19518 XS_INTERNAL(XS_Lucy_Search_ORMatcher_advance);
19519 0 XS_INTERNAL(XS_Lucy_Search_ORMatcher_advance) {
19520 0 dXSARGS;
19521 SV *sv;
19522 lucy_ORMatcher* arg_self;
19523 int32_t arg_target;
19524 LUCY_ORMatcher_Advance_t method;
19525 int32_t retval;
19526  
19527 CFISH_UNUSED_VAR(cv);
19528 0 SP -= items;
19529 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
19530 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
19531 }
19532  
19533 /* Extract vars from Perl stack. */
19534 0 arg_self = (lucy_ORMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORMATCHER, NULL);
19535 0 sv = ST(1);
19536 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19537 0 XSBind_undef_arg_error(aTHX_ "target");
19538 }
19539 0 arg_target = (int32_t)SvIV(sv);
19540  
19541 /* Execute */
19542 0 method = CFISH_METHOD_PTR(LUCY_ORMATCHER, LUCY_ORMatcher_Advance);
19543 0 retval = method(arg_self, arg_target);
19544 0 ST(0) = newSViv(retval);
19545 0 sv_2mortal( ST(0) );
19546 0 XSRETURN(1);
19547 }
19548  
19549 XS_INTERNAL(XS_Lucy_Search_ORMatcher_get_doc_id);
19550 0 XS_INTERNAL(XS_Lucy_Search_ORMatcher_get_doc_id) {
19551 0 dXSARGS;
19552 lucy_ORMatcher* arg_self;
19553 LUCY_ORMatcher_Get_Doc_ID_t method;
19554 int32_t retval;
19555  
19556 CFISH_UNUSED_VAR(cv);
19557 0 SP -= items;
19558 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19559 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19560 }
19561  
19562 /* Extract vars from Perl stack. */
19563 0 arg_self = (lucy_ORMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORMATCHER, NULL);
19564  
19565 /* Execute */
19566 0 method = CFISH_METHOD_PTR(LUCY_ORMATCHER, LUCY_ORMatcher_Get_Doc_ID);
19567 0 retval = method(arg_self);
19568 0 ST(0) = newSViv(retval);
19569 0 sv_2mortal( ST(0) );
19570 0 XSRETURN(1);
19571 }
19572  
19573 XS_INTERNAL(XS_Lucy_Search_ORScorer_new);
19574 539 XS_INTERNAL(XS_Lucy_Search_ORScorer_new) {
19575 539 dXSARGS;
19576 static const XSBind_ParamSpec param_specs[2] = {
19577 XSBIND_PARAM("children", 1),
19578 XSBIND_PARAM("similarity", 0)
19579 };
19580 int32_t locations[2];
19581 SV *sv;
19582 lucy_ORScorer* arg_self;
19583 cfish_Vector* arg_children;
19584 lucy_Similarity* arg_similarity;
19585 lucy_ORScorer* retval;
19586  
19587 CFISH_UNUSED_VAR(cv);
19588 539 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 539 539
19589 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
19590 }
19591 539 SP -= items;
19592  
19593 539 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
19594 locations, 2);
19595 539 sv = ST(locations[0]);
19596 539 arg_children = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "children", CFISH_VECTOR, NULL);
19597 539 sv = ST(locations[1]);
19598 539 ▶ arg_similarity = locations[1] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_similarity = locations[1] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL; 539 0 539
19599 539 arg_self = (lucy_ORScorer*)XSBind_new_blank_obj(aTHX_ ST(0));
19600  
19601 539 retval = lucy_ORScorer_init(arg_self, arg_children, arg_similarity);
19602 539 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
19603 539 XSRETURN(1);
19604 }
19605  
19606  
19607 XS_INTERNAL(XS_Lucy_Search_ORScorer_next);
19608 0 XS_INTERNAL(XS_Lucy_Search_ORScorer_next) {
19609 0 dXSARGS;
19610 lucy_ORScorer* arg_self;
19611 LUCY_ORScorer_Next_t method;
19612 int32_t retval;
19613  
19614 CFISH_UNUSED_VAR(cv);
19615 0 SP -= items;
19616 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19617 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19618 }
19619  
19620 /* Extract vars from Perl stack. */
19621 0 arg_self = (lucy_ORScorer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORSCORER, NULL);
19622  
19623 /* Execute */
19624 0 method = CFISH_METHOD_PTR(LUCY_ORSCORER, LUCY_ORScorer_Next);
19625 0 retval = method(arg_self);
19626 0 ST(0) = newSViv(retval);
19627 0 sv_2mortal( ST(0) );
19628 0 XSRETURN(1);
19629 }
19630  
19631 XS_INTERNAL(XS_Lucy_Search_ORScorer_advance);
19632 0 XS_INTERNAL(XS_Lucy_Search_ORScorer_advance) {
19633 0 dXSARGS;
19634 SV *sv;
19635 lucy_ORScorer* arg_self;
19636 int32_t arg_target;
19637 LUCY_ORScorer_Advance_t method;
19638 int32_t retval;
19639  
19640 CFISH_UNUSED_VAR(cv);
19641 0 SP -= items;
19642 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
19643 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
19644 }
19645  
19646 /* Extract vars from Perl stack. */
19647 0 arg_self = (lucy_ORScorer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORSCORER, NULL);
19648 0 sv = ST(1);
19649 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19650 0 XSBind_undef_arg_error(aTHX_ "target");
19651 }
19652 0 arg_target = (int32_t)SvIV(sv);
19653  
19654 /* Execute */
19655 0 method = CFISH_METHOD_PTR(LUCY_ORSCORER, LUCY_ORScorer_Advance);
19656 0 retval = method(arg_self, arg_target);
19657 0 ST(0) = newSViv(retval);
19658 0 sv_2mortal( ST(0) );
19659 0 XSRETURN(1);
19660 }
19661  
19662 XS_INTERNAL(XS_Lucy_Search_ORScorer_score);
19663 0 XS_INTERNAL(XS_Lucy_Search_ORScorer_score) {
19664 0 dXSARGS;
19665 lucy_ORScorer* arg_self;
19666 LUCY_ORScorer_Score_t method;
19667 float retval;
19668  
19669 CFISH_UNUSED_VAR(cv);
19670 0 SP -= items;
19671 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19672 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19673 }
19674  
19675 /* Extract vars from Perl stack. */
19676 0 arg_self = (lucy_ORScorer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORSCORER, NULL);
19677  
19678 /* Execute */
19679 0 method = CFISH_METHOD_PTR(LUCY_ORSCORER, LUCY_ORScorer_Score);
19680 0 retval = method(arg_self);
19681 0 ST(0) = newSVnv(retval);
19682 0 sv_2mortal( ST(0) );
19683 0 XSRETURN(1);
19684 }
19685  
19686 XS_INTERNAL(XS_Lucy_Search_ORScorer_get_doc_id);
19687 0 XS_INTERNAL(XS_Lucy_Search_ORScorer_get_doc_id) {
19688 0 dXSARGS;
19689 lucy_ORScorer* arg_self;
19690 LUCY_ORScorer_Get_Doc_ID_t method;
19691 int32_t retval;
19692  
19693 CFISH_UNUSED_VAR(cv);
19694 0 SP -= items;
19695 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19696 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19697 }
19698  
19699 /* Extract vars from Perl stack. */
19700 0 arg_self = (lucy_ORScorer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORSCORER, NULL);
19701  
19702 /* Execute */
19703 0 method = CFISH_METHOD_PTR(LUCY_ORSCORER, LUCY_ORScorer_Get_Doc_ID);
19704 0 retval = method(arg_self);
19705 0 ST(0) = newSViv(retval);
19706 0 sv_2mortal( ST(0) );
19707 0 XSRETURN(1);
19708 }
19709  
19710 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_new);
19711 264 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_new) {
19712 264 dXSARGS;
19713 static const XSBind_ParamSpec param_specs[3] = {
19714 XSBIND_PARAM("similarity", 0),
19715 XSBIND_PARAM("required_matcher", 1),
19716 XSBIND_PARAM("optional_matcher", 0)
19717 };
19718 int32_t locations[3];
19719 SV *sv;
19720 lucy_RequiredOptionalMatcher* arg_self;
19721 lucy_Similarity* arg_similarity;
19722 lucy_Matcher* arg_required_matcher;
19723 lucy_Matcher* arg_optional_matcher;
19724 lucy_RequiredOptionalMatcher* retval;
19725  
19726 CFISH_UNUSED_VAR(cv);
19727 264 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 264 264
19728 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
19729 }
19730 264 SP -= items;
19731  
19732 264 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
19733 locations, 3);
19734 264 sv = ST(locations[0]);
19735 264 ▶ arg_similarity = locations[0] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_similarity = locations[0] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL; 264 0 264
19736 264 sv = ST(locations[1]);
19737 264 arg_required_matcher = (lucy_Matcher*)XSBind_arg_to_cfish(aTHX_ sv, "required_matcher", LUCY_MATCHER, NULL);
19738 264 sv = ST(locations[2]);
19739 264 ▶ arg_optional_matcher = locations[2] < items ? (lucy_Matcher*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "optional_matcher", LUCY_MATCHER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_optional_matcher = locations[2] < items ? (lucy_Matcher*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "optional_matcher", LUCY_MATCHER, NULL) : NULL; 264 0 264
19740 264 arg_self = (lucy_RequiredOptionalMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
19741  
19742 264 retval = lucy_ReqOptMatcher_init(arg_self, arg_similarity, arg_required_matcher, arg_optional_matcher);
19743 264 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
19744 264 XSRETURN(1);
19745 }
19746  
19747  
19748 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_next);
19749 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_next) {
19750 0 dXSARGS;
19751 lucy_RequiredOptionalMatcher* arg_self;
19752 LUCY_ReqOptMatcher_Next_t method;
19753 int32_t retval;
19754  
19755 CFISH_UNUSED_VAR(cv);
19756 0 SP -= items;
19757 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19758 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19759 }
19760  
19761 /* Extract vars from Perl stack. */
19762 0 arg_self = (lucy_RequiredOptionalMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALMATCHER, NULL);
19763  
19764 /* Execute */
19765 0 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALMATCHER, LUCY_ReqOptMatcher_Next);
19766 0 retval = method(arg_self);
19767 0 ST(0) = newSViv(retval);
19768 0 sv_2mortal( ST(0) );
19769 0 XSRETURN(1);
19770 }
19771  
19772 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_advance);
19773 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_advance) {
19774 0 dXSARGS;
19775 SV *sv;
19776 lucy_RequiredOptionalMatcher* arg_self;
19777 int32_t arg_target;
19778 LUCY_ReqOptMatcher_Advance_t method;
19779 int32_t retval;
19780  
19781 CFISH_UNUSED_VAR(cv);
19782 0 SP -= items;
19783 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
19784 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
19785 }
19786  
19787 /* Extract vars from Perl stack. */
19788 0 arg_self = (lucy_RequiredOptionalMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALMATCHER, NULL);
19789 0 sv = ST(1);
19790 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19791 0 XSBind_undef_arg_error(aTHX_ "target");
19792 }
19793 0 arg_target = (int32_t)SvIV(sv);
19794  
19795 /* Execute */
19796 0 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALMATCHER, LUCY_ReqOptMatcher_Advance);
19797 0 retval = method(arg_self, arg_target);
19798 0 ST(0) = newSViv(retval);
19799 0 sv_2mortal( ST(0) );
19800 0 XSRETURN(1);
19801 }
19802  
19803 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_score);
19804 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_score) {
19805 0 dXSARGS;
19806 lucy_RequiredOptionalMatcher* arg_self;
19807 LUCY_ReqOptMatcher_Score_t method;
19808 float retval;
19809  
19810 CFISH_UNUSED_VAR(cv);
19811 0 SP -= items;
19812 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19813 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19814 }
19815  
19816 /* Extract vars from Perl stack. */
19817 0 arg_self = (lucy_RequiredOptionalMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALMATCHER, NULL);
19818  
19819 /* Execute */
19820 0 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALMATCHER, LUCY_ReqOptMatcher_Score);
19821 0 retval = method(arg_self);
19822 0 ST(0) = newSVnv(retval);
19823 0 sv_2mortal( ST(0) );
19824 0 XSRETURN(1);
19825 }
19826  
19827 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_get_doc_id);
19828 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalMatcher_get_doc_id) {
19829 0 dXSARGS;
19830 lucy_RequiredOptionalMatcher* arg_self;
19831 LUCY_ReqOptMatcher_Get_Doc_ID_t method;
19832 int32_t retval;
19833  
19834 CFISH_UNUSED_VAR(cv);
19835 0 SP -= items;
19836 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19837 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19838 }
19839  
19840 /* Extract vars from Perl stack. */
19841 0 arg_self = (lucy_RequiredOptionalMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALMATCHER, NULL);
19842  
19843 /* Execute */
19844 0 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALMATCHER, LUCY_ReqOptMatcher_Get_Doc_ID);
19845 0 retval = method(arg_self);
19846 0 ST(0) = newSViv(retval);
19847 0 sv_2mortal( ST(0) );
19848 0 XSRETURN(1);
19849 }
19850  
19851 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_new);
19852 0 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_new) {
19853 0 dXSARGS;
19854 static const XSBind_ParamSpec param_specs[4] = {
19855 XSBIND_PARAM("lower_bound", 1),
19856 XSBIND_PARAM("upper_bound", 1),
19857 XSBIND_PARAM("sort_cache", 1),
19858 XSBIND_PARAM("doc_max", 1)
19859 };
19860 int32_t locations[4];
19861 SV *sv;
19862 lucy_RangeMatcher* arg_self;
19863 int32_t arg_lower_bound;
19864 int32_t arg_upper_bound;
19865 lucy_SortCache* arg_sort_cache;
19866 int32_t arg_doc_max;
19867 lucy_RangeMatcher* retval;
19868  
19869 CFISH_UNUSED_VAR(cv);
19870 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
19871 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
19872 }
19873 0 SP -= items;
19874  
19875 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
19876 locations, 4);
19877 0 sv = ST(locations[0]);
19878 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19879 0 XSBind_undef_arg_error(aTHX_ "lower_bound");
19880 }
19881 0 arg_lower_bound = (int32_t)SvIV(sv);
19882 0 sv = ST(locations[1]);
19883 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19884 0 XSBind_undef_arg_error(aTHX_ "upper_bound");
19885 }
19886 0 arg_upper_bound = (int32_t)SvIV(sv);
19887 0 sv = ST(locations[2]);
19888 0 arg_sort_cache = (lucy_SortCache*)XSBind_arg_to_cfish(aTHX_ sv, "sort_cache", LUCY_SORTCACHE, NULL);
19889 0 sv = ST(locations[3]);
19890 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19891 0 XSBind_undef_arg_error(aTHX_ "doc_max");
19892 }
19893 0 arg_doc_max = (int32_t)SvIV(sv);
19894 0 arg_self = (lucy_RangeMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
19895  
19896 0 retval = lucy_RangeMatcher_init(arg_self, arg_lower_bound, arg_upper_bound, arg_sort_cache, arg_doc_max);
19897 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
19898 0 XSRETURN(1);
19899 }
19900  
19901  
19902 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_next);
19903 0 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_next) {
19904 0 dXSARGS;
19905 lucy_RangeMatcher* arg_self;
19906 LUCY_RangeMatcher_Next_t method;
19907 int32_t retval;
19908  
19909 CFISH_UNUSED_VAR(cv);
19910 0 SP -= items;
19911 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19912 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19913 }
19914  
19915 /* Extract vars from Perl stack. */
19916 0 arg_self = (lucy_RangeMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEMATCHER, NULL);
19917  
19918 /* Execute */
19919 0 method = CFISH_METHOD_PTR(LUCY_RANGEMATCHER, LUCY_RangeMatcher_Next);
19920 0 retval = method(arg_self);
19921 0 ST(0) = newSViv(retval);
19922 0 sv_2mortal( ST(0) );
19923 0 XSRETURN(1);
19924 }
19925  
19926 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_advance);
19927 0 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_advance) {
19928 0 dXSARGS;
19929 SV *sv;
19930 lucy_RangeMatcher* arg_self;
19931 int32_t arg_target;
19932 LUCY_RangeMatcher_Advance_t method;
19933 int32_t retval;
19934  
19935 CFISH_UNUSED_VAR(cv);
19936 0 SP -= items;
19937 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
19938 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
19939 }
19940  
19941 /* Extract vars from Perl stack. */
19942 0 arg_self = (lucy_RangeMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEMATCHER, NULL);
19943 0 sv = ST(1);
19944 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
19945 0 XSBind_undef_arg_error(aTHX_ "target");
19946 }
19947 0 arg_target = (int32_t)SvIV(sv);
19948  
19949 /* Execute */
19950 0 method = CFISH_METHOD_PTR(LUCY_RANGEMATCHER, LUCY_RangeMatcher_Advance);
19951 0 retval = method(arg_self, arg_target);
19952 0 ST(0) = newSViv(retval);
19953 0 sv_2mortal( ST(0) );
19954 0 XSRETURN(1);
19955 }
19956  
19957 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_score);
19958 0 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_score) {
19959 0 dXSARGS;
19960 lucy_RangeMatcher* arg_self;
19961 LUCY_RangeMatcher_Score_t method;
19962 float retval;
19963  
19964 CFISH_UNUSED_VAR(cv);
19965 0 SP -= items;
19966 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19967 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19968 }
19969  
19970 /* Extract vars from Perl stack. */
19971 0 arg_self = (lucy_RangeMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEMATCHER, NULL);
19972  
19973 /* Execute */
19974 0 method = CFISH_METHOD_PTR(LUCY_RANGEMATCHER, LUCY_RangeMatcher_Score);
19975 0 retval = method(arg_self);
19976 0 ST(0) = newSVnv(retval);
19977 0 sv_2mortal( ST(0) );
19978 0 XSRETURN(1);
19979 }
19980  
19981 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_get_doc_id);
19982 0 XS_INTERNAL(XS_Lucy_Search_RangeMatcher_get_doc_id) {
19983 0 dXSARGS;
19984 lucy_RangeMatcher* arg_self;
19985 LUCY_RangeMatcher_Get_Doc_ID_t method;
19986 int32_t retval;
19987  
19988 CFISH_UNUSED_VAR(cv);
19989 0 SP -= items;
19990 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
19991 0 XSBind_invalid_args_error(aTHX_ cv, "self");
19992 }
19993  
19994 /* Extract vars from Perl stack. */
19995 0 arg_self = (lucy_RangeMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEMATCHER, NULL);
19996  
19997 /* Execute */
19998 0 method = CFISH_METHOD_PTR(LUCY_RANGEMATCHER, LUCY_RangeMatcher_Get_Doc_ID);
19999 0 retval = method(arg_self);
20000 0 ST(0) = newSViv(retval);
20001 0 sv_2mortal( ST(0) );
20002 0 XSRETURN(1);
20003 }
20004  
20005 XS_INTERNAL(XS_Lucy_Search_SeriesMatcher_new);
20006 0 XS_INTERNAL(XS_Lucy_Search_SeriesMatcher_new) {
20007 0 dXSARGS;
20008 static const XSBind_ParamSpec param_specs[2] = {
20009 XSBIND_PARAM("matchers", 1),
20010 XSBIND_PARAM("offsets", 1)
20011 };
20012 int32_t locations[2];
20013 SV *sv;
20014 lucy_SeriesMatcher* arg_self;
20015 cfish_Vector* arg_matchers;
20016 lucy_I32Array* arg_offsets;
20017 lucy_SeriesMatcher* retval;
20018  
20019 CFISH_UNUSED_VAR(cv);
20020 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
20021 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20022 }
20023 0 SP -= items;
20024  
20025 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20026 locations, 2);
20027 0 sv = ST(locations[0]);
20028 0 arg_matchers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "matchers", CFISH_VECTOR, NULL);
20029 0 sv = ST(locations[1]);
20030 0 arg_offsets = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "offsets", LUCY_I32ARRAY, NULL);
20031 0 arg_self = (lucy_SeriesMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
20032  
20033 0 retval = lucy_SeriesMatcher_init(arg_self, arg_matchers, arg_offsets);
20034 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20035 0 XSRETURN(1);
20036 }
20037  
20038  
20039 XS_INTERNAL(XS_Lucy_Search_SeriesMatcher_next);
20040 0 XS_INTERNAL(XS_Lucy_Search_SeriesMatcher_next) {
20041 0 dXSARGS;
20042 lucy_SeriesMatcher* arg_self;
20043 LUCY_SeriesMatcher_Next_t method;
20044 int32_t retval;
20045  
20046 CFISH_UNUSED_VAR(cv);
20047 0 SP -= items;
20048 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20049 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20050 }
20051  
20052 /* Extract vars from Perl stack. */
20053 0 arg_self = (lucy_SeriesMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SERIESMATCHER, NULL);
20054  
20055 /* Execute */
20056 0 method = CFISH_METHOD_PTR(LUCY_SERIESMATCHER, LUCY_SeriesMatcher_Next);
20057 0 retval = method(arg_self);
20058 0 ST(0) = newSViv(retval);
20059 0 sv_2mortal( ST(0) );
20060 0 XSRETURN(1);
20061 }
20062  
20063 XS_INTERNAL(XS_Lucy_Search_SeriesMatcher_advance);
20064 0 XS_INTERNAL(XS_Lucy_Search_SeriesMatcher_advance) {
20065 0 dXSARGS;
20066 SV *sv;
20067 lucy_SeriesMatcher* arg_self;
20068 int32_t arg_target;
20069 LUCY_SeriesMatcher_Advance_t method;
20070 int32_t retval;
20071  
20072 CFISH_UNUSED_VAR(cv);
20073 0 SP -= items;
20074 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
20075 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
20076 }
20077  
20078 /* Extract vars from Perl stack. */
20079 0 arg_self = (lucy_SeriesMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SERIESMATCHER, NULL);
20080 0 sv = ST(1);
20081 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
20082 0 XSBind_undef_arg_error(aTHX_ "target");
20083 }
20084 0 arg_target = (int32_t)SvIV(sv);
20085  
20086 /* Execute */
20087 0 method = CFISH_METHOD_PTR(LUCY_SERIESMATCHER, LUCY_SeriesMatcher_Advance);
20088 0 retval = method(arg_self, arg_target);
20089 0 ST(0) = newSViv(retval);
20090 0 sv_2mortal( ST(0) );
20091 0 XSRETURN(1);
20092 }
20093  
20094 XS_INTERNAL(XS_Lucy_Search_SeriesMatcher_get_doc_id);
20095 0 XS_INTERNAL(XS_Lucy_Search_SeriesMatcher_get_doc_id) {
20096 0 dXSARGS;
20097 lucy_SeriesMatcher* arg_self;
20098 LUCY_SeriesMatcher_Get_Doc_ID_t method;
20099 int32_t retval;
20100  
20101 CFISH_UNUSED_VAR(cv);
20102 0 SP -= items;
20103 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20104 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20105 }
20106  
20107 /* Extract vars from Perl stack. */
20108 0 arg_self = (lucy_SeriesMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SERIESMATCHER, NULL);
20109  
20110 /* Execute */
20111 0 method = CFISH_METHOD_PTR(LUCY_SERIESMATCHER, LUCY_SeriesMatcher_Get_Doc_ID);
20112 0 retval = method(arg_self);
20113 0 ST(0) = newSViv(retval);
20114 0 sv_2mortal( ST(0) );
20115 0 XSRETURN(1);
20116 }
20117  
20118 XS_INTERNAL(XS_Lucy_Search_TermMatcher_new);
20119 0 XS_INTERNAL(XS_Lucy_Search_TermMatcher_new) {
20120 0 dXSARGS;
20121 static const XSBind_ParamSpec param_specs[3] = {
20122 XSBIND_PARAM("similarity", 1),
20123 XSBIND_PARAM("posting_list", 1),
20124 XSBIND_PARAM("compiler", 1)
20125 };
20126 int32_t locations[3];
20127 SV *sv;
20128 lucy_TermMatcher* arg_self;
20129 lucy_Similarity* arg_similarity;
20130 lucy_PostingList* arg_posting_list;
20131 lucy_Compiler* arg_compiler;
20132 lucy_TermMatcher* retval;
20133  
20134 CFISH_UNUSED_VAR(cv);
20135 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
20136 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20137 }
20138 0 SP -= items;
20139  
20140 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20141 locations, 3);
20142 0 sv = ST(locations[0]);
20143 0 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
20144 0 sv = ST(locations[1]);
20145 0 arg_posting_list = (lucy_PostingList*)XSBind_arg_to_cfish(aTHX_ sv, "posting_list", LUCY_POSTINGLIST, NULL);
20146 0 sv = ST(locations[2]);
20147 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
20148 0 arg_self = (lucy_TermMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
20149  
20150 0 retval = lucy_TermMatcher_init(arg_self, arg_similarity, arg_posting_list, arg_compiler);
20151 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20152 0 XSRETURN(1);
20153 }
20154  
20155  
20156 XS_INTERNAL(XS_Lucy_Search_TermMatcher_next);
20157 0 XS_INTERNAL(XS_Lucy_Search_TermMatcher_next) {
20158 0 dXSARGS;
20159 lucy_TermMatcher* arg_self;
20160 LUCY_TermMatcher_Next_t method;
20161 int32_t retval;
20162  
20163 CFISH_UNUSED_VAR(cv);
20164 0 SP -= items;
20165 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20166 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20167 }
20168  
20169 /* Extract vars from Perl stack. */
20170 0 arg_self = (lucy_TermMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMMATCHER, NULL);
20171  
20172 /* Execute */
20173 0 method = CFISH_METHOD_PTR(LUCY_TERMMATCHER, LUCY_TermMatcher_Next);
20174 0 retval = method(arg_self);
20175 0 ST(0) = newSViv(retval);
20176 0 sv_2mortal( ST(0) );
20177 0 XSRETURN(1);
20178 }
20179  
20180 XS_INTERNAL(XS_Lucy_Search_TermMatcher_advance);
20181 0 XS_INTERNAL(XS_Lucy_Search_TermMatcher_advance) {
20182 0 dXSARGS;
20183 SV *sv;
20184 lucy_TermMatcher* arg_self;
20185 int32_t arg_target;
20186 LUCY_TermMatcher_Advance_t method;
20187 int32_t retval;
20188  
20189 CFISH_UNUSED_VAR(cv);
20190 0 SP -= items;
20191 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
20192 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
20193 }
20194  
20195 /* Extract vars from Perl stack. */
20196 0 arg_self = (lucy_TermMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMMATCHER, NULL);
20197 0 sv = ST(1);
20198 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
20199 0 XSBind_undef_arg_error(aTHX_ "target");
20200 }
20201 0 arg_target = (int32_t)SvIV(sv);
20202  
20203 /* Execute */
20204 0 method = CFISH_METHOD_PTR(LUCY_TERMMATCHER, LUCY_TermMatcher_Advance);
20205 0 retval = method(arg_self, arg_target);
20206 0 ST(0) = newSViv(retval);
20207 0 sv_2mortal( ST(0) );
20208 0 XSRETURN(1);
20209 }
20210  
20211 XS_INTERNAL(XS_Lucy_Search_TermMatcher_get_doc_id);
20212 0 XS_INTERNAL(XS_Lucy_Search_TermMatcher_get_doc_id) {
20213 0 dXSARGS;
20214 lucy_TermMatcher* arg_self;
20215 LUCY_TermMatcher_Get_Doc_ID_t method;
20216 int32_t retval;
20217  
20218 CFISH_UNUSED_VAR(cv);
20219 0 SP -= items;
20220 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20221 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20222 }
20223  
20224 /* Extract vars from Perl stack. */
20225 0 arg_self = (lucy_TermMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMMATCHER, NULL);
20226  
20227 /* Execute */
20228 0 method = CFISH_METHOD_PTR(LUCY_TERMMATCHER, LUCY_TermMatcher_Get_Doc_ID);
20229 0 retval = method(arg_self);
20230 0 ST(0) = newSViv(retval);
20231 0 sv_2mortal( ST(0) );
20232 0 XSRETURN(1);
20233 }
20234  
20235 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingMatcher_new);
20236 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingMatcher_new) {
20237 0 dXSARGS;
20238 static const XSBind_ParamSpec param_specs[3] = {
20239 XSBIND_PARAM("similarity", 1),
20240 XSBIND_PARAM("posting_list", 1),
20241 XSBIND_PARAM("compiler", 1)
20242 };
20243 int32_t locations[3];
20244 SV *sv;
20245 lucy_MatchPostingMatcher* arg_self;
20246 lucy_Similarity* arg_similarity;
20247 lucy_PostingList* arg_posting_list;
20248 lucy_Compiler* arg_compiler;
20249 lucy_MatchPostingMatcher* retval;
20250  
20251 CFISH_UNUSED_VAR(cv);
20252 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
20253 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20254 }
20255 0 SP -= items;
20256  
20257 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20258 locations, 3);
20259 0 sv = ST(locations[0]);
20260 0 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
20261 0 sv = ST(locations[1]);
20262 0 arg_posting_list = (lucy_PostingList*)XSBind_arg_to_cfish(aTHX_ sv, "posting_list", LUCY_POSTINGLIST, NULL);
20263 0 sv = ST(locations[2]);
20264 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
20265 0 arg_self = (lucy_MatchPostingMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
20266  
20267 0 retval = lucy_MatchPostMatcher_init(arg_self, arg_similarity, arg_posting_list, arg_compiler);
20268 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20269 0 XSRETURN(1);
20270 }
20271  
20272  
20273 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingMatcher_score);
20274 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPostingMatcher_score) {
20275 0 dXSARGS;
20276 lucy_MatchPostingMatcher* arg_self;
20277 LUCY_MatchPostMatcher_Score_t method;
20278 float retval;
20279  
20280 CFISH_UNUSED_VAR(cv);
20281 0 SP -= items;
20282 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20283 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20284 }
20285  
20286 /* Extract vars from Perl stack. */
20287 0 arg_self = (lucy_MatchPostingMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTINGMATCHER, NULL);
20288  
20289 /* Execute */
20290 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTINGMATCHER, LUCY_MatchPostMatcher_Score);
20291 0 retval = method(arg_self);
20292 0 ST(0) = newSVnv(retval);
20293 0 sv_2mortal( ST(0) );
20294 0 XSRETURN(1);
20295 }
20296  
20297 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePostingMatcher_new);
20298 0 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePostingMatcher_new) {
20299 0 dXSARGS;
20300 static const XSBind_ParamSpec param_specs[3] = {
20301 XSBIND_PARAM("sim", 1),
20302 XSBIND_PARAM("plist", 1),
20303 XSBIND_PARAM("compiler", 1)
20304 };
20305 int32_t locations[3];
20306 SV *sv;
20307 lucy_ScorePostingMatcher* arg_self;
20308 lucy_Similarity* arg_sim;
20309 lucy_PostingList* arg_plist;
20310 lucy_Compiler* arg_compiler;
20311 lucy_ScorePostingMatcher* retval;
20312  
20313 CFISH_UNUSED_VAR(cv);
20314 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
20315 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20316 }
20317 0 SP -= items;
20318  
20319 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20320 locations, 3);
20321 0 sv = ST(locations[0]);
20322 0 arg_sim = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "sim", LUCY_SIMILARITY, NULL);
20323 0 sv = ST(locations[1]);
20324 0 arg_plist = (lucy_PostingList*)XSBind_arg_to_cfish(aTHX_ sv, "plist", LUCY_POSTINGLIST, NULL);
20325 0 sv = ST(locations[2]);
20326 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
20327 0 arg_self = (lucy_ScorePostingMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
20328  
20329 0 retval = lucy_ScorePostMatcher_init(arg_self, arg_sim, arg_plist, arg_compiler);
20330 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20331 0 XSRETURN(1);
20332 }
20333  
20334  
20335 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePostingMatcher_score);
20336 0 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePostingMatcher_score) {
20337 0 dXSARGS;
20338 lucy_ScorePostingMatcher* arg_self;
20339 LUCY_ScorePostMatcher_Score_t method;
20340 float retval;
20341  
20342 CFISH_UNUSED_VAR(cv);
20343 0 SP -= items;
20344 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20345 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20346 }
20347  
20348 /* Extract vars from Perl stack. */
20349 0 arg_self = (lucy_ScorePostingMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCOREPOSTINGMATCHER, NULL);
20350  
20351 /* Execute */
20352 0 method = CFISH_METHOD_PTR(LUCY_SCOREPOSTINGMATCHER, LUCY_ScorePostMatcher_Score);
20353 0 retval = method(arg_self);
20354 0 ST(0) = newSVnv(retval);
20355 0 sv_2mortal( ST(0) );
20356 0 XSRETURN(1);
20357 }
20358  
20359 XS_INTERNAL(XS_Lucy_Index_Posting_RichPostingMatcher_new);
20360 0 XS_INTERNAL(XS_Lucy_Index_Posting_RichPostingMatcher_new) {
20361 0 dXSARGS;
20362 static const XSBind_ParamSpec param_specs[3] = {
20363 XSBIND_PARAM("similarity", 1),
20364 XSBIND_PARAM("posting_list", 1),
20365 XSBIND_PARAM("compiler", 1)
20366 };
20367 int32_t locations[3];
20368 SV *sv;
20369 lucy_RichPostingMatcher* arg_self;
20370 lucy_Similarity* arg_similarity;
20371 lucy_PostingList* arg_posting_list;
20372 lucy_Compiler* arg_compiler;
20373 lucy_RichPostingMatcher* retval;
20374  
20375 CFISH_UNUSED_VAR(cv);
20376 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
20377 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20378 }
20379 0 SP -= items;
20380  
20381 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20382 locations, 3);
20383 0 sv = ST(locations[0]);
20384 0 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
20385 0 sv = ST(locations[1]);
20386 0 arg_posting_list = (lucy_PostingList*)XSBind_arg_to_cfish(aTHX_ sv, "posting_list", LUCY_POSTINGLIST, NULL);
20387 0 sv = ST(locations[2]);
20388 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
20389 0 arg_self = (lucy_RichPostingMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
20390  
20391 0 retval = lucy_RichPostMatcher_init(arg_self, arg_similarity, arg_posting_list, arg_compiler);
20392 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20393 0 XSRETURN(1);
20394 }
20395  
20396  
20397 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_new);
20398 6 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_new) {
20399 6 dXSARGS;
20400 static const XSBind_ParamSpec param_specs[2] = {
20401 XSBIND_PARAM("bits", 1),
20402 XSBIND_PARAM("doc_max", 1)
20403 };
20404 int32_t locations[2];
20405 SV *sv;
20406 lucy_FilterMatcher* arg_self;
20407 lucy_BitVector* arg_bits;
20408 int32_t arg_doc_max;
20409 lucy_FilterMatcher* retval;
20410  
20411 CFISH_UNUSED_VAR(cv);
20412 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
20413 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20414 }
20415 6 SP -= items;
20416  
20417 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20418 locations, 2);
20419 6 sv = ST(locations[0]);
20420 6 arg_bits = (lucy_BitVector*)XSBind_arg_to_cfish(aTHX_ sv, "bits", LUCY_BITVECTOR, NULL);
20421 6 sv = ST(locations[1]);
20422 6 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 6 6
20423 0 XSBind_undef_arg_error(aTHX_ "doc_max");
20424 }
20425 6 arg_doc_max = (int32_t)SvIV(sv);
20426 6 arg_self = (lucy_FilterMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
20427  
20428 6 retval = lucy_FilterMatcher_init(arg_self, arg_bits, arg_doc_max);
20429 6 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20430 6 XSRETURN(1);
20431 }
20432  
20433  
20434 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_next);
20435 0 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_next) {
20436 0 dXSARGS;
20437 lucy_FilterMatcher* arg_self;
20438 LUCY_FilterMatcher_Next_t method;
20439 int32_t retval;
20440  
20441 CFISH_UNUSED_VAR(cv);
20442 0 SP -= items;
20443 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20444 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20445 }
20446  
20447 /* Extract vars from Perl stack. */
20448 0 arg_self = (lucy_FilterMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILTERMATCHER, NULL);
20449  
20450 /* Execute */
20451 0 method = CFISH_METHOD_PTR(LUCY_FILTERMATCHER, LUCY_FilterMatcher_Next);
20452 0 retval = method(arg_self);
20453 0 ST(0) = newSViv(retval);
20454 0 sv_2mortal( ST(0) );
20455 0 XSRETURN(1);
20456 }
20457  
20458 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_skip_to);
20459 0 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_skip_to) {
20460 0 dXSARGS;
20461 SV *sv;
20462 lucy_FilterMatcher* arg_self;
20463 int32_t arg_target;
20464 LUCY_FilterMatcher_Skip_To_t method;
20465 int32_t retval;
20466  
20467 CFISH_UNUSED_VAR(cv);
20468 0 SP -= items;
20469 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
20470 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
20471 }
20472  
20473 /* Extract vars from Perl stack. */
20474 0 arg_self = (lucy_FilterMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILTERMATCHER, NULL);
20475 0 sv = ST(1);
20476 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
20477 0 XSBind_undef_arg_error(aTHX_ "target");
20478 }
20479 0 arg_target = (int32_t)SvIV(sv);
20480  
20481 /* Execute */
20482 0 method = CFISH_METHOD_PTR(LUCY_FILTERMATCHER, LUCY_FilterMatcher_Skip_To);
20483 0 retval = method(arg_self, arg_target);
20484 0 ST(0) = newSViv(retval);
20485 0 sv_2mortal( ST(0) );
20486 0 XSRETURN(1);
20487 }
20488  
20489 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_score);
20490 0 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_score) {
20491 0 dXSARGS;
20492 lucy_FilterMatcher* arg_self;
20493 LUCY_FilterMatcher_Score_t method;
20494 float retval;
20495  
20496 CFISH_UNUSED_VAR(cv);
20497 0 SP -= items;
20498 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20499 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20500 }
20501  
20502 /* Extract vars from Perl stack. */
20503 0 arg_self = (lucy_FilterMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILTERMATCHER, NULL);
20504  
20505 /* Execute */
20506 0 method = CFISH_METHOD_PTR(LUCY_FILTERMATCHER, LUCY_FilterMatcher_Score);
20507 0 retval = method(arg_self);
20508 0 ST(0) = newSVnv(retval);
20509 0 sv_2mortal( ST(0) );
20510 0 XSRETURN(1);
20511 }
20512  
20513 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_get_doc_id);
20514 0 XS_INTERNAL(XS_LucyX_Search_FilterMatcher_get_doc_id) {
20515 0 dXSARGS;
20516 lucy_FilterMatcher* arg_self;
20517 LUCY_FilterMatcher_Get_Doc_ID_t method;
20518 int32_t retval;
20519  
20520 CFISH_UNUSED_VAR(cv);
20521 0 SP -= items;
20522 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20523 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20524 }
20525  
20526 /* Extract vars from Perl stack. */
20527 0 arg_self = (lucy_FilterMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILTERMATCHER, NULL);
20528  
20529 /* Execute */
20530 0 method = CFISH_METHOD_PTR(LUCY_FILTERMATCHER, LUCY_FilterMatcher_Get_Doc_ID);
20531 0 retval = method(arg_self);
20532 0 ST(0) = newSViv(retval);
20533 0 sv_2mortal( ST(0) );
20534 0 XSRETURN(1);
20535 }
20536  
20537 XS_INTERNAL(XS_LucyX_Search_MockMatcher__new);
20538 3763 XS_INTERNAL(XS_LucyX_Search_MockMatcher__new) {
20539 3763 dXSARGS;
20540 static const XSBind_ParamSpec param_specs[2] = {
20541 XSBIND_PARAM("doc_ids", 1),
20542 XSBIND_PARAM("scores", 0)
20543 };
20544 int32_t locations[2];
20545 SV *sv;
20546 lucy_MockMatcher* arg_self;
20547 lucy_I32Array* arg_doc_ids;
20548 cfish_Blob* arg_scores;
20549 lucy_MockMatcher* retval;
20550  
20551 CFISH_UNUSED_VAR(cv);
20552 3763 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3763 3763
20553 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20554 }
20555 3763 SP -= items;
20556  
20557 3763 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20558 locations, 2);
20559 3763 sv = ST(locations[0]);
20560 3763 arg_doc_ids = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "doc_ids", LUCY_I32ARRAY, NULL);
20561 3763 sv = ST(locations[1]);
20562 3763 ▶ arg_scores = locations[1] < items ? (cfish_Blob*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "scores", CFISH_BLOB, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_scores = locations[1] < items ? (cfish_Blob*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "scores", CFISH_BLOB, NULL) : NULL; 3763 0 3763
20563 3763 arg_self = (lucy_MockMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
20564  
20565 3763 retval = lucy_MockMatcher_init(arg_self, arg_doc_ids, arg_scores);
20566 3763 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20567 3763 XSRETURN(1);
20568 }
20569  
20570  
20571 XS_INTERNAL(XS_LucyX_Search_MockMatcher_next);
20572 25 XS_INTERNAL(XS_LucyX_Search_MockMatcher_next) {
20573 25 dXSARGS;
20574 lucy_MockMatcher* arg_self;
20575 LUCY_MockMatcher_Next_t method;
20576 int32_t retval;
20577  
20578 CFISH_UNUSED_VAR(cv);
20579 25 SP -= items;
20580 25 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 25 25
20581 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20582 }
20583  
20584 /* Extract vars from Perl stack. */
20585 25 arg_self = (lucy_MockMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MOCKMATCHER, NULL);
20586  
20587 /* Execute */
20588 25 method = CFISH_METHOD_PTR(LUCY_MOCKMATCHER, LUCY_MockMatcher_Next);
20589 25 retval = method(arg_self);
20590 25 ST(0) = newSViv(retval);
20591 25 sv_2mortal( ST(0) );
20592 25 XSRETURN(1);
20593 }
20594  
20595 XS_INTERNAL(XS_LucyX_Search_MockMatcher_score);
20596 0 XS_INTERNAL(XS_LucyX_Search_MockMatcher_score) {
20597 0 dXSARGS;
20598 lucy_MockMatcher* arg_self;
20599 LUCY_MockMatcher_Score_t method;
20600 float retval;
20601  
20602 CFISH_UNUSED_VAR(cv);
20603 0 SP -= items;
20604 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20605 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20606 }
20607  
20608 /* Extract vars from Perl stack. */
20609 0 arg_self = (lucy_MockMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MOCKMATCHER, NULL);
20610  
20611 /* Execute */
20612 0 method = CFISH_METHOD_PTR(LUCY_MOCKMATCHER, LUCY_MockMatcher_Score);
20613 0 retval = method(arg_self);
20614 0 ST(0) = newSVnv(retval);
20615 0 sv_2mortal( ST(0) );
20616 0 XSRETURN(1);
20617 }
20618  
20619 XS_INTERNAL(XS_LucyX_Search_MockMatcher_get_doc_id);
20620 0 XS_INTERNAL(XS_LucyX_Search_MockMatcher_get_doc_id) {
20621 0 dXSARGS;
20622 lucy_MockMatcher* arg_self;
20623 LUCY_MockMatcher_Get_Doc_ID_t method;
20624 int32_t retval;
20625  
20626 CFISH_UNUSED_VAR(cv);
20627 0 SP -= items;
20628 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20629 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20630 }
20631  
20632 /* Extract vars from Perl stack. */
20633 0 arg_self = (lucy_MockMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MOCKMATCHER, NULL);
20634  
20635 /* Execute */
20636 0 method = CFISH_METHOD_PTR(LUCY_MOCKMATCHER, LUCY_MockMatcher_Get_Doc_ID);
20637 0 retval = method(arg_self);
20638 0 ST(0) = newSViv(retval);
20639 0 sv_2mortal( ST(0) );
20640 0 XSRETURN(1);
20641 }
20642  
20643 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_new);
20644 0 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_new) {
20645 0 dXSARGS;
20646 static const XSBind_ParamSpec param_specs[4] = {
20647 XSBIND_PARAM("similarity", 1),
20648 XSBIND_PARAM("posting_lists", 1),
20649 XSBIND_PARAM("compiler", 1),
20650 XSBIND_PARAM("within", 1)
20651 };
20652 int32_t locations[4];
20653 SV *sv;
20654 lucy_ProximityMatcher* arg_self;
20655 lucy_Similarity* arg_similarity;
20656 cfish_Vector* arg_posting_lists;
20657 lucy_Compiler* arg_compiler;
20658 uint32_t arg_within;
20659 lucy_ProximityMatcher* retval;
20660  
20661 CFISH_UNUSED_VAR(cv);
20662 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
20663 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20664 }
20665 0 SP -= items;
20666  
20667 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20668 locations, 4);
20669 0 sv = ST(locations[0]);
20670 0 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
20671 0 sv = ST(locations[1]);
20672 0 arg_posting_lists = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "posting_lists", CFISH_VECTOR, NULL);
20673 0 sv = ST(locations[2]);
20674 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
20675 0 sv = ST(locations[3]);
20676 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
20677 0 XSBind_undef_arg_error(aTHX_ "within");
20678 }
20679 0 arg_within = (uint32_t)SvUV(sv);
20680 0 arg_self = (lucy_ProximityMatcher*)XSBind_new_blank_obj(aTHX_ ST(0));
20681  
20682 0 retval = lucy_ProximityMatcher_init(arg_self, arg_similarity, arg_posting_lists, arg_compiler, arg_within);
20683 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20684 0 XSRETURN(1);
20685 }
20686  
20687  
20688 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_next);
20689 0 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_next) {
20690 0 dXSARGS;
20691 lucy_ProximityMatcher* arg_self;
20692 LUCY_ProximityMatcher_Next_t method;
20693 int32_t retval;
20694  
20695 CFISH_UNUSED_VAR(cv);
20696 0 SP -= items;
20697 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20698 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20699 }
20700  
20701 /* Extract vars from Perl stack. */
20702 0 arg_self = (lucy_ProximityMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYMATCHER, NULL);
20703  
20704 /* Execute */
20705 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYMATCHER, LUCY_ProximityMatcher_Next);
20706 0 retval = method(arg_self);
20707 0 ST(0) = newSViv(retval);
20708 0 sv_2mortal( ST(0) );
20709 0 XSRETURN(1);
20710 }
20711  
20712 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_advance);
20713 0 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_advance) {
20714 0 dXSARGS;
20715 SV *sv;
20716 lucy_ProximityMatcher* arg_self;
20717 int32_t arg_target;
20718 LUCY_ProximityMatcher_Advance_t method;
20719 int32_t retval;
20720  
20721 CFISH_UNUSED_VAR(cv);
20722 0 SP -= items;
20723 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
20724 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
20725 }
20726  
20727 /* Extract vars from Perl stack. */
20728 0 arg_self = (lucy_ProximityMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYMATCHER, NULL);
20729 0 sv = ST(1);
20730 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
20731 0 XSBind_undef_arg_error(aTHX_ "target");
20732 }
20733 0 arg_target = (int32_t)SvIV(sv);
20734  
20735 /* Execute */
20736 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYMATCHER, LUCY_ProximityMatcher_Advance);
20737 0 retval = method(arg_self, arg_target);
20738 0 ST(0) = newSViv(retval);
20739 0 sv_2mortal( ST(0) );
20740 0 XSRETURN(1);
20741 }
20742  
20743 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_get_doc_id);
20744 0 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_get_doc_id) {
20745 0 dXSARGS;
20746 lucy_ProximityMatcher* arg_self;
20747 LUCY_ProximityMatcher_Get_Doc_ID_t method;
20748 int32_t retval;
20749  
20750 CFISH_UNUSED_VAR(cv);
20751 0 SP -= items;
20752 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20753 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20754 }
20755  
20756 /* Extract vars from Perl stack. */
20757 0 arg_self = (lucy_ProximityMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYMATCHER, NULL);
20758  
20759 /* Execute */
20760 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYMATCHER, LUCY_ProximityMatcher_Get_Doc_ID);
20761 0 retval = method(arg_self);
20762 0 ST(0) = newSViv(retval);
20763 0 sv_2mortal( ST(0) );
20764 0 XSRETURN(1);
20765 }
20766  
20767 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_score);
20768 0 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_score) {
20769 0 dXSARGS;
20770 lucy_ProximityMatcher* arg_self;
20771 LUCY_ProximityMatcher_Score_t method;
20772 float retval;
20773  
20774 CFISH_UNUSED_VAR(cv);
20775 0 SP -= items;
20776 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20777 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20778 }
20779  
20780 /* Extract vars from Perl stack. */
20781 0 arg_self = (lucy_ProximityMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYMATCHER, NULL);
20782  
20783 /* Execute */
20784 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYMATCHER, LUCY_ProximityMatcher_Score);
20785 0 retval = method(arg_self);
20786 0 ST(0) = newSVnv(retval);
20787 0 sv_2mortal( ST(0) );
20788 0 XSRETURN(1);
20789 }
20790  
20791 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_calc_proximity_freq);
20792 0 XS_INTERNAL(XS_LucyX_Search_ProximityMatcher_calc_proximity_freq) {
20793 0 dXSARGS;
20794 lucy_ProximityMatcher* arg_self;
20795 LUCY_ProximityMatcher_Calc_Proximity_Freq_t method;
20796 float retval;
20797  
20798 CFISH_UNUSED_VAR(cv);
20799 0 SP -= items;
20800 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
20801 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20802 }
20803  
20804 /* Extract vars from Perl stack. */
20805 0 arg_self = (lucy_ProximityMatcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYMATCHER, NULL);
20806  
20807 /* Execute */
20808 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYMATCHER, LUCY_ProximityMatcher_Calc_Proximity_Freq);
20809 0 retval = method(arg_self);
20810 0 ST(0) = newSVnv(retval);
20811 0 sv_2mortal( ST(0) );
20812 0 XSRETURN(1);
20813 }
20814  
20815 XS_INTERNAL(XS_Lucy_Search_Query_new);
20816 56 XS_INTERNAL(XS_Lucy_Search_Query_new) {
20817 56 dXSARGS;
20818 static const XSBind_ParamSpec param_specs[1] = {
20819 XSBIND_PARAM("boost", 0)
20820 };
20821 int32_t locations[1];
20822 SV *sv;
20823 lucy_Query* arg_self;
20824 float arg_boost;
20825 lucy_Query* retval;
20826  
20827 CFISH_UNUSED_VAR(cv);
20828 56 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 56 56
20829 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
20830 }
20831 56 SP -= items;
20832  
20833 56 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20834 locations, 1);
20835 56 sv = ST(locations[0]);
20836 0 ▶ arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_boost = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
20837 56 ▶ ? (float)SvNV(sv) : 1.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 1.0; 0 56 56
20838 56 arg_self = (lucy_Query*)XSBind_new_blank_obj(aTHX_ ST(0));
20839  
20840 56 retval = lucy_Query_init(arg_self, arg_boost);
20841 56 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
20842 56 XSRETURN(1);
20843 }
20844  
20845  
20846 XS_INTERNAL(XS_Lucy_Search_Query_make_compiler);
20847 0 XS_INTERNAL(XS_Lucy_Search_Query_make_compiler) {
20848 0 dXSARGS;
20849 static const XSBind_ParamSpec param_specs[3] = {
20850 XSBIND_PARAM("searcher", 1),
20851 XSBIND_PARAM("boost", 1),
20852 XSBIND_PARAM("subordinate", 0)
20853 };
20854 int32_t locations[3];
20855 SV *sv;
20856 lucy_Query* arg_self;
20857 lucy_Searcher* arg_searcher;
20858 float arg_boost;
20859 bool arg_subordinate;
20860 LUCY_Query_Make_Compiler_t method;
20861 lucy_Compiler* retval;
20862  
20863 CFISH_UNUSED_VAR(cv);
20864 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
20865 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
20866 }
20867 0 SP -= items;
20868  
20869 /* Locate args on Perl stack. */
20870 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
20871 locations, 3);
20872 0 arg_self = (lucy_Query*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERY, NULL);
20873 0 sv = ST(locations[0]);
20874 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
20875 0 sv = ST(locations[1]);
20876 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
20877 0 XSBind_undef_arg_error(aTHX_ "boost");
20878 }
20879 0 arg_boost = (float)SvNV(sv);
20880 0 sv = ST(locations[2]);
20881 0 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
20882 0 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
20883  
20884 /* Execute */
20885 0 method = CFISH_METHOD_PTR(LUCY_QUERY, LUCY_Query_Make_Compiler);
20886 0 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
20887 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
20888 0 CFISH_DECREF(retval);
20889 0 sv_2mortal( ST(0) );
20890 0 XSRETURN(1);
20891 }
20892  
20893 XS_INTERNAL(XS_Lucy_Search_Query_set_boost);
20894 12 XS_INTERNAL(XS_Lucy_Search_Query_set_boost) {
20895 12 dXSARGS;
20896 SV *sv;
20897 lucy_Query* arg_self;
20898 float arg_boost;
20899 LUCY_Query_Set_Boost_t method;
20900  
20901 CFISH_UNUSED_VAR(cv);
20902 12 SP -= items;
20903 12 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 12 12
20904 0 XSBind_invalid_args_error(aTHX_ cv, "self, boost");
20905 }
20906  
20907 /* Extract vars from Perl stack. */
20908 12 arg_self = (lucy_Query*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERY, NULL);
20909 12 sv = ST(1);
20910 12 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 12 12
20911 0 XSBind_undef_arg_error(aTHX_ "boost");
20912 }
20913 12 arg_boost = (float)SvNV(sv);
20914  
20915 /* Execute */
20916 12 method = CFISH_METHOD_PTR(LUCY_QUERY, LUCY_Query_Set_Boost);
20917 12 method(arg_self, arg_boost);
20918 12 XSRETURN(0);
20919 }
20920  
20921 XS_INTERNAL(XS_Lucy_Search_Query_get_boost);
20922 45 XS_INTERNAL(XS_Lucy_Search_Query_get_boost) {
20923 45 dXSARGS;
20924 lucy_Query* arg_self;
20925 LUCY_Query_Get_Boost_t method;
20926 float retval;
20927  
20928 CFISH_UNUSED_VAR(cv);
20929 45 SP -= items;
20930 45 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 45 45
20931 0 XSBind_invalid_args_error(aTHX_ cv, "self");
20932 }
20933  
20934 /* Extract vars from Perl stack. */
20935 45 arg_self = (lucy_Query*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERY, NULL);
20936  
20937 /* Execute */
20938 45 method = CFISH_METHOD_PTR(LUCY_QUERY, LUCY_Query_Get_Boost);
20939 45 retval = method(arg_self);
20940 45 ST(0) = newSVnv(retval);
20941 45 sv_2mortal( ST(0) );
20942 45 XSRETURN(1);
20943 }
20944  
20945 XS_INTERNAL(XS_Lucy_Search_Query_serialize);
20946 5 XS_INTERNAL(XS_Lucy_Search_Query_serialize) {
20947 5 dXSARGS;
20948 SV *sv;
20949 lucy_Query* arg_self;
20950 lucy_OutStream* arg_outstream;
20951 LUCY_Query_Serialize_t method;
20952  
20953 CFISH_UNUSED_VAR(cv);
20954 5 SP -= items;
20955 5 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 5 5
20956 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
20957 }
20958  
20959 /* Extract vars from Perl stack. */
20960 5 arg_self = (lucy_Query*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERY, NULL);
20961 5 sv = ST(1);
20962 5 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
20963  
20964 /* Execute */
20965 5 method = CFISH_METHOD_PTR(LUCY_QUERY, LUCY_Query_Serialize);
20966 5 method(arg_self, arg_outstream);
20967 5 XSRETURN(0);
20968 }
20969  
20970 XS_INTERNAL(XS_Lucy_Search_Query_deserialize);
20971 4 XS_INTERNAL(XS_Lucy_Search_Query_deserialize) {
20972 4 dXSARGS;
20973 SV *sv;
20974 lucy_Query* arg_self;
20975 lucy_InStream* arg_instream;
20976 LUCY_Query_Deserialize_t method;
20977 lucy_Query* retval;
20978  
20979 CFISH_UNUSED_VAR(cv);
20980 4 SP -= items;
20981 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
20982 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
20983 }
20984  
20985 /* Extract vars from Perl stack. */
20986 4 arg_self = (lucy_Query*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERY, NULL);
20987 4 sv = ST(1);
20988 4 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
20989  
20990 /* Execute */
20991 4 method = CFISH_METHOD_PTR(LUCY_QUERY, LUCY_Query_Deserialize);
20992 4 arg_self = (lucy_Query*)CFISH_INCREF(arg_self);
20993 4 retval = method(arg_self, arg_instream);
20994 4 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
20995 4 CFISH_DECREF(retval);
20996 4 sv_2mortal( ST(0) );
20997 4 XSRETURN(1);
20998 }
20999  
21000 XS_INTERNAL(XS_Lucy_Search_Query_dump);
21001 0 XS_INTERNAL(XS_Lucy_Search_Query_dump) {
21002 0 dXSARGS;
21003 lucy_Query* arg_self;
21004 LUCY_Query_Dump_t method;
21005 cfish_Obj* retval;
21006  
21007 CFISH_UNUSED_VAR(cv);
21008 0 SP -= items;
21009 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21010 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21011 }
21012  
21013 /* Extract vars from Perl stack. */
21014 0 arg_self = (lucy_Query*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERY, NULL);
21015  
21016 /* Execute */
21017 0 method = CFISH_METHOD_PTR(LUCY_QUERY, LUCY_Query_Dump);
21018 0 retval = method(arg_self);
21019 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21020 0 CFISH_DECREF(retval);
21021 0 sv_2mortal( ST(0) );
21022 0 XSRETURN(1);
21023 }
21024  
21025 XS_INTERNAL(XS_Lucy_Search_Query_load);
21026 0 XS_INTERNAL(XS_Lucy_Search_Query_load) {
21027 0 dXSARGS;
21028 SV *sv;
21029 lucy_Query* arg_self;
21030 cfish_Obj* arg_dump;
21031 LUCY_Query_Load_t method;
21032 cfish_Obj* retval;
21033  
21034 CFISH_UNUSED_VAR(cv);
21035 0 SP -= items;
21036 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
21037 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
21038 }
21039  
21040 /* Extract vars from Perl stack. */
21041 0 arg_self = (lucy_Query*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERY, NULL);
21042 0 sv = ST(1);
21043 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
21044  
21045 /* Execute */
21046 0 method = CFISH_METHOD_PTR(LUCY_QUERY, LUCY_Query_Load);
21047 0 retval = method(arg_self, arg_dump);
21048 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21049 0 CFISH_DECREF(retval);
21050 0 sv_2mortal( ST(0) );
21051 0 XSRETURN(1);
21052 }
21053  
21054 XS_INTERNAL(XS_Lucy_Search_Compiler_do_new);
21055 506 XS_INTERNAL(XS_Lucy_Search_Compiler_do_new) {
21056 506 dXSARGS;
21057 static const XSBind_ParamSpec param_specs[4] = {
21058 XSBIND_PARAM("parent", 1),
21059 XSBIND_PARAM("searcher", 1),
21060 XSBIND_PARAM("similarity", 0),
21061 XSBIND_PARAM("boost", 1)
21062 };
21063 int32_t locations[4];
21064 SV *sv;
21065 lucy_Compiler* arg_self;
21066 lucy_Query* arg_parent;
21067 lucy_Searcher* arg_searcher;
21068 lucy_Similarity* arg_similarity;
21069 float arg_boost;
21070 lucy_Compiler* retval;
21071  
21072 CFISH_UNUSED_VAR(cv);
21073 506 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 506 506
21074 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
21075 }
21076 506 SP -= items;
21077  
21078 506 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21079 locations, 4);
21080 506 sv = ST(locations[0]);
21081 506 arg_parent = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_QUERY, NULL);
21082 506 sv = ST(locations[1]);
21083 506 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
21084 506 sv = ST(locations[2]);
21085 506 ▶ arg_similarity = locations[2] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_similarity = locations[2] < items ? (lucy_Similarity*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL) : NULL; 6 500 506
21086 506 sv = ST(locations[3]);
21087 506 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 506 506
21088 0 XSBind_undef_arg_error(aTHX_ "boost");
21089 }
21090 506 arg_boost = (float)SvNV(sv);
21091 506 arg_self = (lucy_Compiler*)XSBind_new_blank_obj(aTHX_ ST(0));
21092  
21093 506 retval = lucy_Compiler_init(arg_self, arg_parent, arg_searcher, arg_similarity, arg_boost);
21094 506 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
21095 506 XSRETURN(1);
21096 }
21097  
21098  
21099 XS_INTERNAL(XS_Lucy_Search_Compiler_make_matcher);
21100 0 XS_INTERNAL(XS_Lucy_Search_Compiler_make_matcher) {
21101 0 dXSARGS;
21102 static const XSBind_ParamSpec param_specs[2] = {
21103 XSBIND_PARAM("reader", 1),
21104 XSBIND_PARAM("need_score", 1)
21105 };
21106 int32_t locations[2];
21107 SV *sv;
21108 lucy_Compiler* arg_self;
21109 lucy_SegReader* arg_reader;
21110 bool arg_need_score;
21111 LUCY_Compiler_Make_Matcher_t method;
21112 lucy_Matcher* retval;
21113  
21114 CFISH_UNUSED_VAR(cv);
21115 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21116 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
21117 }
21118 0 SP -= items;
21119  
21120 /* Locate args on Perl stack. */
21121 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21122 locations, 2);
21123 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21124 0 sv = ST(locations[0]);
21125 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
21126 0 sv = ST(locations[1]);
21127 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21128 0 XSBind_undef_arg_error(aTHX_ "need_score");
21129 }
21130 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
21131  
21132 /* Execute */
21133 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Make_Matcher);
21134 0 retval = method(arg_self, arg_reader, arg_need_score);
21135 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21136 0 CFISH_DECREF(retval);
21137 0 sv_2mortal( ST(0) );
21138 0 XSRETURN(1);
21139 }
21140  
21141 XS_INTERNAL(XS_Lucy_Search_Compiler_get_weight);
21142 0 XS_INTERNAL(XS_Lucy_Search_Compiler_get_weight) {
21143 0 dXSARGS;
21144 lucy_Compiler* arg_self;
21145 LUCY_Compiler_Get_Weight_t method;
21146 float retval;
21147  
21148 CFISH_UNUSED_VAR(cv);
21149 0 SP -= items;
21150 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21151 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21152 }
21153  
21154 /* Extract vars from Perl stack. */
21155 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21156  
21157 /* Execute */
21158 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Get_Weight);
21159 0 retval = method(arg_self);
21160 0 ST(0) = newSVnv(retval);
21161 0 sv_2mortal( ST(0) );
21162 0 XSRETURN(1);
21163 }
21164  
21165 XS_INTERNAL(XS_Lucy_Search_Compiler_get_similarity);
21166 0 XS_INTERNAL(XS_Lucy_Search_Compiler_get_similarity) {
21167 0 dXSARGS;
21168 lucy_Compiler* arg_self;
21169 LUCY_Compiler_Get_Similarity_t method;
21170 lucy_Similarity* retval;
21171  
21172 CFISH_UNUSED_VAR(cv);
21173 0 SP -= items;
21174 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21175 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21176 }
21177  
21178 /* Extract vars from Perl stack. */
21179 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21180  
21181 /* Execute */
21182 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Get_Similarity);
21183 0 retval = method(arg_self);
21184 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21185 0 sv_2mortal( ST(0) );
21186 0 XSRETURN(1);
21187 }
21188  
21189 XS_INTERNAL(XS_Lucy_Search_Compiler_get_parent);
21190 6 XS_INTERNAL(XS_Lucy_Search_Compiler_get_parent) {
21191 6 dXSARGS;
21192 lucy_Compiler* arg_self;
21193 LUCY_Compiler_Get_Parent_t method;
21194 lucy_Query* retval;
21195  
21196 CFISH_UNUSED_VAR(cv);
21197 6 SP -= items;
21198 6 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 6 6
21199 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21200 }
21201  
21202 /* Extract vars from Perl stack. */
21203 6 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21204  
21205 /* Execute */
21206 6 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Get_Parent);
21207 6 retval = method(arg_self);
21208 6 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21209 6 sv_2mortal( ST(0) );
21210 6 XSRETURN(1);
21211 }
21212  
21213 XS_INTERNAL(XS_Lucy_Search_Compiler_sum_of_squared_weights);
21214 0 XS_INTERNAL(XS_Lucy_Search_Compiler_sum_of_squared_weights) {
21215 0 dXSARGS;
21216 lucy_Compiler* arg_self;
21217 LUCY_Compiler_Sum_Of_Squared_Weights_t method;
21218 float retval;
21219  
21220 CFISH_UNUSED_VAR(cv);
21221 0 SP -= items;
21222 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21223 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21224 }
21225  
21226 /* Extract vars from Perl stack. */
21227 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21228  
21229 /* Execute */
21230 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Sum_Of_Squared_Weights);
21231 0 retval = method(arg_self);
21232 0 ST(0) = newSVnv(retval);
21233 0 sv_2mortal( ST(0) );
21234 0 XSRETURN(1);
21235 }
21236  
21237 XS_INTERNAL(XS_Lucy_Search_Compiler_apply_norm_factor);
21238 500 XS_INTERNAL(XS_Lucy_Search_Compiler_apply_norm_factor) {
21239 500 dXSARGS;
21240 SV *sv;
21241 lucy_Compiler* arg_self;
21242 float arg_factor;
21243 LUCY_Compiler_Apply_Norm_Factor_t method;
21244  
21245 CFISH_UNUSED_VAR(cv);
21246 500 SP -= items;
21247 500 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 500 500
21248 0 XSBind_invalid_args_error(aTHX_ cv, "self, factor");
21249 }
21250  
21251 /* Extract vars from Perl stack. */
21252 500 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21253 500 sv = ST(1);
21254 500 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 500 500
21255 0 XSBind_undef_arg_error(aTHX_ "factor");
21256 }
21257 500 arg_factor = (float)SvNV(sv);
21258  
21259 /* Execute */
21260 500 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Apply_Norm_Factor);
21261 500 method(arg_self, arg_factor);
21262 500 XSRETURN(0);
21263 }
21264  
21265 XS_INTERNAL(XS_Lucy_Search_Compiler_normalize);
21266 0 XS_INTERNAL(XS_Lucy_Search_Compiler_normalize) {
21267 0 dXSARGS;
21268 lucy_Compiler* arg_self;
21269 LUCY_Compiler_Normalize_t method;
21270  
21271 CFISH_UNUSED_VAR(cv);
21272 0 SP -= items;
21273 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21274 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21275 }
21276  
21277 /* Extract vars from Perl stack. */
21278 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21279  
21280 /* Execute */
21281 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Normalize);
21282 0 method(arg_self);
21283 0 XSRETURN(0);
21284 }
21285  
21286 XS_INTERNAL(XS_Lucy_Search_Compiler_highlight_spans);
21287 0 XS_INTERNAL(XS_Lucy_Search_Compiler_highlight_spans) {
21288 0 dXSARGS;
21289 static const XSBind_ParamSpec param_specs[3] = {
21290 XSBIND_PARAM("searcher", 1),
21291 XSBIND_PARAM("doc_vec", 1),
21292 XSBIND_PARAM("field", 1)
21293 };
21294 int32_t locations[3];
21295 SV *sv;
21296 lucy_Compiler* arg_self;
21297 lucy_Searcher* arg_searcher;
21298 lucy_DocVector* arg_doc_vec;
21299 cfish_String* arg_field;
21300 LUCY_Compiler_Highlight_Spans_t method;
21301 cfish_Vector* retval;
21302  
21303 CFISH_UNUSED_VAR(cv);
21304 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21305 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
21306 }
21307 0 SP -= items;
21308  
21309 /* Locate args on Perl stack. */
21310 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21311 locations, 3);
21312 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21313 0 sv = ST(locations[0]);
21314 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
21315 0 sv = ST(locations[1]);
21316 0 arg_doc_vec = (lucy_DocVector*)XSBind_arg_to_cfish(aTHX_ sv, "doc_vec", LUCY_DOCVECTOR, NULL);
21317 0 sv = ST(locations[2]);
21318 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
21319  
21320 /* Execute */
21321 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Highlight_Spans);
21322 0 retval = method(arg_self, arg_searcher, arg_doc_vec, arg_field);
21323 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21324 0 CFISH_DECREF(retval);
21325 0 sv_2mortal( ST(0) );
21326 0 XSRETURN(1);
21327 }
21328  
21329 XS_INTERNAL(XS_Lucy_Search_Compiler_serialize);
21330 0 XS_INTERNAL(XS_Lucy_Search_Compiler_serialize) {
21331 0 dXSARGS;
21332 SV *sv;
21333 lucy_Compiler* arg_self;
21334 lucy_OutStream* arg_outstream;
21335 LUCY_Compiler_Serialize_t method;
21336  
21337 CFISH_UNUSED_VAR(cv);
21338 0 SP -= items;
21339 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
21340 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
21341 }
21342  
21343 /* Extract vars from Perl stack. */
21344 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21345 0 sv = ST(1);
21346 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
21347  
21348 /* Execute */
21349 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Serialize);
21350 0 method(arg_self, arg_outstream);
21351 0 XSRETURN(0);
21352 }
21353  
21354 XS_INTERNAL(XS_Lucy_Search_Compiler_deserialize);
21355 0 XS_INTERNAL(XS_Lucy_Search_Compiler_deserialize) {
21356 0 dXSARGS;
21357 SV *sv;
21358 lucy_Compiler* arg_self;
21359 lucy_InStream* arg_instream;
21360 LUCY_Compiler_Deserialize_t method;
21361 lucy_Compiler* retval;
21362  
21363 CFISH_UNUSED_VAR(cv);
21364 0 SP -= items;
21365 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
21366 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
21367 }
21368  
21369 /* Extract vars from Perl stack. */
21370 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21371 0 sv = ST(1);
21372 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
21373  
21374 /* Execute */
21375 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Deserialize);
21376 0 arg_self = (lucy_Compiler*)CFISH_INCREF(arg_self);
21377 0 retval = method(arg_self, arg_instream);
21378 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21379 0 CFISH_DECREF(retval);
21380 0 sv_2mortal( ST(0) );
21381 0 XSRETURN(1);
21382 }
21383  
21384 XS_INTERNAL(XS_Lucy_Search_Compiler_equals);
21385 26 XS_INTERNAL(XS_Lucy_Search_Compiler_equals) {
21386 26 dXSARGS;
21387 SV *sv;
21388 lucy_Compiler* arg_self;
21389 cfish_Obj* arg_other;
21390 LUCY_Compiler_Equals_t method;
21391 bool retval;
21392  
21393 CFISH_UNUSED_VAR(cv);
21394 26 SP -= items;
21395 26 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 26 26
21396 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
21397 }
21398  
21399 /* Extract vars from Perl stack. */
21400 26 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21401 26 sv = ST(1);
21402 26 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
21403  
21404 /* Execute */
21405 26 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_Equals);
21406 26 retval = method(arg_self, arg_other);
21407 26 ST(0) = newSViv(!!retval);
21408 26 sv_2mortal( ST(0) );
21409 26 XSRETURN(1);
21410 }
21411  
21412 XS_INTERNAL(XS_Lucy_Search_Compiler_to_string);
21413 0 XS_INTERNAL(XS_Lucy_Search_Compiler_to_string) {
21414 0 dXSARGS;
21415 lucy_Compiler* arg_self;
21416 LUCY_Compiler_To_String_t method;
21417 cfish_String* retval;
21418  
21419 CFISH_UNUSED_VAR(cv);
21420 0 SP -= items;
21421 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21422 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21423 }
21424  
21425 /* Extract vars from Perl stack. */
21426 0 arg_self = (lucy_Compiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPILER, NULL);
21427  
21428 /* Execute */
21429 0 method = CFISH_METHOD_PTR(LUCY_COMPILER, LUCY_Compiler_To_String);
21430 0 retval = method(arg_self);
21431 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21432 0 CFISH_DECREF(retval);
21433 0 sv_2mortal( ST(0) );
21434 0 XSRETURN(1);
21435 }
21436  
21437 XS_INTERNAL(XS_Lucy_Search_MatchAllCompiler_new);
21438 0 XS_INTERNAL(XS_Lucy_Search_MatchAllCompiler_new) {
21439 0 dXSARGS;
21440 static const XSBind_ParamSpec param_specs[3] = {
21441 XSBIND_PARAM("parent", 1),
21442 XSBIND_PARAM("searcher", 1),
21443 XSBIND_PARAM("boost", 1)
21444 };
21445 int32_t locations[3];
21446 SV *sv;
21447 lucy_MatchAllCompiler* arg_self;
21448 lucy_MatchAllQuery* arg_parent;
21449 lucy_Searcher* arg_searcher;
21450 float arg_boost;
21451 lucy_MatchAllCompiler* retval;
21452  
21453 CFISH_UNUSED_VAR(cv);
21454 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21455 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
21456 }
21457 0 SP -= items;
21458  
21459 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21460 locations, 3);
21461 0 sv = ST(locations[0]);
21462 0 arg_parent = (lucy_MatchAllQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_MATCHALLQUERY, NULL);
21463 0 sv = ST(locations[1]);
21464 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
21465 0 sv = ST(locations[2]);
21466 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21467 0 XSBind_undef_arg_error(aTHX_ "boost");
21468 }
21469 0 arg_boost = (float)SvNV(sv);
21470 0 arg_self = (lucy_MatchAllCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
21471  
21472 0 retval = lucy_MatchAllCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
21473 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
21474 0 XSRETURN(1);
21475 }
21476  
21477  
21478 XS_INTERNAL(XS_Lucy_Search_MatchAllCompiler_make_matcher);
21479 0 XS_INTERNAL(XS_Lucy_Search_MatchAllCompiler_make_matcher) {
21480 0 dXSARGS;
21481 static const XSBind_ParamSpec param_specs[2] = {
21482 XSBIND_PARAM("reader", 1),
21483 XSBIND_PARAM("need_score", 1)
21484 };
21485 int32_t locations[2];
21486 SV *sv;
21487 lucy_MatchAllCompiler* arg_self;
21488 lucy_SegReader* arg_reader;
21489 bool arg_need_score;
21490 LUCY_MatchAllCompiler_Make_Matcher_t method;
21491 lucy_Matcher* retval;
21492  
21493 CFISH_UNUSED_VAR(cv);
21494 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21495 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
21496 }
21497 0 SP -= items;
21498  
21499 /* Locate args on Perl stack. */
21500 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21501 locations, 2);
21502 0 arg_self = (lucy_MatchAllCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHALLCOMPILER, NULL);
21503 0 sv = ST(locations[0]);
21504 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
21505 0 sv = ST(locations[1]);
21506 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21507 0 XSBind_undef_arg_error(aTHX_ "need_score");
21508 }
21509 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
21510  
21511 /* Execute */
21512 0 method = CFISH_METHOD_PTR(LUCY_MATCHALLCOMPILER, LUCY_MatchAllCompiler_Make_Matcher);
21513 0 retval = method(arg_self, arg_reader, arg_need_score);
21514 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21515 0 CFISH_DECREF(retval);
21516 0 sv_2mortal( ST(0) );
21517 0 XSRETURN(1);
21518 }
21519  
21520 XS_INTERNAL(XS_Lucy_Search_NoMatchCompiler_new);
21521 0 XS_INTERNAL(XS_Lucy_Search_NoMatchCompiler_new) {
21522 0 dXSARGS;
21523 static const XSBind_ParamSpec param_specs[3] = {
21524 XSBIND_PARAM("parent", 1),
21525 XSBIND_PARAM("searcher", 1),
21526 XSBIND_PARAM("boost", 1)
21527 };
21528 int32_t locations[3];
21529 SV *sv;
21530 lucy_NoMatchCompiler* arg_self;
21531 lucy_NoMatchQuery* arg_parent;
21532 lucy_Searcher* arg_searcher;
21533 float arg_boost;
21534 lucy_NoMatchCompiler* retval;
21535  
21536 CFISH_UNUSED_VAR(cv);
21537 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21538 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
21539 }
21540 0 SP -= items;
21541  
21542 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21543 locations, 3);
21544 0 sv = ST(locations[0]);
21545 0 arg_parent = (lucy_NoMatchQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_NOMATCHQUERY, NULL);
21546 0 sv = ST(locations[1]);
21547 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
21548 0 sv = ST(locations[2]);
21549 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21550 0 XSBind_undef_arg_error(aTHX_ "boost");
21551 }
21552 0 arg_boost = (float)SvNV(sv);
21553 0 arg_self = (lucy_NoMatchCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
21554  
21555 0 retval = lucy_NoMatchCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
21556 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
21557 0 XSRETURN(1);
21558 }
21559  
21560  
21561 XS_INTERNAL(XS_Lucy_Search_NoMatchCompiler_make_matcher);
21562 0 XS_INTERNAL(XS_Lucy_Search_NoMatchCompiler_make_matcher) {
21563 0 dXSARGS;
21564 static const XSBind_ParamSpec param_specs[2] = {
21565 XSBIND_PARAM("reader", 1),
21566 XSBIND_PARAM("need_score", 1)
21567 };
21568 int32_t locations[2];
21569 SV *sv;
21570 lucy_NoMatchCompiler* arg_self;
21571 lucy_SegReader* arg_reader;
21572 bool arg_need_score;
21573 LUCY_NoMatchCompiler_Make_Matcher_t method;
21574 lucy_Matcher* retval;
21575  
21576 CFISH_UNUSED_VAR(cv);
21577 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21578 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
21579 }
21580 0 SP -= items;
21581  
21582 /* Locate args on Perl stack. */
21583 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21584 locations, 2);
21585 0 arg_self = (lucy_NoMatchCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHCOMPILER, NULL);
21586 0 sv = ST(locations[0]);
21587 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
21588 0 sv = ST(locations[1]);
21589 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21590 0 XSBind_undef_arg_error(aTHX_ "need_score");
21591 }
21592 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
21593  
21594 /* Execute */
21595 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHCOMPILER, LUCY_NoMatchCompiler_Make_Matcher);
21596 0 retval = method(arg_self, arg_reader, arg_need_score);
21597 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21598 0 CFISH_DECREF(retval);
21599 0 sv_2mortal( ST(0) );
21600 0 XSRETURN(1);
21601 }
21602  
21603 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_do_new);
21604 0 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_do_new) {
21605 0 dXSARGS;
21606 static const XSBind_ParamSpec param_specs[3] = {
21607 XSBIND_PARAM("parent", 1),
21608 XSBIND_PARAM("searcher", 1),
21609 XSBIND_PARAM("boost", 1)
21610 };
21611 int32_t locations[3];
21612 SV *sv;
21613 lucy_PhraseCompiler* arg_self;
21614 lucy_PhraseQuery* arg_parent;
21615 lucy_Searcher* arg_searcher;
21616 float arg_boost;
21617 lucy_PhraseCompiler* retval;
21618  
21619 CFISH_UNUSED_VAR(cv);
21620 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21621 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
21622 }
21623 0 SP -= items;
21624  
21625 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21626 locations, 3);
21627 0 sv = ST(locations[0]);
21628 0 arg_parent = (lucy_PhraseQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_PHRASEQUERY, NULL);
21629 0 sv = ST(locations[1]);
21630 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
21631 0 sv = ST(locations[2]);
21632 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21633 0 XSBind_undef_arg_error(aTHX_ "boost");
21634 }
21635 0 arg_boost = (float)SvNV(sv);
21636 0 arg_self = (lucy_PhraseCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
21637  
21638 0 retval = lucy_PhraseCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
21639 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
21640 0 XSRETURN(1);
21641 }
21642  
21643  
21644 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_make_matcher);
21645 0 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_make_matcher) {
21646 0 dXSARGS;
21647 static const XSBind_ParamSpec param_specs[2] = {
21648 XSBIND_PARAM("reader", 1),
21649 XSBIND_PARAM("need_score", 1)
21650 };
21651 int32_t locations[2];
21652 SV *sv;
21653 lucy_PhraseCompiler* arg_self;
21654 lucy_SegReader* arg_reader;
21655 bool arg_need_score;
21656 LUCY_PhraseCompiler_Make_Matcher_t method;
21657 lucy_Matcher* retval;
21658  
21659 CFISH_UNUSED_VAR(cv);
21660 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21661 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
21662 }
21663 0 SP -= items;
21664  
21665 /* Locate args on Perl stack. */
21666 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21667 locations, 2);
21668 0 arg_self = (lucy_PhraseCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASECOMPILER, NULL);
21669 0 sv = ST(locations[0]);
21670 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
21671 0 sv = ST(locations[1]);
21672 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21673 0 XSBind_undef_arg_error(aTHX_ "need_score");
21674 }
21675 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
21676  
21677 /* Execute */
21678 0 method = CFISH_METHOD_PTR(LUCY_PHRASECOMPILER, LUCY_PhraseCompiler_Make_Matcher);
21679 0 retval = method(arg_self, arg_reader, arg_need_score);
21680 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21681 0 CFISH_DECREF(retval);
21682 0 sv_2mortal( ST(0) );
21683 0 XSRETURN(1);
21684 }
21685  
21686 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_get_weight);
21687 0 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_get_weight) {
21688 0 dXSARGS;
21689 lucy_PhraseCompiler* arg_self;
21690 LUCY_PhraseCompiler_Get_Weight_t method;
21691 float retval;
21692  
21693 CFISH_UNUSED_VAR(cv);
21694 0 SP -= items;
21695 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21696 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21697 }
21698  
21699 /* Extract vars from Perl stack. */
21700 0 arg_self = (lucy_PhraseCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASECOMPILER, NULL);
21701  
21702 /* Execute */
21703 0 method = CFISH_METHOD_PTR(LUCY_PHRASECOMPILER, LUCY_PhraseCompiler_Get_Weight);
21704 0 retval = method(arg_self);
21705 0 ST(0) = newSVnv(retval);
21706 0 sv_2mortal( ST(0) );
21707 0 XSRETURN(1);
21708 }
21709  
21710 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_sum_of_squared_weights);
21711 0 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_sum_of_squared_weights) {
21712 0 dXSARGS;
21713 lucy_PhraseCompiler* arg_self;
21714 LUCY_PhraseCompiler_Sum_Of_Squared_Weights_t method;
21715 float retval;
21716  
21717 CFISH_UNUSED_VAR(cv);
21718 0 SP -= items;
21719 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21720 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21721 }
21722  
21723 /* Extract vars from Perl stack. */
21724 0 arg_self = (lucy_PhraseCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASECOMPILER, NULL);
21725  
21726 /* Execute */
21727 0 method = CFISH_METHOD_PTR(LUCY_PHRASECOMPILER, LUCY_PhraseCompiler_Sum_Of_Squared_Weights);
21728 0 retval = method(arg_self);
21729 0 ST(0) = newSVnv(retval);
21730 0 sv_2mortal( ST(0) );
21731 0 XSRETURN(1);
21732 }
21733  
21734 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_apply_norm_factor);
21735 0 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_apply_norm_factor) {
21736 0 dXSARGS;
21737 SV *sv;
21738 lucy_PhraseCompiler* arg_self;
21739 float arg_factor;
21740 LUCY_PhraseCompiler_Apply_Norm_Factor_t method;
21741  
21742 CFISH_UNUSED_VAR(cv);
21743 0 SP -= items;
21744 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
21745 0 XSBind_invalid_args_error(aTHX_ cv, "self, factor");
21746 }
21747  
21748 /* Extract vars from Perl stack. */
21749 0 arg_self = (lucy_PhraseCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASECOMPILER, NULL);
21750 0 sv = ST(1);
21751 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21752 0 XSBind_undef_arg_error(aTHX_ "factor");
21753 }
21754 0 arg_factor = (float)SvNV(sv);
21755  
21756 /* Execute */
21757 0 method = CFISH_METHOD_PTR(LUCY_PHRASECOMPILER, LUCY_PhraseCompiler_Apply_Norm_Factor);
21758 0 method(arg_self, arg_factor);
21759 0 XSRETURN(0);
21760 }
21761  
21762 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_highlight_spans);
21763 0 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_highlight_spans) {
21764 0 dXSARGS;
21765 static const XSBind_ParamSpec param_specs[3] = {
21766 XSBIND_PARAM("searcher", 1),
21767 XSBIND_PARAM("doc_vec", 1),
21768 XSBIND_PARAM("field", 1)
21769 };
21770 int32_t locations[3];
21771 SV *sv;
21772 lucy_PhraseCompiler* arg_self;
21773 lucy_Searcher* arg_searcher;
21774 lucy_DocVector* arg_doc_vec;
21775 cfish_String* arg_field;
21776 LUCY_PhraseCompiler_Highlight_Spans_t method;
21777 cfish_Vector* retval;
21778  
21779 CFISH_UNUSED_VAR(cv);
21780 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21781 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
21782 }
21783 0 SP -= items;
21784  
21785 /* Locate args on Perl stack. */
21786 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21787 locations, 3);
21788 0 arg_self = (lucy_PhraseCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASECOMPILER, NULL);
21789 0 sv = ST(locations[0]);
21790 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
21791 0 sv = ST(locations[1]);
21792 0 arg_doc_vec = (lucy_DocVector*)XSBind_arg_to_cfish(aTHX_ sv, "doc_vec", LUCY_DOCVECTOR, NULL);
21793 0 sv = ST(locations[2]);
21794 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
21795  
21796 /* Execute */
21797 0 method = CFISH_METHOD_PTR(LUCY_PHRASECOMPILER, LUCY_PhraseCompiler_Highlight_Spans);
21798 0 retval = method(arg_self, arg_searcher, arg_doc_vec, arg_field);
21799 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21800 0 CFISH_DECREF(retval);
21801 0 sv_2mortal( ST(0) );
21802 0 XSRETURN(1);
21803 }
21804  
21805 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_equals);
21806 1 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_equals) {
21807 1 dXSARGS;
21808 SV *sv;
21809 lucy_PhraseCompiler* arg_self;
21810 cfish_Obj* arg_other;
21811 LUCY_PhraseCompiler_Equals_t method;
21812 bool retval;
21813  
21814 CFISH_UNUSED_VAR(cv);
21815 1 SP -= items;
21816 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
21817 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
21818 }
21819  
21820 /* Extract vars from Perl stack. */
21821 1 arg_self = (lucy_PhraseCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASECOMPILER, NULL);
21822 1 sv = ST(1);
21823 1 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
21824  
21825 /* Execute */
21826 1 method = CFISH_METHOD_PTR(LUCY_PHRASECOMPILER, LUCY_PhraseCompiler_Equals);
21827 1 retval = method(arg_self, arg_other);
21828 1 ST(0) = newSViv(!!retval);
21829 1 sv_2mortal( ST(0) );
21830 1 XSRETURN(1);
21831 }
21832  
21833 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_serialize);
21834 0 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_serialize) {
21835 0 dXSARGS;
21836 SV *sv;
21837 lucy_PhraseCompiler* arg_self;
21838 lucy_OutStream* arg_outstream;
21839 LUCY_PhraseCompiler_Serialize_t method;
21840  
21841 CFISH_UNUSED_VAR(cv);
21842 0 SP -= items;
21843 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
21844 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
21845 }
21846  
21847 /* Extract vars from Perl stack. */
21848 0 arg_self = (lucy_PhraseCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASECOMPILER, NULL);
21849 0 sv = ST(1);
21850 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
21851  
21852 /* Execute */
21853 0 method = CFISH_METHOD_PTR(LUCY_PHRASECOMPILER, LUCY_PhraseCompiler_Serialize);
21854 0 method(arg_self, arg_outstream);
21855 0 XSRETURN(0);
21856 }
21857  
21858 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_deserialize);
21859 0 XS_INTERNAL(XS_Lucy_Search_PhraseCompiler_deserialize) {
21860 0 dXSARGS;
21861 SV *sv;
21862 lucy_PhraseCompiler* arg_self;
21863 lucy_InStream* arg_instream;
21864 LUCY_PhraseCompiler_Deserialize_t method;
21865 lucy_PhraseCompiler* retval;
21866  
21867 CFISH_UNUSED_VAR(cv);
21868 0 SP -= items;
21869 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
21870 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
21871 }
21872  
21873 /* Extract vars from Perl stack. */
21874 0 arg_self = (lucy_PhraseCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASECOMPILER, NULL);
21875 0 sv = ST(1);
21876 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
21877  
21878 /* Execute */
21879 0 method = CFISH_METHOD_PTR(LUCY_PHRASECOMPILER, LUCY_PhraseCompiler_Deserialize);
21880 0 arg_self = (lucy_PhraseCompiler*)CFISH_INCREF(arg_self);
21881 0 retval = method(arg_self, arg_instream);
21882 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
21883 0 CFISH_DECREF(retval);
21884 0 sv_2mortal( ST(0) );
21885 0 XSRETURN(1);
21886 }
21887  
21888 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_new);
21889 0 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_new) {
21890 0 dXSARGS;
21891 static const XSBind_ParamSpec param_specs[3] = {
21892 XSBIND_PARAM("parent", 1),
21893 XSBIND_PARAM("searcher", 1),
21894 XSBIND_PARAM("boost", 1)
21895 };
21896 int32_t locations[3];
21897 SV *sv;
21898 lucy_PolyCompiler* arg_self;
21899 lucy_PolyQuery* arg_parent;
21900 lucy_Searcher* arg_searcher;
21901 float arg_boost;
21902 lucy_PolyCompiler* retval;
21903  
21904 CFISH_UNUSED_VAR(cv);
21905 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
21906 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
21907 }
21908 0 SP -= items;
21909  
21910 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
21911 locations, 3);
21912 0 sv = ST(locations[0]);
21913 0 arg_parent = (lucy_PolyQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_POLYQUERY, NULL);
21914 0 sv = ST(locations[1]);
21915 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
21916 0 sv = ST(locations[2]);
21917 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21918 0 XSBind_undef_arg_error(aTHX_ "boost");
21919 }
21920 0 arg_boost = (float)SvNV(sv);
21921 0 arg_self = (lucy_PolyCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
21922  
21923 0 retval = lucy_PolyCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
21924 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
21925 0 XSRETURN(1);
21926 }
21927  
21928  
21929 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_sum_of_squared_weights);
21930 0 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_sum_of_squared_weights) {
21931 0 dXSARGS;
21932 lucy_PolyCompiler* arg_self;
21933 LUCY_PolyCompiler_Sum_Of_Squared_Weights_t method;
21934 float retval;
21935  
21936 CFISH_UNUSED_VAR(cv);
21937 0 SP -= items;
21938 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
21939 0 XSBind_invalid_args_error(aTHX_ cv, "self");
21940 }
21941  
21942 /* Extract vars from Perl stack. */
21943 0 arg_self = (lucy_PolyCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYCOMPILER, NULL);
21944  
21945 /* Execute */
21946 0 method = CFISH_METHOD_PTR(LUCY_POLYCOMPILER, LUCY_PolyCompiler_Sum_Of_Squared_Weights);
21947 0 retval = method(arg_self);
21948 0 ST(0) = newSVnv(retval);
21949 0 sv_2mortal( ST(0) );
21950 0 XSRETURN(1);
21951 }
21952  
21953 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_apply_norm_factor);
21954 0 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_apply_norm_factor) {
21955 0 dXSARGS;
21956 SV *sv;
21957 lucy_PolyCompiler* arg_self;
21958 float arg_factor;
21959 LUCY_PolyCompiler_Apply_Norm_Factor_t method;
21960  
21961 CFISH_UNUSED_VAR(cv);
21962 0 SP -= items;
21963 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
21964 0 XSBind_invalid_args_error(aTHX_ cv, "self, factor");
21965 }
21966  
21967 /* Extract vars from Perl stack. */
21968 0 arg_self = (lucy_PolyCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYCOMPILER, NULL);
21969 0 sv = ST(1);
21970 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
21971 0 XSBind_undef_arg_error(aTHX_ "factor");
21972 }
21973 0 arg_factor = (float)SvNV(sv);
21974  
21975 /* Execute */
21976 0 method = CFISH_METHOD_PTR(LUCY_POLYCOMPILER, LUCY_PolyCompiler_Apply_Norm_Factor);
21977 0 method(arg_self, arg_factor);
21978 0 XSRETURN(0);
21979 }
21980  
21981 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_highlight_spans);
21982 0 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_highlight_spans) {
21983 0 dXSARGS;
21984 static const XSBind_ParamSpec param_specs[3] = {
21985 XSBIND_PARAM("searcher", 1),
21986 XSBIND_PARAM("doc_vec", 1),
21987 XSBIND_PARAM("field", 1)
21988 };
21989 int32_t locations[3];
21990 SV *sv;
21991 lucy_PolyCompiler* arg_self;
21992 lucy_Searcher* arg_searcher;
21993 lucy_DocVector* arg_doc_vec;
21994 cfish_String* arg_field;
21995 LUCY_PolyCompiler_Highlight_Spans_t method;
21996 cfish_Vector* retval;
21997  
21998 CFISH_UNUSED_VAR(cv);
21999 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22000 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22001 }
22002 0 SP -= items;
22003  
22004 /* Locate args on Perl stack. */
22005 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22006 locations, 3);
22007 0 arg_self = (lucy_PolyCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYCOMPILER, NULL);
22008 0 sv = ST(locations[0]);
22009 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22010 0 sv = ST(locations[1]);
22011 0 arg_doc_vec = (lucy_DocVector*)XSBind_arg_to_cfish(aTHX_ sv, "doc_vec", LUCY_DOCVECTOR, NULL);
22012 0 sv = ST(locations[2]);
22013 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
22014  
22015 /* Execute */
22016 0 method = CFISH_METHOD_PTR(LUCY_POLYCOMPILER, LUCY_PolyCompiler_Highlight_Spans);
22017 0 retval = method(arg_self, arg_searcher, arg_doc_vec, arg_field);
22018 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22019 0 CFISH_DECREF(retval);
22020 0 sv_2mortal( ST(0) );
22021 0 XSRETURN(1);
22022 }
22023  
22024 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_serialize);
22025 0 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_serialize) {
22026 0 dXSARGS;
22027 SV *sv;
22028 lucy_PolyCompiler* arg_self;
22029 lucy_OutStream* arg_outstream;
22030 LUCY_PolyCompiler_Serialize_t method;
22031  
22032 CFISH_UNUSED_VAR(cv);
22033 0 SP -= items;
22034 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
22035 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
22036 }
22037  
22038 /* Extract vars from Perl stack. */
22039 0 arg_self = (lucy_PolyCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYCOMPILER, NULL);
22040 0 sv = ST(1);
22041 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
22042  
22043 /* Execute */
22044 0 method = CFISH_METHOD_PTR(LUCY_POLYCOMPILER, LUCY_PolyCompiler_Serialize);
22045 0 method(arg_self, arg_outstream);
22046 0 XSRETURN(0);
22047 }
22048  
22049 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_deserialize);
22050 0 XS_INTERNAL(XS_Lucy_Search_PolyCompiler_deserialize) {
22051 0 dXSARGS;
22052 SV *sv;
22053 lucy_PolyCompiler* arg_self;
22054 lucy_InStream* arg_instream;
22055 LUCY_PolyCompiler_Deserialize_t method;
22056 lucy_PolyCompiler* retval;
22057  
22058 CFISH_UNUSED_VAR(cv);
22059 0 SP -= items;
22060 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
22061 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
22062 }
22063  
22064 /* Extract vars from Perl stack. */
22065 0 arg_self = (lucy_PolyCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYCOMPILER, NULL);
22066 0 sv = ST(1);
22067 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
22068  
22069 /* Execute */
22070 0 method = CFISH_METHOD_PTR(LUCY_POLYCOMPILER, LUCY_PolyCompiler_Deserialize);
22071 0 arg_self = (lucy_PolyCompiler*)CFISH_INCREF(arg_self);
22072 0 retval = method(arg_self, arg_instream);
22073 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22074 0 CFISH_DECREF(retval);
22075 0 sv_2mortal( ST(0) );
22076 0 XSRETURN(1);
22077 }
22078  
22079 XS_INTERNAL(XS_Lucy_Search_ANDCompiler_new);
22080 0 XS_INTERNAL(XS_Lucy_Search_ANDCompiler_new) {
22081 0 dXSARGS;
22082 static const XSBind_ParamSpec param_specs[3] = {
22083 XSBIND_PARAM("parent", 1),
22084 XSBIND_PARAM("searcher", 1),
22085 XSBIND_PARAM("boost", 1)
22086 };
22087 int32_t locations[3];
22088 SV *sv;
22089 lucy_ANDCompiler* arg_self;
22090 lucy_ANDQuery* arg_parent;
22091 lucy_Searcher* arg_searcher;
22092 float arg_boost;
22093 lucy_ANDCompiler* retval;
22094  
22095 CFISH_UNUSED_VAR(cv);
22096 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22097 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
22098 }
22099 0 SP -= items;
22100  
22101 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22102 locations, 3);
22103 0 sv = ST(locations[0]);
22104 0 arg_parent = (lucy_ANDQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_ANDQUERY, NULL);
22105 0 sv = ST(locations[1]);
22106 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22107 0 sv = ST(locations[2]);
22108 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22109 0 XSBind_undef_arg_error(aTHX_ "boost");
22110 }
22111 0 arg_boost = (float)SvNV(sv);
22112 0 arg_self = (lucy_ANDCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
22113  
22114 0 retval = lucy_ANDCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
22115 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
22116 0 XSRETURN(1);
22117 }
22118  
22119  
22120 XS_INTERNAL(XS_Lucy_Search_ANDCompiler_make_matcher);
22121 6 XS_INTERNAL(XS_Lucy_Search_ANDCompiler_make_matcher) {
22122 6 dXSARGS;
22123 static const XSBind_ParamSpec param_specs[2] = {
22124 XSBIND_PARAM("reader", 1),
22125 XSBIND_PARAM("need_score", 1)
22126 };
22127 int32_t locations[2];
22128 SV *sv;
22129 lucy_ANDCompiler* arg_self;
22130 lucy_SegReader* arg_reader;
22131 bool arg_need_score;
22132 LUCY_ANDCompiler_Make_Matcher_t method;
22133 lucy_Matcher* retval;
22134  
22135 CFISH_UNUSED_VAR(cv);
22136 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
22137 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22138 }
22139 6 SP -= items;
22140  
22141 /* Locate args on Perl stack. */
22142 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22143 locations, 2);
22144 6 arg_self = (lucy_ANDCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANDCOMPILER, NULL);
22145 6 sv = ST(locations[0]);
22146 6 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
22147 6 sv = ST(locations[1]);
22148 6 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 6 6
22149 0 XSBind_undef_arg_error(aTHX_ "need_score");
22150 }
22151 6 arg_need_score = XSBind_sv_true(aTHX_ sv);
22152  
22153 /* Execute */
22154 6 method = CFISH_METHOD_PTR(LUCY_ANDCOMPILER, LUCY_ANDCompiler_Make_Matcher);
22155 6 retval = method(arg_self, arg_reader, arg_need_score);
22156 6 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22157 6 CFISH_DECREF(retval);
22158 6 sv_2mortal( ST(0) );
22159 6 XSRETURN(1);
22160 }
22161  
22162 XS_INTERNAL(XS_Lucy_Search_NOTCompiler_new);
22163 0 XS_INTERNAL(XS_Lucy_Search_NOTCompiler_new) {
22164 0 dXSARGS;
22165 static const XSBind_ParamSpec param_specs[3] = {
22166 XSBIND_PARAM("parent", 1),
22167 XSBIND_PARAM("searcher", 1),
22168 XSBIND_PARAM("boost", 1)
22169 };
22170 int32_t locations[3];
22171 SV *sv;
22172 lucy_NOTCompiler* arg_self;
22173 lucy_NOTQuery* arg_parent;
22174 lucy_Searcher* arg_searcher;
22175 float arg_boost;
22176 lucy_NOTCompiler* retval;
22177  
22178 CFISH_UNUSED_VAR(cv);
22179 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22180 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
22181 }
22182 0 SP -= items;
22183  
22184 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22185 locations, 3);
22186 0 sv = ST(locations[0]);
22187 0 arg_parent = (lucy_NOTQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_NOTQUERY, NULL);
22188 0 sv = ST(locations[1]);
22189 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22190 0 sv = ST(locations[2]);
22191 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22192 0 XSBind_undef_arg_error(aTHX_ "boost");
22193 }
22194 0 arg_boost = (float)SvNV(sv);
22195 0 arg_self = (lucy_NOTCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
22196  
22197 0 retval = lucy_NOTCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
22198 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
22199 0 XSRETURN(1);
22200 }
22201  
22202  
22203 XS_INTERNAL(XS_Lucy_Search_NOTCompiler_make_matcher);
22204 0 XS_INTERNAL(XS_Lucy_Search_NOTCompiler_make_matcher) {
22205 0 dXSARGS;
22206 static const XSBind_ParamSpec param_specs[2] = {
22207 XSBIND_PARAM("reader", 1),
22208 XSBIND_PARAM("need_score", 1)
22209 };
22210 int32_t locations[2];
22211 SV *sv;
22212 lucy_NOTCompiler* arg_self;
22213 lucy_SegReader* arg_reader;
22214 bool arg_need_score;
22215 LUCY_NOTCompiler_Make_Matcher_t method;
22216 lucy_Matcher* retval;
22217  
22218 CFISH_UNUSED_VAR(cv);
22219 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22220 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22221 }
22222 0 SP -= items;
22223  
22224 /* Locate args on Perl stack. */
22225 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22226 locations, 2);
22227 0 arg_self = (lucy_NOTCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTCOMPILER, NULL);
22228 0 sv = ST(locations[0]);
22229 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
22230 0 sv = ST(locations[1]);
22231 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22232 0 XSBind_undef_arg_error(aTHX_ "need_score");
22233 }
22234 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
22235  
22236 /* Execute */
22237 0 method = CFISH_METHOD_PTR(LUCY_NOTCOMPILER, LUCY_NOTCompiler_Make_Matcher);
22238 0 retval = method(arg_self, arg_reader, arg_need_score);
22239 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22240 0 CFISH_DECREF(retval);
22241 0 sv_2mortal( ST(0) );
22242 0 XSRETURN(1);
22243 }
22244  
22245 XS_INTERNAL(XS_Lucy_Search_NOTCompiler_sum_of_squared_weights);
22246 0 XS_INTERNAL(XS_Lucy_Search_NOTCompiler_sum_of_squared_weights) {
22247 0 dXSARGS;
22248 lucy_NOTCompiler* arg_self;
22249 LUCY_NOTCompiler_Sum_Of_Squared_Weights_t method;
22250 float retval;
22251  
22252 CFISH_UNUSED_VAR(cv);
22253 0 SP -= items;
22254 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
22255 0 XSBind_invalid_args_error(aTHX_ cv, "self");
22256 }
22257  
22258 /* Extract vars from Perl stack. */
22259 0 arg_self = (lucy_NOTCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTCOMPILER, NULL);
22260  
22261 /* Execute */
22262 0 method = CFISH_METHOD_PTR(LUCY_NOTCOMPILER, LUCY_NOTCompiler_Sum_Of_Squared_Weights);
22263 0 retval = method(arg_self);
22264 0 ST(0) = newSVnv(retval);
22265 0 sv_2mortal( ST(0) );
22266 0 XSRETURN(1);
22267 }
22268  
22269 XS_INTERNAL(XS_Lucy_Search_NOTCompiler_highlight_spans);
22270 0 XS_INTERNAL(XS_Lucy_Search_NOTCompiler_highlight_spans) {
22271 0 dXSARGS;
22272 static const XSBind_ParamSpec param_specs[3] = {
22273 XSBIND_PARAM("searcher", 1),
22274 XSBIND_PARAM("doc_vec", 1),
22275 XSBIND_PARAM("field", 1)
22276 };
22277 int32_t locations[3];
22278 SV *sv;
22279 lucy_NOTCompiler* arg_self;
22280 lucy_Searcher* arg_searcher;
22281 lucy_DocVector* arg_doc_vec;
22282 cfish_String* arg_field;
22283 LUCY_NOTCompiler_Highlight_Spans_t method;
22284 cfish_Vector* retval;
22285  
22286 CFISH_UNUSED_VAR(cv);
22287 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22288 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22289 }
22290 0 SP -= items;
22291  
22292 /* Locate args on Perl stack. */
22293 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22294 locations, 3);
22295 0 arg_self = (lucy_NOTCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTCOMPILER, NULL);
22296 0 sv = ST(locations[0]);
22297 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22298 0 sv = ST(locations[1]);
22299 0 arg_doc_vec = (lucy_DocVector*)XSBind_arg_to_cfish(aTHX_ sv, "doc_vec", LUCY_DOCVECTOR, NULL);
22300 0 sv = ST(locations[2]);
22301 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
22302  
22303 /* Execute */
22304 0 method = CFISH_METHOD_PTR(LUCY_NOTCOMPILER, LUCY_NOTCompiler_Highlight_Spans);
22305 0 retval = method(arg_self, arg_searcher, arg_doc_vec, arg_field);
22306 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22307 0 CFISH_DECREF(retval);
22308 0 sv_2mortal( ST(0) );
22309 0 XSRETURN(1);
22310 }
22311  
22312 XS_INTERNAL(XS_Lucy_Search_ORCompiler_new);
22313 0 XS_INTERNAL(XS_Lucy_Search_ORCompiler_new) {
22314 0 dXSARGS;
22315 static const XSBind_ParamSpec param_specs[3] = {
22316 XSBIND_PARAM("parent", 1),
22317 XSBIND_PARAM("searcher", 1),
22318 XSBIND_PARAM("boost", 1)
22319 };
22320 int32_t locations[3];
22321 SV *sv;
22322 lucy_ORCompiler* arg_self;
22323 lucy_ORQuery* arg_parent;
22324 lucy_Searcher* arg_searcher;
22325 float arg_boost;
22326 lucy_ORCompiler* retval;
22327  
22328 CFISH_UNUSED_VAR(cv);
22329 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22330 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
22331 }
22332 0 SP -= items;
22333  
22334 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22335 locations, 3);
22336 0 sv = ST(locations[0]);
22337 0 arg_parent = (lucy_ORQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_ORQUERY, NULL);
22338 0 sv = ST(locations[1]);
22339 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22340 0 sv = ST(locations[2]);
22341 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22342 0 XSBind_undef_arg_error(aTHX_ "boost");
22343 }
22344 0 arg_boost = (float)SvNV(sv);
22345 0 arg_self = (lucy_ORCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
22346  
22347 0 retval = lucy_ORCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
22348 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
22349 0 XSRETURN(1);
22350 }
22351  
22352  
22353 XS_INTERNAL(XS_Lucy_Search_ORCompiler_make_matcher);
22354 3 XS_INTERNAL(XS_Lucy_Search_ORCompiler_make_matcher) {
22355 3 dXSARGS;
22356 static const XSBind_ParamSpec param_specs[2] = {
22357 XSBIND_PARAM("reader", 1),
22358 XSBIND_PARAM("need_score", 1)
22359 };
22360 int32_t locations[2];
22361 SV *sv;
22362 lucy_ORCompiler* arg_self;
22363 lucy_SegReader* arg_reader;
22364 bool arg_need_score;
22365 LUCY_ORCompiler_Make_Matcher_t method;
22366 lucy_Matcher* retval;
22367  
22368 CFISH_UNUSED_VAR(cv);
22369 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
22370 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22371 }
22372 3 SP -= items;
22373  
22374 /* Locate args on Perl stack. */
22375 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22376 locations, 2);
22377 3 arg_self = (lucy_ORCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORCOMPILER, NULL);
22378 3 sv = ST(locations[0]);
22379 3 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
22380 3 sv = ST(locations[1]);
22381 3 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 3 3
22382 0 XSBind_undef_arg_error(aTHX_ "need_score");
22383 }
22384 3 arg_need_score = XSBind_sv_true(aTHX_ sv);
22385  
22386 /* Execute */
22387 3 method = CFISH_METHOD_PTR(LUCY_ORCOMPILER, LUCY_ORCompiler_Make_Matcher);
22388 3 retval = method(arg_self, arg_reader, arg_need_score);
22389 3 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22390 3 CFISH_DECREF(retval);
22391 3 sv_2mortal( ST(0) );
22392 3 XSRETURN(1);
22393 }
22394  
22395 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalCompiler_new);
22396 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalCompiler_new) {
22397 0 dXSARGS;
22398 static const XSBind_ParamSpec param_specs[3] = {
22399 XSBIND_PARAM("parent", 1),
22400 XSBIND_PARAM("searcher", 1),
22401 XSBIND_PARAM("boost", 1)
22402 };
22403 int32_t locations[3];
22404 SV *sv;
22405 lucy_RequiredOptionalCompiler* arg_self;
22406 lucy_RequiredOptionalQuery* arg_parent;
22407 lucy_Searcher* arg_searcher;
22408 float arg_boost;
22409 lucy_RequiredOptionalCompiler* retval;
22410  
22411 CFISH_UNUSED_VAR(cv);
22412 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22413 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
22414 }
22415 0 SP -= items;
22416  
22417 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22418 locations, 3);
22419 0 sv = ST(locations[0]);
22420 0 arg_parent = (lucy_RequiredOptionalQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_REQUIREDOPTIONALQUERY, NULL);
22421 0 sv = ST(locations[1]);
22422 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22423 0 sv = ST(locations[2]);
22424 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22425 0 XSBind_undef_arg_error(aTHX_ "boost");
22426 }
22427 0 arg_boost = (float)SvNV(sv);
22428 0 arg_self = (lucy_RequiredOptionalCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
22429  
22430 0 retval = lucy_ReqOptCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
22431 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
22432 0 XSRETURN(1);
22433 }
22434  
22435  
22436 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalCompiler_make_matcher);
22437 2 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalCompiler_make_matcher) {
22438 2 dXSARGS;
22439 static const XSBind_ParamSpec param_specs[2] = {
22440 XSBIND_PARAM("reader", 1),
22441 XSBIND_PARAM("need_score", 1)
22442 };
22443 int32_t locations[2];
22444 SV *sv;
22445 lucy_RequiredOptionalCompiler* arg_self;
22446 lucy_SegReader* arg_reader;
22447 bool arg_need_score;
22448 LUCY_ReqOptCompiler_Make_Matcher_t method;
22449 lucy_Matcher* retval;
22450  
22451 CFISH_UNUSED_VAR(cv);
22452 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
22453 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22454 }
22455 2 SP -= items;
22456  
22457 /* Locate args on Perl stack. */
22458 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22459 locations, 2);
22460 2 arg_self = (lucy_RequiredOptionalCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALCOMPILER, NULL);
22461 2 sv = ST(locations[0]);
22462 2 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
22463 2 sv = ST(locations[1]);
22464 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
22465 0 XSBind_undef_arg_error(aTHX_ "need_score");
22466 }
22467 2 arg_need_score = XSBind_sv_true(aTHX_ sv);
22468  
22469 /* Execute */
22470 2 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALCOMPILER, LUCY_ReqOptCompiler_Make_Matcher);
22471 2 retval = method(arg_self, arg_reader, arg_need_score);
22472 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22473 2 CFISH_DECREF(retval);
22474 2 sv_2mortal( ST(0) );
22475 2 XSRETURN(1);
22476 }
22477  
22478 XS_INTERNAL(XS_Lucy_Search_RangeCompiler_new);
22479 0 XS_INTERNAL(XS_Lucy_Search_RangeCompiler_new) {
22480 0 dXSARGS;
22481 static const XSBind_ParamSpec param_specs[3] = {
22482 XSBIND_PARAM("parent", 1),
22483 XSBIND_PARAM("searcher", 1),
22484 XSBIND_PARAM("boost", 1)
22485 };
22486 int32_t locations[3];
22487 SV *sv;
22488 lucy_RangeCompiler* arg_self;
22489 lucy_RangeQuery* arg_parent;
22490 lucy_Searcher* arg_searcher;
22491 float arg_boost;
22492 lucy_RangeCompiler* retval;
22493  
22494 CFISH_UNUSED_VAR(cv);
22495 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22496 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
22497 }
22498 0 SP -= items;
22499  
22500 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22501 locations, 3);
22502 0 sv = ST(locations[0]);
22503 0 arg_parent = (lucy_RangeQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_RANGEQUERY, NULL);
22504 0 sv = ST(locations[1]);
22505 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22506 0 sv = ST(locations[2]);
22507 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22508 0 XSBind_undef_arg_error(aTHX_ "boost");
22509 }
22510 0 arg_boost = (float)SvNV(sv);
22511 0 arg_self = (lucy_RangeCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
22512  
22513 0 retval = lucy_RangeCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
22514 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
22515 0 XSRETURN(1);
22516 }
22517  
22518  
22519 XS_INTERNAL(XS_Lucy_Search_RangeCompiler_make_matcher);
22520 0 XS_INTERNAL(XS_Lucy_Search_RangeCompiler_make_matcher) {
22521 0 dXSARGS;
22522 static const XSBind_ParamSpec param_specs[2] = {
22523 XSBIND_PARAM("reader", 1),
22524 XSBIND_PARAM("need_score", 1)
22525 };
22526 int32_t locations[2];
22527 SV *sv;
22528 lucy_RangeCompiler* arg_self;
22529 lucy_SegReader* arg_reader;
22530 bool arg_need_score;
22531 LUCY_RangeCompiler_Make_Matcher_t method;
22532 lucy_Matcher* retval;
22533  
22534 CFISH_UNUSED_VAR(cv);
22535 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22536 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22537 }
22538 0 SP -= items;
22539  
22540 /* Locate args on Perl stack. */
22541 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22542 locations, 2);
22543 0 arg_self = (lucy_RangeCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGECOMPILER, NULL);
22544 0 sv = ST(locations[0]);
22545 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
22546 0 sv = ST(locations[1]);
22547 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22548 0 XSBind_undef_arg_error(aTHX_ "need_score");
22549 }
22550 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
22551  
22552 /* Execute */
22553 0 method = CFISH_METHOD_PTR(LUCY_RANGECOMPILER, LUCY_RangeCompiler_Make_Matcher);
22554 0 retval = method(arg_self, arg_reader, arg_need_score);
22555 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22556 0 CFISH_DECREF(retval);
22557 0 sv_2mortal( ST(0) );
22558 0 XSRETURN(1);
22559 }
22560  
22561 XS_INTERNAL(XS_Lucy_Search_TermCompiler_do_new);
22562 0 XS_INTERNAL(XS_Lucy_Search_TermCompiler_do_new) {
22563 0 dXSARGS;
22564 static const XSBind_ParamSpec param_specs[3] = {
22565 XSBIND_PARAM("parent", 1),
22566 XSBIND_PARAM("searcher", 1),
22567 XSBIND_PARAM("boost", 1)
22568 };
22569 int32_t locations[3];
22570 SV *sv;
22571 lucy_TermCompiler* arg_self;
22572 lucy_Query* arg_parent;
22573 lucy_Searcher* arg_searcher;
22574 float arg_boost;
22575 lucy_TermCompiler* retval;
22576  
22577 CFISH_UNUSED_VAR(cv);
22578 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22579 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
22580 }
22581 0 SP -= items;
22582  
22583 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22584 locations, 3);
22585 0 sv = ST(locations[0]);
22586 0 arg_parent = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_QUERY, NULL);
22587 0 sv = ST(locations[1]);
22588 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22589 0 sv = ST(locations[2]);
22590 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22591 0 XSBind_undef_arg_error(aTHX_ "boost");
22592 }
22593 0 arg_boost = (float)SvNV(sv);
22594 0 arg_self = (lucy_TermCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
22595  
22596 0 retval = lucy_TermCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost);
22597 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
22598 0 XSRETURN(1);
22599 }
22600  
22601  
22602 XS_INTERNAL(XS_Lucy_Search_TermCompiler_make_matcher);
22603 0 XS_INTERNAL(XS_Lucy_Search_TermCompiler_make_matcher) {
22604 0 dXSARGS;
22605 static const XSBind_ParamSpec param_specs[2] = {
22606 XSBIND_PARAM("reader", 1),
22607 XSBIND_PARAM("need_score", 1)
22608 };
22609 int32_t locations[2];
22610 SV *sv;
22611 lucy_TermCompiler* arg_self;
22612 lucy_SegReader* arg_reader;
22613 bool arg_need_score;
22614 LUCY_TermCompiler_Make_Matcher_t method;
22615 lucy_Matcher* retval;
22616  
22617 CFISH_UNUSED_VAR(cv);
22618 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22619 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22620 }
22621 0 SP -= items;
22622  
22623 /* Locate args on Perl stack. */
22624 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22625 locations, 2);
22626 0 arg_self = (lucy_TermCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMCOMPILER, NULL);
22627 0 sv = ST(locations[0]);
22628 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
22629 0 sv = ST(locations[1]);
22630 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22631 0 XSBind_undef_arg_error(aTHX_ "need_score");
22632 }
22633 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
22634  
22635 /* Execute */
22636 0 method = CFISH_METHOD_PTR(LUCY_TERMCOMPILER, LUCY_TermCompiler_Make_Matcher);
22637 0 retval = method(arg_self, arg_reader, arg_need_score);
22638 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22639 0 CFISH_DECREF(retval);
22640 0 sv_2mortal( ST(0) );
22641 0 XSRETURN(1);
22642 }
22643  
22644 XS_INTERNAL(XS_Lucy_Search_TermCompiler_get_weight);
22645 0 XS_INTERNAL(XS_Lucy_Search_TermCompiler_get_weight) {
22646 0 dXSARGS;
22647 lucy_TermCompiler* arg_self;
22648 LUCY_TermCompiler_Get_Weight_t method;
22649 float retval;
22650  
22651 CFISH_UNUSED_VAR(cv);
22652 0 SP -= items;
22653 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
22654 0 XSBind_invalid_args_error(aTHX_ cv, "self");
22655 }
22656  
22657 /* Extract vars from Perl stack. */
22658 0 arg_self = (lucy_TermCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMCOMPILER, NULL);
22659  
22660 /* Execute */
22661 0 method = CFISH_METHOD_PTR(LUCY_TERMCOMPILER, LUCY_TermCompiler_Get_Weight);
22662 0 retval = method(arg_self);
22663 0 ST(0) = newSVnv(retval);
22664 0 sv_2mortal( ST(0) );
22665 0 XSRETURN(1);
22666 }
22667  
22668 XS_INTERNAL(XS_Lucy_Search_TermCompiler_sum_of_squared_weights);
22669 0 XS_INTERNAL(XS_Lucy_Search_TermCompiler_sum_of_squared_weights) {
22670 0 dXSARGS;
22671 lucy_TermCompiler* arg_self;
22672 LUCY_TermCompiler_Sum_Of_Squared_Weights_t method;
22673 float retval;
22674  
22675 CFISH_UNUSED_VAR(cv);
22676 0 SP -= items;
22677 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
22678 0 XSBind_invalid_args_error(aTHX_ cv, "self");
22679 }
22680  
22681 /* Extract vars from Perl stack. */
22682 0 arg_self = (lucy_TermCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMCOMPILER, NULL);
22683  
22684 /* Execute */
22685 0 method = CFISH_METHOD_PTR(LUCY_TERMCOMPILER, LUCY_TermCompiler_Sum_Of_Squared_Weights);
22686 0 retval = method(arg_self);
22687 0 ST(0) = newSVnv(retval);
22688 0 sv_2mortal( ST(0) );
22689 0 XSRETURN(1);
22690 }
22691  
22692 XS_INTERNAL(XS_Lucy_Search_TermCompiler_apply_norm_factor);
22693 0 XS_INTERNAL(XS_Lucy_Search_TermCompiler_apply_norm_factor) {
22694 0 dXSARGS;
22695 SV *sv;
22696 lucy_TermCompiler* arg_self;
22697 float arg_factor;
22698 LUCY_TermCompiler_Apply_Norm_Factor_t method;
22699  
22700 CFISH_UNUSED_VAR(cv);
22701 0 SP -= items;
22702 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
22703 0 XSBind_invalid_args_error(aTHX_ cv, "self, factor");
22704 }
22705  
22706 /* Extract vars from Perl stack. */
22707 0 arg_self = (lucy_TermCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMCOMPILER, NULL);
22708 0 sv = ST(1);
22709 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22710 0 XSBind_undef_arg_error(aTHX_ "factor");
22711 }
22712 0 arg_factor = (float)SvNV(sv);
22713  
22714 /* Execute */
22715 0 method = CFISH_METHOD_PTR(LUCY_TERMCOMPILER, LUCY_TermCompiler_Apply_Norm_Factor);
22716 0 method(arg_self, arg_factor);
22717 0 XSRETURN(0);
22718 }
22719  
22720 XS_INTERNAL(XS_Lucy_Search_TermCompiler_highlight_spans);
22721 0 XS_INTERNAL(XS_Lucy_Search_TermCompiler_highlight_spans) {
22722 0 dXSARGS;
22723 static const XSBind_ParamSpec param_specs[3] = {
22724 XSBIND_PARAM("searcher", 1),
22725 XSBIND_PARAM("doc_vec", 1),
22726 XSBIND_PARAM("field", 1)
22727 };
22728 int32_t locations[3];
22729 SV *sv;
22730 lucy_TermCompiler* arg_self;
22731 lucy_Searcher* arg_searcher;
22732 lucy_DocVector* arg_doc_vec;
22733 cfish_String* arg_field;
22734 LUCY_TermCompiler_Highlight_Spans_t method;
22735 cfish_Vector* retval;
22736  
22737 CFISH_UNUSED_VAR(cv);
22738 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22739 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22740 }
22741 0 SP -= items;
22742  
22743 /* Locate args on Perl stack. */
22744 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22745 locations, 3);
22746 0 arg_self = (lucy_TermCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMCOMPILER, NULL);
22747 0 sv = ST(locations[0]);
22748 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22749 0 sv = ST(locations[1]);
22750 0 arg_doc_vec = (lucy_DocVector*)XSBind_arg_to_cfish(aTHX_ sv, "doc_vec", LUCY_DOCVECTOR, NULL);
22751 0 sv = ST(locations[2]);
22752 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
22753  
22754 /* Execute */
22755 0 method = CFISH_METHOD_PTR(LUCY_TERMCOMPILER, LUCY_TermCompiler_Highlight_Spans);
22756 0 retval = method(arg_self, arg_searcher, arg_doc_vec, arg_field);
22757 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22758 0 CFISH_DECREF(retval);
22759 0 sv_2mortal( ST(0) );
22760 0 XSRETURN(1);
22761 }
22762  
22763 XS_INTERNAL(XS_Lucy_Search_TermCompiler_equals);
22764 1 XS_INTERNAL(XS_Lucy_Search_TermCompiler_equals) {
22765 1 dXSARGS;
22766 SV *sv;
22767 lucy_TermCompiler* arg_self;
22768 cfish_Obj* arg_other;
22769 LUCY_TermCompiler_Equals_t method;
22770 bool retval;
22771  
22772 CFISH_UNUSED_VAR(cv);
22773 1 SP -= items;
22774 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
22775 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
22776 }
22777  
22778 /* Extract vars from Perl stack. */
22779 1 arg_self = (lucy_TermCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMCOMPILER, NULL);
22780 1 sv = ST(1);
22781 1 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
22782  
22783 /* Execute */
22784 1 method = CFISH_METHOD_PTR(LUCY_TERMCOMPILER, LUCY_TermCompiler_Equals);
22785 1 retval = method(arg_self, arg_other);
22786 1 ST(0) = newSViv(!!retval);
22787 1 sv_2mortal( ST(0) );
22788 1 XSRETURN(1);
22789 }
22790  
22791 XS_INTERNAL(XS_Lucy_Search_TermCompiler_serialize);
22792 0 XS_INTERNAL(XS_Lucy_Search_TermCompiler_serialize) {
22793 0 dXSARGS;
22794 SV *sv;
22795 lucy_TermCompiler* arg_self;
22796 lucy_OutStream* arg_outstream;
22797 LUCY_TermCompiler_Serialize_t method;
22798  
22799 CFISH_UNUSED_VAR(cv);
22800 0 SP -= items;
22801 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
22802 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
22803 }
22804  
22805 /* Extract vars from Perl stack. */
22806 0 arg_self = (lucy_TermCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMCOMPILER, NULL);
22807 0 sv = ST(1);
22808 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
22809  
22810 /* Execute */
22811 0 method = CFISH_METHOD_PTR(LUCY_TERMCOMPILER, LUCY_TermCompiler_Serialize);
22812 0 method(arg_self, arg_outstream);
22813 0 XSRETURN(0);
22814 }
22815  
22816 XS_INTERNAL(XS_Lucy_Search_TermCompiler_deserialize);
22817 0 XS_INTERNAL(XS_Lucy_Search_TermCompiler_deserialize) {
22818 0 dXSARGS;
22819 SV *sv;
22820 lucy_TermCompiler* arg_self;
22821 lucy_InStream* arg_instream;
22822 LUCY_TermCompiler_Deserialize_t method;
22823 lucy_TermCompiler* retval;
22824  
22825 CFISH_UNUSED_VAR(cv);
22826 0 SP -= items;
22827 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
22828 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
22829 }
22830  
22831 /* Extract vars from Perl stack. */
22832 0 arg_self = (lucy_TermCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMCOMPILER, NULL);
22833 0 sv = ST(1);
22834 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
22835  
22836 /* Execute */
22837 0 method = CFISH_METHOD_PTR(LUCY_TERMCOMPILER, LUCY_TermCompiler_Deserialize);
22838 0 arg_self = (lucy_TermCompiler*)CFISH_INCREF(arg_self);
22839 0 retval = method(arg_self, arg_instream);
22840 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22841 0 CFISH_DECREF(retval);
22842 0 sv_2mortal( ST(0) );
22843 0 XSRETURN(1);
22844 }
22845  
22846 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_do_new);
22847 0 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_do_new) {
22848 0 dXSARGS;
22849 static const XSBind_ParamSpec param_specs[4] = {
22850 XSBIND_PARAM("parent", 1),
22851 XSBIND_PARAM("searcher", 1),
22852 XSBIND_PARAM("boost", 1),
22853 XSBIND_PARAM("within", 1)
22854 };
22855 int32_t locations[4];
22856 SV *sv;
22857 lucy_ProximityCompiler* arg_self;
22858 lucy_ProximityQuery* arg_parent;
22859 lucy_Searcher* arg_searcher;
22860 float arg_boost;
22861 uint32_t arg_within;
22862 lucy_ProximityCompiler* retval;
22863  
22864 CFISH_UNUSED_VAR(cv);
22865 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22866 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
22867 }
22868 0 SP -= items;
22869  
22870 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22871 locations, 4);
22872 0 sv = ST(locations[0]);
22873 0 arg_parent = (lucy_ProximityQuery*)XSBind_arg_to_cfish(aTHX_ sv, "parent", LUCY_PROXIMITYQUERY, NULL);
22874 0 sv = ST(locations[1]);
22875 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
22876 0 sv = ST(locations[2]);
22877 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22878 0 XSBind_undef_arg_error(aTHX_ "boost");
22879 }
22880 0 arg_boost = (float)SvNV(sv);
22881 0 sv = ST(locations[3]);
22882 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22883 0 XSBind_undef_arg_error(aTHX_ "within");
22884 }
22885 0 arg_within = (uint32_t)SvUV(sv);
22886 0 arg_self = (lucy_ProximityCompiler*)XSBind_new_blank_obj(aTHX_ ST(0));
22887  
22888 0 retval = lucy_ProximityCompiler_init(arg_self, arg_parent, arg_searcher, arg_boost, arg_within);
22889 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
22890 0 XSRETURN(1);
22891 }
22892  
22893  
22894 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_make_matcher);
22895 0 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_make_matcher) {
22896 0 dXSARGS;
22897 static const XSBind_ParamSpec param_specs[2] = {
22898 XSBIND_PARAM("reader", 1),
22899 XSBIND_PARAM("need_score", 1)
22900 };
22901 int32_t locations[2];
22902 SV *sv;
22903 lucy_ProximityCompiler* arg_self;
22904 lucy_SegReader* arg_reader;
22905 bool arg_need_score;
22906 LUCY_ProximityCompiler_Make_Matcher_t method;
22907 lucy_Matcher* retval;
22908  
22909 CFISH_UNUSED_VAR(cv);
22910 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
22911 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
22912 }
22913 0 SP -= items;
22914  
22915 /* Locate args on Perl stack. */
22916 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
22917 locations, 2);
22918 0 arg_self = (lucy_ProximityCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYCOMPILER, NULL);
22919 0 sv = ST(locations[0]);
22920 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
22921 0 sv = ST(locations[1]);
22922 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
22923 0 XSBind_undef_arg_error(aTHX_ "need_score");
22924 }
22925 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
22926  
22927 /* Execute */
22928 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYCOMPILER, LUCY_ProximityCompiler_Make_Matcher);
22929 0 retval = method(arg_self, arg_reader, arg_need_score);
22930 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
22931 0 CFISH_DECREF(retval);
22932 0 sv_2mortal( ST(0) );
22933 0 XSRETURN(1);
22934 }
22935  
22936 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_get_weight);
22937 0 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_get_weight) {
22938 0 dXSARGS;
22939 lucy_ProximityCompiler* arg_self;
22940 LUCY_ProximityCompiler_Get_Weight_t method;
22941 float retval;
22942  
22943 CFISH_UNUSED_VAR(cv);
22944 0 SP -= items;
22945 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
22946 0 XSBind_invalid_args_error(aTHX_ cv, "self");
22947 }
22948  
22949 /* Extract vars from Perl stack. */
22950 0 arg_self = (lucy_ProximityCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYCOMPILER, NULL);
22951  
22952 /* Execute */
22953 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYCOMPILER, LUCY_ProximityCompiler_Get_Weight);
22954 0 retval = method(arg_self);
22955 0 ST(0) = newSVnv(retval);
22956 0 sv_2mortal( ST(0) );
22957 0 XSRETURN(1);
22958 }
22959  
22960 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_sum_of_squared_weights);
22961 0 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_sum_of_squared_weights) {
22962 0 dXSARGS;
22963 lucy_ProximityCompiler* arg_self;
22964 LUCY_ProximityCompiler_Sum_Of_Squared_Weights_t method;
22965 float retval;
22966  
22967 CFISH_UNUSED_VAR(cv);
22968 0 SP -= items;
22969 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
22970 0 XSBind_invalid_args_error(aTHX_ cv, "self");
22971 }
22972  
22973 /* Extract vars from Perl stack. */
22974 0 arg_self = (lucy_ProximityCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYCOMPILER, NULL);
22975  
22976 /* Execute */
22977 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYCOMPILER, LUCY_ProximityCompiler_Sum_Of_Squared_Weights);
22978 0 retval = method(arg_self);
22979 0 ST(0) = newSVnv(retval);
22980 0 sv_2mortal( ST(0) );
22981 0 XSRETURN(1);
22982 }
22983  
22984 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_apply_norm_factor);
22985 0 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_apply_norm_factor) {
22986 0 dXSARGS;
22987 SV *sv;
22988 lucy_ProximityCompiler* arg_self;
22989 float arg_factor;
22990 LUCY_ProximityCompiler_Apply_Norm_Factor_t method;
22991  
22992 CFISH_UNUSED_VAR(cv);
22993 0 SP -= items;
22994 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
22995 0 XSBind_invalid_args_error(aTHX_ cv, "self, factor");
22996 }
22997  
22998 /* Extract vars from Perl stack. */
22999 0 arg_self = (lucy_ProximityCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYCOMPILER, NULL);
23000 0 sv = ST(1);
23001 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
23002 0 XSBind_undef_arg_error(aTHX_ "factor");
23003 }
23004 0 arg_factor = (float)SvNV(sv);
23005  
23006 /* Execute */
23007 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYCOMPILER, LUCY_ProximityCompiler_Apply_Norm_Factor);
23008 0 method(arg_self, arg_factor);
23009 0 XSRETURN(0);
23010 }
23011  
23012 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_highlight_spans);
23013 0 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_highlight_spans) {
23014 0 dXSARGS;
23015 static const XSBind_ParamSpec param_specs[3] = {
23016 XSBIND_PARAM("searcher", 1),
23017 XSBIND_PARAM("doc_vec", 1),
23018 XSBIND_PARAM("field", 1)
23019 };
23020 int32_t locations[3];
23021 SV *sv;
23022 lucy_ProximityCompiler* arg_self;
23023 lucy_Searcher* arg_searcher;
23024 lucy_DocVector* arg_doc_vec;
23025 cfish_String* arg_field;
23026 LUCY_ProximityCompiler_Highlight_Spans_t method;
23027 cfish_Vector* retval;
23028  
23029 CFISH_UNUSED_VAR(cv);
23030 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
23031 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
23032 }
23033 0 SP -= items;
23034  
23035 /* Locate args on Perl stack. */
23036 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
23037 locations, 3);
23038 0 arg_self = (lucy_ProximityCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYCOMPILER, NULL);
23039 0 sv = ST(locations[0]);
23040 0 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
23041 0 sv = ST(locations[1]);
23042 0 arg_doc_vec = (lucy_DocVector*)XSBind_arg_to_cfish(aTHX_ sv, "doc_vec", LUCY_DOCVECTOR, NULL);
23043 0 sv = ST(locations[2]);
23044 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
23045  
23046 /* Execute */
23047 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYCOMPILER, LUCY_ProximityCompiler_Highlight_Spans);
23048 0 retval = method(arg_self, arg_searcher, arg_doc_vec, arg_field);
23049 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23050 0 CFISH_DECREF(retval);
23051 0 sv_2mortal( ST(0) );
23052 0 XSRETURN(1);
23053 }
23054  
23055 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_equals);
23056 1 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_equals) {
23057 1 dXSARGS;
23058 SV *sv;
23059 lucy_ProximityCompiler* arg_self;
23060 cfish_Obj* arg_other;
23061 LUCY_ProximityCompiler_Equals_t method;
23062 bool retval;
23063  
23064 CFISH_UNUSED_VAR(cv);
23065 1 SP -= items;
23066 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
23067 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
23068 }
23069  
23070 /* Extract vars from Perl stack. */
23071 1 arg_self = (lucy_ProximityCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYCOMPILER, NULL);
23072 1 sv = ST(1);
23073 1 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
23074  
23075 /* Execute */
23076 1 method = CFISH_METHOD_PTR(LUCY_PROXIMITYCOMPILER, LUCY_ProximityCompiler_Equals);
23077 1 retval = method(arg_self, arg_other);
23078 1 ST(0) = newSViv(!!retval);
23079 1 sv_2mortal( ST(0) );
23080 1 XSRETURN(1);
23081 }
23082  
23083 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_serialize);
23084 0 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_serialize) {
23085 0 dXSARGS;
23086 SV *sv;
23087 lucy_ProximityCompiler* arg_self;
23088 lucy_OutStream* arg_outstream;
23089 LUCY_ProximityCompiler_Serialize_t method;
23090  
23091 CFISH_UNUSED_VAR(cv);
23092 0 SP -= items;
23093 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23094 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
23095 }
23096  
23097 /* Extract vars from Perl stack. */
23098 0 arg_self = (lucy_ProximityCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYCOMPILER, NULL);
23099 0 sv = ST(1);
23100 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
23101  
23102 /* Execute */
23103 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYCOMPILER, LUCY_ProximityCompiler_Serialize);
23104 0 method(arg_self, arg_outstream);
23105 0 XSRETURN(0);
23106 }
23107  
23108 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_deserialize);
23109 0 XS_INTERNAL(XS_LucyX_Search_ProximityCompiler_deserialize) {
23110 0 dXSARGS;
23111 SV *sv;
23112 lucy_ProximityCompiler* arg_self;
23113 lucy_InStream* arg_instream;
23114 LUCY_ProximityCompiler_Deserialize_t method;
23115 lucy_ProximityCompiler* retval;
23116  
23117 CFISH_UNUSED_VAR(cv);
23118 0 SP -= items;
23119 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23120 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
23121 }
23122  
23123 /* Extract vars from Perl stack. */
23124 0 arg_self = (lucy_ProximityCompiler*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYCOMPILER, NULL);
23125 0 sv = ST(1);
23126 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
23127  
23128 /* Execute */
23129 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYCOMPILER, LUCY_ProximityCompiler_Deserialize);
23130 0 arg_self = (lucy_ProximityCompiler*)CFISH_INCREF(arg_self);
23131 0 retval = method(arg_self, arg_instream);
23132 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23133 0 CFISH_DECREF(retval);
23134 0 sv_2mortal( ST(0) );
23135 0 XSRETURN(1);
23136 }
23137  
23138 XS_INTERNAL(XS_Lucy_Search_LeafQuery_new);
23139 6 XS_INTERNAL(XS_Lucy_Search_LeafQuery_new) {
23140 6 dXSARGS;
23141 static const XSBind_ParamSpec param_specs[2] = {
23142 XSBIND_PARAM("field", 0),
23143 XSBIND_PARAM("text", 1)
23144 };
23145 int32_t locations[2];
23146 SV *sv;
23147 lucy_LeafQuery* arg_self;
23148 cfish_String* arg_field;
23149 cfish_String* arg_text;
23150 lucy_LeafQuery* retval;
23151  
23152 CFISH_UNUSED_VAR(cv);
23153 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
23154 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
23155 }
23156 6 SP -= items;
23157  
23158 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
23159 locations, 2);
23160 6 sv = ST(locations[0]);
23161 6 ▶ arg_field = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_field = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 3 3 6
23162 6 sv = ST(locations[1]);
23163 6 arg_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
23164 6 arg_self = (lucy_LeafQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
23165  
23166 6 retval = lucy_LeafQuery_init(arg_self, arg_field, arg_text);
23167 6 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
23168 6 XSRETURN(1);
23169 }
23170  
23171  
23172 XS_INTERNAL(XS_Lucy_Search_LeafQuery_get_field);
23173 2 XS_INTERNAL(XS_Lucy_Search_LeafQuery_get_field) {
23174 2 dXSARGS;
23175 lucy_LeafQuery* arg_self;
23176 LUCY_LeafQuery_Get_Field_t method;
23177 cfish_String* retval;
23178  
23179 CFISH_UNUSED_VAR(cv);
23180 2 SP -= items;
23181 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
23182 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23183 }
23184  
23185 /* Extract vars from Perl stack. */
23186 2 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23187  
23188 /* Execute */
23189 2 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_Get_Field);
23190 2 retval = method(arg_self);
23191 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23192 2 sv_2mortal( ST(0) );
23193 2 XSRETURN(1);
23194 }
23195  
23196 XS_INTERNAL(XS_Lucy_Search_LeafQuery_get_text);
23197 1 XS_INTERNAL(XS_Lucy_Search_LeafQuery_get_text) {
23198 1 dXSARGS;
23199 lucy_LeafQuery* arg_self;
23200 LUCY_LeafQuery_Get_Text_t method;
23201 cfish_String* retval;
23202  
23203 CFISH_UNUSED_VAR(cv);
23204 1 SP -= items;
23205 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
23206 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23207 }
23208  
23209 /* Extract vars from Perl stack. */
23210 1 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23211  
23212 /* Execute */
23213 1 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_Get_Text);
23214 1 retval = method(arg_self);
23215 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23216 1 sv_2mortal( ST(0) );
23217 1 XSRETURN(1);
23218 }
23219  
23220 XS_INTERNAL(XS_Lucy_Search_LeafQuery_equals);
23221 6 XS_INTERNAL(XS_Lucy_Search_LeafQuery_equals) {
23222 6 dXSARGS;
23223 SV *sv;
23224 lucy_LeafQuery* arg_self;
23225 cfish_Obj* arg_other;
23226 LUCY_LeafQuery_Equals_t method;
23227 bool retval;
23228  
23229 CFISH_UNUSED_VAR(cv);
23230 6 SP -= items;
23231 6 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 6 6
23232 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
23233 }
23234  
23235 /* Extract vars from Perl stack. */
23236 6 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23237 6 sv = ST(1);
23238 6 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
23239  
23240 /* Execute */
23241 6 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_Equals);
23242 6 retval = method(arg_self, arg_other);
23243 6 ST(0) = newSViv(!!retval);
23244 6 sv_2mortal( ST(0) );
23245 6 XSRETURN(1);
23246 }
23247  
23248 XS_INTERNAL(XS_Lucy_Search_LeafQuery_to_string);
23249 2 XS_INTERNAL(XS_Lucy_Search_LeafQuery_to_string) {
23250 2 dXSARGS;
23251 lucy_LeafQuery* arg_self;
23252 LUCY_LeafQuery_To_String_t method;
23253 cfish_String* retval;
23254  
23255 CFISH_UNUSED_VAR(cv);
23256 2 SP -= items;
23257 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
23258 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23259 }
23260  
23261 /* Extract vars from Perl stack. */
23262 2 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23263  
23264 /* Execute */
23265 2 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_To_String);
23266 2 retval = method(arg_self);
23267 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23268 2 CFISH_DECREF(retval);
23269 2 sv_2mortal( ST(0) );
23270 2 XSRETURN(1);
23271 }
23272  
23273 XS_INTERNAL(XS_Lucy_Search_LeafQuery_serialize);
23274 0 XS_INTERNAL(XS_Lucy_Search_LeafQuery_serialize) {
23275 0 dXSARGS;
23276 SV *sv;
23277 lucy_LeafQuery* arg_self;
23278 lucy_OutStream* arg_outstream;
23279 LUCY_LeafQuery_Serialize_t method;
23280  
23281 CFISH_UNUSED_VAR(cv);
23282 0 SP -= items;
23283 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23284 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
23285 }
23286  
23287 /* Extract vars from Perl stack. */
23288 0 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23289 0 sv = ST(1);
23290 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
23291  
23292 /* Execute */
23293 0 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_Serialize);
23294 0 method(arg_self, arg_outstream);
23295 0 XSRETURN(0);
23296 }
23297  
23298 XS_INTERNAL(XS_Lucy_Search_LeafQuery_deserialize);
23299 0 XS_INTERNAL(XS_Lucy_Search_LeafQuery_deserialize) {
23300 0 dXSARGS;
23301 SV *sv;
23302 lucy_LeafQuery* arg_self;
23303 lucy_InStream* arg_instream;
23304 LUCY_LeafQuery_Deserialize_t method;
23305 lucy_LeafQuery* retval;
23306  
23307 CFISH_UNUSED_VAR(cv);
23308 0 SP -= items;
23309 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23310 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
23311 }
23312  
23313 /* Extract vars from Perl stack. */
23314 0 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23315 0 sv = ST(1);
23316 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
23317  
23318 /* Execute */
23319 0 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_Deserialize);
23320 0 arg_self = (lucy_LeafQuery*)CFISH_INCREF(arg_self);
23321 0 retval = method(arg_self, arg_instream);
23322 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23323 0 CFISH_DECREF(retval);
23324 0 sv_2mortal( ST(0) );
23325 0 XSRETURN(1);
23326 }
23327  
23328 XS_INTERNAL(XS_Lucy_Search_LeafQuery_dump);
23329 0 XS_INTERNAL(XS_Lucy_Search_LeafQuery_dump) {
23330 0 dXSARGS;
23331 lucy_LeafQuery* arg_self;
23332 LUCY_LeafQuery_Dump_t method;
23333 cfish_Obj* retval;
23334  
23335 CFISH_UNUSED_VAR(cv);
23336 0 SP -= items;
23337 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
23338 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23339 }
23340  
23341 /* Extract vars from Perl stack. */
23342 0 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23343  
23344 /* Execute */
23345 0 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_Dump);
23346 0 retval = method(arg_self);
23347 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23348 0 CFISH_DECREF(retval);
23349 0 sv_2mortal( ST(0) );
23350 0 XSRETURN(1);
23351 }
23352  
23353 XS_INTERNAL(XS_Lucy_Search_LeafQuery_load);
23354 0 XS_INTERNAL(XS_Lucy_Search_LeafQuery_load) {
23355 0 dXSARGS;
23356 SV *sv;
23357 lucy_LeafQuery* arg_self;
23358 cfish_Obj* arg_dump;
23359 LUCY_LeafQuery_Load_t method;
23360 cfish_Obj* retval;
23361  
23362 CFISH_UNUSED_VAR(cv);
23363 0 SP -= items;
23364 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23365 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
23366 }
23367  
23368 /* Extract vars from Perl stack. */
23369 0 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23370 0 sv = ST(1);
23371 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
23372  
23373 /* Execute */
23374 0 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_Load);
23375 0 retval = method(arg_self, arg_dump);
23376 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23377 0 CFISH_DECREF(retval);
23378 0 sv_2mortal( ST(0) );
23379 0 XSRETURN(1);
23380 }
23381  
23382 XS_INTERNAL(XS_Lucy_Search_LeafQuery_make_compiler);
23383 1 XS_INTERNAL(XS_Lucy_Search_LeafQuery_make_compiler) {
23384 1 dXSARGS;
23385 static const XSBind_ParamSpec param_specs[3] = {
23386 XSBIND_PARAM("searcher", 1),
23387 XSBIND_PARAM("boost", 1),
23388 XSBIND_PARAM("subordinate", 0)
23389 };
23390 int32_t locations[3];
23391 SV *sv;
23392 lucy_LeafQuery* arg_self;
23393 lucy_Searcher* arg_searcher;
23394 float arg_boost;
23395 bool arg_subordinate;
23396 LUCY_LeafQuery_Make_Compiler_t method;
23397 lucy_Compiler* retval;
23398  
23399 CFISH_UNUSED_VAR(cv);
23400 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
23401 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
23402 }
23403 1 SP -= items;
23404  
23405 /* Locate args on Perl stack. */
23406 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
23407 locations, 3);
23408 1 arg_self = (lucy_LeafQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LEAFQUERY, NULL);
23409 1 sv = ST(locations[0]);
23410 1 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
23411 1 sv = ST(locations[1]);
23412 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
23413 0 XSBind_undef_arg_error(aTHX_ "boost");
23414 }
23415 1 arg_boost = (float)SvNV(sv);
23416 1 sv = ST(locations[2]);
23417 1 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
23418 1 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 1 1
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
23419  
23420 /* Execute */
23421 1 method = CFISH_METHOD_PTR(LUCY_LEAFQUERY, LUCY_LeafQuery_Make_Compiler);
23422 1 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
23423 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23424 0 CFISH_DECREF(retval);
23425 0 sv_2mortal( ST(0) );
23426 0 XSRETURN(1);
23427 }
23428  
23429 XS_INTERNAL(XS_Lucy_Search_MatchAllQuery_new);
23430 2 XS_INTERNAL(XS_Lucy_Search_MatchAllQuery_new) {
23431 2 dXSARGS;
23432 lucy_MatchAllQuery* arg_self;
23433 lucy_MatchAllQuery* retval;
23434  
23435 CFISH_UNUSED_VAR(cv);
23436 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
23437 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
23438 }
23439 2 SP -= items;
23440  
23441 2 arg_self = (lucy_MatchAllQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
23442  
23443 2 retval = lucy_MatchAllQuery_init(arg_self);
23444 2 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
23445 2 XSRETURN(1);
23446 }
23447  
23448  
23449 XS_INTERNAL(XS_Lucy_Search_MatchAllQuery_equals);
23450 2 XS_INTERNAL(XS_Lucy_Search_MatchAllQuery_equals) {
23451 2 dXSARGS;
23452 SV *sv;
23453 lucy_MatchAllQuery* arg_self;
23454 cfish_Obj* arg_other;
23455 LUCY_MatchAllQuery_Equals_t method;
23456 bool retval;
23457  
23458 CFISH_UNUSED_VAR(cv);
23459 2 SP -= items;
23460 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
23461 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
23462 }
23463  
23464 /* Extract vars from Perl stack. */
23465 2 arg_self = (lucy_MatchAllQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHALLQUERY, NULL);
23466 2 sv = ST(1);
23467 2 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
23468  
23469 /* Execute */
23470 2 method = CFISH_METHOD_PTR(LUCY_MATCHALLQUERY, LUCY_MatchAllQuery_Equals);
23471 2 retval = method(arg_self, arg_other);
23472 2 ST(0) = newSViv(!!retval);
23473 2 sv_2mortal( ST(0) );
23474 2 XSRETURN(1);
23475 }
23476  
23477 XS_INTERNAL(XS_Lucy_Search_MatchAllQuery_to_string);
23478 1 XS_INTERNAL(XS_Lucy_Search_MatchAllQuery_to_string) {
23479 1 dXSARGS;
23480 lucy_MatchAllQuery* arg_self;
23481 LUCY_MatchAllQuery_To_String_t method;
23482 cfish_String* retval;
23483  
23484 CFISH_UNUSED_VAR(cv);
23485 1 SP -= items;
23486 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
23487 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23488 }
23489  
23490 /* Extract vars from Perl stack. */
23491 1 arg_self = (lucy_MatchAllQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHALLQUERY, NULL);
23492  
23493 /* Execute */
23494 1 method = CFISH_METHOD_PTR(LUCY_MATCHALLQUERY, LUCY_MatchAllQuery_To_String);
23495 1 retval = method(arg_self);
23496 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23497 1 CFISH_DECREF(retval);
23498 1 sv_2mortal( ST(0) );
23499 1 XSRETURN(1);
23500 }
23501  
23502 XS_INTERNAL(XS_Lucy_Search_MatchAllQuery_make_compiler);
23503 1 XS_INTERNAL(XS_Lucy_Search_MatchAllQuery_make_compiler) {
23504 1 dXSARGS;
23505 static const XSBind_ParamSpec param_specs[3] = {
23506 XSBIND_PARAM("searcher", 1),
23507 XSBIND_PARAM("boost", 1),
23508 XSBIND_PARAM("subordinate", 0)
23509 };
23510 int32_t locations[3];
23511 SV *sv;
23512 lucy_MatchAllQuery* arg_self;
23513 lucy_Searcher* arg_searcher;
23514 float arg_boost;
23515 bool arg_subordinate;
23516 LUCY_MatchAllQuery_Make_Compiler_t method;
23517 lucy_Compiler* retval;
23518  
23519 CFISH_UNUSED_VAR(cv);
23520 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
23521 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
23522 }
23523 1 SP -= items;
23524  
23525 /* Locate args on Perl stack. */
23526 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
23527 locations, 3);
23528 1 arg_self = (lucy_MatchAllQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHALLQUERY, NULL);
23529 1 sv = ST(locations[0]);
23530 1 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
23531 1 sv = ST(locations[1]);
23532 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
23533 0 XSBind_undef_arg_error(aTHX_ "boost");
23534 }
23535 1 arg_boost = (float)SvNV(sv);
23536 1 sv = ST(locations[2]);
23537 1 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
23538 1 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 1 1
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
23539  
23540 /* Execute */
23541 1 method = CFISH_METHOD_PTR(LUCY_MATCHALLQUERY, LUCY_MatchAllQuery_Make_Compiler);
23542 1 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
23543 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23544 1 CFISH_DECREF(retval);
23545 1 sv_2mortal( ST(0) );
23546 1 XSRETURN(1);
23547 }
23548  
23549 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_new);
23550 1 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_new) {
23551 1 dXSARGS;
23552 lucy_NoMatchQuery* arg_self;
23553 lucy_NoMatchQuery* retval;
23554  
23555 CFISH_UNUSED_VAR(cv);
23556 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
23557 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
23558 }
23559 1 SP -= items;
23560  
23561 1 arg_self = (lucy_NoMatchQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
23562  
23563 1 retval = lucy_NoMatchQuery_init(arg_self);
23564 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
23565 1 XSRETURN(1);
23566 }
23567  
23568  
23569 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_set_fails_to_match);
23570 0 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_set_fails_to_match) {
23571 0 dXSARGS;
23572 SV *sv;
23573 lucy_NoMatchQuery* arg_self;
23574 bool arg_fails_to_match;
23575 LUCY_NoMatchQuery_Set_Fails_To_Match_t method;
23576  
23577 CFISH_UNUSED_VAR(cv);
23578 0 SP -= items;
23579 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23580 0 XSBind_invalid_args_error(aTHX_ cv, "self, fails_to_match");
23581 }
23582  
23583 /* Extract vars from Perl stack. */
23584 0 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23585 0 sv = ST(1);
23586 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
23587 0 XSBind_undef_arg_error(aTHX_ "fails_to_match");
23588 }
23589 0 arg_fails_to_match = XSBind_sv_true(aTHX_ sv);
23590  
23591 /* Execute */
23592 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_Set_Fails_To_Match);
23593 0 method(arg_self, arg_fails_to_match);
23594 0 XSRETURN(0);
23595 }
23596  
23597 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_get_fails_to_match);
23598 0 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_get_fails_to_match) {
23599 0 dXSARGS;
23600 lucy_NoMatchQuery* arg_self;
23601 LUCY_NoMatchQuery_Get_Fails_To_Match_t method;
23602 bool retval;
23603  
23604 CFISH_UNUSED_VAR(cv);
23605 0 SP -= items;
23606 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
23607 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23608 }
23609  
23610 /* Extract vars from Perl stack. */
23611 0 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23612  
23613 /* Execute */
23614 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_Get_Fails_To_Match);
23615 0 retval = method(arg_self);
23616 0 ST(0) = newSViv(!!retval);
23617 0 sv_2mortal( ST(0) );
23618 0 XSRETURN(1);
23619 }
23620  
23621 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_dump);
23622 0 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_dump) {
23623 0 dXSARGS;
23624 lucy_NoMatchQuery* arg_self;
23625 LUCY_NoMatchQuery_Dump_t method;
23626 cfish_Obj* retval;
23627  
23628 CFISH_UNUSED_VAR(cv);
23629 0 SP -= items;
23630 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
23631 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23632 }
23633  
23634 /* Extract vars from Perl stack. */
23635 0 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23636  
23637 /* Execute */
23638 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_Dump);
23639 0 retval = method(arg_self);
23640 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23641 0 CFISH_DECREF(retval);
23642 0 sv_2mortal( ST(0) );
23643 0 XSRETURN(1);
23644 }
23645  
23646 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_load);
23647 0 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_load) {
23648 0 dXSARGS;
23649 SV *sv;
23650 lucy_NoMatchQuery* arg_self;
23651 cfish_Obj* arg_dump;
23652 LUCY_NoMatchQuery_Load_t method;
23653 lucy_NoMatchQuery* retval;
23654  
23655 CFISH_UNUSED_VAR(cv);
23656 0 SP -= items;
23657 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23658 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
23659 }
23660  
23661 /* Extract vars from Perl stack. */
23662 0 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23663 0 sv = ST(1);
23664 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
23665  
23666 /* Execute */
23667 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_Load);
23668 0 retval = method(arg_self, arg_dump);
23669 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23670 0 CFISH_DECREF(retval);
23671 0 sv_2mortal( ST(0) );
23672 0 XSRETURN(1);
23673 }
23674  
23675 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_serialize);
23676 0 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_serialize) {
23677 0 dXSARGS;
23678 SV *sv;
23679 lucy_NoMatchQuery* arg_self;
23680 lucy_OutStream* arg_outstream;
23681 LUCY_NoMatchQuery_Serialize_t method;
23682  
23683 CFISH_UNUSED_VAR(cv);
23684 0 SP -= items;
23685 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23686 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
23687 }
23688  
23689 /* Extract vars from Perl stack. */
23690 0 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23691 0 sv = ST(1);
23692 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
23693  
23694 /* Execute */
23695 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_Serialize);
23696 0 method(arg_self, arg_outstream);
23697 0 XSRETURN(0);
23698 }
23699  
23700 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_deserialize);
23701 0 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_deserialize) {
23702 0 dXSARGS;
23703 SV *sv;
23704 lucy_NoMatchQuery* arg_self;
23705 lucy_InStream* arg_instream;
23706 LUCY_NoMatchQuery_Deserialize_t method;
23707 lucy_NoMatchQuery* retval;
23708  
23709 CFISH_UNUSED_VAR(cv);
23710 0 SP -= items;
23711 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23712 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
23713 }
23714  
23715 /* Extract vars from Perl stack. */
23716 0 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23717 0 sv = ST(1);
23718 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
23719  
23720 /* Execute */
23721 0 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_Deserialize);
23722 0 arg_self = (lucy_NoMatchQuery*)CFISH_INCREF(arg_self);
23723 0 retval = method(arg_self, arg_instream);
23724 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23725 0 CFISH_DECREF(retval);
23726 0 sv_2mortal( ST(0) );
23727 0 XSRETURN(1);
23728 }
23729  
23730 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_equals);
23731 2 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_equals) {
23732 2 dXSARGS;
23733 SV *sv;
23734 lucy_NoMatchQuery* arg_self;
23735 cfish_Obj* arg_other;
23736 LUCY_NoMatchQuery_Equals_t method;
23737 bool retval;
23738  
23739 CFISH_UNUSED_VAR(cv);
23740 2 SP -= items;
23741 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
23742 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
23743 }
23744  
23745 /* Extract vars from Perl stack. */
23746 2 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23747 2 sv = ST(1);
23748 2 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
23749  
23750 /* Execute */
23751 2 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_Equals);
23752 2 retval = method(arg_self, arg_other);
23753 2 ST(0) = newSViv(!!retval);
23754 2 sv_2mortal( ST(0) );
23755 2 XSRETURN(1);
23756 }
23757  
23758 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_to_string);
23759 1 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_to_string) {
23760 1 dXSARGS;
23761 lucy_NoMatchQuery* arg_self;
23762 LUCY_NoMatchQuery_To_String_t method;
23763 cfish_String* retval;
23764  
23765 CFISH_UNUSED_VAR(cv);
23766 1 SP -= items;
23767 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
23768 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23769 }
23770  
23771 /* Extract vars from Perl stack. */
23772 1 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23773  
23774 /* Execute */
23775 1 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_To_String);
23776 1 retval = method(arg_self);
23777 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23778 1 CFISH_DECREF(retval);
23779 1 sv_2mortal( ST(0) );
23780 1 XSRETURN(1);
23781 }
23782  
23783 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_make_compiler);
23784 1 XS_INTERNAL(XS_Lucy_Search_NoMatchQuery_make_compiler) {
23785 1 dXSARGS;
23786 static const XSBind_ParamSpec param_specs[3] = {
23787 XSBIND_PARAM("searcher", 1),
23788 XSBIND_PARAM("boost", 1),
23789 XSBIND_PARAM("subordinate", 0)
23790 };
23791 int32_t locations[3];
23792 SV *sv;
23793 lucy_NoMatchQuery* arg_self;
23794 lucy_Searcher* arg_searcher;
23795 float arg_boost;
23796 bool arg_subordinate;
23797 LUCY_NoMatchQuery_Make_Compiler_t method;
23798 lucy_Compiler* retval;
23799  
23800 CFISH_UNUSED_VAR(cv);
23801 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
23802 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
23803 }
23804 1 SP -= items;
23805  
23806 /* Locate args on Perl stack. */
23807 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
23808 locations, 3);
23809 1 arg_self = (lucy_NoMatchQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOMATCHQUERY, NULL);
23810 1 sv = ST(locations[0]);
23811 1 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
23812 1 sv = ST(locations[1]);
23813 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
23814 0 XSBind_undef_arg_error(aTHX_ "boost");
23815 }
23816 1 arg_boost = (float)SvNV(sv);
23817 1 sv = ST(locations[2]);
23818 1 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
23819 1 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 1 1
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
23820  
23821 /* Execute */
23822 1 method = CFISH_METHOD_PTR(LUCY_NOMATCHQUERY, LUCY_NoMatchQuery_Make_Compiler);
23823 1 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
23824 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23825 1 CFISH_DECREF(retval);
23826 1 sv_2mortal( ST(0) );
23827 1 XSRETURN(1);
23828 }
23829  
23830 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_new);
23831 6 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_new) {
23832 6 dXSARGS;
23833 static const XSBind_ParamSpec param_specs[2] = {
23834 XSBIND_PARAM("field", 1),
23835 XSBIND_PARAM("terms", 1)
23836 };
23837 int32_t locations[2];
23838 SV *sv;
23839 lucy_PhraseQuery* arg_self;
23840 cfish_String* arg_field;
23841 cfish_Vector* arg_terms;
23842 lucy_PhraseQuery* retval;
23843  
23844 CFISH_UNUSED_VAR(cv);
23845 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
23846 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
23847 }
23848 6 SP -= items;
23849  
23850 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
23851 locations, 2);
23852 6 sv = ST(locations[0]);
23853 6 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
23854 6 sv = ST(locations[1]);
23855 6 arg_terms = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "terms", CFISH_VECTOR, NULL);
23856 6 arg_self = (lucy_PhraseQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
23857  
23858 6 retval = lucy_PhraseQuery_init(arg_self, arg_field, arg_terms);
23859 6 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
23860 6 XSRETURN(1);
23861 }
23862  
23863  
23864 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_get_field);
23865 0 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_get_field) {
23866 0 dXSARGS;
23867 lucy_PhraseQuery* arg_self;
23868 LUCY_PhraseQuery_Get_Field_t method;
23869 cfish_String* retval;
23870  
23871 CFISH_UNUSED_VAR(cv);
23872 0 SP -= items;
23873 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
23874 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23875 }
23876  
23877 /* Extract vars from Perl stack. */
23878 0 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
23879  
23880 /* Execute */
23881 0 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_Get_Field);
23882 0 retval = method(arg_self);
23883 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23884 0 sv_2mortal( ST(0) );
23885 0 XSRETURN(1);
23886 }
23887  
23888 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_get_terms);
23889 0 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_get_terms) {
23890 0 dXSARGS;
23891 lucy_PhraseQuery* arg_self;
23892 LUCY_PhraseQuery_Get_Terms_t method;
23893 cfish_Vector* retval;
23894  
23895 CFISH_UNUSED_VAR(cv);
23896 0 SP -= items;
23897 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
23898 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23899 }
23900  
23901 /* Extract vars from Perl stack. */
23902 0 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
23903  
23904 /* Execute */
23905 0 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_Get_Terms);
23906 0 retval = method(arg_self);
23907 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23908 0 sv_2mortal( ST(0) );
23909 0 XSRETURN(1);
23910 }
23911  
23912 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_make_compiler);
23913 1 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_make_compiler) {
23914 1 dXSARGS;
23915 static const XSBind_ParamSpec param_specs[3] = {
23916 XSBIND_PARAM("searcher", 1),
23917 XSBIND_PARAM("boost", 1),
23918 XSBIND_PARAM("subordinate", 0)
23919 };
23920 int32_t locations[3];
23921 SV *sv;
23922 lucy_PhraseQuery* arg_self;
23923 lucy_Searcher* arg_searcher;
23924 float arg_boost;
23925 bool arg_subordinate;
23926 LUCY_PhraseQuery_Make_Compiler_t method;
23927 lucy_Compiler* retval;
23928  
23929 CFISH_UNUSED_VAR(cv);
23930 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
23931 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
23932 }
23933 1 SP -= items;
23934  
23935 /* Locate args on Perl stack. */
23936 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
23937 locations, 3);
23938 1 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
23939 1 sv = ST(locations[0]);
23940 1 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
23941 1 sv = ST(locations[1]);
23942 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
23943 0 XSBind_undef_arg_error(aTHX_ "boost");
23944 }
23945 1 arg_boost = (float)SvNV(sv);
23946 1 sv = ST(locations[2]);
23947 1 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
23948 1 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 1 1
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
23949  
23950 /* Execute */
23951 1 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_Make_Compiler);
23952 1 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
23953 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
23954 1 CFISH_DECREF(retval);
23955 1 sv_2mortal( ST(0) );
23956 1 XSRETURN(1);
23957 }
23958  
23959 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_equals);
23960 0 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_equals) {
23961 0 dXSARGS;
23962 SV *sv;
23963 lucy_PhraseQuery* arg_self;
23964 cfish_Obj* arg_other;
23965 LUCY_PhraseQuery_Equals_t method;
23966 bool retval;
23967  
23968 CFISH_UNUSED_VAR(cv);
23969 0 SP -= items;
23970 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
23971 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
23972 }
23973  
23974 /* Extract vars from Perl stack. */
23975 0 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
23976 0 sv = ST(1);
23977 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
23978  
23979 /* Execute */
23980 0 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_Equals);
23981 0 retval = method(arg_self, arg_other);
23982 0 ST(0) = newSViv(!!retval);
23983 0 sv_2mortal( ST(0) );
23984 0 XSRETURN(1);
23985 }
23986  
23987 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_to_string);
23988 2 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_to_string) {
23989 2 dXSARGS;
23990 lucy_PhraseQuery* arg_self;
23991 LUCY_PhraseQuery_To_String_t method;
23992 cfish_String* retval;
23993  
23994 CFISH_UNUSED_VAR(cv);
23995 2 SP -= items;
23996 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
23997 0 XSBind_invalid_args_error(aTHX_ cv, "self");
23998 }
23999  
24000 /* Extract vars from Perl stack. */
24001 2 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
24002  
24003 /* Execute */
24004 2 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_To_String);
24005 2 retval = method(arg_self);
24006 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24007 2 CFISH_DECREF(retval);
24008 2 sv_2mortal( ST(0) );
24009 2 XSRETURN(1);
24010 }
24011  
24012 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_serialize);
24013 0 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_serialize) {
24014 0 dXSARGS;
24015 SV *sv;
24016 lucy_PhraseQuery* arg_self;
24017 lucy_OutStream* arg_outstream;
24018 LUCY_PhraseQuery_Serialize_t method;
24019  
24020 CFISH_UNUSED_VAR(cv);
24021 0 SP -= items;
24022 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24023 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
24024 }
24025  
24026 /* Extract vars from Perl stack. */
24027 0 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
24028 0 sv = ST(1);
24029 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
24030  
24031 /* Execute */
24032 0 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_Serialize);
24033 0 method(arg_self, arg_outstream);
24034 0 XSRETURN(0);
24035 }
24036  
24037 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_deserialize);
24038 0 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_deserialize) {
24039 0 dXSARGS;
24040 SV *sv;
24041 lucy_PhraseQuery* arg_self;
24042 lucy_InStream* arg_instream;
24043 LUCY_PhraseQuery_Deserialize_t method;
24044 lucy_PhraseQuery* retval;
24045  
24046 CFISH_UNUSED_VAR(cv);
24047 0 SP -= items;
24048 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24049 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
24050 }
24051  
24052 /* Extract vars from Perl stack. */
24053 0 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
24054 0 sv = ST(1);
24055 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
24056  
24057 /* Execute */
24058 0 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_Deserialize);
24059 0 arg_self = (lucy_PhraseQuery*)CFISH_INCREF(arg_self);
24060 0 retval = method(arg_self, arg_instream);
24061 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24062 0 CFISH_DECREF(retval);
24063 0 sv_2mortal( ST(0) );
24064 0 XSRETURN(1);
24065 }
24066  
24067 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_dump);
24068 0 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_dump) {
24069 0 dXSARGS;
24070 lucy_PhraseQuery* arg_self;
24071 LUCY_PhraseQuery_Dump_t method;
24072 cfish_Obj* retval;
24073  
24074 CFISH_UNUSED_VAR(cv);
24075 0 SP -= items;
24076 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
24077 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24078 }
24079  
24080 /* Extract vars from Perl stack. */
24081 0 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
24082  
24083 /* Execute */
24084 0 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_Dump);
24085 0 retval = method(arg_self);
24086 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24087 0 CFISH_DECREF(retval);
24088 0 sv_2mortal( ST(0) );
24089 0 XSRETURN(1);
24090 }
24091  
24092 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_load);
24093 0 XS_INTERNAL(XS_Lucy_Search_PhraseQuery_load) {
24094 0 dXSARGS;
24095 SV *sv;
24096 lucy_PhraseQuery* arg_self;
24097 cfish_Obj* arg_dump;
24098 LUCY_PhraseQuery_Load_t method;
24099 cfish_Obj* retval;
24100  
24101 CFISH_UNUSED_VAR(cv);
24102 0 SP -= items;
24103 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24104 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
24105 }
24106  
24107 /* Extract vars from Perl stack. */
24108 0 arg_self = (lucy_PhraseQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PHRASEQUERY, NULL);
24109 0 sv = ST(1);
24110 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
24111  
24112 /* Execute */
24113 0 method = CFISH_METHOD_PTR(LUCY_PHRASEQUERY, LUCY_PhraseQuery_Load);
24114 0 retval = method(arg_self, arg_dump);
24115 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24116 0 CFISH_DECREF(retval);
24117 0 sv_2mortal( ST(0) );
24118 0 XSRETURN(1);
24119 }
24120  
24121 XS_INTERNAL(XS_Lucy_Search_PolyQuery_new);
24122 0 XS_INTERNAL(XS_Lucy_Search_PolyQuery_new) {
24123 0 dXSARGS;
24124 static const XSBind_ParamSpec param_specs[1] = {
24125 XSBIND_PARAM("children", 0)
24126 };
24127 int32_t locations[1];
24128 SV *sv;
24129 lucy_PolyQuery* arg_self;
24130 cfish_Vector* arg_children;
24131 lucy_PolyQuery* retval;
24132  
24133 CFISH_UNUSED_VAR(cv);
24134 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
24135 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
24136 }
24137 0 SP -= items;
24138  
24139 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24140 locations, 1);
24141 0 sv = ST(locations[0]);
24142 0 ▶ arg_children = locations[0] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_children = locations[0] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL; 0 0 0
24143 0 arg_self = (lucy_PolyQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
24144  
24145 0 retval = lucy_PolyQuery_init(arg_self, arg_children);
24146 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
24147 0 XSRETURN(1);
24148 }
24149  
24150  
24151 XS_INTERNAL(XS_Lucy_Search_PolyQuery_add_child);
24152 9 XS_INTERNAL(XS_Lucy_Search_PolyQuery_add_child) {
24153 9 dXSARGS;
24154 SV *sv;
24155 lucy_PolyQuery* arg_self;
24156 lucy_Query* arg_query;
24157 LUCY_PolyQuery_Add_Child_t method;
24158  
24159 CFISH_UNUSED_VAR(cv);
24160 9 SP -= items;
24161 9 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 9 9
24162 0 XSBind_invalid_args_error(aTHX_ cv, "self, query");
24163 }
24164  
24165 /* Extract vars from Perl stack. */
24166 9 arg_self = (lucy_PolyQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYQUERY, NULL);
24167 9 sv = ST(1);
24168 9 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
24169  
24170 /* Execute */
24171 9 method = CFISH_METHOD_PTR(LUCY_POLYQUERY, LUCY_PolyQuery_Add_Child);
24172 9 method(arg_self, arg_query);
24173 9 XSRETURN(0);
24174 }
24175  
24176 XS_INTERNAL(XS_Lucy_Search_PolyQuery_set_children);
24177 0 XS_INTERNAL(XS_Lucy_Search_PolyQuery_set_children) {
24178 0 dXSARGS;
24179 SV *sv;
24180 lucy_PolyQuery* arg_self;
24181 cfish_Vector* arg_children;
24182 LUCY_PolyQuery_Set_Children_t method;
24183  
24184 CFISH_UNUSED_VAR(cv);
24185 0 SP -= items;
24186 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24187 0 XSBind_invalid_args_error(aTHX_ cv, "self, children");
24188 }
24189  
24190 /* Extract vars from Perl stack. */
24191 0 arg_self = (lucy_PolyQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYQUERY, NULL);
24192 0 sv = ST(1);
24193 0 arg_children = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "children", CFISH_VECTOR, NULL);
24194  
24195 /* Execute */
24196 0 method = CFISH_METHOD_PTR(LUCY_POLYQUERY, LUCY_PolyQuery_Set_Children);
24197 0 method(arg_self, arg_children);
24198 0 XSRETURN(0);
24199 }
24200  
24201 XS_INTERNAL(XS_Lucy_Search_PolyQuery_get_children);
24202 0 XS_INTERNAL(XS_Lucy_Search_PolyQuery_get_children) {
24203 0 dXSARGS;
24204 lucy_PolyQuery* arg_self;
24205 LUCY_PolyQuery_Get_Children_t method;
24206 cfish_Vector* retval;
24207  
24208 CFISH_UNUSED_VAR(cv);
24209 0 SP -= items;
24210 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
24211 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24212 }
24213  
24214 /* Extract vars from Perl stack. */
24215 0 arg_self = (lucy_PolyQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYQUERY, NULL);
24216  
24217 /* Execute */
24218 0 method = CFISH_METHOD_PTR(LUCY_POLYQUERY, LUCY_PolyQuery_Get_Children);
24219 0 retval = method(arg_self);
24220 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24221 0 sv_2mortal( ST(0) );
24222 0 XSRETURN(1);
24223 }
24224  
24225 XS_INTERNAL(XS_Lucy_Search_PolyQuery_serialize);
24226 0 XS_INTERNAL(XS_Lucy_Search_PolyQuery_serialize) {
24227 0 dXSARGS;
24228 SV *sv;
24229 lucy_PolyQuery* arg_self;
24230 lucy_OutStream* arg_outstream;
24231 LUCY_PolyQuery_Serialize_t method;
24232  
24233 CFISH_UNUSED_VAR(cv);
24234 0 SP -= items;
24235 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24236 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
24237 }
24238  
24239 /* Extract vars from Perl stack. */
24240 0 arg_self = (lucy_PolyQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYQUERY, NULL);
24241 0 sv = ST(1);
24242 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
24243  
24244 /* Execute */
24245 0 method = CFISH_METHOD_PTR(LUCY_POLYQUERY, LUCY_PolyQuery_Serialize);
24246 0 method(arg_self, arg_outstream);
24247 0 XSRETURN(0);
24248 }
24249  
24250 XS_INTERNAL(XS_Lucy_Search_PolyQuery_deserialize);
24251 0 XS_INTERNAL(XS_Lucy_Search_PolyQuery_deserialize) {
24252 0 dXSARGS;
24253 SV *sv;
24254 lucy_PolyQuery* arg_self;
24255 lucy_InStream* arg_instream;
24256 LUCY_PolyQuery_Deserialize_t method;
24257 lucy_PolyQuery* retval;
24258  
24259 CFISH_UNUSED_VAR(cv);
24260 0 SP -= items;
24261 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24262 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
24263 }
24264  
24265 /* Extract vars from Perl stack. */
24266 0 arg_self = (lucy_PolyQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYQUERY, NULL);
24267 0 sv = ST(1);
24268 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
24269  
24270 /* Execute */
24271 0 method = CFISH_METHOD_PTR(LUCY_POLYQUERY, LUCY_PolyQuery_Deserialize);
24272 0 arg_self = (lucy_PolyQuery*)CFISH_INCREF(arg_self);
24273 0 retval = method(arg_self, arg_instream);
24274 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24275 0 CFISH_DECREF(retval);
24276 0 sv_2mortal( ST(0) );
24277 0 XSRETURN(1);
24278 }
24279  
24280 XS_INTERNAL(XS_Lucy_Search_PolyQuery_dump);
24281 0 XS_INTERNAL(XS_Lucy_Search_PolyQuery_dump) {
24282 0 dXSARGS;
24283 lucy_PolyQuery* arg_self;
24284 LUCY_PolyQuery_Dump_t method;
24285 cfish_Obj* retval;
24286  
24287 CFISH_UNUSED_VAR(cv);
24288 0 SP -= items;
24289 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
24290 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24291 }
24292  
24293 /* Extract vars from Perl stack. */
24294 0 arg_self = (lucy_PolyQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYQUERY, NULL);
24295  
24296 /* Execute */
24297 0 method = CFISH_METHOD_PTR(LUCY_POLYQUERY, LUCY_PolyQuery_Dump);
24298 0 retval = method(arg_self);
24299 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24300 0 CFISH_DECREF(retval);
24301 0 sv_2mortal( ST(0) );
24302 0 XSRETURN(1);
24303 }
24304  
24305 XS_INTERNAL(XS_Lucy_Search_PolyQuery_load);
24306 0 XS_INTERNAL(XS_Lucy_Search_PolyQuery_load) {
24307 0 dXSARGS;
24308 SV *sv;
24309 lucy_PolyQuery* arg_self;
24310 cfish_Obj* arg_dump;
24311 LUCY_PolyQuery_Load_t method;
24312 cfish_Obj* retval;
24313  
24314 CFISH_UNUSED_VAR(cv);
24315 0 SP -= items;
24316 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24317 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
24318 }
24319  
24320 /* Extract vars from Perl stack. */
24321 0 arg_self = (lucy_PolyQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYQUERY, NULL);
24322 0 sv = ST(1);
24323 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
24324  
24325 /* Execute */
24326 0 method = CFISH_METHOD_PTR(LUCY_POLYQUERY, LUCY_PolyQuery_Load);
24327 0 retval = method(arg_self, arg_dump);
24328 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24329 0 CFISH_DECREF(retval);
24330 0 sv_2mortal( ST(0) );
24331 0 XSRETURN(1);
24332 }
24333  
24334 XS_INTERNAL(XS_Lucy_Search_PolyQuery_equals);
24335 0 XS_INTERNAL(XS_Lucy_Search_PolyQuery_equals) {
24336 0 dXSARGS;
24337 SV *sv;
24338 lucy_PolyQuery* arg_self;
24339 cfish_Obj* arg_other;
24340 LUCY_PolyQuery_Equals_t method;
24341 bool retval;
24342  
24343 CFISH_UNUSED_VAR(cv);
24344 0 SP -= items;
24345 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24346 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
24347 }
24348  
24349 /* Extract vars from Perl stack. */
24350 0 arg_self = (lucy_PolyQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYQUERY, NULL);
24351 0 sv = ST(1);
24352 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
24353  
24354 /* Execute */
24355 0 method = CFISH_METHOD_PTR(LUCY_POLYQUERY, LUCY_PolyQuery_Equals);
24356 0 retval = method(arg_self, arg_other);
24357 0 ST(0) = newSViv(!!retval);
24358 0 sv_2mortal( ST(0) );
24359 0 XSRETURN(1);
24360 }
24361  
24362 XS_INTERNAL(XS_Lucy_Search_ANDQuery_new);
24363 14 XS_INTERNAL(XS_Lucy_Search_ANDQuery_new) {
24364 14 dXSARGS;
24365 static const XSBind_ParamSpec param_specs[1] = {
24366 XSBIND_PARAM("children", 0)
24367 };
24368 int32_t locations[1];
24369 SV *sv;
24370 lucy_ANDQuery* arg_self;
24371 cfish_Vector* arg_children;
24372 lucy_ANDQuery* retval;
24373  
24374 CFISH_UNUSED_VAR(cv);
24375 14 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 14 14
24376 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
24377 }
24378 14 SP -= items;
24379  
24380 14 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24381 locations, 1);
24382 14 sv = ST(locations[0]);
24383 14 ▶ arg_children = locations[0] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_children = locations[0] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL; 13 1 14
24384 14 arg_self = (lucy_ANDQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
24385  
24386 14 retval = lucy_ANDQuery_init(arg_self, arg_children);
24387 14 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
24388 14 XSRETURN(1);
24389 }
24390  
24391  
24392 XS_INTERNAL(XS_Lucy_Search_ANDQuery_make_compiler);
24393 6 XS_INTERNAL(XS_Lucy_Search_ANDQuery_make_compiler) {
24394 6 dXSARGS;
24395 static const XSBind_ParamSpec param_specs[3] = {
24396 XSBIND_PARAM("searcher", 1),
24397 XSBIND_PARAM("boost", 1),
24398 XSBIND_PARAM("subordinate", 0)
24399 };
24400 int32_t locations[3];
24401 SV *sv;
24402 lucy_ANDQuery* arg_self;
24403 lucy_Searcher* arg_searcher;
24404 float arg_boost;
24405 bool arg_subordinate;
24406 LUCY_ANDQuery_Make_Compiler_t method;
24407 lucy_Compiler* retval;
24408  
24409 CFISH_UNUSED_VAR(cv);
24410 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
24411 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
24412 }
24413 6 SP -= items;
24414  
24415 /* Locate args on Perl stack. */
24416 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24417 locations, 3);
24418 6 arg_self = (lucy_ANDQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANDQUERY, NULL);
24419 6 sv = ST(locations[0]);
24420 6 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
24421 6 sv = ST(locations[1]);
24422 6 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 6 6
24423 0 XSBind_undef_arg_error(aTHX_ "boost");
24424 }
24425 6 arg_boost = (float)SvNV(sv);
24426 6 sv = ST(locations[2]);
24427 6 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 6 6
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
24428 6 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 6 6
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
24429  
24430 /* Execute */
24431 6 method = CFISH_METHOD_PTR(LUCY_ANDQUERY, LUCY_ANDQuery_Make_Compiler);
24432 6 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
24433 6 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24434 6 CFISH_DECREF(retval);
24435 6 sv_2mortal( ST(0) );
24436 6 XSRETURN(1);
24437 }
24438  
24439 XS_INTERNAL(XS_Lucy_Search_ANDQuery_to_string);
24440 2 XS_INTERNAL(XS_Lucy_Search_ANDQuery_to_string) {
24441 2 dXSARGS;
24442 lucy_ANDQuery* arg_self;
24443 LUCY_ANDQuery_To_String_t method;
24444 cfish_String* retval;
24445  
24446 CFISH_UNUSED_VAR(cv);
24447 2 SP -= items;
24448 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
24449 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24450 }
24451  
24452 /* Extract vars from Perl stack. */
24453 2 arg_self = (lucy_ANDQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANDQUERY, NULL);
24454  
24455 /* Execute */
24456 2 method = CFISH_METHOD_PTR(LUCY_ANDQUERY, LUCY_ANDQuery_To_String);
24457 2 retval = method(arg_self);
24458 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24459 2 CFISH_DECREF(retval);
24460 2 sv_2mortal( ST(0) );
24461 2 XSRETURN(1);
24462 }
24463  
24464 XS_INTERNAL(XS_Lucy_Search_ANDQuery_equals);
24465 8 XS_INTERNAL(XS_Lucy_Search_ANDQuery_equals) {
24466 8 dXSARGS;
24467 SV *sv;
24468 lucy_ANDQuery* arg_self;
24469 cfish_Obj* arg_other;
24470 LUCY_ANDQuery_Equals_t method;
24471 bool retval;
24472  
24473 CFISH_UNUSED_VAR(cv);
24474 8 SP -= items;
24475 8 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 8 8
24476 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
24477 }
24478  
24479 /* Extract vars from Perl stack. */
24480 8 arg_self = (lucy_ANDQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ANDQUERY, NULL);
24481 8 sv = ST(1);
24482 8 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
24483  
24484 /* Execute */
24485 8 method = CFISH_METHOD_PTR(LUCY_ANDQUERY, LUCY_ANDQuery_Equals);
24486 8 retval = method(arg_self, arg_other);
24487 8 ST(0) = newSViv(!!retval);
24488 8 sv_2mortal( ST(0) );
24489 8 XSRETURN(1);
24490 }
24491  
24492 XS_INTERNAL(XS_Lucy_Search_NOTQuery_new);
24493 5 XS_INTERNAL(XS_Lucy_Search_NOTQuery_new) {
24494 5 dXSARGS;
24495 static const XSBind_ParamSpec param_specs[1] = {
24496 XSBIND_PARAM("negated_query", 1)
24497 };
24498 int32_t locations[1];
24499 SV *sv;
24500 lucy_NOTQuery* arg_self;
24501 lucy_Query* arg_negated_query;
24502 lucy_NOTQuery* retval;
24503  
24504 CFISH_UNUSED_VAR(cv);
24505 5 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 5 5
24506 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
24507 }
24508 5 SP -= items;
24509  
24510 5 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24511 locations, 1);
24512 5 sv = ST(locations[0]);
24513 5 arg_negated_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "negated_query", LUCY_QUERY, NULL);
24514 5 arg_self = (lucy_NOTQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
24515  
24516 5 retval = lucy_NOTQuery_init(arg_self, arg_negated_query);
24517 5 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
24518 5 XSRETURN(1);
24519 }
24520  
24521  
24522 XS_INTERNAL(XS_Lucy_Search_NOTQuery_get_negated_query);
24523 0 XS_INTERNAL(XS_Lucy_Search_NOTQuery_get_negated_query) {
24524 0 dXSARGS;
24525 lucy_NOTQuery* arg_self;
24526 LUCY_NOTQuery_Get_Negated_Query_t method;
24527 lucy_Query* retval;
24528  
24529 CFISH_UNUSED_VAR(cv);
24530 0 SP -= items;
24531 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
24532 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24533 }
24534  
24535 /* Extract vars from Perl stack. */
24536 0 arg_self = (lucy_NOTQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTQUERY, NULL);
24537  
24538 /* Execute */
24539 0 method = CFISH_METHOD_PTR(LUCY_NOTQUERY, LUCY_NOTQuery_Get_Negated_Query);
24540 0 retval = method(arg_self);
24541 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24542 0 sv_2mortal( ST(0) );
24543 0 XSRETURN(1);
24544 }
24545  
24546 XS_INTERNAL(XS_Lucy_Search_NOTQuery_set_negated_query);
24547 0 XS_INTERNAL(XS_Lucy_Search_NOTQuery_set_negated_query) {
24548 0 dXSARGS;
24549 SV *sv;
24550 lucy_NOTQuery* arg_self;
24551 lucy_Query* arg_negated_query;
24552 LUCY_NOTQuery_Set_Negated_Query_t method;
24553  
24554 CFISH_UNUSED_VAR(cv);
24555 0 SP -= items;
24556 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24557 0 XSBind_invalid_args_error(aTHX_ cv, "self, negated_query");
24558 }
24559  
24560 /* Extract vars from Perl stack. */
24561 0 arg_self = (lucy_NOTQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTQUERY, NULL);
24562 0 sv = ST(1);
24563 0 arg_negated_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "negated_query", LUCY_QUERY, NULL);
24564  
24565 /* Execute */
24566 0 method = CFISH_METHOD_PTR(LUCY_NOTQUERY, LUCY_NOTQuery_Set_Negated_Query);
24567 0 method(arg_self, arg_negated_query);
24568 0 XSRETURN(0);
24569 }
24570  
24571 XS_INTERNAL(XS_Lucy_Search_NOTQuery_make_compiler);
24572 1 XS_INTERNAL(XS_Lucy_Search_NOTQuery_make_compiler) {
24573 1 dXSARGS;
24574 static const XSBind_ParamSpec param_specs[3] = {
24575 XSBIND_PARAM("searcher", 1),
24576 XSBIND_PARAM("boost", 1),
24577 XSBIND_PARAM("subordinate", 0)
24578 };
24579 int32_t locations[3];
24580 SV *sv;
24581 lucy_NOTQuery* arg_self;
24582 lucy_Searcher* arg_searcher;
24583 float arg_boost;
24584 bool arg_subordinate;
24585 LUCY_NOTQuery_Make_Compiler_t method;
24586 lucy_Compiler* retval;
24587  
24588 CFISH_UNUSED_VAR(cv);
24589 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
24590 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
24591 }
24592 1 SP -= items;
24593  
24594 /* Locate args on Perl stack. */
24595 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24596 locations, 3);
24597 1 arg_self = (lucy_NOTQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTQUERY, NULL);
24598 1 sv = ST(locations[0]);
24599 1 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
24600 1 sv = ST(locations[1]);
24601 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
24602 0 XSBind_undef_arg_error(aTHX_ "boost");
24603 }
24604 1 arg_boost = (float)SvNV(sv);
24605 1 sv = ST(locations[2]);
24606 1 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
24607 1 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 1 1
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
24608  
24609 /* Execute */
24610 1 method = CFISH_METHOD_PTR(LUCY_NOTQUERY, LUCY_NOTQuery_Make_Compiler);
24611 1 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
24612 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24613 1 CFISH_DECREF(retval);
24614 1 sv_2mortal( ST(0) );
24615 1 XSRETURN(1);
24616 }
24617  
24618 XS_INTERNAL(XS_Lucy_Search_NOTQuery_to_string);
24619 1 XS_INTERNAL(XS_Lucy_Search_NOTQuery_to_string) {
24620 1 dXSARGS;
24621 lucy_NOTQuery* arg_self;
24622 LUCY_NOTQuery_To_String_t method;
24623 cfish_String* retval;
24624  
24625 CFISH_UNUSED_VAR(cv);
24626 1 SP -= items;
24627 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
24628 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24629 }
24630  
24631 /* Extract vars from Perl stack. */
24632 1 arg_self = (lucy_NOTQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTQUERY, NULL);
24633  
24634 /* Execute */
24635 1 method = CFISH_METHOD_PTR(LUCY_NOTQUERY, LUCY_NOTQuery_To_String);
24636 1 retval = method(arg_self);
24637 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24638 1 CFISH_DECREF(retval);
24639 1 sv_2mortal( ST(0) );
24640 1 XSRETURN(1);
24641 }
24642  
24643 XS_INTERNAL(XS_Lucy_Search_NOTQuery_equals);
24644 4 XS_INTERNAL(XS_Lucy_Search_NOTQuery_equals) {
24645 4 dXSARGS;
24646 SV *sv;
24647 lucy_NOTQuery* arg_self;
24648 cfish_Obj* arg_other;
24649 LUCY_NOTQuery_Equals_t method;
24650 bool retval;
24651  
24652 CFISH_UNUSED_VAR(cv);
24653 4 SP -= items;
24654 4 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 4 4
24655 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
24656 }
24657  
24658 /* Extract vars from Perl stack. */
24659 4 arg_self = (lucy_NOTQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_NOTQUERY, NULL);
24660 4 sv = ST(1);
24661 4 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
24662  
24663 /* Execute */
24664 4 method = CFISH_METHOD_PTR(LUCY_NOTQUERY, LUCY_NOTQuery_Equals);
24665 4 retval = method(arg_self, arg_other);
24666 4 ST(0) = newSViv(!!retval);
24667 4 sv_2mortal( ST(0) );
24668 4 XSRETURN(1);
24669 }
24670  
24671 XS_INTERNAL(XS_Lucy_Search_ORQuery_new);
24672 59 XS_INTERNAL(XS_Lucy_Search_ORQuery_new) {
24673 59 dXSARGS;
24674 static const XSBind_ParamSpec param_specs[1] = {
24675 XSBIND_PARAM("children", 0)
24676 };
24677 int32_t locations[1];
24678 SV *sv;
24679 lucy_ORQuery* arg_self;
24680 cfish_Vector* arg_children;
24681 lucy_ORQuery* retval;
24682  
24683 CFISH_UNUSED_VAR(cv);
24684 59 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 59 59
24685 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
24686 }
24687 59 SP -= items;
24688  
24689 59 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24690 locations, 1);
24691 59 sv = ST(locations[0]);
24692 59 ▶ arg_children = locations[0] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_children = locations[0] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL; 56 3 59
24693 59 arg_self = (lucy_ORQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
24694  
24695 59 retval = lucy_ORQuery_init(arg_self, arg_children);
24696 59 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
24697 59 XSRETURN(1);
24698 }
24699  
24700  
24701 XS_INTERNAL(XS_Lucy_Search_ORQuery_make_compiler);
24702 5 XS_INTERNAL(XS_Lucy_Search_ORQuery_make_compiler) {
24703 5 dXSARGS;
24704 static const XSBind_ParamSpec param_specs[3] = {
24705 XSBIND_PARAM("searcher", 1),
24706 XSBIND_PARAM("boost", 1),
24707 XSBIND_PARAM("subordinate", 0)
24708 };
24709 int32_t locations[3];
24710 SV *sv;
24711 lucy_ORQuery* arg_self;
24712 lucy_Searcher* arg_searcher;
24713 float arg_boost;
24714 bool arg_subordinate;
24715 LUCY_ORQuery_Make_Compiler_t method;
24716 lucy_Compiler* retval;
24717  
24718 CFISH_UNUSED_VAR(cv);
24719 5 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 5 5
24720 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
24721 }
24722 5 SP -= items;
24723  
24724 /* Locate args on Perl stack. */
24725 5 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24726 locations, 3);
24727 5 arg_self = (lucy_ORQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORQUERY, NULL);
24728 5 sv = ST(locations[0]);
24729 5 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
24730 5 sv = ST(locations[1]);
24731 5 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 5 5
24732 0 XSBind_undef_arg_error(aTHX_ "boost");
24733 }
24734 5 arg_boost = (float)SvNV(sv);
24735 5 sv = ST(locations[2]);
24736 5 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 5 5
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
24737 5 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 5 5
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
24738  
24739 /* Execute */
24740 5 method = CFISH_METHOD_PTR(LUCY_ORQUERY, LUCY_ORQuery_Make_Compiler);
24741 5 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
24742 5 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24743 5 CFISH_DECREF(retval);
24744 5 sv_2mortal( ST(0) );
24745 5 XSRETURN(1);
24746 }
24747  
24748 XS_INTERNAL(XS_Lucy_Search_ORQuery_to_string);
24749 0 XS_INTERNAL(XS_Lucy_Search_ORQuery_to_string) {
24750 0 dXSARGS;
24751 lucy_ORQuery* arg_self;
24752 LUCY_ORQuery_To_String_t method;
24753 cfish_String* retval;
24754  
24755 CFISH_UNUSED_VAR(cv);
24756 0 SP -= items;
24757 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
24758 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24759 }
24760  
24761 /* Extract vars from Perl stack. */
24762 0 arg_self = (lucy_ORQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORQUERY, NULL);
24763  
24764 /* Execute */
24765 0 method = CFISH_METHOD_PTR(LUCY_ORQUERY, LUCY_ORQuery_To_String);
24766 0 retval = method(arg_self);
24767 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24768 0 CFISH_DECREF(retval);
24769 0 sv_2mortal( ST(0) );
24770 0 XSRETURN(1);
24771 }
24772  
24773 XS_INTERNAL(XS_Lucy_Search_ORQuery_equals);
24774 5 XS_INTERNAL(XS_Lucy_Search_ORQuery_equals) {
24775 5 dXSARGS;
24776 SV *sv;
24777 lucy_ORQuery* arg_self;
24778 cfish_Obj* arg_other;
24779 LUCY_ORQuery_Equals_t method;
24780 bool retval;
24781  
24782 CFISH_UNUSED_VAR(cv);
24783 5 SP -= items;
24784 5 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 5 5
24785 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
24786 }
24787  
24788 /* Extract vars from Perl stack. */
24789 5 arg_self = (lucy_ORQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_ORQUERY, NULL);
24790 5 sv = ST(1);
24791 5 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
24792  
24793 /* Execute */
24794 5 method = CFISH_METHOD_PTR(LUCY_ORQUERY, LUCY_ORQuery_Equals);
24795 5 retval = method(arg_self, arg_other);
24796 5 ST(0) = newSViv(!!retval);
24797 5 sv_2mortal( ST(0) );
24798 5 XSRETURN(1);
24799 }
24800  
24801 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_new);
24802 3 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_new) {
24803 3 dXSARGS;
24804 static const XSBind_ParamSpec param_specs[2] = {
24805 XSBIND_PARAM("required_query", 1),
24806 XSBIND_PARAM("optional_query", 1)
24807 };
24808 int32_t locations[2];
24809 SV *sv;
24810 lucy_RequiredOptionalQuery* arg_self;
24811 lucy_Query* arg_required_query;
24812 lucy_Query* arg_optional_query;
24813 lucy_RequiredOptionalQuery* retval;
24814  
24815 CFISH_UNUSED_VAR(cv);
24816 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
24817 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
24818 }
24819 3 SP -= items;
24820  
24821 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24822 locations, 2);
24823 3 sv = ST(locations[0]);
24824 3 arg_required_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "required_query", LUCY_QUERY, NULL);
24825 3 sv = ST(locations[1]);
24826 3 arg_optional_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "optional_query", LUCY_QUERY, NULL);
24827 3 arg_self = (lucy_RequiredOptionalQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
24828  
24829 3 retval = lucy_ReqOptQuery_init(arg_self, arg_required_query, arg_optional_query);
24830 3 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
24831 3 XSRETURN(1);
24832 }
24833  
24834  
24835 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_get_required_query);
24836 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_get_required_query) {
24837 0 dXSARGS;
24838 lucy_RequiredOptionalQuery* arg_self;
24839 LUCY_ReqOptQuery_Get_Required_Query_t method;
24840 lucy_Query* retval;
24841  
24842 CFISH_UNUSED_VAR(cv);
24843 0 SP -= items;
24844 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
24845 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24846 }
24847  
24848 /* Extract vars from Perl stack. */
24849 0 arg_self = (lucy_RequiredOptionalQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALQUERY, NULL);
24850  
24851 /* Execute */
24852 0 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALQUERY, LUCY_ReqOptQuery_Get_Required_Query);
24853 0 retval = method(arg_self);
24854 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24855 0 sv_2mortal( ST(0) );
24856 0 XSRETURN(1);
24857 }
24858  
24859 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_set_required_query);
24860 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_set_required_query) {
24861 0 dXSARGS;
24862 SV *sv;
24863 lucy_RequiredOptionalQuery* arg_self;
24864 lucy_Query* arg_required_query;
24865 LUCY_ReqOptQuery_Set_Required_Query_t method;
24866  
24867 CFISH_UNUSED_VAR(cv);
24868 0 SP -= items;
24869 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24870 0 XSBind_invalid_args_error(aTHX_ cv, "self, required_query");
24871 }
24872  
24873 /* Extract vars from Perl stack. */
24874 0 arg_self = (lucy_RequiredOptionalQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALQUERY, NULL);
24875 0 sv = ST(1);
24876 0 arg_required_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "required_query", LUCY_QUERY, NULL);
24877  
24878 /* Execute */
24879 0 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALQUERY, LUCY_ReqOptQuery_Set_Required_Query);
24880 0 method(arg_self, arg_required_query);
24881 0 XSRETURN(0);
24882 }
24883  
24884 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_get_optional_query);
24885 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_get_optional_query) {
24886 0 dXSARGS;
24887 lucy_RequiredOptionalQuery* arg_self;
24888 LUCY_ReqOptQuery_Get_Optional_Query_t method;
24889 lucy_Query* retval;
24890  
24891 CFISH_UNUSED_VAR(cv);
24892 0 SP -= items;
24893 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
24894 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24895 }
24896  
24897 /* Extract vars from Perl stack. */
24898 0 arg_self = (lucy_RequiredOptionalQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALQUERY, NULL);
24899  
24900 /* Execute */
24901 0 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALQUERY, LUCY_ReqOptQuery_Get_Optional_Query);
24902 0 retval = method(arg_self);
24903 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24904 0 sv_2mortal( ST(0) );
24905 0 XSRETURN(1);
24906 }
24907  
24908 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_set_optional_query);
24909 0 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_set_optional_query) {
24910 0 dXSARGS;
24911 SV *sv;
24912 lucy_RequiredOptionalQuery* arg_self;
24913 lucy_Query* arg_optional_query;
24914 LUCY_ReqOptQuery_Set_Optional_Query_t method;
24915  
24916 CFISH_UNUSED_VAR(cv);
24917 0 SP -= items;
24918 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
24919 0 XSBind_invalid_args_error(aTHX_ cv, "self, optional_query");
24920 }
24921  
24922 /* Extract vars from Perl stack. */
24923 0 arg_self = (lucy_RequiredOptionalQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALQUERY, NULL);
24924 0 sv = ST(1);
24925 0 arg_optional_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "optional_query", LUCY_QUERY, NULL);
24926  
24927 /* Execute */
24928 0 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALQUERY, LUCY_ReqOptQuery_Set_Optional_Query);
24929 0 method(arg_self, arg_optional_query);
24930 0 XSRETURN(0);
24931 }
24932  
24933 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_make_compiler);
24934 2 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_make_compiler) {
24935 2 dXSARGS;
24936 static const XSBind_ParamSpec param_specs[3] = {
24937 XSBIND_PARAM("searcher", 1),
24938 XSBIND_PARAM("boost", 1),
24939 XSBIND_PARAM("subordinate", 0)
24940 };
24941 int32_t locations[3];
24942 SV *sv;
24943 lucy_RequiredOptionalQuery* arg_self;
24944 lucy_Searcher* arg_searcher;
24945 float arg_boost;
24946 bool arg_subordinate;
24947 LUCY_ReqOptQuery_Make_Compiler_t method;
24948 lucy_Compiler* retval;
24949  
24950 CFISH_UNUSED_VAR(cv);
24951 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
24952 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
24953 }
24954 2 SP -= items;
24955  
24956 /* Locate args on Perl stack. */
24957 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
24958 locations, 3);
24959 2 arg_self = (lucy_RequiredOptionalQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALQUERY, NULL);
24960 2 sv = ST(locations[0]);
24961 2 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
24962 2 sv = ST(locations[1]);
24963 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
24964 0 XSBind_undef_arg_error(aTHX_ "boost");
24965 }
24966 2 arg_boost = (float)SvNV(sv);
24967 2 sv = ST(locations[2]);
24968 2 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 2 2
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
24969 2 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 2 2
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
24970  
24971 /* Execute */
24972 2 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALQUERY, LUCY_ReqOptQuery_Make_Compiler);
24973 2 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
24974 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
24975 2 CFISH_DECREF(retval);
24976 2 sv_2mortal( ST(0) );
24977 2 XSRETURN(1);
24978 }
24979  
24980 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_to_string);
24981 1 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_to_string) {
24982 1 dXSARGS;
24983 lucy_RequiredOptionalQuery* arg_self;
24984 LUCY_ReqOptQuery_To_String_t method;
24985 cfish_String* retval;
24986  
24987 CFISH_UNUSED_VAR(cv);
24988 1 SP -= items;
24989 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
24990 0 XSBind_invalid_args_error(aTHX_ cv, "self");
24991 }
24992  
24993 /* Extract vars from Perl stack. */
24994 1 arg_self = (lucy_RequiredOptionalQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALQUERY, NULL);
24995  
24996 /* Execute */
24997 1 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALQUERY, LUCY_ReqOptQuery_To_String);
24998 1 retval = method(arg_self);
24999 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25000 1 CFISH_DECREF(retval);
25001 1 sv_2mortal( ST(0) );
25002 1 XSRETURN(1);
25003 }
25004  
25005 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_equals);
25006 2 XS_INTERNAL(XS_Lucy_Search_RequiredOptionalQuery_equals) {
25007 2 dXSARGS;
25008 SV *sv;
25009 lucy_RequiredOptionalQuery* arg_self;
25010 cfish_Obj* arg_other;
25011 LUCY_ReqOptQuery_Equals_t method;
25012 bool retval;
25013  
25014 CFISH_UNUSED_VAR(cv);
25015 2 SP -= items;
25016 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
25017 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
25018 }
25019  
25020 /* Extract vars from Perl stack. */
25021 2 arg_self = (lucy_RequiredOptionalQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_REQUIREDOPTIONALQUERY, NULL);
25022 2 sv = ST(1);
25023 2 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
25024  
25025 /* Execute */
25026 2 method = CFISH_METHOD_PTR(LUCY_REQUIREDOPTIONALQUERY, LUCY_ReqOptQuery_Equals);
25027 2 retval = method(arg_self, arg_other);
25028 2 ST(0) = newSViv(!!retval);
25029 2 sv_2mortal( ST(0) );
25030 2 XSRETURN(1);
25031 }
25032  
25033 XS_INTERNAL(XS_Lucy_Search_RangeQuery_new);
25034 20 XS_INTERNAL(XS_Lucy_Search_RangeQuery_new) {
25035 20 dXSARGS;
25036 static const XSBind_ParamSpec param_specs[5] = {
25037 XSBIND_PARAM("field", 1),
25038 XSBIND_PARAM("lower_term", 0),
25039 XSBIND_PARAM("upper_term", 0),
25040 XSBIND_PARAM("include_lower", 0),
25041 XSBIND_PARAM("include_upper", 0)
25042 };
25043 int32_t locations[5];
25044 SV *sv;
25045 lucy_RangeQuery* arg_self;
25046 cfish_String* arg_field;
25047 cfish_Obj* arg_lower_term;
25048 cfish_Obj* arg_upper_term;
25049 bool arg_include_lower;
25050 bool arg_include_upper;
25051 lucy_RangeQuery* retval;
25052  
25053 CFISH_UNUSED_VAR(cv);
25054 20 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 20 20
25055 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
25056 }
25057 20 SP -= items;
25058  
25059 20 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
25060 locations, 5);
25061 20 sv = ST(locations[0]);
25062 20 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
25063 20 sv = ST(locations[1]);
25064 20 ▶ arg_lower_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "lower_term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_lower_term = locations[1] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "lower_term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 18 2 20
25065 20 sv = ST(locations[2]);
25066 20 ▶ arg_upper_term = locations[2] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "upper_term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_upper_term = locations[2] < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "upper_term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 18 2 20
25067 20 sv = ST(locations[3]);
25068 20 ▶ arg_include_lower = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_include_lower = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 15 5 20
arg_include_lower = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 15 15
25069 20 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 15 5 20
? XSBind_sv_true(aTHX_ sv) : true; 7 8 15
25070 20 sv = ST(locations[4]);
25071 20 ▶ arg_include_upper = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_include_upper = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 15 5 20
arg_include_upper = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 15 15
25072 20 ▶ ? XSBind_sv_true(aTHX_ sv) : true;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : true; 15 5 20
? XSBind_sv_true(aTHX_ sv) : true; 7 8 15
25073 20 arg_self = (lucy_RangeQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
25074  
25075 20 retval = lucy_RangeQuery_init(arg_self, arg_field, arg_lower_term, arg_upper_term, arg_include_lower, arg_include_upper);
25076 19 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
25077 19 XSRETURN(1);
25078 }
25079  
25080  
25081 XS_INTERNAL(XS_Lucy_Search_RangeQuery_equals);
25082 19 XS_INTERNAL(XS_Lucy_Search_RangeQuery_equals) {
25083 19 dXSARGS;
25084 SV *sv;
25085 lucy_RangeQuery* arg_self;
25086 cfish_Obj* arg_other;
25087 LUCY_RangeQuery_Equals_t method;
25088 bool retval;
25089  
25090 CFISH_UNUSED_VAR(cv);
25091 19 SP -= items;
25092 19 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 19 19
25093 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
25094 }
25095  
25096 /* Extract vars from Perl stack. */
25097 19 arg_self = (lucy_RangeQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEQUERY, NULL);
25098 19 sv = ST(1);
25099 19 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
25100  
25101 /* Execute */
25102 19 method = CFISH_METHOD_PTR(LUCY_RANGEQUERY, LUCY_RangeQuery_Equals);
25103 19 retval = method(arg_self, arg_other);
25104 19 ST(0) = newSViv(!!retval);
25105 19 sv_2mortal( ST(0) );
25106 19 XSRETURN(1);
25107 }
25108  
25109 XS_INTERNAL(XS_Lucy_Search_RangeQuery_to_string);
25110 5 XS_INTERNAL(XS_Lucy_Search_RangeQuery_to_string) {
25111 5 dXSARGS;
25112 lucy_RangeQuery* arg_self;
25113 LUCY_RangeQuery_To_String_t method;
25114 cfish_String* retval;
25115  
25116 CFISH_UNUSED_VAR(cv);
25117 5 SP -= items;
25118 5 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 5 5
25119 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25120 }
25121  
25122 /* Extract vars from Perl stack. */
25123 5 arg_self = (lucy_RangeQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEQUERY, NULL);
25124  
25125 /* Execute */
25126 5 method = CFISH_METHOD_PTR(LUCY_RANGEQUERY, LUCY_RangeQuery_To_String);
25127 5 retval = method(arg_self);
25128 5 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25129 5 CFISH_DECREF(retval);
25130 5 sv_2mortal( ST(0) );
25131 5 XSRETURN(1);
25132 }
25133  
25134 XS_INTERNAL(XS_Lucy_Search_RangeQuery_make_compiler);
25135 19 XS_INTERNAL(XS_Lucy_Search_RangeQuery_make_compiler) {
25136 19 dXSARGS;
25137 static const XSBind_ParamSpec param_specs[3] = {
25138 XSBIND_PARAM("searcher", 1),
25139 XSBIND_PARAM("boost", 1),
25140 XSBIND_PARAM("subordinate", 0)
25141 };
25142 int32_t locations[3];
25143 SV *sv;
25144 lucy_RangeQuery* arg_self;
25145 lucy_Searcher* arg_searcher;
25146 float arg_boost;
25147 bool arg_subordinate;
25148 LUCY_RangeQuery_Make_Compiler_t method;
25149 lucy_Compiler* retval;
25150  
25151 CFISH_UNUSED_VAR(cv);
25152 19 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 19 19
25153 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
25154 }
25155 19 SP -= items;
25156  
25157 /* Locate args on Perl stack. */
25158 19 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
25159 locations, 3);
25160 19 arg_self = (lucy_RangeQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEQUERY, NULL);
25161 19 sv = ST(locations[0]);
25162 19 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
25163 19 sv = ST(locations[1]);
25164 19 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 19 19
25165 0 XSBind_undef_arg_error(aTHX_ "boost");
25166 }
25167 19 arg_boost = (float)SvNV(sv);
25168 19 sv = ST(locations[2]);
25169 19 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 19 19
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
25170 19 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 19 19
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
25171  
25172 /* Execute */
25173 19 method = CFISH_METHOD_PTR(LUCY_RANGEQUERY, LUCY_RangeQuery_Make_Compiler);
25174 19 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
25175 19 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25176 19 CFISH_DECREF(retval);
25177 19 sv_2mortal( ST(0) );
25178 19 XSRETURN(1);
25179 }
25180  
25181 XS_INTERNAL(XS_Lucy_Search_RangeQuery_serialize);
25182 0 XS_INTERNAL(XS_Lucy_Search_RangeQuery_serialize) {
25183 0 dXSARGS;
25184 SV *sv;
25185 lucy_RangeQuery* arg_self;
25186 lucy_OutStream* arg_outstream;
25187 LUCY_RangeQuery_Serialize_t method;
25188  
25189 CFISH_UNUSED_VAR(cv);
25190 0 SP -= items;
25191 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25192 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
25193 }
25194  
25195 /* Extract vars from Perl stack. */
25196 0 arg_self = (lucy_RangeQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEQUERY, NULL);
25197 0 sv = ST(1);
25198 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
25199  
25200 /* Execute */
25201 0 method = CFISH_METHOD_PTR(LUCY_RANGEQUERY, LUCY_RangeQuery_Serialize);
25202 0 method(arg_self, arg_outstream);
25203 0 XSRETURN(0);
25204 }
25205  
25206 XS_INTERNAL(XS_Lucy_Search_RangeQuery_deserialize);
25207 0 XS_INTERNAL(XS_Lucy_Search_RangeQuery_deserialize) {
25208 0 dXSARGS;
25209 SV *sv;
25210 lucy_RangeQuery* arg_self;
25211 lucy_InStream* arg_instream;
25212 LUCY_RangeQuery_Deserialize_t method;
25213 lucy_RangeQuery* retval;
25214  
25215 CFISH_UNUSED_VAR(cv);
25216 0 SP -= items;
25217 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25218 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
25219 }
25220  
25221 /* Extract vars from Perl stack. */
25222 0 arg_self = (lucy_RangeQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEQUERY, NULL);
25223 0 sv = ST(1);
25224 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
25225  
25226 /* Execute */
25227 0 method = CFISH_METHOD_PTR(LUCY_RANGEQUERY, LUCY_RangeQuery_Deserialize);
25228 0 arg_self = (lucy_RangeQuery*)CFISH_INCREF(arg_self);
25229 0 retval = method(arg_self, arg_instream);
25230 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25231 0 CFISH_DECREF(retval);
25232 0 sv_2mortal( ST(0) );
25233 0 XSRETURN(1);
25234 }
25235  
25236 XS_INTERNAL(XS_Lucy_Search_RangeQuery_dump);
25237 0 XS_INTERNAL(XS_Lucy_Search_RangeQuery_dump) {
25238 0 dXSARGS;
25239 lucy_RangeQuery* arg_self;
25240 LUCY_RangeQuery_Dump_t method;
25241 cfish_Obj* retval;
25242  
25243 CFISH_UNUSED_VAR(cv);
25244 0 SP -= items;
25245 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
25246 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25247 }
25248  
25249 /* Extract vars from Perl stack. */
25250 0 arg_self = (lucy_RangeQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEQUERY, NULL);
25251  
25252 /* Execute */
25253 0 method = CFISH_METHOD_PTR(LUCY_RANGEQUERY, LUCY_RangeQuery_Dump);
25254 0 retval = method(arg_self);
25255 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25256 0 CFISH_DECREF(retval);
25257 0 sv_2mortal( ST(0) );
25258 0 XSRETURN(1);
25259 }
25260  
25261 XS_INTERNAL(XS_Lucy_Search_RangeQuery_load);
25262 0 XS_INTERNAL(XS_Lucy_Search_RangeQuery_load) {
25263 0 dXSARGS;
25264 SV *sv;
25265 lucy_RangeQuery* arg_self;
25266 cfish_Obj* arg_dump;
25267 LUCY_RangeQuery_Load_t method;
25268 cfish_Obj* retval;
25269  
25270 CFISH_UNUSED_VAR(cv);
25271 0 SP -= items;
25272 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25273 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
25274 }
25275  
25276 /* Extract vars from Perl stack. */
25277 0 arg_self = (lucy_RangeQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RANGEQUERY, NULL);
25278 0 sv = ST(1);
25279 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
25280  
25281 /* Execute */
25282 0 method = CFISH_METHOD_PTR(LUCY_RANGEQUERY, LUCY_RangeQuery_Load);
25283 0 retval = method(arg_self, arg_dump);
25284 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25285 0 CFISH_DECREF(retval);
25286 0 sv_2mortal( ST(0) );
25287 0 XSRETURN(1);
25288 }
25289  
25290 XS_INTERNAL(XS_Lucy_Search_TermQuery_new);
25291 38 XS_INTERNAL(XS_Lucy_Search_TermQuery_new) {
25292 38 dXSARGS;
25293 static const XSBind_ParamSpec param_specs[2] = {
25294 XSBIND_PARAM("field", 1),
25295 XSBIND_PARAM("term", 1)
25296 };
25297 int32_t locations[2];
25298 SV *sv;
25299 lucy_TermQuery* arg_self;
25300 cfish_String* arg_field;
25301 cfish_Obj* arg_term;
25302 lucy_TermQuery* retval;
25303  
25304 CFISH_UNUSED_VAR(cv);
25305 38 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 38 38
25306 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
25307 }
25308 38 SP -= items;
25309  
25310 38 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
25311 locations, 2);
25312 38 sv = ST(locations[0]);
25313 38 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
25314 38 sv = ST(locations[1]);
25315 38 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
25316 38 arg_self = (lucy_TermQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
25317  
25318 38 retval = lucy_TermQuery_init(arg_self, arg_field, arg_term);
25319 38 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
25320 38 XSRETURN(1);
25321 }
25322  
25323  
25324 XS_INTERNAL(XS_Lucy_Search_TermQuery_get_field);
25325 1 XS_INTERNAL(XS_Lucy_Search_TermQuery_get_field) {
25326 1 dXSARGS;
25327 lucy_TermQuery* arg_self;
25328 LUCY_TermQuery_Get_Field_t method;
25329 cfish_String* retval;
25330  
25331 CFISH_UNUSED_VAR(cv);
25332 1 SP -= items;
25333 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
25334 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25335 }
25336  
25337 /* Extract vars from Perl stack. */
25338 1 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25339  
25340 /* Execute */
25341 1 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_Get_Field);
25342 1 retval = method(arg_self);
25343 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25344 1 sv_2mortal( ST(0) );
25345 1 XSRETURN(1);
25346 }
25347  
25348 XS_INTERNAL(XS_Lucy_Search_TermQuery_get_term);
25349 1 XS_INTERNAL(XS_Lucy_Search_TermQuery_get_term) {
25350 1 dXSARGS;
25351 lucy_TermQuery* arg_self;
25352 LUCY_TermQuery_Get_Term_t method;
25353 cfish_Obj* retval;
25354  
25355 CFISH_UNUSED_VAR(cv);
25356 1 SP -= items;
25357 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
25358 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25359 }
25360  
25361 /* Extract vars from Perl stack. */
25362 1 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25363  
25364 /* Execute */
25365 1 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_Get_Term);
25366 1 retval = method(arg_self);
25367 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25368 1 sv_2mortal( ST(0) );
25369 1 XSRETURN(1);
25370 }
25371  
25372 XS_INTERNAL(XS_Lucy_Search_TermQuery_make_compiler);
25373 1 XS_INTERNAL(XS_Lucy_Search_TermQuery_make_compiler) {
25374 1 dXSARGS;
25375 static const XSBind_ParamSpec param_specs[3] = {
25376 XSBIND_PARAM("searcher", 1),
25377 XSBIND_PARAM("boost", 1),
25378 XSBIND_PARAM("subordinate", 0)
25379 };
25380 int32_t locations[3];
25381 SV *sv;
25382 lucy_TermQuery* arg_self;
25383 lucy_Searcher* arg_searcher;
25384 float arg_boost;
25385 bool arg_subordinate;
25386 LUCY_TermQuery_Make_Compiler_t method;
25387 lucy_Compiler* retval;
25388  
25389 CFISH_UNUSED_VAR(cv);
25390 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
25391 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
25392 }
25393 1 SP -= items;
25394  
25395 /* Locate args on Perl stack. */
25396 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
25397 locations, 3);
25398 1 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25399 1 sv = ST(locations[0]);
25400 1 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
25401 1 sv = ST(locations[1]);
25402 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
25403 0 XSBind_undef_arg_error(aTHX_ "boost");
25404 }
25405 1 arg_boost = (float)SvNV(sv);
25406 1 sv = ST(locations[2]);
25407 1 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
25408 1 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 1 1
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
25409  
25410 /* Execute */
25411 1 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_Make_Compiler);
25412 1 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
25413 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25414 1 CFISH_DECREF(retval);
25415 1 sv_2mortal( ST(0) );
25416 1 XSRETURN(1);
25417 }
25418  
25419 XS_INTERNAL(XS_Lucy_Search_TermQuery_to_string);
25420 2 XS_INTERNAL(XS_Lucy_Search_TermQuery_to_string) {
25421 2 dXSARGS;
25422 lucy_TermQuery* arg_self;
25423 LUCY_TermQuery_To_String_t method;
25424 cfish_String* retval;
25425  
25426 CFISH_UNUSED_VAR(cv);
25427 2 SP -= items;
25428 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
25429 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25430 }
25431  
25432 /* Extract vars from Perl stack. */
25433 2 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25434  
25435 /* Execute */
25436 2 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_To_String);
25437 2 retval = method(arg_self);
25438 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25439 2 CFISH_DECREF(retval);
25440 2 sv_2mortal( ST(0) );
25441 2 XSRETURN(1);
25442 }
25443  
25444 XS_INTERNAL(XS_Lucy_Search_TermQuery_serialize);
25445 0 XS_INTERNAL(XS_Lucy_Search_TermQuery_serialize) {
25446 0 dXSARGS;
25447 SV *sv;
25448 lucy_TermQuery* arg_self;
25449 lucy_OutStream* arg_outstream;
25450 LUCY_TermQuery_Serialize_t method;
25451  
25452 CFISH_UNUSED_VAR(cv);
25453 0 SP -= items;
25454 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25455 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
25456 }
25457  
25458 /* Extract vars from Perl stack. */
25459 0 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25460 0 sv = ST(1);
25461 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
25462  
25463 /* Execute */
25464 0 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_Serialize);
25465 0 method(arg_self, arg_outstream);
25466 0 XSRETURN(0);
25467 }
25468  
25469 XS_INTERNAL(XS_Lucy_Search_TermQuery_deserialize);
25470 0 XS_INTERNAL(XS_Lucy_Search_TermQuery_deserialize) {
25471 0 dXSARGS;
25472 SV *sv;
25473 lucy_TermQuery* arg_self;
25474 lucy_InStream* arg_instream;
25475 LUCY_TermQuery_Deserialize_t method;
25476 lucy_TermQuery* retval;
25477  
25478 CFISH_UNUSED_VAR(cv);
25479 0 SP -= items;
25480 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25481 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
25482 }
25483  
25484 /* Extract vars from Perl stack. */
25485 0 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25486 0 sv = ST(1);
25487 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
25488  
25489 /* Execute */
25490 0 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_Deserialize);
25491 0 arg_self = (lucy_TermQuery*)CFISH_INCREF(arg_self);
25492 0 retval = method(arg_self, arg_instream);
25493 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25494 0 CFISH_DECREF(retval);
25495 0 sv_2mortal( ST(0) );
25496 0 XSRETURN(1);
25497 }
25498  
25499 XS_INTERNAL(XS_Lucy_Search_TermQuery_dump);
25500 0 XS_INTERNAL(XS_Lucy_Search_TermQuery_dump) {
25501 0 dXSARGS;
25502 lucy_TermQuery* arg_self;
25503 LUCY_TermQuery_Dump_t method;
25504 cfish_Obj* retval;
25505  
25506 CFISH_UNUSED_VAR(cv);
25507 0 SP -= items;
25508 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
25509 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25510 }
25511  
25512 /* Extract vars from Perl stack. */
25513 0 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25514  
25515 /* Execute */
25516 0 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_Dump);
25517 0 retval = method(arg_self);
25518 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25519 0 CFISH_DECREF(retval);
25520 0 sv_2mortal( ST(0) );
25521 0 XSRETURN(1);
25522 }
25523  
25524 XS_INTERNAL(XS_Lucy_Search_TermQuery_load);
25525 0 XS_INTERNAL(XS_Lucy_Search_TermQuery_load) {
25526 0 dXSARGS;
25527 SV *sv;
25528 lucy_TermQuery* arg_self;
25529 cfish_Obj* arg_dump;
25530 LUCY_TermQuery_Load_t method;
25531 cfish_Obj* retval;
25532  
25533 CFISH_UNUSED_VAR(cv);
25534 0 SP -= items;
25535 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25536 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
25537 }
25538  
25539 /* Extract vars from Perl stack. */
25540 0 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25541 0 sv = ST(1);
25542 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
25543  
25544 /* Execute */
25545 0 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_Load);
25546 0 retval = method(arg_self, arg_dump);
25547 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25548 0 CFISH_DECREF(retval);
25549 0 sv_2mortal( ST(0) );
25550 0 XSRETURN(1);
25551 }
25552  
25553 XS_INTERNAL(XS_Lucy_Search_TermQuery_equals);
25554 6 XS_INTERNAL(XS_Lucy_Search_TermQuery_equals) {
25555 6 dXSARGS;
25556 SV *sv;
25557 lucy_TermQuery* arg_self;
25558 cfish_Obj* arg_other;
25559 LUCY_TermQuery_Equals_t method;
25560 bool retval;
25561  
25562 CFISH_UNUSED_VAR(cv);
25563 6 SP -= items;
25564 6 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 6 6
25565 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
25566 }
25567  
25568 /* Extract vars from Perl stack. */
25569 6 arg_self = (lucy_TermQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMQUERY, NULL);
25570 6 sv = ST(1);
25571 6 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
25572  
25573 /* Execute */
25574 6 method = CFISH_METHOD_PTR(LUCY_TERMQUERY, LUCY_TermQuery_Equals);
25575 6 retval = method(arg_self, arg_other);
25576 6 ST(0) = newSViv(!!retval);
25577 6 sv_2mortal( ST(0) );
25578 6 XSRETURN(1);
25579 }
25580  
25581 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_new);
25582 6 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_new) {
25583 6 dXSARGS;
25584 static const XSBind_ParamSpec param_specs[3] = {
25585 XSBIND_PARAM("field", 1),
25586 XSBIND_PARAM("terms", 1),
25587 XSBIND_PARAM("within", 1)
25588 };
25589 int32_t locations[3];
25590 SV *sv;
25591 lucy_ProximityQuery* arg_self;
25592 cfish_String* arg_field;
25593 cfish_Vector* arg_terms;
25594 uint32_t arg_within;
25595 lucy_ProximityQuery* retval;
25596  
25597 CFISH_UNUSED_VAR(cv);
25598 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
25599 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
25600 }
25601 6 SP -= items;
25602  
25603 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
25604 locations, 3);
25605 6 sv = ST(locations[0]);
25606 6 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
25607 6 sv = ST(locations[1]);
25608 6 arg_terms = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "terms", CFISH_VECTOR, NULL);
25609 6 sv = ST(locations[2]);
25610 6 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 6 6
25611 0 XSBind_undef_arg_error(aTHX_ "within");
25612 }
25613 6 arg_within = (uint32_t)SvUV(sv);
25614 6 arg_self = (lucy_ProximityQuery*)XSBind_new_blank_obj(aTHX_ ST(0));
25615  
25616 6 retval = lucy_ProximityQuery_init(arg_self, arg_field, arg_terms, arg_within);
25617 6 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
25618 6 XSRETURN(1);
25619 }
25620  
25621  
25622 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_get_field);
25623 0 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_get_field) {
25624 0 dXSARGS;
25625 lucy_ProximityQuery* arg_self;
25626 LUCY_ProximityQuery_Get_Field_t method;
25627 cfish_String* retval;
25628  
25629 CFISH_UNUSED_VAR(cv);
25630 0 SP -= items;
25631 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
25632 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25633 }
25634  
25635 /* Extract vars from Perl stack. */
25636 0 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25637  
25638 /* Execute */
25639 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Get_Field);
25640 0 retval = method(arg_self);
25641 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25642 0 sv_2mortal( ST(0) );
25643 0 XSRETURN(1);
25644 }
25645  
25646 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_get_terms);
25647 0 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_get_terms) {
25648 0 dXSARGS;
25649 lucy_ProximityQuery* arg_self;
25650 LUCY_ProximityQuery_Get_Terms_t method;
25651 cfish_Vector* retval;
25652  
25653 CFISH_UNUSED_VAR(cv);
25654 0 SP -= items;
25655 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
25656 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25657 }
25658  
25659 /* Extract vars from Perl stack. */
25660 0 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25661  
25662 /* Execute */
25663 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Get_Terms);
25664 0 retval = method(arg_self);
25665 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25666 0 sv_2mortal( ST(0) );
25667 0 XSRETURN(1);
25668 }
25669  
25670 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_get_within);
25671 0 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_get_within) {
25672 0 dXSARGS;
25673 lucy_ProximityQuery* arg_self;
25674 LUCY_ProximityQuery_Get_Within_t method;
25675 uint32_t retval;
25676  
25677 CFISH_UNUSED_VAR(cv);
25678 0 SP -= items;
25679 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
25680 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25681 }
25682  
25683 /* Extract vars from Perl stack. */
25684 0 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25685  
25686 /* Execute */
25687 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Get_Within);
25688 0 retval = method(arg_self);
25689 0 ST(0) = newSVuv(retval);
25690 0 sv_2mortal( ST(0) );
25691 0 XSRETURN(1);
25692 }
25693  
25694 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_make_compiler);
25695 1 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_make_compiler) {
25696 1 dXSARGS;
25697 static const XSBind_ParamSpec param_specs[3] = {
25698 XSBIND_PARAM("searcher", 1),
25699 XSBIND_PARAM("boost", 1),
25700 XSBIND_PARAM("subordinate", 0)
25701 };
25702 int32_t locations[3];
25703 SV *sv;
25704 lucy_ProximityQuery* arg_self;
25705 lucy_Searcher* arg_searcher;
25706 float arg_boost;
25707 bool arg_subordinate;
25708 LUCY_ProximityQuery_Make_Compiler_t method;
25709 lucy_Compiler* retval;
25710  
25711 CFISH_UNUSED_VAR(cv);
25712 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
25713 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
25714 }
25715 1 SP -= items;
25716  
25717 /* Locate args on Perl stack. */
25718 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
25719 locations, 3);
25720 1 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25721 1 sv = ST(locations[0]);
25722 1 arg_searcher = (lucy_Searcher*)XSBind_arg_to_cfish(aTHX_ sv, "searcher", LUCY_SEARCHER, NULL);
25723 1 sv = ST(locations[1]);
25724 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
25725 0 XSBind_undef_arg_error(aTHX_ "boost");
25726 }
25727 1 arg_boost = (float)SvNV(sv);
25728 1 sv = ST(locations[2]);
25729 1 ▶ arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 1 1
arg_subordinate = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
25730 1 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 1 1
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
25731  
25732 /* Execute */
25733 1 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Make_Compiler);
25734 1 retval = method(arg_self, arg_searcher, arg_boost, arg_subordinate);
25735 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25736 1 CFISH_DECREF(retval);
25737 1 sv_2mortal( ST(0) );
25738 1 XSRETURN(1);
25739 }
25740  
25741 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_equals);
25742 0 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_equals) {
25743 0 dXSARGS;
25744 SV *sv;
25745 lucy_ProximityQuery* arg_self;
25746 cfish_Obj* arg_other;
25747 LUCY_ProximityQuery_Equals_t method;
25748 bool retval;
25749  
25750 CFISH_UNUSED_VAR(cv);
25751 0 SP -= items;
25752 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25753 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
25754 }
25755  
25756 /* Extract vars from Perl stack. */
25757 0 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25758 0 sv = ST(1);
25759 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
25760  
25761 /* Execute */
25762 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Equals);
25763 0 retval = method(arg_self, arg_other);
25764 0 ST(0) = newSViv(!!retval);
25765 0 sv_2mortal( ST(0) );
25766 0 XSRETURN(1);
25767 }
25768  
25769 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_to_string);
25770 2 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_to_string) {
25771 2 dXSARGS;
25772 lucy_ProximityQuery* arg_self;
25773 LUCY_ProximityQuery_To_String_t method;
25774 cfish_String* retval;
25775  
25776 CFISH_UNUSED_VAR(cv);
25777 2 SP -= items;
25778 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
25779 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25780 }
25781  
25782 /* Extract vars from Perl stack. */
25783 2 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25784  
25785 /* Execute */
25786 2 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_To_String);
25787 2 retval = method(arg_self);
25788 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25789 2 CFISH_DECREF(retval);
25790 2 sv_2mortal( ST(0) );
25791 2 XSRETURN(1);
25792 }
25793  
25794 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_serialize);
25795 0 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_serialize) {
25796 0 dXSARGS;
25797 SV *sv;
25798 lucy_ProximityQuery* arg_self;
25799 lucy_OutStream* arg_outstream;
25800 LUCY_ProximityQuery_Serialize_t method;
25801  
25802 CFISH_UNUSED_VAR(cv);
25803 0 SP -= items;
25804 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25805 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
25806 }
25807  
25808 /* Extract vars from Perl stack. */
25809 0 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25810 0 sv = ST(1);
25811 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
25812  
25813 /* Execute */
25814 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Serialize);
25815 0 method(arg_self, arg_outstream);
25816 0 XSRETURN(0);
25817 }
25818  
25819 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_deserialize);
25820 0 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_deserialize) {
25821 0 dXSARGS;
25822 SV *sv;
25823 lucy_ProximityQuery* arg_self;
25824 lucy_InStream* arg_instream;
25825 LUCY_ProximityQuery_Deserialize_t method;
25826 lucy_ProximityQuery* retval;
25827  
25828 CFISH_UNUSED_VAR(cv);
25829 0 SP -= items;
25830 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25831 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
25832 }
25833  
25834 /* Extract vars from Perl stack. */
25835 0 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25836 0 sv = ST(1);
25837 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
25838  
25839 /* Execute */
25840 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Deserialize);
25841 0 arg_self = (lucy_ProximityQuery*)CFISH_INCREF(arg_self);
25842 0 retval = method(arg_self, arg_instream);
25843 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25844 0 CFISH_DECREF(retval);
25845 0 sv_2mortal( ST(0) );
25846 0 XSRETURN(1);
25847 }
25848  
25849 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_dump);
25850 0 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_dump) {
25851 0 dXSARGS;
25852 lucy_ProximityQuery* arg_self;
25853 LUCY_ProximityQuery_Dump_t method;
25854 cfish_Obj* retval;
25855  
25856 CFISH_UNUSED_VAR(cv);
25857 0 SP -= items;
25858 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
25859 0 XSBind_invalid_args_error(aTHX_ cv, "self");
25860 }
25861  
25862 /* Extract vars from Perl stack. */
25863 0 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25864  
25865 /* Execute */
25866 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Dump);
25867 0 retval = method(arg_self);
25868 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25869 0 CFISH_DECREF(retval);
25870 0 sv_2mortal( ST(0) );
25871 0 XSRETURN(1);
25872 }
25873  
25874 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_load);
25875 0 XS_INTERNAL(XS_LucyX_Search_ProximityQuery_load) {
25876 0 dXSARGS;
25877 SV *sv;
25878 lucy_ProximityQuery* arg_self;
25879 cfish_Obj* arg_dump;
25880 LUCY_ProximityQuery_Load_t method;
25881 cfish_Obj* retval;
25882  
25883 CFISH_UNUSED_VAR(cv);
25884 0 SP -= items;
25885 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
25886 0 XSBind_invalid_args_error(aTHX_ cv, "self, dump");
25887 }
25888  
25889 /* Extract vars from Perl stack. */
25890 0 arg_self = (lucy_ProximityQuery*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PROXIMITYQUERY, NULL);
25891 0 sv = ST(1);
25892 0 arg_dump = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "dump", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
25893  
25894 /* Execute */
25895 0 method = CFISH_METHOD_PTR(LUCY_PROXIMITYQUERY, LUCY_ProximityQuery_Load);
25896 0 retval = method(arg_self, arg_dump);
25897 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25898 0 CFISH_DECREF(retval);
25899 0 sv_2mortal( ST(0) );
25900 0 XSRETURN(1);
25901 }
25902  
25903 XS_INTERNAL(XS_Lucy_Search_QueryParser_new);
25904 12 XS_INTERNAL(XS_Lucy_Search_QueryParser_new) {
25905 12 dXSARGS;
25906 static const XSBind_ParamSpec param_specs[4] = {
25907 XSBIND_PARAM("schema", 1),
25908 XSBIND_PARAM("analyzer", 0),
25909 XSBIND_PARAM("default_boolop", 0),
25910 XSBIND_PARAM("fields", 0)
25911 };
25912 int32_t locations[4];
25913 SV *sv;
25914 lucy_QueryParser* arg_self;
25915 lucy_Schema* arg_schema;
25916 lucy_Analyzer* arg_analyzer;
25917 cfish_String* arg_default_boolop;
25918 cfish_Vector* arg_fields;
25919 lucy_QueryParser* retval;
25920  
25921 CFISH_UNUSED_VAR(cv);
25922 12 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 12 12
25923 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
25924 }
25925 12 SP -= items;
25926  
25927 12 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
25928 locations, 4);
25929 12 sv = ST(locations[0]);
25930 12 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
25931 12 sv = ST(locations[1]);
25932 12 ▶ arg_analyzer = locations[1] < items ? (lucy_Analyzer*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "analyzer", LUCY_ANALYZER, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_analyzer = locations[1] < items ? (lucy_Analyzer*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "analyzer", LUCY_ANALYZER, NULL) : NULL; 3 9 12
25933 12 sv = ST(locations[2]);
25934 12 ▶ arg_default_boolop = locations[2] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "default_boolop", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_default_boolop = locations[2] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "default_boolop", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 3 9 12
25935 12 sv = ST(locations[3]);
25936 12 ▶ arg_fields = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "fields", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_fields = locations[3] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "fields", CFISH_VECTOR, NULL) : NULL; 3 9 12
25937 12 arg_self = (lucy_QueryParser*)XSBind_new_blank_obj(aTHX_ ST(0));
25938  
25939 12 retval = lucy_QParser_init(arg_self, arg_schema, arg_analyzer, arg_default_boolop, arg_fields);
25940 12 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
25941 12 XSRETURN(1);
25942 }
25943  
25944  
25945 XS_INTERNAL(XS_Lucy_Search_QueryParser_parse);
25946 247 XS_INTERNAL(XS_Lucy_Search_QueryParser_parse) {
25947 247 dXSARGS;
25948 SV *sv;
25949 lucy_QueryParser* arg_self;
25950 cfish_String* arg_query_string;
25951 LUCY_QParser_Parse_t method;
25952 lucy_Query* retval;
25953  
25954 CFISH_UNUSED_VAR(cv);
25955 247 SP -= items;
25956 247 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 247 0 247
if (items < 1 || items > 2) { 0 247 247
25957 0 XSBind_invalid_args_error(aTHX_ cv, "self, [query_string]");
25958 }
25959  
25960 /* Extract vars from Perl stack. */
25961 247 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
25962 247 sv = ST(1);
25963 247 ▶ arg_query_string = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "query_string", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_query_string = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "query_string", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 247 0 247
25964  
25965 /* Execute */
25966 247 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Parse);
25967 247 retval = method(arg_self, arg_query_string);
25968 247 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25969 247 CFISH_DECREF(retval);
25970 247 sv_2mortal( ST(0) );
25971 247 XSRETURN(1);
25972 }
25973  
25974 XS_INTERNAL(XS_Lucy_Search_QueryParser_tree);
25975 1 XS_INTERNAL(XS_Lucy_Search_QueryParser_tree) {
25976 1 dXSARGS;
25977 SV *sv;
25978 lucy_QueryParser* arg_self;
25979 cfish_String* arg_query_string;
25980 LUCY_QParser_Tree_t method;
25981 lucy_Query* retval;
25982  
25983 CFISH_UNUSED_VAR(cv);
25984 1 SP -= items;
25985 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
25986 0 XSBind_invalid_args_error(aTHX_ cv, "self, query_string");
25987 }
25988  
25989 /* Extract vars from Perl stack. */
25990 1 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
25991 1 sv = ST(1);
25992 1 arg_query_string = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "query_string", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
25993  
25994 /* Execute */
25995 1 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Tree);
25996 1 retval = method(arg_self, arg_query_string);
25997 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
25998 1 CFISH_DECREF(retval);
25999 1 sv_2mortal( ST(0) );
26000 1 XSRETURN(1);
26001 }
26002  
26003 XS_INTERNAL(XS_Lucy_Search_QueryParser_expand);
26004 2 XS_INTERNAL(XS_Lucy_Search_QueryParser_expand) {
26005 2 dXSARGS;
26006 SV *sv;
26007 lucy_QueryParser* arg_self;
26008 lucy_Query* arg_query;
26009 LUCY_QParser_Expand_t method;
26010 lucy_Query* retval;
26011  
26012 CFISH_UNUSED_VAR(cv);
26013 2 SP -= items;
26014 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
26015 0 XSBind_invalid_args_error(aTHX_ cv, "self, query");
26016 }
26017  
26018 /* Extract vars from Perl stack. */
26019 2 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26020 2 sv = ST(1);
26021 2 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
26022  
26023 /* Execute */
26024 2 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Expand);
26025 2 retval = method(arg_self, arg_query);
26026 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26027 2 CFISH_DECREF(retval);
26028 2 sv_2mortal( ST(0) );
26029 2 XSRETURN(1);
26030 }
26031  
26032 XS_INTERNAL(XS_Lucy_Search_QueryParser_expand_leaf);
26033 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_expand_leaf) {
26034 0 dXSARGS;
26035 SV *sv;
26036 lucy_QueryParser* arg_self;
26037 lucy_Query* arg_query;
26038 LUCY_QParser_Expand_Leaf_t method;
26039 lucy_Query* retval;
26040  
26041 CFISH_UNUSED_VAR(cv);
26042 0 SP -= items;
26043 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
26044 0 XSBind_invalid_args_error(aTHX_ cv, "self, query");
26045 }
26046  
26047 /* Extract vars from Perl stack. */
26048 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26049 0 sv = ST(1);
26050 0 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
26051  
26052 /* Execute */
26053 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Expand_Leaf);
26054 0 retval = method(arg_self, arg_query);
26055 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26056 0 CFISH_DECREF(retval);
26057 0 sv_2mortal( ST(0) );
26058 0 XSRETURN(1);
26059 }
26060  
26061 XS_INTERNAL(XS_Lucy_Search_QueryParser_prune);
26062 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_prune) {
26063 0 dXSARGS;
26064 SV *sv;
26065 lucy_QueryParser* arg_self;
26066 lucy_Query* arg_query;
26067 LUCY_QParser_Prune_t method;
26068 lucy_Query* retval;
26069  
26070 CFISH_UNUSED_VAR(cv);
26071 0 SP -= items;
26072 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
26073 0 XSBind_invalid_args_error(aTHX_ cv, "self, [query]");
26074 }
26075  
26076 /* Extract vars from Perl stack. */
26077 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26078 0 sv = ST(1);
26079 0 ▶ arg_query = 1 < items ? (lucy_Query*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "query", LUCY_QUERY, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_query = 1 < items ? (lucy_Query*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "query", LUCY_QUERY, NULL) : NULL; 0 0 0
26080  
26081 /* Execute */
26082 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Prune);
26083 0 retval = method(arg_self, arg_query);
26084 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26085 0 CFISH_DECREF(retval);
26086 0 sv_2mortal( ST(0) );
26087 0 XSRETURN(1);
26088 }
26089  
26090 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_term_query);
26091 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_term_query) {
26092 0 dXSARGS;
26093 static const XSBind_ParamSpec param_specs[2] = {
26094 XSBIND_PARAM("field", 1),
26095 XSBIND_PARAM("term", 1)
26096 };
26097 int32_t locations[2];
26098 SV *sv;
26099 lucy_QueryParser* arg_self;
26100 cfish_String* arg_field;
26101 cfish_Obj* arg_term;
26102 LUCY_QParser_Make_Term_Query_t method;
26103 lucy_Query* retval;
26104  
26105 CFISH_UNUSED_VAR(cv);
26106 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
26107 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
26108 }
26109 0 SP -= items;
26110  
26111 /* Locate args on Perl stack. */
26112 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
26113 locations, 2);
26114 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26115 0 sv = ST(locations[0]);
26116 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
26117 0 sv = ST(locations[1]);
26118 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
26119  
26120 /* Execute */
26121 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Make_Term_Query);
26122 0 retval = method(arg_self, arg_field, arg_term);
26123 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26124 0 CFISH_DECREF(retval);
26125 0 sv_2mortal( ST(0) );
26126 0 XSRETURN(1);
26127 }
26128  
26129 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_phrase_query);
26130 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_phrase_query) {
26131 0 dXSARGS;
26132 static const XSBind_ParamSpec param_specs[2] = {
26133 XSBIND_PARAM("field", 1),
26134 XSBIND_PARAM("terms", 1)
26135 };
26136 int32_t locations[2];
26137 SV *sv;
26138 lucy_QueryParser* arg_self;
26139 cfish_String* arg_field;
26140 cfish_Vector* arg_terms;
26141 LUCY_QParser_Make_Phrase_Query_t method;
26142 lucy_Query* retval;
26143  
26144 CFISH_UNUSED_VAR(cv);
26145 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
26146 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
26147 }
26148 0 SP -= items;
26149  
26150 /* Locate args on Perl stack. */
26151 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
26152 locations, 2);
26153 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26154 0 sv = ST(locations[0]);
26155 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
26156 0 sv = ST(locations[1]);
26157 0 arg_terms = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "terms", CFISH_VECTOR, NULL);
26158  
26159 /* Execute */
26160 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Make_Phrase_Query);
26161 0 retval = method(arg_self, arg_field, arg_terms);
26162 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26163 0 CFISH_DECREF(retval);
26164 0 sv_2mortal( ST(0) );
26165 0 XSRETURN(1);
26166 }
26167  
26168 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_or_query);
26169 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_or_query) {
26170 0 dXSARGS;
26171 SV *sv;
26172 lucy_QueryParser* arg_self;
26173 cfish_Vector* arg_children;
26174 LUCY_QParser_Make_OR_Query_t method;
26175 lucy_Query* retval;
26176  
26177 CFISH_UNUSED_VAR(cv);
26178 0 SP -= items;
26179 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
26180 0 XSBind_invalid_args_error(aTHX_ cv, "self, [children]");
26181 }
26182  
26183 /* Extract vars from Perl stack. */
26184 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26185 0 sv = ST(1);
26186 0 ▶ arg_children = 1 < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_children = 1 < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL; 0 0 0
26187  
26188 /* Execute */
26189 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Make_OR_Query);
26190 0 retval = method(arg_self, arg_children);
26191 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26192 0 CFISH_DECREF(retval);
26193 0 sv_2mortal( ST(0) );
26194 0 XSRETURN(1);
26195 }
26196  
26197 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_and_query);
26198 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_and_query) {
26199 0 dXSARGS;
26200 SV *sv;
26201 lucy_QueryParser* arg_self;
26202 cfish_Vector* arg_children;
26203 LUCY_QParser_Make_AND_Query_t method;
26204 lucy_Query* retval;
26205  
26206 CFISH_UNUSED_VAR(cv);
26207 0 SP -= items;
26208 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
26209 0 XSBind_invalid_args_error(aTHX_ cv, "self, [children]");
26210 }
26211  
26212 /* Extract vars from Perl stack. */
26213 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26214 0 sv = ST(1);
26215 0 ▶ arg_children = 1 < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_children = 1 < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "children", CFISH_VECTOR, NULL) : NULL; 0 0 0
26216  
26217 /* Execute */
26218 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Make_AND_Query);
26219 0 retval = method(arg_self, arg_children);
26220 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26221 0 CFISH_DECREF(retval);
26222 0 sv_2mortal( ST(0) );
26223 0 XSRETURN(1);
26224 }
26225  
26226 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_not_query);
26227 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_not_query) {
26228 0 dXSARGS;
26229 SV *sv;
26230 lucy_QueryParser* arg_self;
26231 lucy_Query* arg_negated_query;
26232 LUCY_QParser_Make_NOT_Query_t method;
26233 lucy_Query* retval;
26234  
26235 CFISH_UNUSED_VAR(cv);
26236 0 SP -= items;
26237 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
26238 0 XSBind_invalid_args_error(aTHX_ cv, "self, negated_query");
26239 }
26240  
26241 /* Extract vars from Perl stack. */
26242 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26243 0 sv = ST(1);
26244 0 arg_negated_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "negated_query", LUCY_QUERY, NULL);
26245  
26246 /* Execute */
26247 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Make_NOT_Query);
26248 0 retval = method(arg_self, arg_negated_query);
26249 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26250 0 CFISH_DECREF(retval);
26251 0 sv_2mortal( ST(0) );
26252 0 XSRETURN(1);
26253 }
26254  
26255 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_req_opt_query);
26256 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_make_req_opt_query) {
26257 0 dXSARGS;
26258 static const XSBind_ParamSpec param_specs[2] = {
26259 XSBIND_PARAM("required_query", 1),
26260 XSBIND_PARAM("optional_query", 1)
26261 };
26262 int32_t locations[2];
26263 SV *sv;
26264 lucy_QueryParser* arg_self;
26265 lucy_Query* arg_required_query;
26266 lucy_Query* arg_optional_query;
26267 LUCY_QParser_Make_Req_Opt_Query_t method;
26268 lucy_Query* retval;
26269  
26270 CFISH_UNUSED_VAR(cv);
26271 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
26272 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
26273 }
26274 0 SP -= items;
26275  
26276 /* Locate args on Perl stack. */
26277 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
26278 locations, 2);
26279 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26280 0 sv = ST(locations[0]);
26281 0 arg_required_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "required_query", LUCY_QUERY, NULL);
26282 0 sv = ST(locations[1]);
26283 0 arg_optional_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "optional_query", LUCY_QUERY, NULL);
26284  
26285 /* Execute */
26286 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Make_Req_Opt_Query);
26287 0 retval = method(arg_self, arg_required_query, arg_optional_query);
26288 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26289 0 CFISH_DECREF(retval);
26290 0 sv_2mortal( ST(0) );
26291 0 XSRETURN(1);
26292 }
26293  
26294 XS_INTERNAL(XS_Lucy_Search_QueryParser_get_analyzer);
26295 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_get_analyzer) {
26296 0 dXSARGS;
26297 lucy_QueryParser* arg_self;
26298 LUCY_QParser_Get_Analyzer_t method;
26299 lucy_Analyzer* retval;
26300  
26301 CFISH_UNUSED_VAR(cv);
26302 0 SP -= items;
26303 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26304 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26305 }
26306  
26307 /* Extract vars from Perl stack. */
26308 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26309  
26310 /* Execute */
26311 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Get_Analyzer);
26312 0 retval = method(arg_self);
26313 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26314 0 sv_2mortal( ST(0) );
26315 0 XSRETURN(1);
26316 }
26317  
26318 XS_INTERNAL(XS_Lucy_Search_QueryParser_get_schema);
26319 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_get_schema) {
26320 0 dXSARGS;
26321 lucy_QueryParser* arg_self;
26322 LUCY_QParser_Get_Schema_t method;
26323 lucy_Schema* retval;
26324  
26325 CFISH_UNUSED_VAR(cv);
26326 0 SP -= items;
26327 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26328 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26329 }
26330  
26331 /* Extract vars from Perl stack. */
26332 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26333  
26334 /* Execute */
26335 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Get_Schema);
26336 0 retval = method(arg_self);
26337 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26338 0 sv_2mortal( ST(0) );
26339 0 XSRETURN(1);
26340 }
26341  
26342 XS_INTERNAL(XS_Lucy_Search_QueryParser_get_default_boolop);
26343 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_get_default_boolop) {
26344 0 dXSARGS;
26345 lucy_QueryParser* arg_self;
26346 LUCY_QParser_Get_Default_BoolOp_t method;
26347 cfish_String* retval;
26348  
26349 CFISH_UNUSED_VAR(cv);
26350 0 SP -= items;
26351 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26352 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26353 }
26354  
26355 /* Extract vars from Perl stack. */
26356 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26357  
26358 /* Execute */
26359 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Get_Default_BoolOp);
26360 0 retval = method(arg_self);
26361 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26362 0 sv_2mortal( ST(0) );
26363 0 XSRETURN(1);
26364 }
26365  
26366 XS_INTERNAL(XS_Lucy_Search_QueryParser_get_fields);
26367 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_get_fields) {
26368 0 dXSARGS;
26369 lucy_QueryParser* arg_self;
26370 LUCY_QParser_Get_Fields_t method;
26371 cfish_Vector* retval;
26372  
26373 CFISH_UNUSED_VAR(cv);
26374 0 SP -= items;
26375 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26376 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26377 }
26378  
26379 /* Extract vars from Perl stack. */
26380 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26381  
26382 /* Execute */
26383 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Get_Fields);
26384 0 retval = method(arg_self);
26385 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26386 0 sv_2mortal( ST(0) );
26387 0 XSRETURN(1);
26388 }
26389  
26390 XS_INTERNAL(XS_Lucy_Search_QueryParser_heed_colons);
26391 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_heed_colons) {
26392 0 dXSARGS;
26393 lucy_QueryParser* arg_self;
26394 LUCY_QParser_Heed_Colons_t method;
26395 bool retval;
26396  
26397 CFISH_UNUSED_VAR(cv);
26398 0 SP -= items;
26399 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26400 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26401 }
26402  
26403 /* Extract vars from Perl stack. */
26404 0 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26405  
26406 /* Execute */
26407 0 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Heed_Colons);
26408 0 retval = method(arg_self);
26409 0 ST(0) = newSViv(!!retval);
26410 0 sv_2mortal( ST(0) );
26411 0 XSRETURN(1);
26412 }
26413  
26414 XS_INTERNAL(XS_Lucy_Search_QueryParser_set_heed_colons);
26415 5 XS_INTERNAL(XS_Lucy_Search_QueryParser_set_heed_colons) {
26416 5 dXSARGS;
26417 SV *sv;
26418 lucy_QueryParser* arg_self;
26419 bool arg_heed_colons;
26420 LUCY_QParser_Set_Heed_Colons_t method;
26421  
26422 CFISH_UNUSED_VAR(cv);
26423 5 SP -= items;
26424 5 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 5 5
26425 0 XSBind_invalid_args_error(aTHX_ cv, "self, heed_colons");
26426 }
26427  
26428 /* Extract vars from Perl stack. */
26429 5 arg_self = (lucy_QueryParser*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYPARSER, NULL);
26430 5 sv = ST(1);
26431 5 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 5 5
26432 0 XSBind_undef_arg_error(aTHX_ "heed_colons");
26433 }
26434 5 arg_heed_colons = XSBind_sv_true(aTHX_ sv);
26435  
26436 /* Execute */
26437 5 method = CFISH_METHOD_PTR(LUCY_QUERYPARSER, LUCY_QParser_Set_Heed_Colons);
26438 5 method(arg_self, arg_heed_colons);
26439 5 XSRETURN(0);
26440 }
26441  
26442 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_set_value);
26443 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_set_value) {
26444 0 dXSARGS;
26445 SV *sv;
26446 lucy_ParserElem* arg_self;
26447 cfish_Obj* arg_value;
26448 LUCY_ParserElem_Set_Value_t method;
26449  
26450 CFISH_UNUSED_VAR(cv);
26451 0 SP -= items;
26452 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
26453 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
26454 }
26455  
26456 /* Extract vars from Perl stack. */
26457 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26458 0 sv = ST(1);
26459 0 arg_value = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
26460  
26461 /* Execute */
26462 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_Set_Value);
26463 0 method(arg_self, arg_value);
26464 0 XSRETURN(0);
26465 }
26466  
26467 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_as);
26468 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_as) {
26469 0 dXSARGS;
26470 SV *sv;
26471 lucy_ParserElem* arg_self;
26472 cfish_Class* arg_klass;
26473 LUCY_ParserElem_As_t method;
26474 cfish_Obj* retval;
26475  
26476 CFISH_UNUSED_VAR(cv);
26477 0 SP -= items;
26478 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
26479 0 XSBind_invalid_args_error(aTHX_ cv, "self, klass");
26480 }
26481  
26482 /* Extract vars from Perl stack. */
26483 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26484 0 sv = ST(1);
26485 0 arg_klass = (cfish_Class*)XSBind_arg_to_cfish(aTHX_ sv, "klass", CFISH_CLASS, NULL);
26486  
26487 /* Execute */
26488 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_As);
26489 0 retval = method(arg_self, arg_klass);
26490 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26491 0 sv_2mortal( ST(0) );
26492 0 XSRETURN(1);
26493 }
26494  
26495 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_get_type);
26496 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_get_type) {
26497 0 dXSARGS;
26498 lucy_ParserElem* arg_self;
26499 LUCY_ParserElem_Get_Type_t method;
26500 uint32_t retval;
26501  
26502 CFISH_UNUSED_VAR(cv);
26503 0 SP -= items;
26504 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26505 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26506 }
26507  
26508 /* Extract vars from Perl stack. */
26509 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26510  
26511 /* Execute */
26512 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_Get_Type);
26513 0 retval = method(arg_self);
26514 0 ST(0) = newSVuv(retval);
26515 0 sv_2mortal( ST(0) );
26516 0 XSRETURN(1);
26517 }
26518  
26519 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_negate);
26520 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_negate) {
26521 0 dXSARGS;
26522 lucy_ParserElem* arg_self;
26523 LUCY_ParserElem_Negate_t method;
26524  
26525 CFISH_UNUSED_VAR(cv);
26526 0 SP -= items;
26527 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26528 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26529 }
26530  
26531 /* Extract vars from Perl stack. */
26532 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26533  
26534 /* Execute */
26535 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_Negate);
26536 0 method(arg_self);
26537 0 XSRETURN(0);
26538 }
26539  
26540 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_require);
26541 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_require) {
26542 0 dXSARGS;
26543 lucy_ParserElem* arg_self;
26544 LUCY_ParserElem_Require_t method;
26545  
26546 CFISH_UNUSED_VAR(cv);
26547 0 SP -= items;
26548 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26549 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26550 }
26551  
26552 /* Extract vars from Perl stack. */
26553 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26554  
26555 /* Execute */
26556 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_Require);
26557 0 method(arg_self);
26558 0 XSRETURN(0);
26559 }
26560  
26561 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_unrequire);
26562 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_unrequire) {
26563 0 dXSARGS;
26564 lucy_ParserElem* arg_self;
26565 LUCY_ParserElem_Unrequire_t method;
26566  
26567 CFISH_UNUSED_VAR(cv);
26568 0 SP -= items;
26569 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26570 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26571 }
26572  
26573 /* Extract vars from Perl stack. */
26574 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26575  
26576 /* Execute */
26577 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_Unrequire);
26578 0 method(arg_self);
26579 0 XSRETURN(0);
26580 }
26581  
26582 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_required);
26583 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_required) {
26584 0 dXSARGS;
26585 lucy_ParserElem* arg_self;
26586 LUCY_ParserElem_Required_t method;
26587 bool retval;
26588  
26589 CFISH_UNUSED_VAR(cv);
26590 0 SP -= items;
26591 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26592 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26593 }
26594  
26595 /* Extract vars from Perl stack. */
26596 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26597  
26598 /* Execute */
26599 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_Required);
26600 0 retval = method(arg_self);
26601 0 ST(0) = newSViv(!!retval);
26602 0 sv_2mortal( ST(0) );
26603 0 XSRETURN(1);
26604 }
26605  
26606 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_optional);
26607 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_optional) {
26608 0 dXSARGS;
26609 lucy_ParserElem* arg_self;
26610 LUCY_ParserElem_Optional_t method;
26611 bool retval;
26612  
26613 CFISH_UNUSED_VAR(cv);
26614 0 SP -= items;
26615 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26616 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26617 }
26618  
26619 /* Extract vars from Perl stack. */
26620 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26621  
26622 /* Execute */
26623 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_Optional);
26624 0 retval = method(arg_self);
26625 0 ST(0) = newSViv(!!retval);
26626 0 sv_2mortal( ST(0) );
26627 0 XSRETURN(1);
26628 }
26629  
26630 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_negated);
26631 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_ParserElem_negated) {
26632 0 dXSARGS;
26633 lucy_ParserElem* arg_self;
26634 LUCY_ParserElem_Negated_t method;
26635 bool retval;
26636  
26637 CFISH_UNUSED_VAR(cv);
26638 0 SP -= items;
26639 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26640 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26641 }
26642  
26643 /* Extract vars from Perl stack. */
26644 0 arg_self = (lucy_ParserElem*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PARSERELEM, NULL);
26645  
26646 /* Execute */
26647 0 method = CFISH_METHOD_PTR(LUCY_PARSERELEM, LUCY_ParserElem_Negated);
26648 0 retval = method(arg_self);
26649 0 ST(0) = newSViv(!!retval);
26650 0 sv_2mortal( ST(0) );
26651 0 XSRETURN(1);
26652 }
26653  
26654 XS_INTERNAL(XS_Lucy_Search_QueryParser_QueryLexer_new);
26655 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_QueryLexer_new) {
26656 0 dXSARGS;
26657 lucy_QueryLexer* arg_self;
26658 lucy_QueryLexer* retval;
26659  
26660 CFISH_UNUSED_VAR(cv);
26661 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26662 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
26663 }
26664 0 SP -= items;
26665  
26666 0 arg_self = (lucy_QueryLexer*)XSBind_new_blank_obj(aTHX_ ST(0));
26667  
26668 0 retval = lucy_QueryLexer_init(arg_self);
26669 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
26670 0 XSRETURN(1);
26671 }
26672  
26673  
26674 XS_INTERNAL(XS_Lucy_Search_QueryParser_QueryLexer_tokenize);
26675 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_QueryLexer_tokenize) {
26676 0 dXSARGS;
26677 SV *sv;
26678 lucy_QueryLexer* arg_self;
26679 cfish_String* arg_query_string;
26680 LUCY_QueryLexer_Tokenize_t method;
26681 cfish_Vector* retval;
26682  
26683 CFISH_UNUSED_VAR(cv);
26684 0 SP -= items;
26685 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
26686 0 XSBind_invalid_args_error(aTHX_ cv, "self, [query_string]");
26687 }
26688  
26689 /* Extract vars from Perl stack. */
26690 0 arg_self = (lucy_QueryLexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYLEXER, NULL);
26691 0 sv = ST(1);
26692 0 ▶ arg_query_string = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "query_string", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_query_string = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "query_string", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
26693  
26694 /* Execute */
26695 0 method = CFISH_METHOD_PTR(LUCY_QUERYLEXER, LUCY_QueryLexer_Tokenize);
26696 0 retval = method(arg_self, arg_query_string);
26697 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26698 0 CFISH_DECREF(retval);
26699 0 sv_2mortal( ST(0) );
26700 0 XSRETURN(1);
26701 }
26702  
26703 XS_INTERNAL(XS_Lucy_Search_QueryParser_QueryLexer_heed_colons);
26704 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_QueryLexer_heed_colons) {
26705 0 dXSARGS;
26706 lucy_QueryLexer* arg_self;
26707 LUCY_QueryLexer_Heed_Colons_t method;
26708 bool retval;
26709  
26710 CFISH_UNUSED_VAR(cv);
26711 0 SP -= items;
26712 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26713 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26714 }
26715  
26716 /* Extract vars from Perl stack. */
26717 0 arg_self = (lucy_QueryLexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYLEXER, NULL);
26718  
26719 /* Execute */
26720 0 method = CFISH_METHOD_PTR(LUCY_QUERYLEXER, LUCY_QueryLexer_Heed_Colons);
26721 0 retval = method(arg_self);
26722 0 ST(0) = newSViv(!!retval);
26723 0 sv_2mortal( ST(0) );
26724 0 XSRETURN(1);
26725 }
26726  
26727 XS_INTERNAL(XS_Lucy_Search_QueryParser_QueryLexer_set_heed_colons);
26728 0 XS_INTERNAL(XS_Lucy_Search_QueryParser_QueryLexer_set_heed_colons) {
26729 0 dXSARGS;
26730 SV *sv;
26731 lucy_QueryLexer* arg_self;
26732 bool arg_heed_colons;
26733 LUCY_QueryLexer_Set_Heed_Colons_t method;
26734  
26735 CFISH_UNUSED_VAR(cv);
26736 0 SP -= items;
26737 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
26738 0 XSBind_invalid_args_error(aTHX_ cv, "self, heed_colons");
26739 }
26740  
26741 /* Extract vars from Perl stack. */
26742 0 arg_self = (lucy_QueryLexer*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_QUERYLEXER, NULL);
26743 0 sv = ST(1);
26744 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
26745 0 XSBind_undef_arg_error(aTHX_ "heed_colons");
26746 }
26747 0 arg_heed_colons = XSBind_sv_true(aTHX_ sv);
26748  
26749 /* Execute */
26750 0 method = CFISH_METHOD_PTR(LUCY_QUERYLEXER, LUCY_QueryLexer_Set_Heed_Colons);
26751 0 method(arg_self, arg_heed_colons);
26752 0 XSRETURN(0);
26753 }
26754  
26755 XS_INTERNAL(XS_Lucy_Search_Searcher_new);
26756 1 XS_INTERNAL(XS_Lucy_Search_Searcher_new) {
26757 1 dXSARGS;
26758 static const XSBind_ParamSpec param_specs[1] = {
26759 XSBIND_PARAM("schema", 1)
26760 };
26761 int32_t locations[1];
26762 SV *sv;
26763 lucy_Searcher* arg_self;
26764 lucy_Schema* arg_schema;
26765 lucy_Searcher* retval;
26766  
26767 CFISH_UNUSED_VAR(cv);
26768 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
26769 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
26770 }
26771 1 SP -= items;
26772  
26773 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
26774 locations, 1);
26775 1 sv = ST(locations[0]);
26776 1 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
26777 1 arg_self = (lucy_Searcher*)XSBind_new_blank_obj(aTHX_ ST(0));
26778  
26779 1 retval = lucy_Searcher_init(arg_self, arg_schema);
26780 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
26781 1 XSRETURN(1);
26782 }
26783  
26784  
26785 XS_INTERNAL(XS_Lucy_Search_Searcher_doc_max);
26786 0 XS_INTERNAL(XS_Lucy_Search_Searcher_doc_max) {
26787 0 dXSARGS;
26788 lucy_Searcher* arg_self;
26789 LUCY_Searcher_Doc_Max_t method;
26790 int32_t retval;
26791  
26792 CFISH_UNUSED_VAR(cv);
26793 0 SP -= items;
26794 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
26795 0 XSBind_invalid_args_error(aTHX_ cv, "self");
26796 }
26797  
26798 /* Extract vars from Perl stack. */
26799 0 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
26800  
26801 /* Execute */
26802 0 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Doc_Max);
26803 0 retval = method(arg_self);
26804 0 ST(0) = newSViv(retval);
26805 0 sv_2mortal( ST(0) );
26806 0 XSRETURN(1);
26807 }
26808  
26809 XS_INTERNAL(XS_Lucy_Search_Searcher_doc_freq);
26810 0 XS_INTERNAL(XS_Lucy_Search_Searcher_doc_freq) {
26811 0 dXSARGS;
26812 static const XSBind_ParamSpec param_specs[2] = {
26813 XSBIND_PARAM("field", 1),
26814 XSBIND_PARAM("term", 1)
26815 };
26816 int32_t locations[2];
26817 SV *sv;
26818 lucy_Searcher* arg_self;
26819 cfish_String* arg_field;
26820 cfish_Obj* arg_term;
26821 LUCY_Searcher_Doc_Freq_t method;
26822 uint32_t retval;
26823  
26824 CFISH_UNUSED_VAR(cv);
26825 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
26826 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
26827 }
26828 0 SP -= items;
26829  
26830 /* Locate args on Perl stack. */
26831 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
26832 locations, 2);
26833 0 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
26834 0 sv = ST(locations[0]);
26835 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
26836 0 sv = ST(locations[1]);
26837 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
26838  
26839 /* Execute */
26840 0 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Doc_Freq);
26841 0 retval = method(arg_self, arg_field, arg_term);
26842 0 ST(0) = newSVuv(retval);
26843 0 sv_2mortal( ST(0) );
26844 0 XSRETURN(1);
26845 }
26846  
26847 XS_INTERNAL(XS_Lucy_Search_Searcher_glean_query);
26848 12 XS_INTERNAL(XS_Lucy_Search_Searcher_glean_query) {
26849 12 dXSARGS;
26850 SV *sv;
26851 lucy_Searcher* arg_self;
26852 cfish_Obj* arg_query;
26853 LUCY_Searcher_Glean_Query_t method;
26854 lucy_Query* retval;
26855  
26856 CFISH_UNUSED_VAR(cv);
26857 12 SP -= items;
26858 12 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 12 0 12
if (items < 1 || items > 2) { 0 12 12
26859 0 XSBind_invalid_args_error(aTHX_ cv, "self, [query]");
26860 }
26861  
26862 /* Extract vars from Perl stack. */
26863 12 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
26864 12 sv = ST(1);
26865 12 ▶ arg_query = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "query", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_query = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "query", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 12 0 12
26866  
26867 /* Execute */
26868 12 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Glean_Query);
26869 12 retval = method(arg_self, arg_query);
26870 12 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26871 12 CFISH_DECREF(retval);
26872 12 sv_2mortal( ST(0) );
26873 12 XSRETURN(1);
26874 }
26875  
26876 XS_INTERNAL(XS_Lucy_Search_Searcher_hits);
26877 412 XS_INTERNAL(XS_Lucy_Search_Searcher_hits) {
26878 412 dXSARGS;
26879 static const XSBind_ParamSpec param_specs[4] = {
26880 XSBIND_PARAM("query", 1),
26881 XSBIND_PARAM("offset", 0),
26882 XSBIND_PARAM("num_wanted", 0),
26883 XSBIND_PARAM("sort_spec", 0)
26884 };
26885 int32_t locations[4];
26886 SV *sv;
26887 lucy_Searcher* arg_self;
26888 cfish_Obj* arg_query;
26889 uint32_t arg_offset;
26890 uint32_t arg_num_wanted;
26891 lucy_SortSpec* arg_sort_spec;
26892 LUCY_Searcher_Hits_t method;
26893 lucy_Hits* retval;
26894  
26895 CFISH_UNUSED_VAR(cv);
26896 412 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 412 412
26897 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
26898 }
26899 412 SP -= items;
26900  
26901 /* Locate args on Perl stack. */
26902 412 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
26903 locations, 4);
26904 412 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
26905 412 sv = ST(locations[0]);
26906 412 arg_query = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "query", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
26907 412 sv = ST(locations[1]);
26908 3 ▶ arg_offset = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_offset = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 3 0 3
26909 415 ▶ ? (uint32_t)SvUV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (uint32_t)SvUV(sv) : 0; 3 409 412
26910 412 sv = ST(locations[2]);
26911 36 ▶ arg_num_wanted = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_num_wanted = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 36 0 36
26912 448 ▶ ? (uint32_t)SvUV(sv) : 10;
Branch: 1 branch
BranchTrueFalseTotal
? (uint32_t)SvUV(sv) : 10; 36 376 412
26913 412 sv = ST(locations[3]);
26914 412 ▶ arg_sort_spec = locations[3] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_sort_spec = locations[3] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL; 8 404 412
26915  
26916 /* Execute */
26917 412 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Hits);
26918 412 retval = method(arg_self, arg_query, arg_offset, arg_num_wanted, arg_sort_spec);
26919 412 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
26920 412 CFISH_DECREF(retval);
26921 412 sv_2mortal( ST(0) );
26922 412 XSRETURN(1);
26923 }
26924  
26925 XS_INTERNAL(XS_Lucy_Search_Searcher_collect);
26926 0 XS_INTERNAL(XS_Lucy_Search_Searcher_collect) {
26927 0 dXSARGS;
26928 static const XSBind_ParamSpec param_specs[2] = {
26929 XSBIND_PARAM("query", 1),
26930 XSBIND_PARAM("collector", 1)
26931 };
26932 int32_t locations[2];
26933 SV *sv;
26934 lucy_Searcher* arg_self;
26935 lucy_Query* arg_query;
26936 lucy_Collector* arg_collector;
26937 LUCY_Searcher_Collect_t method;
26938  
26939 CFISH_UNUSED_VAR(cv);
26940 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
26941 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
26942 }
26943 0 SP -= items;
26944  
26945 /* Locate args on Perl stack. */
26946 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
26947 locations, 2);
26948 0 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
26949 0 sv = ST(locations[0]);
26950 0 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
26951 0 sv = ST(locations[1]);
26952 0 arg_collector = (lucy_Collector*)XSBind_arg_to_cfish(aTHX_ sv, "collector", LUCY_COLLECTOR, NULL);
26953  
26954 /* Execute */
26955 0 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Collect);
26956 0 method(arg_self, arg_query, arg_collector);
26957 0 XSRETURN(0);
26958 }
26959  
26960 XS_INTERNAL(XS_Lucy_Search_Searcher_top_docs);
26961 0 XS_INTERNAL(XS_Lucy_Search_Searcher_top_docs) {
26962 0 dXSARGS;
26963 static const XSBind_ParamSpec param_specs[3] = {
26964 XSBIND_PARAM("query", 1),
26965 XSBIND_PARAM("num_wanted", 1),
26966 XSBIND_PARAM("sort_spec", 0)
26967 };
26968 int32_t locations[3];
26969 SV *sv;
26970 lucy_Searcher* arg_self;
26971 lucy_Query* arg_query;
26972 uint32_t arg_num_wanted;
26973 lucy_SortSpec* arg_sort_spec;
26974 LUCY_Searcher_Top_Docs_t method;
26975 lucy_TopDocs* retval;
26976  
26977 CFISH_UNUSED_VAR(cv);
26978 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
26979 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
26980 }
26981 0 SP -= items;
26982  
26983 /* Locate args on Perl stack. */
26984 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
26985 locations, 3);
26986 0 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
26987 0 sv = ST(locations[0]);
26988 0 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
26989 0 sv = ST(locations[1]);
26990 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
26991 0 XSBind_undef_arg_error(aTHX_ "num_wanted");
26992 }
26993 0 arg_num_wanted = (uint32_t)SvUV(sv);
26994 0 sv = ST(locations[2]);
26995 0 ▶ arg_sort_spec = locations[2] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_sort_spec = locations[2] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL; 0 0 0
26996  
26997 /* Execute */
26998 0 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Top_Docs);
26999 0 retval = method(arg_self, arg_query, arg_num_wanted, arg_sort_spec);
27000 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27001 0 CFISH_DECREF(retval);
27002 0 sv_2mortal( ST(0) );
27003 0 XSRETURN(1);
27004 }
27005  
27006 XS_INTERNAL(XS_Lucy_Search_Searcher_fetch_doc);
27007 0 XS_INTERNAL(XS_Lucy_Search_Searcher_fetch_doc) {
27008 0 dXSARGS;
27009 SV *sv;
27010 lucy_Searcher* arg_self;
27011 int32_t arg_doc_id;
27012 LUCY_Searcher_Fetch_Doc_t method;
27013 lucy_HitDoc* retval;
27014  
27015 CFISH_UNUSED_VAR(cv);
27016 0 SP -= items;
27017 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
27018 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
27019 }
27020  
27021 /* Extract vars from Perl stack. */
27022 0 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
27023 0 sv = ST(1);
27024 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
27025 0 XSBind_undef_arg_error(aTHX_ "doc_id");
27026 }
27027 0 arg_doc_id = (int32_t)SvIV(sv);
27028  
27029 /* Execute */
27030 0 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Fetch_Doc);
27031 0 retval = method(arg_self, arg_doc_id);
27032 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27033 0 CFISH_DECREF(retval);
27034 0 sv_2mortal( ST(0) );
27035 0 XSRETURN(1);
27036 }
27037  
27038 XS_INTERNAL(XS_Lucy_Search_Searcher_fetch_doc_vec);
27039 0 XS_INTERNAL(XS_Lucy_Search_Searcher_fetch_doc_vec) {
27040 0 dXSARGS;
27041 SV *sv;
27042 lucy_Searcher* arg_self;
27043 int32_t arg_doc_id;
27044 LUCY_Searcher_Fetch_Doc_Vec_t method;
27045 lucy_DocVector* retval;
27046  
27047 CFISH_UNUSED_VAR(cv);
27048 0 SP -= items;
27049 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
27050 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
27051 }
27052  
27053 /* Extract vars from Perl stack. */
27054 0 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
27055 0 sv = ST(1);
27056 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
27057 0 XSBind_undef_arg_error(aTHX_ "doc_id");
27058 }
27059 0 arg_doc_id = (int32_t)SvIV(sv);
27060  
27061 /* Execute */
27062 0 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Fetch_Doc_Vec);
27063 0 retval = method(arg_self, arg_doc_id);
27064 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27065 0 CFISH_DECREF(retval);
27066 0 sv_2mortal( ST(0) );
27067 0 XSRETURN(1);
27068 }
27069  
27070 XS_INTERNAL(XS_Lucy_Search_Searcher_get_schema);
27071 6 XS_INTERNAL(XS_Lucy_Search_Searcher_get_schema) {
27072 6 dXSARGS;
27073 lucy_Searcher* arg_self;
27074 LUCY_Searcher_Get_Schema_t method;
27075 lucy_Schema* retval;
27076  
27077 CFISH_UNUSED_VAR(cv);
27078 6 SP -= items;
27079 6 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 6 6
27080 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27081 }
27082  
27083 /* Extract vars from Perl stack. */
27084 6 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
27085  
27086 /* Execute */
27087 6 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Get_Schema);
27088 6 retval = method(arg_self);
27089 6 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27090 6 sv_2mortal( ST(0) );
27091 6 XSRETURN(1);
27092 }
27093  
27094 XS_INTERNAL(XS_Lucy_Search_Searcher_close);
27095 0 XS_INTERNAL(XS_Lucy_Search_Searcher_close) {
27096 0 dXSARGS;
27097 lucy_Searcher* arg_self;
27098 LUCY_Searcher_Close_t method;
27099  
27100 CFISH_UNUSED_VAR(cv);
27101 0 SP -= items;
27102 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
27103 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27104 }
27105  
27106 /* Extract vars from Perl stack. */
27107 0 arg_self = (lucy_Searcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEARCHER, NULL);
27108  
27109 /* Execute */
27110 0 method = CFISH_METHOD_PTR(LUCY_SEARCHER, LUCY_Searcher_Close);
27111 0 method(arg_self);
27112 0 XSRETURN(0);
27113 }
27114  
27115 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_new);
27116 110 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_new) {
27117 110 dXSARGS;
27118 static const XSBind_ParamSpec param_specs[1] = {
27119 XSBIND_PARAM("index", 1)
27120 };
27121 int32_t locations[1];
27122 SV *sv;
27123 lucy_IndexSearcher* arg_self;
27124 cfish_Obj* arg_index;
27125 lucy_IndexSearcher* retval;
27126  
27127 CFISH_UNUSED_VAR(cv);
27128 110 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 110 110
27129 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
27130 }
27131 110 SP -= items;
27132  
27133 110 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27134 locations, 1);
27135 110 sv = ST(locations[0]);
27136 110 arg_index = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "index", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
27137 110 arg_self = (lucy_IndexSearcher*)XSBind_new_blank_obj(aTHX_ ST(0));
27138  
27139 110 retval = lucy_IxSearcher_init(arg_self, arg_index);
27140 110 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
27141 110 XSRETURN(1);
27142 }
27143  
27144  
27145 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_doc_max);
27146 12 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_doc_max) {
27147 12 dXSARGS;
27148 lucy_IndexSearcher* arg_self;
27149 LUCY_IxSearcher_Doc_Max_t method;
27150 int32_t retval;
27151  
27152 CFISH_UNUSED_VAR(cv);
27153 12 SP -= items;
27154 12 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 12 12
27155 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27156 }
27157  
27158 /* Extract vars from Perl stack. */
27159 12 arg_self = (lucy_IndexSearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXSEARCHER, NULL);
27160  
27161 /* Execute */
27162 12 method = CFISH_METHOD_PTR(LUCY_INDEXSEARCHER, LUCY_IxSearcher_Doc_Max);
27163 12 retval = method(arg_self);
27164 12 ST(0) = newSViv(retval);
27165 12 sv_2mortal( ST(0) );
27166 12 XSRETURN(1);
27167 }
27168  
27169 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_doc_freq);
27170 0 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_doc_freq) {
27171 0 dXSARGS;
27172 static const XSBind_ParamSpec param_specs[2] = {
27173 XSBIND_PARAM("field", 1),
27174 XSBIND_PARAM("term", 1)
27175 };
27176 int32_t locations[2];
27177 SV *sv;
27178 lucy_IndexSearcher* arg_self;
27179 cfish_String* arg_field;
27180 cfish_Obj* arg_term;
27181 LUCY_IxSearcher_Doc_Freq_t method;
27182 uint32_t retval;
27183  
27184 CFISH_UNUSED_VAR(cv);
27185 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
27186 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
27187 }
27188 0 SP -= items;
27189  
27190 /* Locate args on Perl stack. */
27191 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27192 locations, 2);
27193 0 arg_self = (lucy_IndexSearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXSEARCHER, NULL);
27194 0 sv = ST(locations[0]);
27195 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
27196 0 sv = ST(locations[1]);
27197 0 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
27198  
27199 /* Execute */
27200 0 method = CFISH_METHOD_PTR(LUCY_INDEXSEARCHER, LUCY_IxSearcher_Doc_Freq);
27201 0 retval = method(arg_self, arg_field, arg_term);
27202 0 ST(0) = newSVuv(retval);
27203 0 sv_2mortal( ST(0) );
27204 0 XSRETURN(1);
27205 }
27206  
27207 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_collect);
27208 13 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_collect) {
27209 13 dXSARGS;
27210 static const XSBind_ParamSpec param_specs[2] = {
27211 XSBIND_PARAM("query", 1),
27212 XSBIND_PARAM("collector", 1)
27213 };
27214 int32_t locations[2];
27215 SV *sv;
27216 lucy_IndexSearcher* arg_self;
27217 lucy_Query* arg_query;
27218 lucy_Collector* arg_collector;
27219 LUCY_IxSearcher_Collect_t method;
27220  
27221 CFISH_UNUSED_VAR(cv);
27222 13 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 13 13
27223 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
27224 }
27225 13 SP -= items;
27226  
27227 /* Locate args on Perl stack. */
27228 13 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27229 locations, 2);
27230 13 arg_self = (lucy_IndexSearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXSEARCHER, NULL);
27231 13 sv = ST(locations[0]);
27232 13 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
27233 13 sv = ST(locations[1]);
27234 13 arg_collector = (lucy_Collector*)XSBind_arg_to_cfish(aTHX_ sv, "collector", LUCY_COLLECTOR, NULL);
27235  
27236 /* Execute */
27237 13 method = CFISH_METHOD_PTR(LUCY_INDEXSEARCHER, LUCY_IxSearcher_Collect);
27238 13 method(arg_self, arg_query, arg_collector);
27239 13 XSRETURN(0);
27240 }
27241  
27242 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_top_docs);
27243 0 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_top_docs) {
27244 0 dXSARGS;
27245 static const XSBind_ParamSpec param_specs[3] = {
27246 XSBIND_PARAM("query", 1),
27247 XSBIND_PARAM("num_wanted", 1),
27248 XSBIND_PARAM("sort_spec", 0)
27249 };
27250 int32_t locations[3];
27251 SV *sv;
27252 lucy_IndexSearcher* arg_self;
27253 lucy_Query* arg_query;
27254 uint32_t arg_num_wanted;
27255 lucy_SortSpec* arg_sort_spec;
27256 LUCY_IxSearcher_Top_Docs_t method;
27257 lucy_TopDocs* retval;
27258  
27259 CFISH_UNUSED_VAR(cv);
27260 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
27261 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
27262 }
27263 0 SP -= items;
27264  
27265 /* Locate args on Perl stack. */
27266 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27267 locations, 3);
27268 0 arg_self = (lucy_IndexSearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXSEARCHER, NULL);
27269 0 sv = ST(locations[0]);
27270 0 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
27271 0 sv = ST(locations[1]);
27272 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
27273 0 XSBind_undef_arg_error(aTHX_ "num_wanted");
27274 }
27275 0 arg_num_wanted = (uint32_t)SvUV(sv);
27276 0 sv = ST(locations[2]);
27277 0 ▶ arg_sort_spec = locations[2] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_sort_spec = locations[2] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL; 0 0 0
27278  
27279 /* Execute */
27280 0 method = CFISH_METHOD_PTR(LUCY_INDEXSEARCHER, LUCY_IxSearcher_Top_Docs);
27281 0 retval = method(arg_self, arg_query, arg_num_wanted, arg_sort_spec);
27282 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27283 0 CFISH_DECREF(retval);
27284 0 sv_2mortal( ST(0) );
27285 0 XSRETURN(1);
27286 }
27287  
27288 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_fetch_doc);
27289 0 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_fetch_doc) {
27290 0 dXSARGS;
27291 SV *sv;
27292 lucy_IndexSearcher* arg_self;
27293 int32_t arg_doc_id;
27294 LUCY_IxSearcher_Fetch_Doc_t method;
27295 lucy_HitDoc* retval;
27296  
27297 CFISH_UNUSED_VAR(cv);
27298 0 SP -= items;
27299 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
27300 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
27301 }
27302  
27303 /* Extract vars from Perl stack. */
27304 0 arg_self = (lucy_IndexSearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXSEARCHER, NULL);
27305 0 sv = ST(1);
27306 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
27307 0 XSBind_undef_arg_error(aTHX_ "doc_id");
27308 }
27309 0 arg_doc_id = (int32_t)SvIV(sv);
27310  
27311 /* Execute */
27312 0 method = CFISH_METHOD_PTR(LUCY_INDEXSEARCHER, LUCY_IxSearcher_Fetch_Doc);
27313 0 retval = method(arg_self, arg_doc_id);
27314 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27315 0 CFISH_DECREF(retval);
27316 0 sv_2mortal( ST(0) );
27317 0 XSRETURN(1);
27318 }
27319  
27320 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_fetch_doc_vec);
27321 3 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_fetch_doc_vec) {
27322 3 dXSARGS;
27323 SV *sv;
27324 lucy_IndexSearcher* arg_self;
27325 int32_t arg_doc_id;
27326 LUCY_IxSearcher_Fetch_Doc_Vec_t method;
27327 lucy_DocVector* retval;
27328  
27329 CFISH_UNUSED_VAR(cv);
27330 3 SP -= items;
27331 3 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 3 3
27332 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
27333 }
27334  
27335 /* Extract vars from Perl stack. */
27336 3 arg_self = (lucy_IndexSearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXSEARCHER, NULL);
27337 3 sv = ST(1);
27338 3 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 3 3
27339 0 XSBind_undef_arg_error(aTHX_ "doc_id");
27340 }
27341 3 arg_doc_id = (int32_t)SvIV(sv);
27342  
27343 /* Execute */
27344 3 method = CFISH_METHOD_PTR(LUCY_INDEXSEARCHER, LUCY_IxSearcher_Fetch_Doc_Vec);
27345 3 retval = method(arg_self, arg_doc_id);
27346 3 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27347 3 CFISH_DECREF(retval);
27348 3 sv_2mortal( ST(0) );
27349 3 XSRETURN(1);
27350 }
27351  
27352 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_get_reader);
27353 7 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_get_reader) {
27354 7 dXSARGS;
27355 lucy_IndexSearcher* arg_self;
27356 LUCY_IxSearcher_Get_Reader_t method;
27357 lucy_IndexReader* retval;
27358  
27359 CFISH_UNUSED_VAR(cv);
27360 7 SP -= items;
27361 7 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 7 7
27362 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27363 }
27364  
27365 /* Extract vars from Perl stack. */
27366 7 arg_self = (lucy_IndexSearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXSEARCHER, NULL);
27367  
27368 /* Execute */
27369 7 method = CFISH_METHOD_PTR(LUCY_INDEXSEARCHER, LUCY_IxSearcher_Get_Reader);
27370 7 retval = method(arg_self);
27371 7 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27372 7 sv_2mortal( ST(0) );
27373 7 XSRETURN(1);
27374 }
27375  
27376 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_close);
27377 0 XS_INTERNAL(XS_Lucy_Search_IndexSearcher_close) {
27378 0 dXSARGS;
27379 lucy_IndexSearcher* arg_self;
27380 LUCY_IxSearcher_Close_t method;
27381  
27382 CFISH_UNUSED_VAR(cv);
27383 0 SP -= items;
27384 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
27385 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27386 }
27387  
27388 /* Extract vars from Perl stack. */
27389 0 arg_self = (lucy_IndexSearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INDEXSEARCHER, NULL);
27390  
27391 /* Execute */
27392 0 method = CFISH_METHOD_PTR(LUCY_INDEXSEARCHER, LUCY_IxSearcher_Close);
27393 0 method(arg_self);
27394 0 XSRETURN(0);
27395 }
27396  
27397 XS_INTERNAL(XS_Lucy_Search_PolySearcher_new);
27398 1 XS_INTERNAL(XS_Lucy_Search_PolySearcher_new) {
27399 1 dXSARGS;
27400 static const XSBind_ParamSpec param_specs[2] = {
27401 XSBIND_PARAM("schema", 1),
27402 XSBIND_PARAM("searchers", 1)
27403 };
27404 int32_t locations[2];
27405 SV *sv;
27406 lucy_PolySearcher* arg_self;
27407 lucy_Schema* arg_schema;
27408 cfish_Vector* arg_searchers;
27409 lucy_PolySearcher* retval;
27410  
27411 CFISH_UNUSED_VAR(cv);
27412 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
27413 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
27414 }
27415 1 SP -= items;
27416  
27417 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27418 locations, 2);
27419 1 sv = ST(locations[0]);
27420 1 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
27421 1 sv = ST(locations[1]);
27422 1 arg_searchers = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "searchers", CFISH_VECTOR, NULL);
27423 1 arg_self = (lucy_PolySearcher*)XSBind_new_blank_obj(aTHX_ ST(0));
27424  
27425 1 retval = lucy_PolySearcher_init(arg_self, arg_schema, arg_searchers);
27426 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
27427 1 XSRETURN(1);
27428 }
27429  
27430  
27431 XS_INTERNAL(XS_Lucy_Search_PolySearcher_get_searchers);
27432 1 XS_INTERNAL(XS_Lucy_Search_PolySearcher_get_searchers) {
27433 1 dXSARGS;
27434 lucy_PolySearcher* arg_self;
27435 LUCY_PolySearcher_Get_Searchers_t method;
27436 cfish_Vector* retval;
27437  
27438 CFISH_UNUSED_VAR(cv);
27439 1 SP -= items;
27440 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
27441 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27442 }
27443  
27444 /* Extract vars from Perl stack. */
27445 1 arg_self = (lucy_PolySearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYSEARCHER, NULL);
27446  
27447 /* Execute */
27448 1 method = CFISH_METHOD_PTR(LUCY_POLYSEARCHER, LUCY_PolySearcher_Get_Searchers);
27449 1 retval = method(arg_self);
27450 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27451 1 sv_2mortal( ST(0) );
27452 1 XSRETURN(1);
27453 }
27454  
27455 XS_INTERNAL(XS_Lucy_Search_PolySearcher_doc_max);
27456 2 XS_INTERNAL(XS_Lucy_Search_PolySearcher_doc_max) {
27457 2 dXSARGS;
27458 lucy_PolySearcher* arg_self;
27459 LUCY_PolySearcher_Doc_Max_t method;
27460 int32_t retval;
27461  
27462 CFISH_UNUSED_VAR(cv);
27463 2 SP -= items;
27464 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
27465 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27466 }
27467  
27468 /* Extract vars from Perl stack. */
27469 2 arg_self = (lucy_PolySearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYSEARCHER, NULL);
27470  
27471 /* Execute */
27472 2 method = CFISH_METHOD_PTR(LUCY_POLYSEARCHER, LUCY_PolySearcher_Doc_Max);
27473 2 retval = method(arg_self);
27474 2 ST(0) = newSViv(retval);
27475 2 sv_2mortal( ST(0) );
27476 2 XSRETURN(1);
27477 }
27478  
27479 XS_INTERNAL(XS_Lucy_Search_PolySearcher_doc_freq);
27480 1 XS_INTERNAL(XS_Lucy_Search_PolySearcher_doc_freq) {
27481 1 dXSARGS;
27482 static const XSBind_ParamSpec param_specs[2] = {
27483 XSBIND_PARAM("field", 1),
27484 XSBIND_PARAM("term", 1)
27485 };
27486 int32_t locations[2];
27487 SV *sv;
27488 lucy_PolySearcher* arg_self;
27489 cfish_String* arg_field;
27490 cfish_Obj* arg_term;
27491 LUCY_PolySearcher_Doc_Freq_t method;
27492 uint32_t retval;
27493  
27494 CFISH_UNUSED_VAR(cv);
27495 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
27496 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
27497 }
27498 1 SP -= items;
27499  
27500 /* Locate args on Perl stack. */
27501 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27502 locations, 2);
27503 1 arg_self = (lucy_PolySearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYSEARCHER, NULL);
27504 1 sv = ST(locations[0]);
27505 1 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
27506 1 sv = ST(locations[1]);
27507 1 arg_term = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "term", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
27508  
27509 /* Execute */
27510 1 method = CFISH_METHOD_PTR(LUCY_POLYSEARCHER, LUCY_PolySearcher_Doc_Freq);
27511 1 retval = method(arg_self, arg_field, arg_term);
27512 1 ST(0) = newSVuv(retval);
27513 1 sv_2mortal( ST(0) );
27514 1 XSRETURN(1);
27515 }
27516  
27517 XS_INTERNAL(XS_Lucy_Search_PolySearcher_collect);
27518 1 XS_INTERNAL(XS_Lucy_Search_PolySearcher_collect) {
27519 1 dXSARGS;
27520 static const XSBind_ParamSpec param_specs[2] = {
27521 XSBIND_PARAM("query", 1),
27522 XSBIND_PARAM("collector", 1)
27523 };
27524 int32_t locations[2];
27525 SV *sv;
27526 lucy_PolySearcher* arg_self;
27527 lucy_Query* arg_query;
27528 lucy_Collector* arg_collector;
27529 LUCY_PolySearcher_Collect_t method;
27530  
27531 CFISH_UNUSED_VAR(cv);
27532 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
27533 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
27534 }
27535 1 SP -= items;
27536  
27537 /* Locate args on Perl stack. */
27538 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27539 locations, 2);
27540 1 arg_self = (lucy_PolySearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYSEARCHER, NULL);
27541 1 sv = ST(locations[0]);
27542 1 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
27543 1 sv = ST(locations[1]);
27544 1 arg_collector = (lucy_Collector*)XSBind_arg_to_cfish(aTHX_ sv, "collector", LUCY_COLLECTOR, NULL);
27545  
27546 /* Execute */
27547 1 method = CFISH_METHOD_PTR(LUCY_POLYSEARCHER, LUCY_PolySearcher_Collect);
27548 1 method(arg_self, arg_query, arg_collector);
27549 1 XSRETURN(0);
27550 }
27551  
27552 XS_INTERNAL(XS_Lucy_Search_PolySearcher_top_docs);
27553 0 XS_INTERNAL(XS_Lucy_Search_PolySearcher_top_docs) {
27554 0 dXSARGS;
27555 static const XSBind_ParamSpec param_specs[3] = {
27556 XSBIND_PARAM("query", 1),
27557 XSBIND_PARAM("num_wanted", 1),
27558 XSBIND_PARAM("sort_spec", 0)
27559 };
27560 int32_t locations[3];
27561 SV *sv;
27562 lucy_PolySearcher* arg_self;
27563 lucy_Query* arg_query;
27564 uint32_t arg_num_wanted;
27565 lucy_SortSpec* arg_sort_spec;
27566 LUCY_PolySearcher_Top_Docs_t method;
27567 lucy_TopDocs* retval;
27568  
27569 CFISH_UNUSED_VAR(cv);
27570 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
27571 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
27572 }
27573 0 SP -= items;
27574  
27575 /* Locate args on Perl stack. */
27576 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27577 locations, 3);
27578 0 arg_self = (lucy_PolySearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYSEARCHER, NULL);
27579 0 sv = ST(locations[0]);
27580 0 arg_query = (lucy_Query*)XSBind_arg_to_cfish(aTHX_ sv, "query", LUCY_QUERY, NULL);
27581 0 sv = ST(locations[1]);
27582 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
27583 0 XSBind_undef_arg_error(aTHX_ "num_wanted");
27584 }
27585 0 arg_num_wanted = (uint32_t)SvUV(sv);
27586 0 sv = ST(locations[2]);
27587 0 ▶ arg_sort_spec = locations[2] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_sort_spec = locations[2] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL; 0 0 0
27588  
27589 /* Execute */
27590 0 method = CFISH_METHOD_PTR(LUCY_POLYSEARCHER, LUCY_PolySearcher_Top_Docs);
27591 0 retval = method(arg_self, arg_query, arg_num_wanted, arg_sort_spec);
27592 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27593 0 CFISH_DECREF(retval);
27594 0 sv_2mortal( ST(0) );
27595 0 XSRETURN(1);
27596 }
27597  
27598 XS_INTERNAL(XS_Lucy_Search_PolySearcher_fetch_doc);
27599 1 XS_INTERNAL(XS_Lucy_Search_PolySearcher_fetch_doc) {
27600 1 dXSARGS;
27601 SV *sv;
27602 lucy_PolySearcher* arg_self;
27603 int32_t arg_doc_id;
27604 LUCY_PolySearcher_Fetch_Doc_t method;
27605 lucy_HitDoc* retval;
27606  
27607 CFISH_UNUSED_VAR(cv);
27608 1 SP -= items;
27609 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
27610 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
27611 }
27612  
27613 /* Extract vars from Perl stack. */
27614 1 arg_self = (lucy_PolySearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYSEARCHER, NULL);
27615 1 sv = ST(1);
27616 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
27617 0 XSBind_undef_arg_error(aTHX_ "doc_id");
27618 }
27619 1 arg_doc_id = (int32_t)SvIV(sv);
27620  
27621 /* Execute */
27622 1 method = CFISH_METHOD_PTR(LUCY_POLYSEARCHER, LUCY_PolySearcher_Fetch_Doc);
27623 1 retval = method(arg_self, arg_doc_id);
27624 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27625 1 CFISH_DECREF(retval);
27626 1 sv_2mortal( ST(0) );
27627 1 XSRETURN(1);
27628 }
27629  
27630 XS_INTERNAL(XS_Lucy_Search_PolySearcher_fetch_doc_vec);
27631 1 XS_INTERNAL(XS_Lucy_Search_PolySearcher_fetch_doc_vec) {
27632 1 dXSARGS;
27633 SV *sv;
27634 lucy_PolySearcher* arg_self;
27635 int32_t arg_doc_id;
27636 LUCY_PolySearcher_Fetch_Doc_Vec_t method;
27637 lucy_DocVector* retval;
27638  
27639 CFISH_UNUSED_VAR(cv);
27640 1 SP -= items;
27641 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
27642 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
27643 }
27644  
27645 /* Extract vars from Perl stack. */
27646 1 arg_self = (lucy_PolySearcher*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POLYSEARCHER, NULL);
27647 1 sv = ST(1);
27648 1 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 1 1
27649 0 XSBind_undef_arg_error(aTHX_ "doc_id");
27650 }
27651 1 arg_doc_id = (int32_t)SvIV(sv);
27652  
27653 /* Execute */
27654 1 method = CFISH_METHOD_PTR(LUCY_POLYSEARCHER, LUCY_PolySearcher_Fetch_Doc_Vec);
27655 1 retval = method(arg_self, arg_doc_id);
27656 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27657 1 CFISH_DECREF(retval);
27658 1 sv_2mortal( ST(0) );
27659 1 XSRETURN(1);
27660 }
27661  
27662 XS_INTERNAL(XS_Lucy_Search_SortRule__new);
27663 28 XS_INTERNAL(XS_Lucy_Search_SortRule__new) {
27664 28 dXSARGS;
27665 static const XSBind_ParamSpec param_specs[3] = {
27666 XSBIND_PARAM("type", 0),
27667 XSBIND_PARAM("field", 0),
27668 XSBIND_PARAM("reverse", 0)
27669 };
27670 int32_t locations[3];
27671 SV *sv;
27672 lucy_SortRule* arg_self;
27673 int32_t arg_type;
27674 cfish_String* arg_field;
27675 bool arg_reverse;
27676 lucy_SortRule* retval;
27677  
27678 CFISH_UNUSED_VAR(cv);
27679 28 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 28 28
27680 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
27681 }
27682 28 SP -= items;
27683  
27684 28 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27685 locations, 3);
27686 28 sv = ST(locations[0]);
27687 28 ▶ arg_type = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_type = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 28 0 28
27688 56 ▶ ? (int32_t)SvIV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : 0; 28 0 28
27689 28 sv = ST(locations[1]);
27690 28 ▶ arg_field = locations[1] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_field = locations[1] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 15 13 28
27691 28 sv = ST(locations[2]);
27692 28 ▶ arg_reverse = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_reverse = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 11 17 28
arg_reverse = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 11 0 11
27693 28 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 11 17 28
? XSBind_sv_true(aTHX_ sv) : false; 4 7 11
27694 28 arg_self = (lucy_SortRule*)XSBind_new_blank_obj(aTHX_ ST(0));
27695  
27696 28 retval = lucy_SortRule_init(arg_self, arg_type, arg_field, arg_reverse);
27697 28 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
27698 28 XSRETURN(1);
27699 }
27700  
27701  
27702 XS_INTERNAL(XS_Lucy_Search_SortRule_get_field);
27703 0 XS_INTERNAL(XS_Lucy_Search_SortRule_get_field) {
27704 0 dXSARGS;
27705 lucy_SortRule* arg_self;
27706 LUCY_SortRule_Get_Field_t method;
27707 cfish_String* retval;
27708  
27709 CFISH_UNUSED_VAR(cv);
27710 0 SP -= items;
27711 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
27712 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27713 }
27714  
27715 /* Extract vars from Perl stack. */
27716 0 arg_self = (lucy_SortRule*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTRULE, NULL);
27717  
27718 /* Execute */
27719 0 method = CFISH_METHOD_PTR(LUCY_SORTRULE, LUCY_SortRule_Get_Field);
27720 0 retval = method(arg_self);
27721 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27722 0 sv_2mortal( ST(0) );
27723 0 XSRETURN(1);
27724 }
27725  
27726 XS_INTERNAL(XS_Lucy_Search_SortRule_get_type);
27727 0 XS_INTERNAL(XS_Lucy_Search_SortRule_get_type) {
27728 0 dXSARGS;
27729 lucy_SortRule* arg_self;
27730 LUCY_SortRule_Get_Type_t method;
27731 int32_t retval;
27732  
27733 CFISH_UNUSED_VAR(cv);
27734 0 SP -= items;
27735 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
27736 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27737 }
27738  
27739 /* Extract vars from Perl stack. */
27740 0 arg_self = (lucy_SortRule*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTRULE, NULL);
27741  
27742 /* Execute */
27743 0 method = CFISH_METHOD_PTR(LUCY_SORTRULE, LUCY_SortRule_Get_Type);
27744 0 retval = method(arg_self);
27745 0 ST(0) = newSViv(retval);
27746 0 sv_2mortal( ST(0) );
27747 0 XSRETURN(1);
27748 }
27749  
27750 XS_INTERNAL(XS_Lucy_Search_SortRule_get_reverse);
27751 0 XS_INTERNAL(XS_Lucy_Search_SortRule_get_reverse) {
27752 0 dXSARGS;
27753 lucy_SortRule* arg_self;
27754 LUCY_SortRule_Get_Reverse_t method;
27755 bool retval;
27756  
27757 CFISH_UNUSED_VAR(cv);
27758 0 SP -= items;
27759 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
27760 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27761 }
27762  
27763 /* Extract vars from Perl stack. */
27764 0 arg_self = (lucy_SortRule*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTRULE, NULL);
27765  
27766 /* Execute */
27767 0 method = CFISH_METHOD_PTR(LUCY_SORTRULE, LUCY_SortRule_Get_Reverse);
27768 0 retval = method(arg_self);
27769 0 ST(0) = newSViv(!!retval);
27770 0 sv_2mortal( ST(0) );
27771 0 XSRETURN(1);
27772 }
27773  
27774 XS_INTERNAL(XS_Lucy_Search_SortRule_serialize);
27775 0 XS_INTERNAL(XS_Lucy_Search_SortRule_serialize) {
27776 0 dXSARGS;
27777 SV *sv;
27778 lucy_SortRule* arg_self;
27779 lucy_OutStream* arg_outstream;
27780 LUCY_SortRule_Serialize_t method;
27781  
27782 CFISH_UNUSED_VAR(cv);
27783 0 SP -= items;
27784 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
27785 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
27786 }
27787  
27788 /* Extract vars from Perl stack. */
27789 0 arg_self = (lucy_SortRule*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTRULE, NULL);
27790 0 sv = ST(1);
27791 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
27792  
27793 /* Execute */
27794 0 method = CFISH_METHOD_PTR(LUCY_SORTRULE, LUCY_SortRule_Serialize);
27795 0 method(arg_self, arg_outstream);
27796 0 XSRETURN(0);
27797 }
27798  
27799 XS_INTERNAL(XS_Lucy_Search_SortRule_deserialize);
27800 0 XS_INTERNAL(XS_Lucy_Search_SortRule_deserialize) {
27801 0 dXSARGS;
27802 SV *sv;
27803 lucy_SortRule* arg_self;
27804 lucy_InStream* arg_instream;
27805 LUCY_SortRule_Deserialize_t method;
27806 lucy_SortRule* retval;
27807  
27808 CFISH_UNUSED_VAR(cv);
27809 0 SP -= items;
27810 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
27811 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
27812 }
27813  
27814 /* Extract vars from Perl stack. */
27815 0 arg_self = (lucy_SortRule*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTRULE, NULL);
27816 0 sv = ST(1);
27817 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
27818  
27819 /* Execute */
27820 0 method = CFISH_METHOD_PTR(LUCY_SORTRULE, LUCY_SortRule_Deserialize);
27821 0 arg_self = (lucy_SortRule*)CFISH_INCREF(arg_self);
27822 0 retval = method(arg_self, arg_instream);
27823 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27824 0 CFISH_DECREF(retval);
27825 0 sv_2mortal( ST(0) );
27826 0 XSRETURN(1);
27827 }
27828  
27829 XS_INTERNAL(XS_Lucy_Search_SortSpec_new);
27830 12 XS_INTERNAL(XS_Lucy_Search_SortSpec_new) {
27831 12 dXSARGS;
27832 static const XSBind_ParamSpec param_specs[1] = {
27833 XSBIND_PARAM("rules", 1)
27834 };
27835 int32_t locations[1];
27836 SV *sv;
27837 lucy_SortSpec* arg_self;
27838 cfish_Vector* arg_rules;
27839 lucy_SortSpec* retval;
27840  
27841 CFISH_UNUSED_VAR(cv);
27842 12 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 12 12
27843 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
27844 }
27845 12 SP -= items;
27846  
27847 12 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27848 locations, 1);
27849 12 sv = ST(locations[0]);
27850 12 arg_rules = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "rules", CFISH_VECTOR, NULL);
27851 12 arg_self = (lucy_SortSpec*)XSBind_new_blank_obj(aTHX_ ST(0));
27852  
27853 12 retval = lucy_SortSpec_init(arg_self, arg_rules);
27854 12 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
27855 12 XSRETURN(1);
27856 }
27857  
27858  
27859 XS_INTERNAL(XS_Lucy_Search_SortSpec_serialize);
27860 0 XS_INTERNAL(XS_Lucy_Search_SortSpec_serialize) {
27861 0 dXSARGS;
27862 SV *sv;
27863 lucy_SortSpec* arg_self;
27864 lucy_OutStream* arg_outstream;
27865 LUCY_SortSpec_Serialize_t method;
27866  
27867 CFISH_UNUSED_VAR(cv);
27868 0 SP -= items;
27869 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
27870 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
27871 }
27872  
27873 /* Extract vars from Perl stack. */
27874 0 arg_self = (lucy_SortSpec*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTSPEC, NULL);
27875 0 sv = ST(1);
27876 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
27877  
27878 /* Execute */
27879 0 method = CFISH_METHOD_PTR(LUCY_SORTSPEC, LUCY_SortSpec_Serialize);
27880 0 method(arg_self, arg_outstream);
27881 0 XSRETURN(0);
27882 }
27883  
27884 XS_INTERNAL(XS_Lucy_Search_SortSpec_deserialize);
27885 0 XS_INTERNAL(XS_Lucy_Search_SortSpec_deserialize) {
27886 0 dXSARGS;
27887 SV *sv;
27888 lucy_SortSpec* arg_self;
27889 lucy_InStream* arg_instream;
27890 LUCY_SortSpec_Deserialize_t method;
27891 lucy_SortSpec* retval;
27892  
27893 CFISH_UNUSED_VAR(cv);
27894 0 SP -= items;
27895 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
27896 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
27897 }
27898  
27899 /* Extract vars from Perl stack. */
27900 0 arg_self = (lucy_SortSpec*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTSPEC, NULL);
27901 0 sv = ST(1);
27902 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
27903  
27904 /* Execute */
27905 0 method = CFISH_METHOD_PTR(LUCY_SORTSPEC, LUCY_SortSpec_Deserialize);
27906 0 arg_self = (lucy_SortSpec*)CFISH_INCREF(arg_self);
27907 0 retval = method(arg_self, arg_instream);
27908 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27909 0 CFISH_DECREF(retval);
27910 0 sv_2mortal( ST(0) );
27911 0 XSRETURN(1);
27912 }
27913  
27914 XS_INTERNAL(XS_Lucy_Search_SortSpec_get_rules);
27915 0 XS_INTERNAL(XS_Lucy_Search_SortSpec_get_rules) {
27916 0 dXSARGS;
27917 lucy_SortSpec* arg_self;
27918 LUCY_SortSpec_Get_Rules_t method;
27919 cfish_Vector* retval;
27920  
27921 CFISH_UNUSED_VAR(cv);
27922 0 SP -= items;
27923 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
27924 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27925 }
27926  
27927 /* Extract vars from Perl stack. */
27928 0 arg_self = (lucy_SortSpec*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTSPEC, NULL);
27929  
27930 /* Execute */
27931 0 method = CFISH_METHOD_PTR(LUCY_SORTSPEC, LUCY_SortSpec_Get_Rules);
27932 0 retval = method(arg_self);
27933 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
27934 0 sv_2mortal( ST(0) );
27935 0 XSRETURN(1);
27936 }
27937  
27938 XS_INTERNAL(XS_Lucy_Search_Span_new);
27939 4 XS_INTERNAL(XS_Lucy_Search_Span_new) {
27940 4 dXSARGS;
27941 static const XSBind_ParamSpec param_specs[3] = {
27942 XSBIND_PARAM("offset", 1),
27943 XSBIND_PARAM("length", 1),
27944 XSBIND_PARAM("weight", 0)
27945 };
27946 int32_t locations[3];
27947 SV *sv;
27948 lucy_Span* arg_self;
27949 int32_t arg_offset;
27950 int32_t arg_length;
27951 float arg_weight;
27952 lucy_Span* retval;
27953  
27954 CFISH_UNUSED_VAR(cv);
27955 4 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 4 4
27956 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
27957 }
27958 4 SP -= items;
27959  
27960 4 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
27961 locations, 3);
27962 4 sv = ST(locations[0]);
27963 4 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 4 4
27964 0 XSBind_undef_arg_error(aTHX_ "offset");
27965 }
27966 4 arg_offset = (int32_t)SvIV(sv);
27967 4 sv = ST(locations[1]);
27968 4 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 4 4
27969 0 XSBind_undef_arg_error(aTHX_ "length");
27970 }
27971 4 arg_length = (int32_t)SvIV(sv);
27972 4 sv = ST(locations[2]);
27973 4 ▶ arg_weight = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_weight = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 4 0 4
27974 8 ▶ ? (float)SvNV(sv) : 0.0;
Branch: 1 branch
BranchTrueFalseTotal
? (float)SvNV(sv) : 0.0; 4 0 4
27975 4 arg_self = (lucy_Span*)XSBind_new_blank_obj(aTHX_ ST(0));
27976  
27977 4 retval = lucy_Span_init(arg_self, arg_offset, arg_length, arg_weight);
27978 4 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
27979 4 XSRETURN(1);
27980 }
27981  
27982  
27983 XS_INTERNAL(XS_Lucy_Search_Span_get_offset);
27984 0 XS_INTERNAL(XS_Lucy_Search_Span_get_offset) {
27985 0 dXSARGS;
27986 lucy_Span* arg_self;
27987 LUCY_Span_Get_Offset_t method;
27988 int32_t retval;
27989  
27990 CFISH_UNUSED_VAR(cv);
27991 0 SP -= items;
27992 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
27993 0 XSBind_invalid_args_error(aTHX_ cv, "self");
27994 }
27995  
27996 /* Extract vars from Perl stack. */
27997 0 arg_self = (lucy_Span*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SPAN, NULL);
27998  
27999 /* Execute */
28000 0 method = CFISH_METHOD_PTR(LUCY_SPAN, LUCY_Span_Get_Offset);
28001 0 retval = method(arg_self);
28002 0 ST(0) = newSViv(retval);
28003 0 sv_2mortal( ST(0) );
28004 0 XSRETURN(1);
28005 }
28006  
28007 XS_INTERNAL(XS_Lucy_Search_Span_set_offset);
28008 0 XS_INTERNAL(XS_Lucy_Search_Span_set_offset) {
28009 0 dXSARGS;
28010 SV *sv;
28011 lucy_Span* arg_self;
28012 int32_t arg_offset;
28013 LUCY_Span_Set_Offset_t method;
28014  
28015 CFISH_UNUSED_VAR(cv);
28016 0 SP -= items;
28017 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28018 0 XSBind_invalid_args_error(aTHX_ cv, "self, offset");
28019 }
28020  
28021 /* Extract vars from Perl stack. */
28022 0 arg_self = (lucy_Span*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SPAN, NULL);
28023 0 sv = ST(1);
28024 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
28025 0 XSBind_undef_arg_error(aTHX_ "offset");
28026 }
28027 0 arg_offset = (int32_t)SvIV(sv);
28028  
28029 /* Execute */
28030 0 method = CFISH_METHOD_PTR(LUCY_SPAN, LUCY_Span_Set_Offset);
28031 0 method(arg_self, arg_offset);
28032 0 XSRETURN(0);
28033 }
28034  
28035 XS_INTERNAL(XS_Lucy_Search_Span_get_length);
28036 0 XS_INTERNAL(XS_Lucy_Search_Span_get_length) {
28037 0 dXSARGS;
28038 lucy_Span* arg_self;
28039 LUCY_Span_Get_Length_t method;
28040 int32_t retval;
28041  
28042 CFISH_UNUSED_VAR(cv);
28043 0 SP -= items;
28044 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28045 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28046 }
28047  
28048 /* Extract vars from Perl stack. */
28049 0 arg_self = (lucy_Span*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SPAN, NULL);
28050  
28051 /* Execute */
28052 0 method = CFISH_METHOD_PTR(LUCY_SPAN, LUCY_Span_Get_Length);
28053 0 retval = method(arg_self);
28054 0 ST(0) = newSViv(retval);
28055 0 sv_2mortal( ST(0) );
28056 0 XSRETURN(1);
28057 }
28058  
28059 XS_INTERNAL(XS_Lucy_Search_Span_set_length);
28060 0 XS_INTERNAL(XS_Lucy_Search_Span_set_length) {
28061 0 dXSARGS;
28062 SV *sv;
28063 lucy_Span* arg_self;
28064 int32_t arg_length;
28065 LUCY_Span_Set_Length_t method;
28066  
28067 CFISH_UNUSED_VAR(cv);
28068 0 SP -= items;
28069 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28070 0 XSBind_invalid_args_error(aTHX_ cv, "self, length");
28071 }
28072  
28073 /* Extract vars from Perl stack. */
28074 0 arg_self = (lucy_Span*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SPAN, NULL);
28075 0 sv = ST(1);
28076 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
28077 0 XSBind_undef_arg_error(aTHX_ "length");
28078 }
28079 0 arg_length = (int32_t)SvIV(sv);
28080  
28081 /* Execute */
28082 0 method = CFISH_METHOD_PTR(LUCY_SPAN, LUCY_Span_Set_Length);
28083 0 method(arg_self, arg_length);
28084 0 XSRETURN(0);
28085 }
28086  
28087 XS_INTERNAL(XS_Lucy_Search_Span_get_weight);
28088 0 XS_INTERNAL(XS_Lucy_Search_Span_get_weight) {
28089 0 dXSARGS;
28090 lucy_Span* arg_self;
28091 LUCY_Span_Get_Weight_t method;
28092 float retval;
28093  
28094 CFISH_UNUSED_VAR(cv);
28095 0 SP -= items;
28096 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28097 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28098 }
28099  
28100 /* Extract vars from Perl stack. */
28101 0 arg_self = (lucy_Span*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SPAN, NULL);
28102  
28103 /* Execute */
28104 0 method = CFISH_METHOD_PTR(LUCY_SPAN, LUCY_Span_Get_Weight);
28105 0 retval = method(arg_self);
28106 0 ST(0) = newSVnv(retval);
28107 0 sv_2mortal( ST(0) );
28108 0 XSRETURN(1);
28109 }
28110  
28111 XS_INTERNAL(XS_Lucy_Search_Span_set_weight);
28112 0 XS_INTERNAL(XS_Lucy_Search_Span_set_weight) {
28113 0 dXSARGS;
28114 SV *sv;
28115 lucy_Span* arg_self;
28116 float arg_weight;
28117 LUCY_Span_Set_Weight_t method;
28118  
28119 CFISH_UNUSED_VAR(cv);
28120 0 SP -= items;
28121 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28122 0 XSBind_invalid_args_error(aTHX_ cv, "self, weight");
28123 }
28124  
28125 /* Extract vars from Perl stack. */
28126 0 arg_self = (lucy_Span*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SPAN, NULL);
28127 0 sv = ST(1);
28128 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
28129 0 XSBind_undef_arg_error(aTHX_ "weight");
28130 }
28131 0 arg_weight = (float)SvNV(sv);
28132  
28133 /* Execute */
28134 0 method = CFISH_METHOD_PTR(LUCY_SPAN, LUCY_Span_Set_Weight);
28135 0 method(arg_self, arg_weight);
28136 0 XSRETURN(0);
28137 }
28138  
28139 XS_INTERNAL(XS_Lucy_Search_Span_equals);
28140 0 XS_INTERNAL(XS_Lucy_Search_Span_equals) {
28141 0 dXSARGS;
28142 SV *sv;
28143 lucy_Span* arg_self;
28144 cfish_Obj* arg_other;
28145 LUCY_Span_Equals_t method;
28146 bool retval;
28147  
28148 CFISH_UNUSED_VAR(cv);
28149 0 SP -= items;
28150 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28151 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
28152 }
28153  
28154 /* Extract vars from Perl stack. */
28155 0 arg_self = (lucy_Span*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SPAN, NULL);
28156 0 sv = ST(1);
28157 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
28158  
28159 /* Execute */
28160 0 method = CFISH_METHOD_PTR(LUCY_SPAN, LUCY_Span_Equals);
28161 0 retval = method(arg_self, arg_other);
28162 0 ST(0) = newSViv(!!retval);
28163 0 sv_2mortal( ST(0) );
28164 0 XSRETURN(1);
28165 }
28166  
28167 XS_INTERNAL(XS_Lucy_Search_Span_compare_to);
28168 0 XS_INTERNAL(XS_Lucy_Search_Span_compare_to) {
28169 0 dXSARGS;
28170 SV *sv;
28171 lucy_Span* arg_self;
28172 cfish_Obj* arg_other;
28173 LUCY_Span_Compare_To_t method;
28174 int32_t retval;
28175  
28176 CFISH_UNUSED_VAR(cv);
28177 0 SP -= items;
28178 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28179 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
28180 }
28181  
28182 /* Extract vars from Perl stack. */
28183 0 arg_self = (lucy_Span*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SPAN, NULL);
28184 0 sv = ST(1);
28185 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
28186  
28187 /* Execute */
28188 0 method = CFISH_METHOD_PTR(LUCY_SPAN, LUCY_Span_Compare_To);
28189 0 retval = method(arg_self, arg_other);
28190 0 ST(0) = newSViv(retval);
28191 0 sv_2mortal( ST(0) );
28192 0 XSRETURN(1);
28193 }
28194  
28195 XS_INTERNAL(XS_Lucy_Search_TopDocs_new);
28196 0 XS_INTERNAL(XS_Lucy_Search_TopDocs_new) {
28197 0 dXSARGS;
28198 static const XSBind_ParamSpec param_specs[2] = {
28199 XSBIND_PARAM("match_docs", 1),
28200 XSBIND_PARAM("total_hits", 1)
28201 };
28202 int32_t locations[2];
28203 SV *sv;
28204 lucy_TopDocs* arg_self;
28205 cfish_Vector* arg_match_docs;
28206 uint32_t arg_total_hits;
28207 lucy_TopDocs* retval;
28208  
28209 CFISH_UNUSED_VAR(cv);
28210 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
28211 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
28212 }
28213 0 SP -= items;
28214  
28215 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
28216 locations, 2);
28217 0 sv = ST(locations[0]);
28218 0 arg_match_docs = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "match_docs", CFISH_VECTOR, NULL);
28219 0 sv = ST(locations[1]);
28220 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
28221 0 XSBind_undef_arg_error(aTHX_ "total_hits");
28222 }
28223 0 arg_total_hits = (uint32_t)SvUV(sv);
28224 0 arg_self = (lucy_TopDocs*)XSBind_new_blank_obj(aTHX_ ST(0));
28225  
28226 0 retval = lucy_TopDocs_init(arg_self, arg_match_docs, arg_total_hits);
28227 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
28228 0 XSRETURN(1);
28229 }
28230  
28231  
28232 XS_INTERNAL(XS_Lucy_Search_TopDocs_get_match_docs);
28233 0 XS_INTERNAL(XS_Lucy_Search_TopDocs_get_match_docs) {
28234 0 dXSARGS;
28235 lucy_TopDocs* arg_self;
28236 LUCY_TopDocs_Get_Match_Docs_t method;
28237 cfish_Vector* retval;
28238  
28239 CFISH_UNUSED_VAR(cv);
28240 0 SP -= items;
28241 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28242 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28243 }
28244  
28245 /* Extract vars from Perl stack. */
28246 0 arg_self = (lucy_TopDocs*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOPDOCS, NULL);
28247  
28248 /* Execute */
28249 0 method = CFISH_METHOD_PTR(LUCY_TOPDOCS, LUCY_TopDocs_Get_Match_Docs);
28250 0 retval = method(arg_self);
28251 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
28252 0 sv_2mortal( ST(0) );
28253 0 XSRETURN(1);
28254 }
28255  
28256 XS_INTERNAL(XS_Lucy_Search_TopDocs_set_match_docs);
28257 0 XS_INTERNAL(XS_Lucy_Search_TopDocs_set_match_docs) {
28258 0 dXSARGS;
28259 SV *sv;
28260 lucy_TopDocs* arg_self;
28261 cfish_Vector* arg_match_docs;
28262 LUCY_TopDocs_Set_Match_Docs_t method;
28263  
28264 CFISH_UNUSED_VAR(cv);
28265 0 SP -= items;
28266 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28267 0 XSBind_invalid_args_error(aTHX_ cv, "self, match_docs");
28268 }
28269  
28270 /* Extract vars from Perl stack. */
28271 0 arg_self = (lucy_TopDocs*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOPDOCS, NULL);
28272 0 sv = ST(1);
28273 0 arg_match_docs = (cfish_Vector*)XSBind_arg_to_cfish(aTHX_ sv, "match_docs", CFISH_VECTOR, NULL);
28274  
28275 /* Execute */
28276 0 method = CFISH_METHOD_PTR(LUCY_TOPDOCS, LUCY_TopDocs_Set_Match_Docs);
28277 0 method(arg_self, arg_match_docs);
28278 0 XSRETURN(0);
28279 }
28280  
28281 XS_INTERNAL(XS_Lucy_Search_TopDocs_get_total_hits);
28282 0 XS_INTERNAL(XS_Lucy_Search_TopDocs_get_total_hits) {
28283 0 dXSARGS;
28284 lucy_TopDocs* arg_self;
28285 LUCY_TopDocs_Get_Total_Hits_t method;
28286 uint32_t retval;
28287  
28288 CFISH_UNUSED_VAR(cv);
28289 0 SP -= items;
28290 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28291 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28292 }
28293  
28294 /* Extract vars from Perl stack. */
28295 0 arg_self = (lucy_TopDocs*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOPDOCS, NULL);
28296  
28297 /* Execute */
28298 0 method = CFISH_METHOD_PTR(LUCY_TOPDOCS, LUCY_TopDocs_Get_Total_Hits);
28299 0 retval = method(arg_self);
28300 0 ST(0) = newSVuv(retval);
28301 0 sv_2mortal( ST(0) );
28302 0 XSRETURN(1);
28303 }
28304  
28305 XS_INTERNAL(XS_Lucy_Search_TopDocs_set_total_hits);
28306 0 XS_INTERNAL(XS_Lucy_Search_TopDocs_set_total_hits) {
28307 0 dXSARGS;
28308 SV *sv;
28309 lucy_TopDocs* arg_self;
28310 uint32_t arg_total_hits;
28311 LUCY_TopDocs_Set_Total_Hits_t method;
28312  
28313 CFISH_UNUSED_VAR(cv);
28314 0 SP -= items;
28315 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28316 0 XSBind_invalid_args_error(aTHX_ cv, "self, total_hits");
28317 }
28318  
28319 /* Extract vars from Perl stack. */
28320 0 arg_self = (lucy_TopDocs*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOPDOCS, NULL);
28321 0 sv = ST(1);
28322 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
28323 0 XSBind_undef_arg_error(aTHX_ "total_hits");
28324 }
28325 0 arg_total_hits = (uint32_t)SvUV(sv);
28326  
28327 /* Execute */
28328 0 method = CFISH_METHOD_PTR(LUCY_TOPDOCS, LUCY_TopDocs_Set_Total_Hits);
28329 0 method(arg_self, arg_total_hits);
28330 0 XSRETURN(0);
28331 }
28332  
28333 XS_INTERNAL(XS_Lucy_Search_TopDocs_serialize);
28334 0 XS_INTERNAL(XS_Lucy_Search_TopDocs_serialize) {
28335 0 dXSARGS;
28336 SV *sv;
28337 lucy_TopDocs* arg_self;
28338 lucy_OutStream* arg_outstream;
28339 LUCY_TopDocs_Serialize_t method;
28340  
28341 CFISH_UNUSED_VAR(cv);
28342 0 SP -= items;
28343 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28344 0 XSBind_invalid_args_error(aTHX_ cv, "self, outstream");
28345 }
28346  
28347 /* Extract vars from Perl stack. */
28348 0 arg_self = (lucy_TopDocs*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOPDOCS, NULL);
28349 0 sv = ST(1);
28350 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
28351  
28352 /* Execute */
28353 0 method = CFISH_METHOD_PTR(LUCY_TOPDOCS, LUCY_TopDocs_Serialize);
28354 0 method(arg_self, arg_outstream);
28355 0 XSRETURN(0);
28356 }
28357  
28358 XS_INTERNAL(XS_Lucy_Search_TopDocs_deserialize);
28359 0 XS_INTERNAL(XS_Lucy_Search_TopDocs_deserialize) {
28360 0 dXSARGS;
28361 SV *sv;
28362 lucy_TopDocs* arg_self;
28363 lucy_InStream* arg_instream;
28364 LUCY_TopDocs_Deserialize_t method;
28365 lucy_TopDocs* retval;
28366  
28367 CFISH_UNUSED_VAR(cv);
28368 0 SP -= items;
28369 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
28370 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
28371 }
28372  
28373 /* Extract vars from Perl stack. */
28374 0 arg_self = (lucy_TopDocs*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TOPDOCS, NULL);
28375 0 sv = ST(1);
28376 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
28377  
28378 /* Execute */
28379 0 method = CFISH_METHOD_PTR(LUCY_TOPDOCS, LUCY_TopDocs_Deserialize);
28380 0 arg_self = (lucy_TopDocs*)CFISH_INCREF(arg_self);
28381 0 retval = method(arg_self, arg_instream);
28382 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
28383 0 CFISH_DECREF(retval);
28384 0 sv_2mortal( ST(0) );
28385 0 XSRETURN(1);
28386 }
28387  
28388 XS_INTERNAL(XS_Lucy_Simple_new);
28389 6 XS_INTERNAL(XS_Lucy_Simple_new) {
28390 6 dXSARGS;
28391 static const XSBind_ParamSpec param_specs[2] = {
28392 XSBIND_PARAM("path", 1),
28393 XSBIND_PARAM("language", 1)
28394 };
28395 int32_t locations[2];
28396 SV *sv;
28397 lucy_Simple* arg_self;
28398 cfish_Obj* arg_path;
28399 cfish_String* arg_language;
28400 lucy_Simple* retval;
28401  
28402 CFISH_UNUSED_VAR(cv);
28403 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
28404 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
28405 }
28406 6 SP -= items;
28407  
28408 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
28409 locations, 2);
28410 6 sv = ST(locations[0]);
28411 6 arg_path = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
28412 6 sv = ST(locations[1]);
28413 6 arg_language = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "language", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
28414 6 arg_self = (lucy_Simple*)XSBind_new_blank_obj(aTHX_ ST(0));
28415  
28416 6 retval = lucy_Simple_init(arg_self, arg_path, arg_language);
28417 6 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
28418 6 XSRETURN(1);
28419 }
28420  
28421  
28422 XS_INTERNAL(XS_Lucy_Simple_search);
28423 9 XS_INTERNAL(XS_Lucy_Simple_search) {
28424 9 dXSARGS;
28425 static const XSBind_ParamSpec param_specs[4] = {
28426 XSBIND_PARAM("query", 1),
28427 XSBIND_PARAM("offset", 0),
28428 XSBIND_PARAM("num_wanted", 0),
28429 XSBIND_PARAM("sort_spec", 0)
28430 };
28431 int32_t locations[4];
28432 SV *sv;
28433 lucy_Simple* arg_self;
28434 cfish_String* arg_query;
28435 uint32_t arg_offset;
28436 uint32_t arg_num_wanted;
28437 lucy_SortSpec* arg_sort_spec;
28438 LUCY_Simple_Search_t method;
28439 uint32_t retval;
28440  
28441 CFISH_UNUSED_VAR(cv);
28442 9 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 9 9
28443 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
28444 }
28445 9 SP -= items;
28446  
28447 /* Locate args on Perl stack. */
28448 9 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
28449 locations, 4);
28450 9 arg_self = (lucy_Simple*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMPLE, NULL);
28451 9 sv = ST(locations[0]);
28452 9 arg_query = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "query", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
28453 9 sv = ST(locations[1]);
28454 0 ▶ arg_offset = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_offset = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
28455 9 ▶ ? (uint32_t)SvUV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (uint32_t)SvUV(sv) : 0; 0 9 9
28456 9 sv = ST(locations[2]);
28457 0 ▶ arg_num_wanted = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_num_wanted = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
28458 9 ▶ ? (uint32_t)SvUV(sv) : 10;
Branch: 1 branch
BranchTrueFalseTotal
? (uint32_t)SvUV(sv) : 10; 0 9 9
28459 9 sv = ST(locations[3]);
28460 9 ▶ arg_sort_spec = locations[3] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_sort_spec = locations[3] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL; 0 9 9
28461  
28462 /* Execute */
28463 9 method = CFISH_METHOD_PTR(LUCY_SIMPLE, LUCY_Simple_Search);
28464 9 retval = method(arg_self, arg_query, arg_offset, arg_num_wanted, arg_sort_spec);
28465 9 ST(0) = newSVuv(retval);
28466 9 sv_2mortal( ST(0) );
28467 9 XSRETURN(1);
28468 }
28469  
28470 XS_INTERNAL(XS_Lucy_Simple_next);
28471 8 XS_INTERNAL(XS_Lucy_Simple_next) {
28472 8 dXSARGS;
28473 lucy_Simple* arg_self;
28474 LUCY_Simple_Next_t method;
28475 lucy_HitDoc* retval;
28476  
28477 CFISH_UNUSED_VAR(cv);
28478 8 SP -= items;
28479 8 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 8 8
28480 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28481 }
28482  
28483 /* Extract vars from Perl stack. */
28484 8 arg_self = (lucy_Simple*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMPLE, NULL);
28485  
28486 /* Execute */
28487 8 method = CFISH_METHOD_PTR(LUCY_SIMPLE, LUCY_Simple_Next);
28488 8 retval = method(arg_self);
28489 8 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
28490 8 CFISH_DECREF(retval);
28491 8 sv_2mortal( ST(0) );
28492 8 XSRETURN(1);
28493 }
28494  
28495 XS_INTERNAL(XS_Lucy_Simple_get_indexer);
28496 0 XS_INTERNAL(XS_Lucy_Simple_get_indexer) {
28497 0 dXSARGS;
28498 lucy_Simple* arg_self;
28499 LUCY_Simple_Get_Indexer_t method;
28500 lucy_Indexer* retval;
28501  
28502 CFISH_UNUSED_VAR(cv);
28503 0 SP -= items;
28504 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28505 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28506 }
28507  
28508 /* Extract vars from Perl stack. */
28509 0 arg_self = (lucy_Simple*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMPLE, NULL);
28510  
28511 /* Execute */
28512 0 method = CFISH_METHOD_PTR(LUCY_SIMPLE, LUCY_Simple_Get_Indexer);
28513 0 retval = method(arg_self);
28514 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
28515 0 sv_2mortal( ST(0) );
28516 0 XSRETURN(1);
28517 }
28518  
28519 XS_INTERNAL(XS_Lucy_Simple_get_hits);
28520 0 XS_INTERNAL(XS_Lucy_Simple_get_hits) {
28521 0 dXSARGS;
28522 lucy_Simple* arg_self;
28523 LUCY_Simple_Get_Hits_t method;
28524 lucy_Hits* retval;
28525  
28526 CFISH_UNUSED_VAR(cv);
28527 0 SP -= items;
28528 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28529 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28530 }
28531  
28532 /* Extract vars from Perl stack. */
28533 0 arg_self = (lucy_Simple*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMPLE, NULL);
28534  
28535 /* Execute */
28536 0 method = CFISH_METHOD_PTR(LUCY_SIMPLE, LUCY_Simple_Get_Hits);
28537 0 retval = method(arg_self);
28538 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
28539 0 sv_2mortal( ST(0) );
28540 0 XSRETURN(1);
28541 }
28542  
28543 XS_INTERNAL(XS_Lucy_Simple_finish_indexing);
28544 0 XS_INTERNAL(XS_Lucy_Simple_finish_indexing) {
28545 0 dXSARGS;
28546 lucy_Simple* arg_self;
28547 LUCY_Simple_Finish_Indexing_t method;
28548  
28549 CFISH_UNUSED_VAR(cv);
28550 0 SP -= items;
28551 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28552 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28553 }
28554  
28555 /* Extract vars from Perl stack. */
28556 0 arg_self = (lucy_Simple*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SIMPLE, NULL);
28557  
28558 /* Execute */
28559 0 method = CFISH_METHOD_PTR(LUCY_SIMPLE, LUCY_Simple_Finish_Indexing);
28560 0 method(arg_self);
28561 0 XSRETURN(0);
28562 }
28563  
28564 XS_INTERNAL(XS_Lucy_Store_CompoundFileWriter_new);
28565 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileWriter_new) {
28566 0 dXSARGS;
28567 static const XSBind_ParamSpec param_specs[1] = {
28568 XSBIND_PARAM("folder", 1)
28569 };
28570 int32_t locations[1];
28571 SV *sv;
28572 lucy_CompoundFileWriter* arg_self;
28573 lucy_Folder* arg_folder;
28574 lucy_CompoundFileWriter* retval;
28575  
28576 CFISH_UNUSED_VAR(cv);
28577 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
28578 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
28579 }
28580 0 SP -= items;
28581  
28582 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
28583 locations, 1);
28584 0 sv = ST(locations[0]);
28585 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
28586 0 arg_self = (lucy_CompoundFileWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
28587  
28588 0 retval = lucy_CFWriter_init(arg_self, arg_folder);
28589 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
28590 0 XSRETURN(1);
28591 }
28592  
28593  
28594 XS_INTERNAL(XS_Lucy_Store_CompoundFileWriter_consolidate);
28595 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileWriter_consolidate) {
28596 0 dXSARGS;
28597 lucy_CompoundFileWriter* arg_self;
28598 LUCY_CFWriter_Consolidate_t method;
28599  
28600 CFISH_UNUSED_VAR(cv);
28601 0 SP -= items;
28602 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28603 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28604 }
28605  
28606 /* Extract vars from Perl stack. */
28607 0 arg_self = (lucy_CompoundFileWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEWRITER, NULL);
28608  
28609 /* Execute */
28610 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEWRITER, LUCY_CFWriter_Consolidate);
28611 0 method(arg_self);
28612 0 XSRETURN(0);
28613 }
28614  
28615 XS_INTERNAL(XS_Lucy_Store_DirHandle_new);
28616 0 XS_INTERNAL(XS_Lucy_Store_DirHandle_new) {
28617 0 dXSARGS;
28618 static const XSBind_ParamSpec param_specs[1] = {
28619 XSBIND_PARAM("dir", 1)
28620 };
28621 int32_t locations[1];
28622 SV *sv;
28623 lucy_DirHandle* arg_self;
28624 cfish_String* arg_dir;
28625 lucy_DirHandle* retval;
28626  
28627 CFISH_UNUSED_VAR(cv);
28628 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
28629 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
28630 }
28631 0 SP -= items;
28632  
28633 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
28634 locations, 1);
28635 0 sv = ST(locations[0]);
28636 0 arg_dir = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "dir", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
28637 0 arg_self = (lucy_DirHandle*)XSBind_new_blank_obj(aTHX_ ST(0));
28638  
28639 0 retval = lucy_DH_init(arg_self, arg_dir);
28640 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
28641 0 XSRETURN(1);
28642 }
28643  
28644  
28645 XS_INTERNAL(XS_Lucy_Store_DirHandle_next);
28646 0 XS_INTERNAL(XS_Lucy_Store_DirHandle_next) {
28647 0 dXSARGS;
28648 lucy_DirHandle* arg_self;
28649 LUCY_DH_Next_t method;
28650 bool retval;
28651  
28652 CFISH_UNUSED_VAR(cv);
28653 0 SP -= items;
28654 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28655 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28656 }
28657  
28658 /* Extract vars from Perl stack. */
28659 0 arg_self = (lucy_DirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DIRHANDLE, NULL);
28660  
28661 /* Execute */
28662 0 method = CFISH_METHOD_PTR(LUCY_DIRHANDLE, LUCY_DH_Next);
28663 0 retval = method(arg_self);
28664 0 ST(0) = newSViv(!!retval);
28665 0 sv_2mortal( ST(0) );
28666 0 XSRETURN(1);
28667 }
28668  
28669 XS_INTERNAL(XS_Lucy_Store_DirHandle_close);
28670 0 XS_INTERNAL(XS_Lucy_Store_DirHandle_close) {
28671 0 dXSARGS;
28672 lucy_DirHandle* arg_self;
28673 LUCY_DH_Close_t method;
28674 bool retval;
28675  
28676 CFISH_UNUSED_VAR(cv);
28677 0 SP -= items;
28678 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28679 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28680 }
28681  
28682 /* Extract vars from Perl stack. */
28683 0 arg_self = (lucy_DirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DIRHANDLE, NULL);
28684  
28685 /* Execute */
28686 0 method = CFISH_METHOD_PTR(LUCY_DIRHANDLE, LUCY_DH_Close);
28687 0 retval = method(arg_self);
28688 0 ST(0) = newSViv(!!retval);
28689 0 sv_2mortal( ST(0) );
28690 0 XSRETURN(1);
28691 }
28692  
28693 XS_INTERNAL(XS_Lucy_Store_DirHandle_get_dir);
28694 0 XS_INTERNAL(XS_Lucy_Store_DirHandle_get_dir) {
28695 0 dXSARGS;
28696 lucy_DirHandle* arg_self;
28697 LUCY_DH_Get_Dir_t method;
28698 cfish_String* retval;
28699  
28700 CFISH_UNUSED_VAR(cv);
28701 0 SP -= items;
28702 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28703 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28704 }
28705  
28706 /* Extract vars from Perl stack. */
28707 0 arg_self = (lucy_DirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DIRHANDLE, NULL);
28708  
28709 /* Execute */
28710 0 method = CFISH_METHOD_PTR(LUCY_DIRHANDLE, LUCY_DH_Get_Dir);
28711 0 retval = method(arg_self);
28712 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
28713 0 sv_2mortal( ST(0) );
28714 0 XSRETURN(1);
28715 }
28716  
28717 XS_INTERNAL(XS_Lucy_Store_DirHandle_get_entry);
28718 0 XS_INTERNAL(XS_Lucy_Store_DirHandle_get_entry) {
28719 0 dXSARGS;
28720 lucy_DirHandle* arg_self;
28721 LUCY_DH_Get_Entry_t method;
28722 cfish_String* retval;
28723  
28724 CFISH_UNUSED_VAR(cv);
28725 0 SP -= items;
28726 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28727 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28728 }
28729  
28730 /* Extract vars from Perl stack. */
28731 0 arg_self = (lucy_DirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DIRHANDLE, NULL);
28732  
28733 /* Execute */
28734 0 method = CFISH_METHOD_PTR(LUCY_DIRHANDLE, LUCY_DH_Get_Entry);
28735 0 retval = method(arg_self);
28736 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
28737 0 CFISH_DECREF(retval);
28738 0 sv_2mortal( ST(0) );
28739 0 XSRETURN(1);
28740 }
28741  
28742 XS_INTERNAL(XS_Lucy_Store_DirHandle_entry_is_dir);
28743 0 XS_INTERNAL(XS_Lucy_Store_DirHandle_entry_is_dir) {
28744 0 dXSARGS;
28745 lucy_DirHandle* arg_self;
28746 LUCY_DH_Entry_Is_Dir_t method;
28747 bool retval;
28748  
28749 CFISH_UNUSED_VAR(cv);
28750 0 SP -= items;
28751 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28752 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28753 }
28754  
28755 /* Extract vars from Perl stack. */
28756 0 arg_self = (lucy_DirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DIRHANDLE, NULL);
28757  
28758 /* Execute */
28759 0 method = CFISH_METHOD_PTR(LUCY_DIRHANDLE, LUCY_DH_Entry_Is_Dir);
28760 0 retval = method(arg_self);
28761 0 ST(0) = newSViv(!!retval);
28762 0 sv_2mortal( ST(0) );
28763 0 XSRETURN(1);
28764 }
28765  
28766 XS_INTERNAL(XS_Lucy_Store_DirHandle_entry_is_symlink);
28767 0 XS_INTERNAL(XS_Lucy_Store_DirHandle_entry_is_symlink) {
28768 0 dXSARGS;
28769 lucy_DirHandle* arg_self;
28770 LUCY_DH_Entry_Is_Symlink_t method;
28771 bool retval;
28772  
28773 CFISH_UNUSED_VAR(cv);
28774 0 SP -= items;
28775 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28776 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28777 }
28778  
28779 /* Extract vars from Perl stack. */
28780 0 arg_self = (lucy_DirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_DIRHANDLE, NULL);
28781  
28782 /* Execute */
28783 0 method = CFISH_METHOD_PTR(LUCY_DIRHANDLE, LUCY_DH_Entry_Is_Symlink);
28784 0 retval = method(arg_self);
28785 0 ST(0) = newSViv(!!retval);
28786 0 sv_2mortal( ST(0) );
28787 0 XSRETURN(1);
28788 }
28789  
28790 XS_INTERNAL(XS_Lucy_Store_CFReaderDirHandle_new);
28791 0 XS_INTERNAL(XS_Lucy_Store_CFReaderDirHandle_new) {
28792 0 dXSARGS;
28793 static const XSBind_ParamSpec param_specs[1] = {
28794 XSBIND_PARAM("cf_reader", 1)
28795 };
28796 int32_t locations[1];
28797 SV *sv;
28798 lucy_CFReaderDirHandle* arg_self;
28799 lucy_CompoundFileReader* arg_cf_reader;
28800 lucy_CFReaderDirHandle* retval;
28801  
28802 CFISH_UNUSED_VAR(cv);
28803 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
28804 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
28805 }
28806 0 SP -= items;
28807  
28808 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
28809 locations, 1);
28810 0 sv = ST(locations[0]);
28811 0 arg_cf_reader = (lucy_CompoundFileReader*)XSBind_arg_to_cfish(aTHX_ sv, "cf_reader", LUCY_COMPOUNDFILEREADER, NULL);
28812 0 arg_self = (lucy_CFReaderDirHandle*)XSBind_new_blank_obj(aTHX_ ST(0));
28813  
28814 0 retval = lucy_CFReaderDH_init(arg_self, arg_cf_reader);
28815 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
28816 0 XSRETURN(1);
28817 }
28818  
28819  
28820 XS_INTERNAL(XS_Lucy_Store_CFReaderDirHandle_next);
28821 0 XS_INTERNAL(XS_Lucy_Store_CFReaderDirHandle_next) {
28822 0 dXSARGS;
28823 lucy_CFReaderDirHandle* arg_self;
28824 LUCY_CFReaderDH_Next_t method;
28825 bool retval;
28826  
28827 CFISH_UNUSED_VAR(cv);
28828 0 SP -= items;
28829 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28830 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28831 }
28832  
28833 /* Extract vars from Perl stack. */
28834 0 arg_self = (lucy_CFReaderDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_CFREADERDIRHANDLE, NULL);
28835  
28836 /* Execute */
28837 0 method = CFISH_METHOD_PTR(LUCY_CFREADERDIRHANDLE, LUCY_CFReaderDH_Next);
28838 0 retval = method(arg_self);
28839 0 ST(0) = newSViv(!!retval);
28840 0 sv_2mortal( ST(0) );
28841 0 XSRETURN(1);
28842 }
28843  
28844 XS_INTERNAL(XS_Lucy_Store_CFReaderDirHandle_entry_is_dir);
28845 0 XS_INTERNAL(XS_Lucy_Store_CFReaderDirHandle_entry_is_dir) {
28846 0 dXSARGS;
28847 lucy_CFReaderDirHandle* arg_self;
28848 LUCY_CFReaderDH_Entry_Is_Dir_t method;
28849 bool retval;
28850  
28851 CFISH_UNUSED_VAR(cv);
28852 0 SP -= items;
28853 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28854 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28855 }
28856  
28857 /* Extract vars from Perl stack. */
28858 0 arg_self = (lucy_CFReaderDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_CFREADERDIRHANDLE, NULL);
28859  
28860 /* Execute */
28861 0 method = CFISH_METHOD_PTR(LUCY_CFREADERDIRHANDLE, LUCY_CFReaderDH_Entry_Is_Dir);
28862 0 retval = method(arg_self);
28863 0 ST(0) = newSViv(!!retval);
28864 0 sv_2mortal( ST(0) );
28865 0 XSRETURN(1);
28866 }
28867  
28868 XS_INTERNAL(XS_Lucy_Store_CFReaderDirHandle_close);
28869 0 XS_INTERNAL(XS_Lucy_Store_CFReaderDirHandle_close) {
28870 0 dXSARGS;
28871 lucy_CFReaderDirHandle* arg_self;
28872 LUCY_CFReaderDH_Close_t method;
28873 bool retval;
28874  
28875 CFISH_UNUSED_VAR(cv);
28876 0 SP -= items;
28877 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28878 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28879 }
28880  
28881 /* Extract vars from Perl stack. */
28882 0 arg_self = (lucy_CFReaderDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_CFREADERDIRHANDLE, NULL);
28883  
28884 /* Execute */
28885 0 method = CFISH_METHOD_PTR(LUCY_CFREADERDIRHANDLE, LUCY_CFReaderDH_Close);
28886 0 retval = method(arg_self);
28887 0 ST(0) = newSViv(!!retval);
28888 0 sv_2mortal( ST(0) );
28889 0 XSRETURN(1);
28890 }
28891  
28892 XS_INTERNAL(XS_Lucy_Store_FSDirHandle_next);
28893 0 XS_INTERNAL(XS_Lucy_Store_FSDirHandle_next) {
28894 0 dXSARGS;
28895 lucy_FSDirHandle* arg_self;
28896 LUCY_FSDH_Next_t method;
28897 bool retval;
28898  
28899 CFISH_UNUSED_VAR(cv);
28900 0 SP -= items;
28901 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28902 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28903 }
28904  
28905 /* Extract vars from Perl stack. */
28906 0 arg_self = (lucy_FSDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSDIRHANDLE, NULL);
28907  
28908 /* Execute */
28909 0 method = CFISH_METHOD_PTR(LUCY_FSDIRHANDLE, LUCY_FSDH_Next);
28910 0 retval = method(arg_self);
28911 0 ST(0) = newSViv(!!retval);
28912 0 sv_2mortal( ST(0) );
28913 0 XSRETURN(1);
28914 }
28915  
28916 XS_INTERNAL(XS_Lucy_Store_FSDirHandle_entry_is_dir);
28917 0 XS_INTERNAL(XS_Lucy_Store_FSDirHandle_entry_is_dir) {
28918 0 dXSARGS;
28919 lucy_FSDirHandle* arg_self;
28920 LUCY_FSDH_Entry_Is_Dir_t method;
28921 bool retval;
28922  
28923 CFISH_UNUSED_VAR(cv);
28924 0 SP -= items;
28925 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28926 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28927 }
28928  
28929 /* Extract vars from Perl stack. */
28930 0 arg_self = (lucy_FSDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSDIRHANDLE, NULL);
28931  
28932 /* Execute */
28933 0 method = CFISH_METHOD_PTR(LUCY_FSDIRHANDLE, LUCY_FSDH_Entry_Is_Dir);
28934 0 retval = method(arg_self);
28935 0 ST(0) = newSViv(!!retval);
28936 0 sv_2mortal( ST(0) );
28937 0 XSRETURN(1);
28938 }
28939  
28940 XS_INTERNAL(XS_Lucy_Store_FSDirHandle_entry_is_symlink);
28941 0 XS_INTERNAL(XS_Lucy_Store_FSDirHandle_entry_is_symlink) {
28942 0 dXSARGS;
28943 lucy_FSDirHandle* arg_self;
28944 LUCY_FSDH_Entry_Is_Symlink_t method;
28945 bool retval;
28946  
28947 CFISH_UNUSED_VAR(cv);
28948 0 SP -= items;
28949 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28950 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28951 }
28952  
28953 /* Extract vars from Perl stack. */
28954 0 arg_self = (lucy_FSDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSDIRHANDLE, NULL);
28955  
28956 /* Execute */
28957 0 method = CFISH_METHOD_PTR(LUCY_FSDIRHANDLE, LUCY_FSDH_Entry_Is_Symlink);
28958 0 retval = method(arg_self);
28959 0 ST(0) = newSViv(!!retval);
28960 0 sv_2mortal( ST(0) );
28961 0 XSRETURN(1);
28962 }
28963  
28964 XS_INTERNAL(XS_Lucy_Store_FSDirHandle_close);
28965 0 XS_INTERNAL(XS_Lucy_Store_FSDirHandle_close) {
28966 0 dXSARGS;
28967 lucy_FSDirHandle* arg_self;
28968 LUCY_FSDH_Close_t method;
28969 bool retval;
28970  
28971 CFISH_UNUSED_VAR(cv);
28972 0 SP -= items;
28973 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
28974 0 XSBind_invalid_args_error(aTHX_ cv, "self");
28975 }
28976  
28977 /* Extract vars from Perl stack. */
28978 0 arg_self = (lucy_FSDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSDIRHANDLE, NULL);
28979  
28980 /* Execute */
28981 0 method = CFISH_METHOD_PTR(LUCY_FSDIRHANDLE, LUCY_FSDH_Close);
28982 0 retval = method(arg_self);
28983 0 ST(0) = newSViv(!!retval);
28984 0 sv_2mortal( ST(0) );
28985 0 XSRETURN(1);
28986 }
28987  
28988 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_new);
28989 0 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_new) {
28990 0 dXSARGS;
28991 static const XSBind_ParamSpec param_specs[1] = {
28992 XSBIND_PARAM("folder", 1)
28993 };
28994 int32_t locations[1];
28995 SV *sv;
28996 lucy_RAMDirHandle* arg_self;
28997 lucy_RAMFolder* arg_folder;
28998 lucy_RAMDirHandle* retval;
28999  
29000 CFISH_UNUSED_VAR(cv);
29001 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
29002 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
29003 }
29004 0 SP -= items;
29005  
29006 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
29007 locations, 1);
29008 0 sv = ST(locations[0]);
29009 0 arg_folder = (lucy_RAMFolder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_RAMFOLDER, NULL);
29010 0 arg_self = (lucy_RAMDirHandle*)XSBind_new_blank_obj(aTHX_ ST(0));
29011  
29012 0 retval = lucy_RAMDH_init(arg_self, arg_folder);
29013 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
29014 0 XSRETURN(1);
29015 }
29016  
29017  
29018 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_next);
29019 0 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_next) {
29020 0 dXSARGS;
29021 lucy_RAMDirHandle* arg_self;
29022 LUCY_RAMDH_Next_t method;
29023 bool retval;
29024  
29025 CFISH_UNUSED_VAR(cv);
29026 0 SP -= items;
29027 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29028 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29029 }
29030  
29031 /* Extract vars from Perl stack. */
29032 0 arg_self = (lucy_RAMDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMDIRHANDLE, NULL);
29033  
29034 /* Execute */
29035 0 method = CFISH_METHOD_PTR(LUCY_RAMDIRHANDLE, LUCY_RAMDH_Next);
29036 0 retval = method(arg_self);
29037 0 ST(0) = newSViv(!!retval);
29038 0 sv_2mortal( ST(0) );
29039 0 XSRETURN(1);
29040 }
29041  
29042 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_entry_is_dir);
29043 0 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_entry_is_dir) {
29044 0 dXSARGS;
29045 lucy_RAMDirHandle* arg_self;
29046 LUCY_RAMDH_Entry_Is_Dir_t method;
29047 bool retval;
29048  
29049 CFISH_UNUSED_VAR(cv);
29050 0 SP -= items;
29051 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29052 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29053 }
29054  
29055 /* Extract vars from Perl stack. */
29056 0 arg_self = (lucy_RAMDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMDIRHANDLE, NULL);
29057  
29058 /* Execute */
29059 0 method = CFISH_METHOD_PTR(LUCY_RAMDIRHANDLE, LUCY_RAMDH_Entry_Is_Dir);
29060 0 retval = method(arg_self);
29061 0 ST(0) = newSViv(!!retval);
29062 0 sv_2mortal( ST(0) );
29063 0 XSRETURN(1);
29064 }
29065  
29066 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_entry_is_symlink);
29067 0 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_entry_is_symlink) {
29068 0 dXSARGS;
29069 lucy_RAMDirHandle* arg_self;
29070 LUCY_RAMDH_Entry_Is_Symlink_t method;
29071 bool retval;
29072  
29073 CFISH_UNUSED_VAR(cv);
29074 0 SP -= items;
29075 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29076 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29077 }
29078  
29079 /* Extract vars from Perl stack. */
29080 0 arg_self = (lucy_RAMDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMDIRHANDLE, NULL);
29081  
29082 /* Execute */
29083 0 method = CFISH_METHOD_PTR(LUCY_RAMDIRHANDLE, LUCY_RAMDH_Entry_Is_Symlink);
29084 0 retval = method(arg_self);
29085 0 ST(0) = newSViv(!!retval);
29086 0 sv_2mortal( ST(0) );
29087 0 XSRETURN(1);
29088 }
29089  
29090 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_close);
29091 0 XS_INTERNAL(XS_Lucy_Store_RAMDirHandle_close) {
29092 0 dXSARGS;
29093 lucy_RAMDirHandle* arg_self;
29094 LUCY_RAMDH_Close_t method;
29095 bool retval;
29096  
29097 CFISH_UNUSED_VAR(cv);
29098 0 SP -= items;
29099 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29100 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29101 }
29102  
29103 /* Extract vars from Perl stack. */
29104 0 arg_self = (lucy_RAMDirHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMDIRHANDLE, NULL);
29105  
29106 /* Execute */
29107 0 method = CFISH_METHOD_PTR(LUCY_RAMDIRHANDLE, LUCY_RAMDH_Close);
29108 0 retval = method(arg_self);
29109 0 ST(0) = newSViv(!!retval);
29110 0 sv_2mortal( ST(0) );
29111 0 XSRETURN(1);
29112 }
29113  
29114 XS_INTERNAL(XS_Lucy_Store_FileHandle__open);
29115 0 XS_INTERNAL(XS_Lucy_Store_FileHandle__open) {
29116 0 dXSARGS;
29117 static const XSBind_ParamSpec param_specs[2] = {
29118 XSBIND_PARAM("path", 0),
29119 XSBIND_PARAM("flags", 1)
29120 };
29121 int32_t locations[2];
29122 SV *sv;
29123 lucy_FileHandle* arg_self;
29124 cfish_String* arg_path;
29125 uint32_t arg_flags;
29126 lucy_FileHandle* retval;
29127  
29128 CFISH_UNUSED_VAR(cv);
29129 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
29130 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
29131 }
29132 0 SP -= items;
29133  
29134 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
29135 locations, 2);
29136 0 sv = ST(locations[0]);
29137 0 ▶ arg_path = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
29138 0 sv = ST(locations[1]);
29139 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29140 0 XSBind_undef_arg_error(aTHX_ "flags");
29141 }
29142 0 arg_flags = (uint32_t)SvUV(sv);
29143 0 arg_self = (lucy_FileHandle*)XSBind_new_blank_obj(aTHX_ ST(0));
29144  
29145 0 retval = lucy_FH_do_open(arg_self, arg_path, arg_flags);
29146 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
29147 0 XSRETURN(1);
29148 }
29149  
29150  
29151 XS_INTERNAL(XS_Lucy_Store_FileHandle_window);
29152 0 XS_INTERNAL(XS_Lucy_Store_FileHandle_window) {
29153 0 dXSARGS;
29154 static const XSBind_ParamSpec param_specs[3] = {
29155 XSBIND_PARAM("window", 1),
29156 XSBIND_PARAM("offset", 1),
29157 XSBIND_PARAM("len", 1)
29158 };
29159 int32_t locations[3];
29160 SV *sv;
29161 lucy_FileHandle* arg_self;
29162 lucy_FileWindow* arg_window;
29163 int64_t arg_offset;
29164 int64_t arg_len;
29165 LUCY_FH_Window_t method;
29166 bool retval;
29167  
29168 CFISH_UNUSED_VAR(cv);
29169 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
29170 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
29171 }
29172 0 SP -= items;
29173  
29174 /* Locate args on Perl stack. */
29175 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
29176 locations, 3);
29177 0 arg_self = (lucy_FileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEHANDLE, NULL);
29178 0 sv = ST(locations[0]);
29179 0 arg_window = (lucy_FileWindow*)XSBind_arg_to_cfish(aTHX_ sv, "window", LUCY_FILEWINDOW, NULL);
29180 0 sv = ST(locations[1]);
29181 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29182 0 XSBind_undef_arg_error(aTHX_ "offset");
29183 }
29184 0 arg_offset = (int64_t)SvNV(sv);
29185 0 sv = ST(locations[2]);
29186 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29187 0 XSBind_undef_arg_error(aTHX_ "len");
29188 }
29189 0 arg_len = (int64_t)SvNV(sv);
29190  
29191 /* Execute */
29192 0 method = CFISH_METHOD_PTR(LUCY_FILEHANDLE, LUCY_FH_Window);
29193 0 retval = method(arg_self, arg_window, arg_offset, arg_len);
29194 0 ST(0) = newSViv(!!retval);
29195 0 sv_2mortal( ST(0) );
29196 0 XSRETURN(1);
29197 }
29198  
29199 XS_INTERNAL(XS_Lucy_Store_FileHandle_release_window);
29200 0 XS_INTERNAL(XS_Lucy_Store_FileHandle_release_window) {
29201 0 dXSARGS;
29202 SV *sv;
29203 lucy_FileHandle* arg_self;
29204 lucy_FileWindow* arg_window;
29205 LUCY_FH_Release_Window_t method;
29206 bool retval;
29207  
29208 CFISH_UNUSED_VAR(cv);
29209 0 SP -= items;
29210 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29211 0 XSBind_invalid_args_error(aTHX_ cv, "self, window");
29212 }
29213  
29214 /* Extract vars from Perl stack. */
29215 0 arg_self = (lucy_FileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEHANDLE, NULL);
29216 0 sv = ST(1);
29217 0 arg_window = (lucy_FileWindow*)XSBind_arg_to_cfish(aTHX_ sv, "window", LUCY_FILEWINDOW, NULL);
29218  
29219 /* Execute */
29220 0 method = CFISH_METHOD_PTR(LUCY_FILEHANDLE, LUCY_FH_Release_Window);
29221 0 retval = method(arg_self, arg_window);
29222 0 ST(0) = newSViv(!!retval);
29223 0 sv_2mortal( ST(0) );
29224 0 XSRETURN(1);
29225 }
29226  
29227 XS_INTERNAL(XS_Lucy_Store_FileHandle_length);
29228 0 XS_INTERNAL(XS_Lucy_Store_FileHandle_length) {
29229 0 dXSARGS;
29230 lucy_FileHandle* arg_self;
29231 LUCY_FH_Length_t method;
29232 int64_t retval;
29233  
29234 CFISH_UNUSED_VAR(cv);
29235 0 SP -= items;
29236 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29237 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29238 }
29239  
29240 /* Extract vars from Perl stack. */
29241 0 arg_self = (lucy_FileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEHANDLE, NULL);
29242  
29243 /* Execute */
29244 0 method = CFISH_METHOD_PTR(LUCY_FILEHANDLE, LUCY_FH_Length);
29245 0 retval = method(arg_self);
29246 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
29247 0 sv_2mortal( ST(0) );
29248 0 XSRETURN(1);
29249 }
29250  
29251 XS_INTERNAL(XS_Lucy_Store_FileHandle_grow);
29252 0 XS_INTERNAL(XS_Lucy_Store_FileHandle_grow) {
29253 0 dXSARGS;
29254 SV *sv;
29255 lucy_FileHandle* arg_self;
29256 int64_t arg_len;
29257 LUCY_FH_Grow_t method;
29258 bool retval;
29259  
29260 CFISH_UNUSED_VAR(cv);
29261 0 SP -= items;
29262 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29263 0 XSBind_invalid_args_error(aTHX_ cv, "self, len");
29264 }
29265  
29266 /* Extract vars from Perl stack. */
29267 0 arg_self = (lucy_FileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEHANDLE, NULL);
29268 0 sv = ST(1);
29269 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29270 0 XSBind_undef_arg_error(aTHX_ "len");
29271 }
29272 0 arg_len = (int64_t)SvNV(sv);
29273  
29274 /* Execute */
29275 0 method = CFISH_METHOD_PTR(LUCY_FILEHANDLE, LUCY_FH_Grow);
29276 0 retval = method(arg_self, arg_len);
29277 0 ST(0) = newSViv(!!retval);
29278 0 sv_2mortal( ST(0) );
29279 0 XSRETURN(1);
29280 }
29281  
29282 XS_INTERNAL(XS_Lucy_Store_FileHandle_close);
29283 0 XS_INTERNAL(XS_Lucy_Store_FileHandle_close) {
29284 0 dXSARGS;
29285 lucy_FileHandle* arg_self;
29286 LUCY_FH_Close_t method;
29287 bool retval;
29288  
29289 CFISH_UNUSED_VAR(cv);
29290 0 SP -= items;
29291 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29292 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29293 }
29294  
29295 /* Extract vars from Perl stack. */
29296 0 arg_self = (lucy_FileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEHANDLE, NULL);
29297  
29298 /* Execute */
29299 0 method = CFISH_METHOD_PTR(LUCY_FILEHANDLE, LUCY_FH_Close);
29300 0 retval = method(arg_self);
29301 0 ST(0) = newSViv(!!retval);
29302 0 sv_2mortal( ST(0) );
29303 0 XSRETURN(1);
29304 }
29305  
29306 XS_INTERNAL(XS_Lucy_Store_FileHandle_set_path);
29307 0 XS_INTERNAL(XS_Lucy_Store_FileHandle_set_path) {
29308 0 dXSARGS;
29309 SV *sv;
29310 lucy_FileHandle* arg_self;
29311 cfish_String* arg_path;
29312 LUCY_FH_Set_Path_t method;
29313  
29314 CFISH_UNUSED_VAR(cv);
29315 0 SP -= items;
29316 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29317 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
29318 }
29319  
29320 /* Extract vars from Perl stack. */
29321 0 arg_self = (lucy_FileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEHANDLE, NULL);
29322 0 sv = ST(1);
29323 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
29324  
29325 /* Execute */
29326 0 method = CFISH_METHOD_PTR(LUCY_FILEHANDLE, LUCY_FH_Set_Path);
29327 0 method(arg_self, arg_path);
29328 0 XSRETURN(0);
29329 }
29330  
29331 XS_INTERNAL(XS_Lucy_Store_FileHandle_get_path);
29332 0 XS_INTERNAL(XS_Lucy_Store_FileHandle_get_path) {
29333 0 dXSARGS;
29334 lucy_FileHandle* arg_self;
29335 LUCY_FH_Get_Path_t method;
29336 cfish_String* retval;
29337  
29338 CFISH_UNUSED_VAR(cv);
29339 0 SP -= items;
29340 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29341 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29342 }
29343  
29344 /* Extract vars from Perl stack. */
29345 0 arg_self = (lucy_FileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEHANDLE, NULL);
29346  
29347 /* Execute */
29348 0 method = CFISH_METHOD_PTR(LUCY_FILEHANDLE, LUCY_FH_Get_Path);
29349 0 retval = method(arg_self);
29350 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
29351 0 sv_2mortal( ST(0) );
29352 0 XSRETURN(1);
29353 }
29354  
29355 XS_INTERNAL(XS_Lucy_Store_FSFileHandle__open);
29356 3 XS_INTERNAL(XS_Lucy_Store_FSFileHandle__open) {
29357 3 dXSARGS;
29358 static const XSBind_ParamSpec param_specs[2] = {
29359 XSBIND_PARAM("path", 0),
29360 XSBIND_PARAM("flags", 1)
29361 };
29362 int32_t locations[2];
29363 SV *sv;
29364 lucy_FSFileHandle* arg_self;
29365 cfish_String* arg_path;
29366 uint32_t arg_flags;
29367 lucy_FSFileHandle* retval;
29368  
29369 CFISH_UNUSED_VAR(cv);
29370 3 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 3 3
29371 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
29372 }
29373 3 SP -= items;
29374  
29375 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
29376 locations, 2);
29377 3 sv = ST(locations[0]);
29378 3 ▶ arg_path = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 3 0 3
29379 3 sv = ST(locations[1]);
29380 3 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 3 3
29381 0 XSBind_undef_arg_error(aTHX_ "flags");
29382 }
29383 3 arg_flags = (uint32_t)SvUV(sv);
29384 3 arg_self = (lucy_FSFileHandle*)XSBind_new_blank_obj(aTHX_ ST(0));
29385  
29386 3 retval = lucy_FSFH_do_open(arg_self, arg_path, arg_flags);
29387 3 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
29388 3 XSRETURN(1);
29389 }
29390  
29391  
29392 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_window);
29393 0 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_window) {
29394 0 dXSARGS;
29395 static const XSBind_ParamSpec param_specs[3] = {
29396 XSBIND_PARAM("window", 1),
29397 XSBIND_PARAM("offset", 1),
29398 XSBIND_PARAM("len", 1)
29399 };
29400 int32_t locations[3];
29401 SV *sv;
29402 lucy_FSFileHandle* arg_self;
29403 lucy_FileWindow* arg_window;
29404 int64_t arg_offset;
29405 int64_t arg_len;
29406 LUCY_FSFH_Window_t method;
29407 bool retval;
29408  
29409 CFISH_UNUSED_VAR(cv);
29410 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
29411 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
29412 }
29413 0 SP -= items;
29414  
29415 /* Locate args on Perl stack. */
29416 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
29417 locations, 3);
29418 0 arg_self = (lucy_FSFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFILEHANDLE, NULL);
29419 0 sv = ST(locations[0]);
29420 0 arg_window = (lucy_FileWindow*)XSBind_arg_to_cfish(aTHX_ sv, "window", LUCY_FILEWINDOW, NULL);
29421 0 sv = ST(locations[1]);
29422 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29423 0 XSBind_undef_arg_error(aTHX_ "offset");
29424 }
29425 0 arg_offset = (int64_t)SvNV(sv);
29426 0 sv = ST(locations[2]);
29427 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29428 0 XSBind_undef_arg_error(aTHX_ "len");
29429 }
29430 0 arg_len = (int64_t)SvNV(sv);
29431  
29432 /* Execute */
29433 0 method = CFISH_METHOD_PTR(LUCY_FSFILEHANDLE, LUCY_FSFH_Window);
29434 0 retval = method(arg_self, arg_window, arg_offset, arg_len);
29435 0 ST(0) = newSViv(!!retval);
29436 0 sv_2mortal( ST(0) );
29437 0 XSRETURN(1);
29438 }
29439  
29440 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_release_window);
29441 0 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_release_window) {
29442 0 dXSARGS;
29443 SV *sv;
29444 lucy_FSFileHandle* arg_self;
29445 lucy_FileWindow* arg_window;
29446 LUCY_FSFH_Release_Window_t method;
29447 bool retval;
29448  
29449 CFISH_UNUSED_VAR(cv);
29450 0 SP -= items;
29451 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29452 0 XSBind_invalid_args_error(aTHX_ cv, "self, window");
29453 }
29454  
29455 /* Extract vars from Perl stack. */
29456 0 arg_self = (lucy_FSFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFILEHANDLE, NULL);
29457 0 sv = ST(1);
29458 0 arg_window = (lucy_FileWindow*)XSBind_arg_to_cfish(aTHX_ sv, "window", LUCY_FILEWINDOW, NULL);
29459  
29460 /* Execute */
29461 0 method = CFISH_METHOD_PTR(LUCY_FSFILEHANDLE, LUCY_FSFH_Release_Window);
29462 0 retval = method(arg_self, arg_window);
29463 0 ST(0) = newSViv(!!retval);
29464 0 sv_2mortal( ST(0) );
29465 0 XSRETURN(1);
29466 }
29467  
29468 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_length);
29469 0 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_length) {
29470 0 dXSARGS;
29471 lucy_FSFileHandle* arg_self;
29472 LUCY_FSFH_Length_t method;
29473 int64_t retval;
29474  
29475 CFISH_UNUSED_VAR(cv);
29476 0 SP -= items;
29477 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29478 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29479 }
29480  
29481 /* Extract vars from Perl stack. */
29482 0 arg_self = (lucy_FSFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFILEHANDLE, NULL);
29483  
29484 /* Execute */
29485 0 method = CFISH_METHOD_PTR(LUCY_FSFILEHANDLE, LUCY_FSFH_Length);
29486 0 retval = method(arg_self);
29487 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
29488 0 sv_2mortal( ST(0) );
29489 0 XSRETURN(1);
29490 }
29491  
29492 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_close);
29493 0 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_close) {
29494 0 dXSARGS;
29495 lucy_FSFileHandle* arg_self;
29496 LUCY_FSFH_Close_t method;
29497 bool retval;
29498  
29499 CFISH_UNUSED_VAR(cv);
29500 0 SP -= items;
29501 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29502 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29503 }
29504  
29505 /* Extract vars from Perl stack. */
29506 0 arg_self = (lucy_FSFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFILEHANDLE, NULL);
29507  
29508 /* Execute */
29509 0 method = CFISH_METHOD_PTR(LUCY_FSFILEHANDLE, LUCY_FSFH_Close);
29510 0 retval = method(arg_self);
29511 0 ST(0) = newSViv(!!retval);
29512 0 sv_2mortal( ST(0) );
29513 0 XSRETURN(1);
29514 }
29515  
29516 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_set_fd);
29517 0 XS_INTERNAL(XS_Lucy_Store_FSFileHandle_set_fd) {
29518 0 dXSARGS;
29519 SV *sv;
29520 lucy_FSFileHandle* arg_self;
29521 int arg_fd;
29522 LUCY_FSFH_Set_FD_t method;
29523 int retval;
29524  
29525 CFISH_UNUSED_VAR(cv);
29526 0 SP -= items;
29527 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29528 0 XSBind_invalid_args_error(aTHX_ cv, "self, fd");
29529 }
29530  
29531 /* Extract vars from Perl stack. */
29532 0 arg_self = (lucy_FSFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFILEHANDLE, NULL);
29533 0 sv = ST(1);
29534 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29535 0 XSBind_undef_arg_error(aTHX_ "fd");
29536 }
29537 0 arg_fd = (int)SvIV(sv);
29538  
29539 /* Execute */
29540 0 method = CFISH_METHOD_PTR(LUCY_FSFILEHANDLE, LUCY_FSFH_Set_FD);
29541 0 retval = method(arg_self, arg_fd);
29542 0 ST(0) = newSViv(retval);
29543 0 sv_2mortal( ST(0) );
29544 0 XSRETURN(1);
29545 }
29546  
29547 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle__open);
29548 0 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle__open) {
29549 0 dXSARGS;
29550 static const XSBind_ParamSpec param_specs[3] = {
29551 XSBIND_PARAM("path", 0),
29552 XSBIND_PARAM("flags", 1),
29553 XSBIND_PARAM("file", 0)
29554 };
29555 int32_t locations[3];
29556 SV *sv;
29557 lucy_RAMFileHandle* arg_self;
29558 cfish_String* arg_path;
29559 uint32_t arg_flags;
29560 lucy_RAMFile* arg_file;
29561 lucy_RAMFileHandle* retval;
29562  
29563 CFISH_UNUSED_VAR(cv);
29564 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
29565 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
29566 }
29567 0 SP -= items;
29568  
29569 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
29570 locations, 3);
29571 0 sv = ST(locations[0]);
29572 0 ▶ arg_path = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
29573 0 sv = ST(locations[1]);
29574 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29575 0 XSBind_undef_arg_error(aTHX_ "flags");
29576 }
29577 0 arg_flags = (uint32_t)SvUV(sv);
29578 0 sv = ST(locations[2]);
29579 0 ▶ arg_file = locations[2] < items ? (lucy_RAMFile*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "file", LUCY_RAMFILE, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_file = locations[2] < items ? (lucy_RAMFile*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "file", LUCY_RAMFILE, NULL) : NULL; 0 0 0
29580 0 arg_self = (lucy_RAMFileHandle*)XSBind_new_blank_obj(aTHX_ ST(0));
29581  
29582 0 retval = lucy_RAMFH_do_open(arg_self, arg_path, arg_flags, arg_file);
29583 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
29584 0 XSRETURN(1);
29585 }
29586  
29587  
29588 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_get_file);
29589 0 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_get_file) {
29590 0 dXSARGS;
29591 lucy_RAMFileHandle* arg_self;
29592 LUCY_RAMFH_Get_File_t method;
29593 lucy_RAMFile* retval;
29594  
29595 CFISH_UNUSED_VAR(cv);
29596 0 SP -= items;
29597 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29598 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29599 }
29600  
29601 /* Extract vars from Perl stack. */
29602 0 arg_self = (lucy_RAMFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILEHANDLE, NULL);
29603  
29604 /* Execute */
29605 0 method = CFISH_METHOD_PTR(LUCY_RAMFILEHANDLE, LUCY_RAMFH_Get_File);
29606 0 retval = method(arg_self);
29607 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
29608 0 sv_2mortal( ST(0) );
29609 0 XSRETURN(1);
29610 }
29611  
29612 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_grow);
29613 0 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_grow) {
29614 0 dXSARGS;
29615 SV *sv;
29616 lucy_RAMFileHandle* arg_self;
29617 int64_t arg_len;
29618 LUCY_RAMFH_Grow_t method;
29619 bool retval;
29620  
29621 CFISH_UNUSED_VAR(cv);
29622 0 SP -= items;
29623 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29624 0 XSBind_invalid_args_error(aTHX_ cv, "self, len");
29625 }
29626  
29627 /* Extract vars from Perl stack. */
29628 0 arg_self = (lucy_RAMFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILEHANDLE, NULL);
29629 0 sv = ST(1);
29630 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29631 0 XSBind_undef_arg_error(aTHX_ "len");
29632 }
29633 0 arg_len = (int64_t)SvNV(sv);
29634  
29635 /* Execute */
29636 0 method = CFISH_METHOD_PTR(LUCY_RAMFILEHANDLE, LUCY_RAMFH_Grow);
29637 0 retval = method(arg_self, arg_len);
29638 0 ST(0) = newSViv(!!retval);
29639 0 sv_2mortal( ST(0) );
29640 0 XSRETURN(1);
29641 }
29642  
29643 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_window);
29644 0 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_window) {
29645 0 dXSARGS;
29646 static const XSBind_ParamSpec param_specs[3] = {
29647 XSBIND_PARAM("window", 1),
29648 XSBIND_PARAM("offset", 1),
29649 XSBIND_PARAM("len", 1)
29650 };
29651 int32_t locations[3];
29652 SV *sv;
29653 lucy_RAMFileHandle* arg_self;
29654 lucy_FileWindow* arg_window;
29655 int64_t arg_offset;
29656 int64_t arg_len;
29657 LUCY_RAMFH_Window_t method;
29658 bool retval;
29659  
29660 CFISH_UNUSED_VAR(cv);
29661 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
29662 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
29663 }
29664 0 SP -= items;
29665  
29666 /* Locate args on Perl stack. */
29667 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
29668 locations, 3);
29669 0 arg_self = (lucy_RAMFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILEHANDLE, NULL);
29670 0 sv = ST(locations[0]);
29671 0 arg_window = (lucy_FileWindow*)XSBind_arg_to_cfish(aTHX_ sv, "window", LUCY_FILEWINDOW, NULL);
29672 0 sv = ST(locations[1]);
29673 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29674 0 XSBind_undef_arg_error(aTHX_ "offset");
29675 }
29676 0 arg_offset = (int64_t)SvNV(sv);
29677 0 sv = ST(locations[2]);
29678 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29679 0 XSBind_undef_arg_error(aTHX_ "len");
29680 }
29681 0 arg_len = (int64_t)SvNV(sv);
29682  
29683 /* Execute */
29684 0 method = CFISH_METHOD_PTR(LUCY_RAMFILEHANDLE, LUCY_RAMFH_Window);
29685 0 retval = method(arg_self, arg_window, arg_offset, arg_len);
29686 0 ST(0) = newSViv(!!retval);
29687 0 sv_2mortal( ST(0) );
29688 0 XSRETURN(1);
29689 }
29690  
29691 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_release_window);
29692 0 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_release_window) {
29693 0 dXSARGS;
29694 SV *sv;
29695 lucy_RAMFileHandle* arg_self;
29696 lucy_FileWindow* arg_window;
29697 LUCY_RAMFH_Release_Window_t method;
29698 bool retval;
29699  
29700 CFISH_UNUSED_VAR(cv);
29701 0 SP -= items;
29702 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29703 0 XSBind_invalid_args_error(aTHX_ cv, "self, window");
29704 }
29705  
29706 /* Extract vars from Perl stack. */
29707 0 arg_self = (lucy_RAMFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILEHANDLE, NULL);
29708 0 sv = ST(1);
29709 0 arg_window = (lucy_FileWindow*)XSBind_arg_to_cfish(aTHX_ sv, "window", LUCY_FILEWINDOW, NULL);
29710  
29711 /* Execute */
29712 0 method = CFISH_METHOD_PTR(LUCY_RAMFILEHANDLE, LUCY_RAMFH_Release_Window);
29713 0 retval = method(arg_self, arg_window);
29714 0 ST(0) = newSViv(!!retval);
29715 0 sv_2mortal( ST(0) );
29716 0 XSRETURN(1);
29717 }
29718  
29719 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_length);
29720 0 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_length) {
29721 0 dXSARGS;
29722 lucy_RAMFileHandle* arg_self;
29723 LUCY_RAMFH_Length_t method;
29724 int64_t retval;
29725  
29726 CFISH_UNUSED_VAR(cv);
29727 0 SP -= items;
29728 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29729 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29730 }
29731  
29732 /* Extract vars from Perl stack. */
29733 0 arg_self = (lucy_RAMFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILEHANDLE, NULL);
29734  
29735 /* Execute */
29736 0 method = CFISH_METHOD_PTR(LUCY_RAMFILEHANDLE, LUCY_RAMFH_Length);
29737 0 retval = method(arg_self);
29738 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
29739 0 sv_2mortal( ST(0) );
29740 0 XSRETURN(1);
29741 }
29742  
29743 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_close);
29744 0 XS_INTERNAL(XS_Lucy_Store_RAMFileHandle_close) {
29745 0 dXSARGS;
29746 lucy_RAMFileHandle* arg_self;
29747 LUCY_RAMFH_Close_t method;
29748 bool retval;
29749  
29750 CFISH_UNUSED_VAR(cv);
29751 0 SP -= items;
29752 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29753 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29754 }
29755  
29756 /* Extract vars from Perl stack. */
29757 0 arg_self = (lucy_RAMFileHandle*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILEHANDLE, NULL);
29758  
29759 /* Execute */
29760 0 method = CFISH_METHOD_PTR(LUCY_RAMFILEHANDLE, LUCY_RAMFH_Close);
29761 0 retval = method(arg_self);
29762 0 ST(0) = newSViv(!!retval);
29763 0 sv_2mortal( ST(0) );
29764 0 XSRETURN(1);
29765 }
29766  
29767 XS_INTERNAL(XS_Lucy_Store_FileWindow_new);
29768 0 XS_INTERNAL(XS_Lucy_Store_FileWindow_new) {
29769 0 dXSARGS;
29770 lucy_FileWindow* arg_self;
29771 lucy_FileWindow* retval;
29772  
29773 CFISH_UNUSED_VAR(cv);
29774 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29775 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
29776 }
29777 0 SP -= items;
29778  
29779 0 arg_self = (lucy_FileWindow*)XSBind_new_blank_obj(aTHX_ ST(0));
29780  
29781 0 retval = lucy_FileWindow_init(arg_self);
29782 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
29783 0 XSRETURN(1);
29784 }
29785  
29786  
29787 XS_INTERNAL(XS_Lucy_Store_FileWindow_set_offset);
29788 0 XS_INTERNAL(XS_Lucy_Store_FileWindow_set_offset) {
29789 0 dXSARGS;
29790 SV *sv;
29791 lucy_FileWindow* arg_self;
29792 int64_t arg_offset;
29793 LUCY_FileWindow_Set_Offset_t method;
29794  
29795 CFISH_UNUSED_VAR(cv);
29796 0 SP -= items;
29797 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29798 0 XSBind_invalid_args_error(aTHX_ cv, "self, offset");
29799 }
29800  
29801 /* Extract vars from Perl stack. */
29802 0 arg_self = (lucy_FileWindow*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEWINDOW, NULL);
29803 0 sv = ST(1);
29804 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
29805 0 XSBind_undef_arg_error(aTHX_ "offset");
29806 }
29807 0 arg_offset = (int64_t)SvNV(sv);
29808  
29809 /* Execute */
29810 0 method = CFISH_METHOD_PTR(LUCY_FILEWINDOW, LUCY_FileWindow_Set_Offset);
29811 0 method(arg_self, arg_offset);
29812 0 XSRETURN(0);
29813 }
29814  
29815 XS_INTERNAL(XS_Lucy_Store_FileWindow_get_offset);
29816 0 XS_INTERNAL(XS_Lucy_Store_FileWindow_get_offset) {
29817 0 dXSARGS;
29818 lucy_FileWindow* arg_self;
29819 LUCY_FileWindow_Get_Offset_t method;
29820 int64_t retval;
29821  
29822 CFISH_UNUSED_VAR(cv);
29823 0 SP -= items;
29824 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29825 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29826 }
29827  
29828 /* Extract vars from Perl stack. */
29829 0 arg_self = (lucy_FileWindow*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEWINDOW, NULL);
29830  
29831 /* Execute */
29832 0 method = CFISH_METHOD_PTR(LUCY_FILEWINDOW, LUCY_FileWindow_Get_Offset);
29833 0 retval = method(arg_self);
29834 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
29835 0 sv_2mortal( ST(0) );
29836 0 XSRETURN(1);
29837 }
29838  
29839 XS_INTERNAL(XS_Lucy_Store_FileWindow_get_len);
29840 0 XS_INTERNAL(XS_Lucy_Store_FileWindow_get_len) {
29841 0 dXSARGS;
29842 lucy_FileWindow* arg_self;
29843 LUCY_FileWindow_Get_Len_t method;
29844 int64_t retval;
29845  
29846 CFISH_UNUSED_VAR(cv);
29847 0 SP -= items;
29848 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29849 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29850 }
29851  
29852 /* Extract vars from Perl stack. */
29853 0 arg_self = (lucy_FileWindow*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FILEWINDOW, NULL);
29854  
29855 /* Execute */
29856 0 method = CFISH_METHOD_PTR(LUCY_FILEWINDOW, LUCY_FileWindow_Get_Len);
29857 0 retval = method(arg_self);
29858 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
29859 0 sv_2mortal( ST(0) );
29860 0 XSRETURN(1);
29861 }
29862  
29863 XS_INTERNAL(XS_Lucy_Store_Folder_new);
29864 0 XS_INTERNAL(XS_Lucy_Store_Folder_new) {
29865 0 dXSARGS;
29866 static const XSBind_ParamSpec param_specs[1] = {
29867 XSBIND_PARAM("path", 1)
29868 };
29869 int32_t locations[1];
29870 SV *sv;
29871 lucy_Folder* arg_self;
29872 cfish_String* arg_path;
29873 lucy_Folder* retval;
29874  
29875 CFISH_UNUSED_VAR(cv);
29876 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
29877 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
29878 }
29879 0 SP -= items;
29880  
29881 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
29882 locations, 1);
29883 0 sv = ST(locations[0]);
29884 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
29885 0 arg_self = (lucy_Folder*)XSBind_new_blank_obj(aTHX_ ST(0));
29886  
29887 0 retval = lucy_Folder_init(arg_self, arg_path);
29888 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
29889 0 XSRETURN(1);
29890 }
29891  
29892  
29893 XS_INTERNAL(XS_Lucy_Store_Folder_get_path);
29894 0 XS_INTERNAL(XS_Lucy_Store_Folder_get_path) {
29895 0 dXSARGS;
29896 lucy_Folder* arg_self;
29897 LUCY_Folder_Get_Path_t method;
29898 cfish_String* retval;
29899  
29900 CFISH_UNUSED_VAR(cv);
29901 0 SP -= items;
29902 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
29903 0 XSBind_invalid_args_error(aTHX_ cv, "self");
29904 }
29905  
29906 /* Extract vars from Perl stack. */
29907 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
29908  
29909 /* Execute */
29910 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Get_Path);
29911 0 retval = method(arg_self);
29912 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
29913 0 sv_2mortal( ST(0) );
29914 0 XSRETURN(1);
29915 }
29916  
29917 XS_INTERNAL(XS_Lucy_Store_Folder_set_path);
29918 0 XS_INTERNAL(XS_Lucy_Store_Folder_set_path) {
29919 0 dXSARGS;
29920 SV *sv;
29921 lucy_Folder* arg_self;
29922 cfish_String* arg_path;
29923 LUCY_Folder_Set_Path_t method;
29924  
29925 CFISH_UNUSED_VAR(cv);
29926 0 SP -= items;
29927 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
29928 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
29929 }
29930  
29931 /* Extract vars from Perl stack. */
29932 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
29933 0 sv = ST(1);
29934 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
29935  
29936 /* Execute */
29937 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Set_Path);
29938 0 method(arg_self, arg_path);
29939 0 XSRETURN(0);
29940 }
29941  
29942 XS_INTERNAL(XS_Lucy_Store_Folder_open_out);
29943 122 XS_INTERNAL(XS_Lucy_Store_Folder_open_out) {
29944 122 dXSARGS;
29945 SV *sv;
29946 lucy_Folder* arg_self;
29947 cfish_String* arg_path;
29948 LUCY_Folder_Open_Out_t method;
29949 lucy_OutStream* retval;
29950  
29951 CFISH_UNUSED_VAR(cv);
29952 122 SP -= items;
29953 122 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 122 122
29954 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
29955 }
29956  
29957 /* Extract vars from Perl stack. */
29958 122 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
29959 122 sv = ST(1);
29960 122 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
29961  
29962 /* Execute */
29963 122 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Open_Out);
29964 122 retval = method(arg_self, arg_path);
29965 122 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
29966 122 CFISH_DECREF(retval);
29967 122 sv_2mortal( ST(0) );
29968 122 XSRETURN(1);
29969 }
29970  
29971 XS_INTERNAL(XS_Lucy_Store_Folder_open_in);
29972 22 XS_INTERNAL(XS_Lucy_Store_Folder_open_in) {
29973 22 dXSARGS;
29974 SV *sv;
29975 lucy_Folder* arg_self;
29976 cfish_String* arg_path;
29977 LUCY_Folder_Open_In_t method;
29978 lucy_InStream* retval;
29979  
29980 CFISH_UNUSED_VAR(cv);
29981 22 SP -= items;
29982 22 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 22 22
29983 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
29984 }
29985  
29986 /* Extract vars from Perl stack. */
29987 22 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
29988 22 sv = ST(1);
29989 22 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
29990  
29991 /* Execute */
29992 22 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Open_In);
29993 22 retval = method(arg_self, arg_path);
29994 22 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
29995 22 CFISH_DECREF(retval);
29996 22 sv_2mortal( ST(0) );
29997 22 XSRETURN(1);
29998 }
29999  
30000 XS_INTERNAL(XS_Lucy_Store_Folder_open_filehandle);
30001 0 XS_INTERNAL(XS_Lucy_Store_Folder_open_filehandle) {
30002 0 dXSARGS;
30003 static const XSBind_ParamSpec param_specs[2] = {
30004 XSBIND_PARAM("path", 1),
30005 XSBIND_PARAM("flags", 1)
30006 };
30007 int32_t locations[2];
30008 SV *sv;
30009 lucy_Folder* arg_self;
30010 cfish_String* arg_path;
30011 uint32_t arg_flags;
30012 LUCY_Folder_Open_FileHandle_t method;
30013 lucy_FileHandle* retval;
30014  
30015 CFISH_UNUSED_VAR(cv);
30016 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
30017 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
30018 }
30019 0 SP -= items;
30020  
30021 /* Locate args on Perl stack. */
30022 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
30023 locations, 2);
30024 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30025 0 sv = ST(locations[0]);
30026 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30027 0 sv = ST(locations[1]);
30028 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
30029 0 XSBind_undef_arg_error(aTHX_ "flags");
30030 }
30031 0 arg_flags = (uint32_t)SvUV(sv);
30032  
30033 /* Execute */
30034 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Open_FileHandle);
30035 0 retval = method(arg_self, arg_path, arg_flags);
30036 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30037 0 CFISH_DECREF(retval);
30038 0 sv_2mortal( ST(0) );
30039 0 XSRETURN(1);
30040 }
30041  
30042 XS_INTERNAL(XS_Lucy_Store_Folder_open_dir);
30043 0 XS_INTERNAL(XS_Lucy_Store_Folder_open_dir) {
30044 0 dXSARGS;
30045 SV *sv;
30046 lucy_Folder* arg_self;
30047 cfish_String* arg_path;
30048 LUCY_Folder_Open_Dir_t method;
30049 lucy_DirHandle* retval;
30050  
30051 CFISH_UNUSED_VAR(cv);
30052 0 SP -= items;
30053 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
30054 0 XSBind_invalid_args_error(aTHX_ cv, "self, [path]");
30055 }
30056  
30057 /* Extract vars from Perl stack. */
30058 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30059 0 sv = ST(1);
30060 0 ▶ arg_path = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
30061  
30062 /* Execute */
30063 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Open_Dir);
30064 0 retval = method(arg_self, arg_path);
30065 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30066 0 CFISH_DECREF(retval);
30067 0 sv_2mortal( ST(0) );
30068 0 XSRETURN(1);
30069 }
30070  
30071 XS_INTERNAL(XS_Lucy_Store_Folder_mkdir);
30072 3 XS_INTERNAL(XS_Lucy_Store_Folder_mkdir) {
30073 3 dXSARGS;
30074 SV *sv;
30075 lucy_Folder* arg_self;
30076 cfish_String* arg_path;
30077 LUCY_Folder_MkDir_t method;
30078 bool retval;
30079  
30080 CFISH_UNUSED_VAR(cv);
30081 3 SP -= items;
30082 3 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 3 3
30083 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30084 }
30085  
30086 /* Extract vars from Perl stack. */
30087 3 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30088 3 sv = ST(1);
30089 3 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30090  
30091 /* Execute */
30092 3 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_MkDir);
30093 3 retval = method(arg_self, arg_path);
30094 3 ST(0) = newSViv(!!retval);
30095 3 sv_2mortal( ST(0) );
30096 3 XSRETURN(1);
30097 }
30098  
30099 XS_INTERNAL(XS_Lucy_Store_Folder_list);
30100 0 XS_INTERNAL(XS_Lucy_Store_Folder_list) {
30101 0 dXSARGS;
30102 SV *sv;
30103 lucy_Folder* arg_self;
30104 cfish_String* arg_path;
30105 LUCY_Folder_List_t method;
30106 cfish_Vector* retval;
30107  
30108 CFISH_UNUSED_VAR(cv);
30109 0 SP -= items;
30110 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
30111 0 XSBind_invalid_args_error(aTHX_ cv, "self, [path]");
30112 }
30113  
30114 /* Extract vars from Perl stack. */
30115 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30116 0 sv = ST(1);
30117 0 ▶ arg_path = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
30118  
30119 /* Execute */
30120 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_List);
30121 0 retval = method(arg_self, arg_path);
30122 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30123 0 CFISH_DECREF(retval);
30124 0 sv_2mortal( ST(0) );
30125 0 XSRETURN(1);
30126 }
30127  
30128 XS_INTERNAL(XS_Lucy_Store_Folder_list_r);
30129 30 XS_INTERNAL(XS_Lucy_Store_Folder_list_r) {
30130 30 dXSARGS;
30131 SV *sv;
30132 lucy_Folder* arg_self;
30133 cfish_String* arg_path;
30134 LUCY_Folder_List_R_t method;
30135 cfish_Vector* retval;
30136  
30137 CFISH_UNUSED_VAR(cv);
30138 30 SP -= items;
30139 30 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 30 0 30
if (items < 1 || items > 2) { 0 30 30
30140 0 XSBind_invalid_args_error(aTHX_ cv, "self, [path]");
30141 }
30142  
30143 /* Extract vars from Perl stack. */
30144 30 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30145 30 sv = ST(1);
30146 30 ▶ arg_path = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = 1 < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 30 30
30147  
30148 /* Execute */
30149 30 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_List_R);
30150 30 retval = method(arg_self, arg_path);
30151 30 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30152 30 CFISH_DECREF(retval);
30153 30 sv_2mortal( ST(0) );
30154 30 XSRETURN(1);
30155 }
30156  
30157 XS_INTERNAL(XS_Lucy_Store_Folder_exists);
30158 16 XS_INTERNAL(XS_Lucy_Store_Folder_exists) {
30159 16 dXSARGS;
30160 SV *sv;
30161 lucy_Folder* arg_self;
30162 cfish_String* arg_path;
30163 LUCY_Folder_Exists_t method;
30164 bool retval;
30165  
30166 CFISH_UNUSED_VAR(cv);
30167 16 SP -= items;
30168 16 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 16 16
30169 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30170 }
30171  
30172 /* Extract vars from Perl stack. */
30173 16 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30174 16 sv = ST(1);
30175 16 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30176  
30177 /* Execute */
30178 16 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Exists);
30179 16 retval = method(arg_self, arg_path);
30180 16 ST(0) = newSViv(!!retval);
30181 16 sv_2mortal( ST(0) );
30182 16 XSRETURN(1);
30183 }
30184  
30185 XS_INTERNAL(XS_Lucy_Store_Folder_is_directory);
30186 0 XS_INTERNAL(XS_Lucy_Store_Folder_is_directory) {
30187 0 dXSARGS;
30188 SV *sv;
30189 lucy_Folder* arg_self;
30190 cfish_String* arg_path;
30191 LUCY_Folder_Is_Directory_t method;
30192 bool retval;
30193  
30194 CFISH_UNUSED_VAR(cv);
30195 0 SP -= items;
30196 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30197 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30198 }
30199  
30200 /* Extract vars from Perl stack. */
30201 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30202 0 sv = ST(1);
30203 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30204  
30205 /* Execute */
30206 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Is_Directory);
30207 0 retval = method(arg_self, arg_path);
30208 0 ST(0) = newSViv(!!retval);
30209 0 sv_2mortal( ST(0) );
30210 0 XSRETURN(1);
30211 }
30212  
30213 XS_INTERNAL(XS_Lucy_Store_Folder_delete);
30214 5 XS_INTERNAL(XS_Lucy_Store_Folder_delete) {
30215 5 dXSARGS;
30216 SV *sv;
30217 lucy_Folder* arg_self;
30218 cfish_String* arg_path;
30219 LUCY_Folder_Delete_t method;
30220 bool retval;
30221  
30222 CFISH_UNUSED_VAR(cv);
30223 5 SP -= items;
30224 5 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 5 5
30225 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30226 }
30227  
30228 /* Extract vars from Perl stack. */
30229 5 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30230 5 sv = ST(1);
30231 5 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30232  
30233 /* Execute */
30234 5 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Delete);
30235 5 retval = method(arg_self, arg_path);
30236 5 ST(0) = newSViv(!!retval);
30237 5 sv_2mortal( ST(0) );
30238 5 XSRETURN(1);
30239 }
30240  
30241 XS_INTERNAL(XS_Lucy_Store_Folder_delete_tree);
30242 0 XS_INTERNAL(XS_Lucy_Store_Folder_delete_tree) {
30243 0 dXSARGS;
30244 SV *sv;
30245 lucy_Folder* arg_self;
30246 cfish_String* arg_path;
30247 LUCY_Folder_Delete_Tree_t method;
30248 bool retval;
30249  
30250 CFISH_UNUSED_VAR(cv);
30251 0 SP -= items;
30252 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30253 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30254 }
30255  
30256 /* Extract vars from Perl stack. */
30257 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30258 0 sv = ST(1);
30259 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30260  
30261 /* Execute */
30262 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Delete_Tree);
30263 0 retval = method(arg_self, arg_path);
30264 0 ST(0) = newSViv(!!retval);
30265 0 sv_2mortal( ST(0) );
30266 0 XSRETURN(1);
30267 }
30268  
30269 XS_INTERNAL(XS_Lucy_Store_Folder_rename);
30270 0 XS_INTERNAL(XS_Lucy_Store_Folder_rename) {
30271 0 dXSARGS;
30272 static const XSBind_ParamSpec param_specs[2] = {
30273 XSBIND_PARAM("from", 1),
30274 XSBIND_PARAM("to", 1)
30275 };
30276 int32_t locations[2];
30277 SV *sv;
30278 lucy_Folder* arg_self;
30279 cfish_String* arg_from;
30280 cfish_String* arg_to;
30281 LUCY_Folder_Rename_t method;
30282 bool retval;
30283  
30284 CFISH_UNUSED_VAR(cv);
30285 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
30286 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
30287 }
30288 0 SP -= items;
30289  
30290 /* Locate args on Perl stack. */
30291 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
30292 locations, 2);
30293 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30294 0 sv = ST(locations[0]);
30295 0 arg_from = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "from", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30296 0 sv = ST(locations[1]);
30297 0 arg_to = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "to", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30298  
30299 /* Execute */
30300 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Rename);
30301 0 retval = method(arg_self, arg_from, arg_to);
30302 0 ST(0) = newSViv(!!retval);
30303 0 sv_2mortal( ST(0) );
30304 0 XSRETURN(1);
30305 }
30306  
30307 XS_INTERNAL(XS_Lucy_Store_Folder_hard_link);
30308 0 XS_INTERNAL(XS_Lucy_Store_Folder_hard_link) {
30309 0 dXSARGS;
30310 static const XSBind_ParamSpec param_specs[2] = {
30311 XSBIND_PARAM("from", 1),
30312 XSBIND_PARAM("to", 1)
30313 };
30314 int32_t locations[2];
30315 SV *sv;
30316 lucy_Folder* arg_self;
30317 cfish_String* arg_from;
30318 cfish_String* arg_to;
30319 LUCY_Folder_Hard_Link_t method;
30320 bool retval;
30321  
30322 CFISH_UNUSED_VAR(cv);
30323 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
30324 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
30325 }
30326 0 SP -= items;
30327  
30328 /* Locate args on Perl stack. */
30329 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
30330 locations, 2);
30331 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30332 0 sv = ST(locations[0]);
30333 0 arg_from = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "from", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30334 0 sv = ST(locations[1]);
30335 0 arg_to = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "to", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30336  
30337 /* Execute */
30338 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Hard_Link);
30339 0 retval = method(arg_self, arg_from, arg_to);
30340 0 ST(0) = newSViv(!!retval);
30341 0 sv_2mortal( ST(0) );
30342 0 XSRETURN(1);
30343 }
30344  
30345 XS_INTERNAL(XS_Lucy_Store_Folder_slurp_file);
30346 2 XS_INTERNAL(XS_Lucy_Store_Folder_slurp_file) {
30347 2 dXSARGS;
30348 SV *sv;
30349 lucy_Folder* arg_self;
30350 cfish_String* arg_path;
30351 LUCY_Folder_Slurp_File_t method;
30352 cfish_Blob* retval;
30353  
30354 CFISH_UNUSED_VAR(cv);
30355 2 SP -= items;
30356 2 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2 2
30357 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30358 }
30359  
30360 /* Extract vars from Perl stack. */
30361 2 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30362 2 sv = ST(1);
30363 2 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30364  
30365 /* Execute */
30366 2 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Slurp_File);
30367 2 retval = method(arg_self, arg_path);
30368 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30369 2 CFISH_DECREF(retval);
30370 2 sv_2mortal( ST(0) );
30371 2 XSRETURN(1);
30372 }
30373  
30374 XS_INTERNAL(XS_Lucy_Store_Folder_consolidate);
30375 0 XS_INTERNAL(XS_Lucy_Store_Folder_consolidate) {
30376 0 dXSARGS;
30377 SV *sv;
30378 lucy_Folder* arg_self;
30379 cfish_String* arg_path;
30380 LUCY_Folder_Consolidate_t method;
30381  
30382 CFISH_UNUSED_VAR(cv);
30383 0 SP -= items;
30384 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30385 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30386 }
30387  
30388 /* Extract vars from Perl stack. */
30389 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30390 0 sv = ST(1);
30391 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30392  
30393 /* Execute */
30394 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Consolidate);
30395 0 method(arg_self, arg_path);
30396 0 XSRETURN(0);
30397 }
30398  
30399 XS_INTERNAL(XS_Lucy_Store_Folder_enclosing_folder);
30400 0 XS_INTERNAL(XS_Lucy_Store_Folder_enclosing_folder) {
30401 0 dXSARGS;
30402 SV *sv;
30403 lucy_Folder* arg_self;
30404 cfish_String* arg_path;
30405 LUCY_Folder_Enclosing_Folder_t method;
30406 lucy_Folder* retval;
30407  
30408 CFISH_UNUSED_VAR(cv);
30409 0 SP -= items;
30410 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30411 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30412 }
30413  
30414 /* Extract vars from Perl stack. */
30415 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30416 0 sv = ST(1);
30417 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30418  
30419 /* Execute */
30420 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Enclosing_Folder);
30421 0 retval = method(arg_self, arg_path);
30422 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30423 0 sv_2mortal( ST(0) );
30424 0 XSRETURN(1);
30425 }
30426  
30427 XS_INTERNAL(XS_Lucy_Store_Folder_find_folder);
30428 0 XS_INTERNAL(XS_Lucy_Store_Folder_find_folder) {
30429 0 dXSARGS;
30430 SV *sv;
30431 lucy_Folder* arg_self;
30432 cfish_String* arg_path;
30433 LUCY_Folder_Find_Folder_t method;
30434 lucy_Folder* retval;
30435  
30436 CFISH_UNUSED_VAR(cv);
30437 0 SP -= items;
30438 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30439 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30440 }
30441  
30442 /* Extract vars from Perl stack. */
30443 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30444 0 sv = ST(1);
30445 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30446  
30447 /* Execute */
30448 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Find_Folder);
30449 0 retval = method(arg_self, arg_path);
30450 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30451 0 sv_2mortal( ST(0) );
30452 0 XSRETURN(1);
30453 }
30454  
30455 XS_INTERNAL(XS_Lucy_Store_Folder_initialize);
30456 0 XS_INTERNAL(XS_Lucy_Store_Folder_initialize) {
30457 0 dXSARGS;
30458 lucy_Folder* arg_self;
30459 LUCY_Folder_Initialize_t method;
30460  
30461 CFISH_UNUSED_VAR(cv);
30462 0 SP -= items;
30463 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
30464 0 XSBind_invalid_args_error(aTHX_ cv, "self");
30465 }
30466  
30467 /* Extract vars from Perl stack. */
30468 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30469  
30470 /* Execute */
30471 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Initialize);
30472 0 method(arg_self);
30473 0 XSRETURN(0);
30474 }
30475  
30476 XS_INTERNAL(XS_Lucy_Store_Folder_check);
30477 0 XS_INTERNAL(XS_Lucy_Store_Folder_check) {
30478 0 dXSARGS;
30479 lucy_Folder* arg_self;
30480 LUCY_Folder_Check_t method;
30481 bool retval;
30482  
30483 CFISH_UNUSED_VAR(cv);
30484 0 SP -= items;
30485 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
30486 0 XSBind_invalid_args_error(aTHX_ cv, "self");
30487 }
30488  
30489 /* Extract vars from Perl stack. */
30490 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30491  
30492 /* Execute */
30493 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Check);
30494 0 retval = method(arg_self);
30495 0 ST(0) = newSViv(!!retval);
30496 0 sv_2mortal( ST(0) );
30497 0 XSRETURN(1);
30498 }
30499  
30500 XS_INTERNAL(XS_Lucy_Store_Folder_close);
30501 0 XS_INTERNAL(XS_Lucy_Store_Folder_close) {
30502 0 dXSARGS;
30503 lucy_Folder* arg_self;
30504 LUCY_Folder_Close_t method;
30505  
30506 CFISH_UNUSED_VAR(cv);
30507 0 SP -= items;
30508 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
30509 0 XSBind_invalid_args_error(aTHX_ cv, "self");
30510 }
30511  
30512 /* Extract vars from Perl stack. */
30513 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30514  
30515 /* Execute */
30516 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Close);
30517 0 method(arg_self);
30518 0 XSRETURN(0);
30519 }
30520  
30521 XS_INTERNAL(XS_Lucy_Store_Folder_local_open_filehandle);
30522 0 XS_INTERNAL(XS_Lucy_Store_Folder_local_open_filehandle) {
30523 0 dXSARGS;
30524 static const XSBind_ParamSpec param_specs[2] = {
30525 XSBIND_PARAM("name", 1),
30526 XSBIND_PARAM("flags", 1)
30527 };
30528 int32_t locations[2];
30529 SV *sv;
30530 lucy_Folder* arg_self;
30531 cfish_String* arg_name;
30532 uint32_t arg_flags;
30533 LUCY_Folder_Local_Open_FileHandle_t method;
30534 lucy_FileHandle* retval;
30535  
30536 CFISH_UNUSED_VAR(cv);
30537 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
30538 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
30539 }
30540 0 SP -= items;
30541  
30542 /* Locate args on Perl stack. */
30543 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
30544 locations, 2);
30545 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30546 0 sv = ST(locations[0]);
30547 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30548 0 sv = ST(locations[1]);
30549 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
30550 0 XSBind_undef_arg_error(aTHX_ "flags");
30551 }
30552 0 arg_flags = (uint32_t)SvUV(sv);
30553  
30554 /* Execute */
30555 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Local_Open_FileHandle);
30556 0 retval = method(arg_self, arg_name, arg_flags);
30557 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30558 0 CFISH_DECREF(retval);
30559 0 sv_2mortal( ST(0) );
30560 0 XSRETURN(1);
30561 }
30562  
30563 XS_INTERNAL(XS_Lucy_Store_Folder_local_open_in);
30564 0 XS_INTERNAL(XS_Lucy_Store_Folder_local_open_in) {
30565 0 dXSARGS;
30566 SV *sv;
30567 lucy_Folder* arg_self;
30568 cfish_String* arg_name;
30569 LUCY_Folder_Local_Open_In_t method;
30570 lucy_InStream* retval;
30571  
30572 CFISH_UNUSED_VAR(cv);
30573 0 SP -= items;
30574 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30575 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30576 }
30577  
30578 /* Extract vars from Perl stack. */
30579 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30580 0 sv = ST(1);
30581 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30582  
30583 /* Execute */
30584 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Local_Open_In);
30585 0 retval = method(arg_self, arg_name);
30586 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30587 0 CFISH_DECREF(retval);
30588 0 sv_2mortal( ST(0) );
30589 0 XSRETURN(1);
30590 }
30591  
30592 XS_INTERNAL(XS_Lucy_Store_Folder_local_open_dir);
30593 0 XS_INTERNAL(XS_Lucy_Store_Folder_local_open_dir) {
30594 0 dXSARGS;
30595 lucy_Folder* arg_self;
30596 LUCY_Folder_Local_Open_Dir_t method;
30597 lucy_DirHandle* retval;
30598  
30599 CFISH_UNUSED_VAR(cv);
30600 0 SP -= items;
30601 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
30602 0 XSBind_invalid_args_error(aTHX_ cv, "self");
30603 }
30604  
30605 /* Extract vars from Perl stack. */
30606 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30607  
30608 /* Execute */
30609 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Local_Open_Dir);
30610 0 retval = method(arg_self);
30611 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30612 0 CFISH_DECREF(retval);
30613 0 sv_2mortal( ST(0) );
30614 0 XSRETURN(1);
30615 }
30616  
30617 XS_INTERNAL(XS_Lucy_Store_Folder_local_mkdir);
30618 0 XS_INTERNAL(XS_Lucy_Store_Folder_local_mkdir) {
30619 0 dXSARGS;
30620 SV *sv;
30621 lucy_Folder* arg_self;
30622 cfish_String* arg_name;
30623 LUCY_Folder_Local_MkDir_t method;
30624 bool retval;
30625  
30626 CFISH_UNUSED_VAR(cv);
30627 0 SP -= items;
30628 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30629 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30630 }
30631  
30632 /* Extract vars from Perl stack. */
30633 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30634 0 sv = ST(1);
30635 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30636  
30637 /* Execute */
30638 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Local_MkDir);
30639 0 retval = method(arg_self, arg_name);
30640 0 ST(0) = newSViv(!!retval);
30641 0 sv_2mortal( ST(0) );
30642 0 XSRETURN(1);
30643 }
30644  
30645 XS_INTERNAL(XS_Lucy_Store_Folder_local_exists);
30646 0 XS_INTERNAL(XS_Lucy_Store_Folder_local_exists) {
30647 0 dXSARGS;
30648 SV *sv;
30649 lucy_Folder* arg_self;
30650 cfish_String* arg_name;
30651 LUCY_Folder_Local_Exists_t method;
30652 bool retval;
30653  
30654 CFISH_UNUSED_VAR(cv);
30655 0 SP -= items;
30656 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30657 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30658 }
30659  
30660 /* Extract vars from Perl stack. */
30661 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30662 0 sv = ST(1);
30663 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30664  
30665 /* Execute */
30666 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Local_Exists);
30667 0 retval = method(arg_self, arg_name);
30668 0 ST(0) = newSViv(!!retval);
30669 0 sv_2mortal( ST(0) );
30670 0 XSRETURN(1);
30671 }
30672  
30673 XS_INTERNAL(XS_Lucy_Store_Folder_local_is_directory);
30674 0 XS_INTERNAL(XS_Lucy_Store_Folder_local_is_directory) {
30675 0 dXSARGS;
30676 SV *sv;
30677 lucy_Folder* arg_self;
30678 cfish_String* arg_name;
30679 LUCY_Folder_Local_Is_Directory_t method;
30680 bool retval;
30681  
30682 CFISH_UNUSED_VAR(cv);
30683 0 SP -= items;
30684 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30685 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30686 }
30687  
30688 /* Extract vars from Perl stack. */
30689 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30690 0 sv = ST(1);
30691 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30692  
30693 /* Execute */
30694 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Local_Is_Directory);
30695 0 retval = method(arg_self, arg_name);
30696 0 ST(0) = newSViv(!!retval);
30697 0 sv_2mortal( ST(0) );
30698 0 XSRETURN(1);
30699 }
30700  
30701 XS_INTERNAL(XS_Lucy_Store_Folder_local_find_folder);
30702 0 XS_INTERNAL(XS_Lucy_Store_Folder_local_find_folder) {
30703 0 dXSARGS;
30704 SV *sv;
30705 lucy_Folder* arg_self;
30706 cfish_String* arg_name;
30707 LUCY_Folder_Local_Find_Folder_t method;
30708 lucy_Folder* retval;
30709  
30710 CFISH_UNUSED_VAR(cv);
30711 0 SP -= items;
30712 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30713 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30714 }
30715  
30716 /* Extract vars from Perl stack. */
30717 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30718 0 sv = ST(1);
30719 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30720  
30721 /* Execute */
30722 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Local_Find_Folder);
30723 0 retval = method(arg_self, arg_name);
30724 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30725 0 sv_2mortal( ST(0) );
30726 0 XSRETURN(1);
30727 }
30728  
30729 XS_INTERNAL(XS_Lucy_Store_Folder_local_delete);
30730 0 XS_INTERNAL(XS_Lucy_Store_Folder_local_delete) {
30731 0 dXSARGS;
30732 SV *sv;
30733 lucy_Folder* arg_self;
30734 cfish_String* arg_name;
30735 LUCY_Folder_Local_Delete_t method;
30736 bool retval;
30737  
30738 CFISH_UNUSED_VAR(cv);
30739 0 SP -= items;
30740 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30741 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30742 }
30743  
30744 /* Extract vars from Perl stack. */
30745 0 arg_self = (lucy_Folder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FOLDER, NULL);
30746 0 sv = ST(1);
30747 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30748  
30749 /* Execute */
30750 0 method = CFISH_METHOD_PTR(LUCY_FOLDER, LUCY_Folder_Local_Delete);
30751 0 retval = method(arg_self, arg_name);
30752 0 ST(0) = newSViv(!!retval);
30753 0 sv_2mortal( ST(0) );
30754 0 XSRETURN(1);
30755 }
30756  
30757 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_get_real_folder);
30758 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_get_real_folder) {
30759 0 dXSARGS;
30760 lucy_CompoundFileReader* arg_self;
30761 LUCY_CFReader_Get_Real_Folder_t method;
30762 lucy_Folder* retval;
30763  
30764 CFISH_UNUSED_VAR(cv);
30765 0 SP -= items;
30766 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
30767 0 XSBind_invalid_args_error(aTHX_ cv, "self");
30768 }
30769  
30770 /* Extract vars from Perl stack. */
30771 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30772  
30773 /* Execute */
30774 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Get_Real_Folder);
30775 0 retval = method(arg_self);
30776 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30777 0 sv_2mortal( ST(0) );
30778 0 XSRETURN(1);
30779 }
30780  
30781 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_set_path);
30782 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_set_path) {
30783 0 dXSARGS;
30784 SV *sv;
30785 lucy_CompoundFileReader* arg_self;
30786 cfish_String* arg_path;
30787 LUCY_CFReader_Set_Path_t method;
30788  
30789 CFISH_UNUSED_VAR(cv);
30790 0 SP -= items;
30791 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30792 0 XSBind_invalid_args_error(aTHX_ cv, "self, path");
30793 }
30794  
30795 /* Extract vars from Perl stack. */
30796 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30797 0 sv = ST(1);
30798 0 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30799  
30800 /* Execute */
30801 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Set_Path);
30802 0 method(arg_self, arg_path);
30803 0 XSRETURN(0);
30804 }
30805  
30806 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_close);
30807 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_close) {
30808 0 dXSARGS;
30809 lucy_CompoundFileReader* arg_self;
30810 LUCY_CFReader_Close_t method;
30811  
30812 CFISH_UNUSED_VAR(cv);
30813 0 SP -= items;
30814 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
30815 0 XSBind_invalid_args_error(aTHX_ cv, "self");
30816 }
30817  
30818 /* Extract vars from Perl stack. */
30819 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30820  
30821 /* Execute */
30822 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Close);
30823 0 method(arg_self);
30824 0 XSRETURN(0);
30825 }
30826  
30827 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_delete);
30828 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_delete) {
30829 0 dXSARGS;
30830 SV *sv;
30831 lucy_CompoundFileReader* arg_self;
30832 cfish_String* arg_name;
30833 LUCY_CFReader_Local_Delete_t method;
30834 bool retval;
30835  
30836 CFISH_UNUSED_VAR(cv);
30837 0 SP -= items;
30838 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30839 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30840 }
30841  
30842 /* Extract vars from Perl stack. */
30843 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30844 0 sv = ST(1);
30845 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30846  
30847 /* Execute */
30848 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Local_Delete);
30849 0 retval = method(arg_self, arg_name);
30850 0 ST(0) = newSViv(!!retval);
30851 0 sv_2mortal( ST(0) );
30852 0 XSRETURN(1);
30853 }
30854  
30855 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_exists);
30856 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_exists) {
30857 0 dXSARGS;
30858 SV *sv;
30859 lucy_CompoundFileReader* arg_self;
30860 cfish_String* arg_name;
30861 LUCY_CFReader_Local_Exists_t method;
30862 bool retval;
30863  
30864 CFISH_UNUSED_VAR(cv);
30865 0 SP -= items;
30866 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30867 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30868 }
30869  
30870 /* Extract vars from Perl stack. */
30871 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30872 0 sv = ST(1);
30873 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30874  
30875 /* Execute */
30876 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Local_Exists);
30877 0 retval = method(arg_self, arg_name);
30878 0 ST(0) = newSViv(!!retval);
30879 0 sv_2mortal( ST(0) );
30880 0 XSRETURN(1);
30881 }
30882  
30883 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_is_directory);
30884 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_is_directory) {
30885 0 dXSARGS;
30886 SV *sv;
30887 lucy_CompoundFileReader* arg_self;
30888 cfish_String* arg_name;
30889 LUCY_CFReader_Local_Is_Directory_t method;
30890 bool retval;
30891  
30892 CFISH_UNUSED_VAR(cv);
30893 0 SP -= items;
30894 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30895 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30896 }
30897  
30898 /* Extract vars from Perl stack. */
30899 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30900 0 sv = ST(1);
30901 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30902  
30903 /* Execute */
30904 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Local_Is_Directory);
30905 0 retval = method(arg_self, arg_name);
30906 0 ST(0) = newSViv(!!retval);
30907 0 sv_2mortal( ST(0) );
30908 0 XSRETURN(1);
30909 }
30910  
30911 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_open_filehandle);
30912 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_open_filehandle) {
30913 0 dXSARGS;
30914 static const XSBind_ParamSpec param_specs[2] = {
30915 XSBIND_PARAM("name", 1),
30916 XSBIND_PARAM("flags", 1)
30917 };
30918 int32_t locations[2];
30919 SV *sv;
30920 lucy_CompoundFileReader* arg_self;
30921 cfish_String* arg_name;
30922 uint32_t arg_flags;
30923 LUCY_CFReader_Local_Open_FileHandle_t method;
30924 lucy_FileHandle* retval;
30925  
30926 CFISH_UNUSED_VAR(cv);
30927 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
30928 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
30929 }
30930 0 SP -= items;
30931  
30932 /* Locate args on Perl stack. */
30933 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
30934 locations, 2);
30935 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30936 0 sv = ST(locations[0]);
30937 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30938 0 sv = ST(locations[1]);
30939 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
30940 0 XSBind_undef_arg_error(aTHX_ "flags");
30941 }
30942 0 arg_flags = (uint32_t)SvUV(sv);
30943  
30944 /* Execute */
30945 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Local_Open_FileHandle);
30946 0 retval = method(arg_self, arg_name, arg_flags);
30947 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30948 0 CFISH_DECREF(retval);
30949 0 sv_2mortal( ST(0) );
30950 0 XSRETURN(1);
30951 }
30952  
30953 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_open_in);
30954 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_open_in) {
30955 0 dXSARGS;
30956 SV *sv;
30957 lucy_CompoundFileReader* arg_self;
30958 cfish_String* arg_name;
30959 LUCY_CFReader_Local_Open_In_t method;
30960 lucy_InStream* retval;
30961  
30962 CFISH_UNUSED_VAR(cv);
30963 0 SP -= items;
30964 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30965 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30966 }
30967  
30968 /* Extract vars from Perl stack. */
30969 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30970 0 sv = ST(1);
30971 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
30972  
30973 /* Execute */
30974 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Local_Open_In);
30975 0 retval = method(arg_self, arg_name);
30976 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
30977 0 CFISH_DECREF(retval);
30978 0 sv_2mortal( ST(0) );
30979 0 XSRETURN(1);
30980 }
30981  
30982 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_mkdir);
30983 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_mkdir) {
30984 0 dXSARGS;
30985 SV *sv;
30986 lucy_CompoundFileReader* arg_self;
30987 cfish_String* arg_name;
30988 LUCY_CFReader_Local_MkDir_t method;
30989 bool retval;
30990  
30991 CFISH_UNUSED_VAR(cv);
30992 0 SP -= items;
30993 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
30994 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
30995 }
30996  
30997 /* Extract vars from Perl stack. */
30998 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
30999 0 sv = ST(1);
31000 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31001  
31002 /* Execute */
31003 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Local_MkDir);
31004 0 retval = method(arg_self, arg_name);
31005 0 ST(0) = newSViv(!!retval);
31006 0 sv_2mortal( ST(0) );
31007 0 XSRETURN(1);
31008 }
31009  
31010 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_find_folder);
31011 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_find_folder) {
31012 0 dXSARGS;
31013 SV *sv;
31014 lucy_CompoundFileReader* arg_self;
31015 cfish_String* arg_name;
31016 LUCY_CFReader_Local_Find_Folder_t method;
31017 lucy_Folder* retval;
31018  
31019 CFISH_UNUSED_VAR(cv);
31020 0 SP -= items;
31021 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31022 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31023 }
31024  
31025 /* Extract vars from Perl stack. */
31026 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
31027 0 sv = ST(1);
31028 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31029  
31030 /* Execute */
31031 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Local_Find_Folder);
31032 0 retval = method(arg_self, arg_name);
31033 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31034 0 sv_2mortal( ST(0) );
31035 0 XSRETURN(1);
31036 }
31037  
31038 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_open_dir);
31039 0 XS_INTERNAL(XS_Lucy_Store_CompoundFileReader_local_open_dir) {
31040 0 dXSARGS;
31041 lucy_CompoundFileReader* arg_self;
31042 LUCY_CFReader_Local_Open_Dir_t method;
31043 lucy_DirHandle* retval;
31044  
31045 CFISH_UNUSED_VAR(cv);
31046 0 SP -= items;
31047 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31048 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31049 }
31050  
31051 /* Extract vars from Perl stack. */
31052 0 arg_self = (lucy_CompoundFileReader*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_COMPOUNDFILEREADER, NULL);
31053  
31054 /* Execute */
31055 0 method = CFISH_METHOD_PTR(LUCY_COMPOUNDFILEREADER, LUCY_CFReader_Local_Open_Dir);
31056 0 retval = method(arg_self);
31057 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31058 0 CFISH_DECREF(retval);
31059 0 sv_2mortal( ST(0) );
31060 0 XSRETURN(1);
31061 }
31062  
31063 XS_INTERNAL(XS_Lucy_Store_FSFolder_new);
31064 6 XS_INTERNAL(XS_Lucy_Store_FSFolder_new) {
31065 6 dXSARGS;
31066 static const XSBind_ParamSpec param_specs[1] = {
31067 XSBIND_PARAM("path", 1)
31068 };
31069 int32_t locations[1];
31070 SV *sv;
31071 lucy_FSFolder* arg_self;
31072 cfish_String* arg_path;
31073 lucy_FSFolder* retval;
31074  
31075 CFISH_UNUSED_VAR(cv);
31076 6 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 6 6
31077 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
31078 }
31079 6 SP -= items;
31080  
31081 6 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31082 locations, 1);
31083 6 sv = ST(locations[0]);
31084 6 arg_path = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31085 6 arg_self = (lucy_FSFolder*)XSBind_new_blank_obj(aTHX_ ST(0));
31086  
31087 6 retval = lucy_FSFolder_init(arg_self, arg_path);
31088 6 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
31089 6 XSRETURN(1);
31090 }
31091  
31092  
31093 XS_INTERNAL(XS_Lucy_Store_FSFolder_initialize);
31094 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_initialize) {
31095 0 dXSARGS;
31096 lucy_FSFolder* arg_self;
31097 LUCY_FSFolder_Initialize_t method;
31098  
31099 CFISH_UNUSED_VAR(cv);
31100 0 SP -= items;
31101 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31102 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31103 }
31104  
31105 /* Extract vars from Perl stack. */
31106 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31107  
31108 /* Execute */
31109 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Initialize);
31110 0 method(arg_self);
31111 0 XSRETURN(0);
31112 }
31113  
31114 XS_INTERNAL(XS_Lucy_Store_FSFolder_check);
31115 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_check) {
31116 0 dXSARGS;
31117 lucy_FSFolder* arg_self;
31118 LUCY_FSFolder_Check_t method;
31119 bool retval;
31120  
31121 CFISH_UNUSED_VAR(cv);
31122 0 SP -= items;
31123 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31124 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31125 }
31126  
31127 /* Extract vars from Perl stack. */
31128 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31129  
31130 /* Execute */
31131 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Check);
31132 0 retval = method(arg_self);
31133 0 ST(0) = newSViv(!!retval);
31134 0 sv_2mortal( ST(0) );
31135 0 XSRETURN(1);
31136 }
31137  
31138 XS_INTERNAL(XS_Lucy_Store_FSFolder_close);
31139 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_close) {
31140 0 dXSARGS;
31141 lucy_FSFolder* arg_self;
31142 LUCY_FSFolder_Close_t method;
31143  
31144 CFISH_UNUSED_VAR(cv);
31145 0 SP -= items;
31146 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31147 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31148 }
31149  
31150 /* Extract vars from Perl stack. */
31151 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31152  
31153 /* Execute */
31154 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Close);
31155 0 method(arg_self);
31156 0 XSRETURN(0);
31157 }
31158  
31159 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_open_filehandle);
31160 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_open_filehandle) {
31161 0 dXSARGS;
31162 static const XSBind_ParamSpec param_specs[2] = {
31163 XSBIND_PARAM("name", 1),
31164 XSBIND_PARAM("flags", 1)
31165 };
31166 int32_t locations[2];
31167 SV *sv;
31168 lucy_FSFolder* arg_self;
31169 cfish_String* arg_name;
31170 uint32_t arg_flags;
31171 LUCY_FSFolder_Local_Open_FileHandle_t method;
31172 lucy_FileHandle* retval;
31173  
31174 CFISH_UNUSED_VAR(cv);
31175 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
31176 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
31177 }
31178 0 SP -= items;
31179  
31180 /* Locate args on Perl stack. */
31181 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31182 locations, 2);
31183 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31184 0 sv = ST(locations[0]);
31185 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31186 0 sv = ST(locations[1]);
31187 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
31188 0 XSBind_undef_arg_error(aTHX_ "flags");
31189 }
31190 0 arg_flags = (uint32_t)SvUV(sv);
31191  
31192 /* Execute */
31193 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Local_Open_FileHandle);
31194 0 retval = method(arg_self, arg_name, arg_flags);
31195 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31196 0 CFISH_DECREF(retval);
31197 0 sv_2mortal( ST(0) );
31198 0 XSRETURN(1);
31199 }
31200  
31201 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_open_dir);
31202 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_open_dir) {
31203 0 dXSARGS;
31204 lucy_FSFolder* arg_self;
31205 LUCY_FSFolder_Local_Open_Dir_t method;
31206 lucy_DirHandle* retval;
31207  
31208 CFISH_UNUSED_VAR(cv);
31209 0 SP -= items;
31210 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31211 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31212 }
31213  
31214 /* Extract vars from Perl stack. */
31215 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31216  
31217 /* Execute */
31218 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Local_Open_Dir);
31219 0 retval = method(arg_self);
31220 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31221 0 CFISH_DECREF(retval);
31222 0 sv_2mortal( ST(0) );
31223 0 XSRETURN(1);
31224 }
31225  
31226 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_mkdir);
31227 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_mkdir) {
31228 0 dXSARGS;
31229 SV *sv;
31230 lucy_FSFolder* arg_self;
31231 cfish_String* arg_name;
31232 LUCY_FSFolder_Local_MkDir_t method;
31233 bool retval;
31234  
31235 CFISH_UNUSED_VAR(cv);
31236 0 SP -= items;
31237 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31238 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31239 }
31240  
31241 /* Extract vars from Perl stack. */
31242 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31243 0 sv = ST(1);
31244 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31245  
31246 /* Execute */
31247 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Local_MkDir);
31248 0 retval = method(arg_self, arg_name);
31249 0 ST(0) = newSViv(!!retval);
31250 0 sv_2mortal( ST(0) );
31251 0 XSRETURN(1);
31252 }
31253  
31254 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_exists);
31255 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_exists) {
31256 0 dXSARGS;
31257 SV *sv;
31258 lucy_FSFolder* arg_self;
31259 cfish_String* arg_name;
31260 LUCY_FSFolder_Local_Exists_t method;
31261 bool retval;
31262  
31263 CFISH_UNUSED_VAR(cv);
31264 0 SP -= items;
31265 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31266 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31267 }
31268  
31269 /* Extract vars from Perl stack. */
31270 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31271 0 sv = ST(1);
31272 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31273  
31274 /* Execute */
31275 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Local_Exists);
31276 0 retval = method(arg_self, arg_name);
31277 0 ST(0) = newSViv(!!retval);
31278 0 sv_2mortal( ST(0) );
31279 0 XSRETURN(1);
31280 }
31281  
31282 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_is_directory);
31283 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_is_directory) {
31284 0 dXSARGS;
31285 SV *sv;
31286 lucy_FSFolder* arg_self;
31287 cfish_String* arg_name;
31288 LUCY_FSFolder_Local_Is_Directory_t method;
31289 bool retval;
31290  
31291 CFISH_UNUSED_VAR(cv);
31292 0 SP -= items;
31293 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31294 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31295 }
31296  
31297 /* Extract vars from Perl stack. */
31298 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31299 0 sv = ST(1);
31300 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31301  
31302 /* Execute */
31303 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Local_Is_Directory);
31304 0 retval = method(arg_self, arg_name);
31305 0 ST(0) = newSViv(!!retval);
31306 0 sv_2mortal( ST(0) );
31307 0 XSRETURN(1);
31308 }
31309  
31310 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_find_folder);
31311 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_find_folder) {
31312 0 dXSARGS;
31313 SV *sv;
31314 lucy_FSFolder* arg_self;
31315 cfish_String* arg_name;
31316 LUCY_FSFolder_Local_Find_Folder_t method;
31317 lucy_Folder* retval;
31318  
31319 CFISH_UNUSED_VAR(cv);
31320 0 SP -= items;
31321 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31322 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31323 }
31324  
31325 /* Extract vars from Perl stack. */
31326 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31327 0 sv = ST(1);
31328 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31329  
31330 /* Execute */
31331 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Local_Find_Folder);
31332 0 retval = method(arg_self, arg_name);
31333 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31334 0 sv_2mortal( ST(0) );
31335 0 XSRETURN(1);
31336 }
31337  
31338 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_delete);
31339 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_local_delete) {
31340 0 dXSARGS;
31341 SV *sv;
31342 lucy_FSFolder* arg_self;
31343 cfish_String* arg_name;
31344 LUCY_FSFolder_Local_Delete_t method;
31345 bool retval;
31346  
31347 CFISH_UNUSED_VAR(cv);
31348 0 SP -= items;
31349 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31350 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31351 }
31352  
31353 /* Extract vars from Perl stack. */
31354 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31355 0 sv = ST(1);
31356 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31357  
31358 /* Execute */
31359 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Local_Delete);
31360 0 retval = method(arg_self, arg_name);
31361 0 ST(0) = newSViv(!!retval);
31362 0 sv_2mortal( ST(0) );
31363 0 XSRETURN(1);
31364 }
31365  
31366 XS_INTERNAL(XS_Lucy_Store_FSFolder_rename);
31367 1 XS_INTERNAL(XS_Lucy_Store_FSFolder_rename) {
31368 1 dXSARGS;
31369 static const XSBind_ParamSpec param_specs[2] = {
31370 XSBIND_PARAM("from", 1),
31371 XSBIND_PARAM("to", 1)
31372 };
31373 int32_t locations[2];
31374 SV *sv;
31375 lucy_FSFolder* arg_self;
31376 cfish_String* arg_from;
31377 cfish_String* arg_to;
31378 LUCY_FSFolder_Rename_t method;
31379 bool retval;
31380  
31381 CFISH_UNUSED_VAR(cv);
31382 1 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 1 1
31383 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
31384 }
31385 1 SP -= items;
31386  
31387 /* Locate args on Perl stack. */
31388 1 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31389 locations, 2);
31390 1 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31391 1 sv = ST(locations[0]);
31392 1 arg_from = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "from", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31393 1 sv = ST(locations[1]);
31394 1 arg_to = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "to", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31395  
31396 /* Execute */
31397 1 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Rename);
31398 1 retval = method(arg_self, arg_from, arg_to);
31399 1 ST(0) = newSViv(!!retval);
31400 1 sv_2mortal( ST(0) );
31401 1 XSRETURN(1);
31402 }
31403  
31404 XS_INTERNAL(XS_Lucy_Store_FSFolder_hard_link);
31405 0 XS_INTERNAL(XS_Lucy_Store_FSFolder_hard_link) {
31406 0 dXSARGS;
31407 static const XSBind_ParamSpec param_specs[2] = {
31408 XSBIND_PARAM("from", 1),
31409 XSBIND_PARAM("to", 1)
31410 };
31411 int32_t locations[2];
31412 SV *sv;
31413 lucy_FSFolder* arg_self;
31414 cfish_String* arg_from;
31415 cfish_String* arg_to;
31416 LUCY_FSFolder_Hard_Link_t method;
31417 bool retval;
31418  
31419 CFISH_UNUSED_VAR(cv);
31420 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
31421 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
31422 }
31423 0 SP -= items;
31424  
31425 /* Locate args on Perl stack. */
31426 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31427 locations, 2);
31428 0 arg_self = (lucy_FSFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_FSFOLDER, NULL);
31429 0 sv = ST(locations[0]);
31430 0 arg_from = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "from", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31431 0 sv = ST(locations[1]);
31432 0 arg_to = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "to", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31433  
31434 /* Execute */
31435 0 method = CFISH_METHOD_PTR(LUCY_FSFOLDER, LUCY_FSFolder_Hard_Link);
31436 0 retval = method(arg_self, arg_from, arg_to);
31437 0 ST(0) = newSViv(!!retval);
31438 0 sv_2mortal( ST(0) );
31439 0 XSRETURN(1);
31440 }
31441  
31442 XS_INTERNAL(XS_Lucy_Store_RAMFolder_new);
31443 70 XS_INTERNAL(XS_Lucy_Store_RAMFolder_new) {
31444 70 dXSARGS;
31445 static const XSBind_ParamSpec param_specs[1] = {
31446 XSBIND_PARAM("path", 0)
31447 };
31448 int32_t locations[1];
31449 SV *sv;
31450 lucy_RAMFolder* arg_self;
31451 cfish_String* arg_path;
31452 lucy_RAMFolder* retval;
31453  
31454 CFISH_UNUSED_VAR(cv);
31455 70 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 70 70
31456 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
31457 }
31458 70 SP -= items;
31459  
31460 70 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31461 locations, 1);
31462 70 sv = ST(locations[0]);
31463 70 ▶ arg_path = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_path = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "path", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 70 70
31464 70 arg_self = (lucy_RAMFolder*)XSBind_new_blank_obj(aTHX_ ST(0));
31465  
31466 70 retval = lucy_RAMFolder_init(arg_self, arg_path);
31467 70 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
31468 70 XSRETURN(1);
31469 }
31470  
31471  
31472 XS_INTERNAL(XS_Lucy_Store_RAMFolder_initialize);
31473 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_initialize) {
31474 0 dXSARGS;
31475 lucy_RAMFolder* arg_self;
31476 LUCY_RAMFolder_Initialize_t method;
31477  
31478 CFISH_UNUSED_VAR(cv);
31479 0 SP -= items;
31480 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31481 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31482 }
31483  
31484 /* Extract vars from Perl stack. */
31485 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31486  
31487 /* Execute */
31488 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Initialize);
31489 0 method(arg_self);
31490 0 XSRETURN(0);
31491 }
31492  
31493 XS_INTERNAL(XS_Lucy_Store_RAMFolder_check);
31494 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_check) {
31495 0 dXSARGS;
31496 lucy_RAMFolder* arg_self;
31497 LUCY_RAMFolder_Check_t method;
31498 bool retval;
31499  
31500 CFISH_UNUSED_VAR(cv);
31501 0 SP -= items;
31502 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31503 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31504 }
31505  
31506 /* Extract vars from Perl stack. */
31507 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31508  
31509 /* Execute */
31510 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Check);
31511 0 retval = method(arg_self);
31512 0 ST(0) = newSViv(!!retval);
31513 0 sv_2mortal( ST(0) );
31514 0 XSRETURN(1);
31515 }
31516  
31517 XS_INTERNAL(XS_Lucy_Store_RAMFolder_close);
31518 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_close) {
31519 0 dXSARGS;
31520 lucy_RAMFolder* arg_self;
31521 LUCY_RAMFolder_Close_t method;
31522  
31523 CFISH_UNUSED_VAR(cv);
31524 0 SP -= items;
31525 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31526 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31527 }
31528  
31529 /* Extract vars from Perl stack. */
31530 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31531  
31532 /* Execute */
31533 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Close);
31534 0 method(arg_self);
31535 0 XSRETURN(0);
31536 }
31537  
31538 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_open_filehandle);
31539 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_open_filehandle) {
31540 0 dXSARGS;
31541 static const XSBind_ParamSpec param_specs[2] = {
31542 XSBIND_PARAM("name", 1),
31543 XSBIND_PARAM("flags", 1)
31544 };
31545 int32_t locations[2];
31546 SV *sv;
31547 lucy_RAMFolder* arg_self;
31548 cfish_String* arg_name;
31549 uint32_t arg_flags;
31550 LUCY_RAMFolder_Local_Open_FileHandle_t method;
31551 lucy_FileHandle* retval;
31552  
31553 CFISH_UNUSED_VAR(cv);
31554 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
31555 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
31556 }
31557 0 SP -= items;
31558  
31559 /* Locate args on Perl stack. */
31560 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31561 locations, 2);
31562 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31563 0 sv = ST(locations[0]);
31564 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31565 0 sv = ST(locations[1]);
31566 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
31567 0 XSBind_undef_arg_error(aTHX_ "flags");
31568 }
31569 0 arg_flags = (uint32_t)SvUV(sv);
31570  
31571 /* Execute */
31572 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Local_Open_FileHandle);
31573 0 retval = method(arg_self, arg_name, arg_flags);
31574 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31575 0 CFISH_DECREF(retval);
31576 0 sv_2mortal( ST(0) );
31577 0 XSRETURN(1);
31578 }
31579  
31580 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_open_dir);
31581 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_open_dir) {
31582 0 dXSARGS;
31583 lucy_RAMFolder* arg_self;
31584 LUCY_RAMFolder_Local_Open_Dir_t method;
31585 lucy_DirHandle* retval;
31586  
31587 CFISH_UNUSED_VAR(cv);
31588 0 SP -= items;
31589 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31590 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31591 }
31592  
31593 /* Extract vars from Perl stack. */
31594 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31595  
31596 /* Execute */
31597 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Local_Open_Dir);
31598 0 retval = method(arg_self);
31599 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31600 0 CFISH_DECREF(retval);
31601 0 sv_2mortal( ST(0) );
31602 0 XSRETURN(1);
31603 }
31604  
31605 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_mkdir);
31606 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_mkdir) {
31607 0 dXSARGS;
31608 SV *sv;
31609 lucy_RAMFolder* arg_self;
31610 cfish_String* arg_name;
31611 LUCY_RAMFolder_Local_MkDir_t method;
31612 bool retval;
31613  
31614 CFISH_UNUSED_VAR(cv);
31615 0 SP -= items;
31616 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31617 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31618 }
31619  
31620 /* Extract vars from Perl stack. */
31621 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31622 0 sv = ST(1);
31623 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31624  
31625 /* Execute */
31626 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Local_MkDir);
31627 0 retval = method(arg_self, arg_name);
31628 0 ST(0) = newSViv(!!retval);
31629 0 sv_2mortal( ST(0) );
31630 0 XSRETURN(1);
31631 }
31632  
31633 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_exists);
31634 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_exists) {
31635 0 dXSARGS;
31636 SV *sv;
31637 lucy_RAMFolder* arg_self;
31638 cfish_String* arg_name;
31639 LUCY_RAMFolder_Local_Exists_t method;
31640 bool retval;
31641  
31642 CFISH_UNUSED_VAR(cv);
31643 0 SP -= items;
31644 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31645 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31646 }
31647  
31648 /* Extract vars from Perl stack. */
31649 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31650 0 sv = ST(1);
31651 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31652  
31653 /* Execute */
31654 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Local_Exists);
31655 0 retval = method(arg_self, arg_name);
31656 0 ST(0) = newSViv(!!retval);
31657 0 sv_2mortal( ST(0) );
31658 0 XSRETURN(1);
31659 }
31660  
31661 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_is_directory);
31662 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_is_directory) {
31663 0 dXSARGS;
31664 SV *sv;
31665 lucy_RAMFolder* arg_self;
31666 cfish_String* arg_name;
31667 LUCY_RAMFolder_Local_Is_Directory_t method;
31668 bool retval;
31669  
31670 CFISH_UNUSED_VAR(cv);
31671 0 SP -= items;
31672 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31673 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31674 }
31675  
31676 /* Extract vars from Perl stack. */
31677 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31678 0 sv = ST(1);
31679 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31680  
31681 /* Execute */
31682 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Local_Is_Directory);
31683 0 retval = method(arg_self, arg_name);
31684 0 ST(0) = newSViv(!!retval);
31685 0 sv_2mortal( ST(0) );
31686 0 XSRETURN(1);
31687 }
31688  
31689 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_find_folder);
31690 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_find_folder) {
31691 0 dXSARGS;
31692 SV *sv;
31693 lucy_RAMFolder* arg_self;
31694 cfish_String* arg_name;
31695 LUCY_RAMFolder_Local_Find_Folder_t method;
31696 lucy_Folder* retval;
31697  
31698 CFISH_UNUSED_VAR(cv);
31699 0 SP -= items;
31700 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31701 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31702 }
31703  
31704 /* Extract vars from Perl stack. */
31705 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31706 0 sv = ST(1);
31707 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31708  
31709 /* Execute */
31710 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Local_Find_Folder);
31711 0 retval = method(arg_self, arg_name);
31712 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31713 0 sv_2mortal( ST(0) );
31714 0 XSRETURN(1);
31715 }
31716  
31717 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_delete);
31718 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_local_delete) {
31719 0 dXSARGS;
31720 SV *sv;
31721 lucy_RAMFolder* arg_self;
31722 cfish_String* arg_name;
31723 LUCY_RAMFolder_Local_Delete_t method;
31724 bool retval;
31725  
31726 CFISH_UNUSED_VAR(cv);
31727 0 SP -= items;
31728 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
31729 0 XSBind_invalid_args_error(aTHX_ cv, "self, name");
31730 }
31731  
31732 /* Extract vars from Perl stack. */
31733 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31734 0 sv = ST(1);
31735 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31736  
31737 /* Execute */
31738 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Local_Delete);
31739 0 retval = method(arg_self, arg_name);
31740 0 ST(0) = newSViv(!!retval);
31741 0 sv_2mortal( ST(0) );
31742 0 XSRETURN(1);
31743 }
31744  
31745 XS_INTERNAL(XS_Lucy_Store_RAMFolder_rename);
31746 4 XS_INTERNAL(XS_Lucy_Store_RAMFolder_rename) {
31747 4 dXSARGS;
31748 static const XSBind_ParamSpec param_specs[2] = {
31749 XSBIND_PARAM("from", 1),
31750 XSBIND_PARAM("to", 1)
31751 };
31752 int32_t locations[2];
31753 SV *sv;
31754 lucy_RAMFolder* arg_self;
31755 cfish_String* arg_from;
31756 cfish_String* arg_to;
31757 LUCY_RAMFolder_Rename_t method;
31758 bool retval;
31759  
31760 CFISH_UNUSED_VAR(cv);
31761 4 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 4 4
31762 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
31763 }
31764 4 SP -= items;
31765  
31766 /* Locate args on Perl stack. */
31767 4 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31768 locations, 2);
31769 4 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31770 4 sv = ST(locations[0]);
31771 4 arg_from = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "from", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31772 4 sv = ST(locations[1]);
31773 4 arg_to = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "to", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31774  
31775 /* Execute */
31776 4 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Rename);
31777 4 retval = method(arg_self, arg_from, arg_to);
31778 4 ST(0) = newSViv(!!retval);
31779 4 sv_2mortal( ST(0) );
31780 4 XSRETURN(1);
31781 }
31782  
31783 XS_INTERNAL(XS_Lucy_Store_RAMFolder_hard_link);
31784 0 XS_INTERNAL(XS_Lucy_Store_RAMFolder_hard_link) {
31785 0 dXSARGS;
31786 static const XSBind_ParamSpec param_specs[2] = {
31787 XSBIND_PARAM("from", 1),
31788 XSBIND_PARAM("to", 1)
31789 };
31790 int32_t locations[2];
31791 SV *sv;
31792 lucy_RAMFolder* arg_self;
31793 cfish_String* arg_from;
31794 cfish_String* arg_to;
31795 LUCY_RAMFolder_Hard_Link_t method;
31796 bool retval;
31797  
31798 CFISH_UNUSED_VAR(cv);
31799 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
31800 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
31801 }
31802 0 SP -= items;
31803  
31804 /* Locate args on Perl stack. */
31805 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31806 locations, 2);
31807 0 arg_self = (lucy_RAMFolder*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFOLDER, NULL);
31808 0 sv = ST(locations[0]);
31809 0 arg_from = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "from", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31810 0 sv = ST(locations[1]);
31811 0 arg_to = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "to", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
31812  
31813 /* Execute */
31814 0 method = CFISH_METHOD_PTR(LUCY_RAMFOLDER, LUCY_RAMFolder_Hard_Link);
31815 0 retval = method(arg_self, arg_from, arg_to);
31816 0 ST(0) = newSViv(!!retval);
31817 0 sv_2mortal( ST(0) );
31818 0 XSRETURN(1);
31819 }
31820  
31821 XS_INTERNAL(XS_Lucy_Store_InStream_open);
31822 30 XS_INTERNAL(XS_Lucy_Store_InStream_open) {
31823 30 dXSARGS;
31824 static const XSBind_ParamSpec param_specs[1] = {
31825 XSBIND_PARAM("file", 1)
31826 };
31827 int32_t locations[1];
31828 SV *sv;
31829 lucy_InStream* arg_self;
31830 cfish_Obj* arg_file;
31831 lucy_InStream* retval;
31832  
31833 CFISH_UNUSED_VAR(cv);
31834 30 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 30 30
31835 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
31836 }
31837 30 SP -= items;
31838  
31839 30 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31840 locations, 1);
31841 30 sv = ST(locations[0]);
31842 30 arg_file = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "file", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
31843 30 arg_self = (lucy_InStream*)XSBind_new_blank_obj(aTHX_ ST(0));
31844  
31845 30 retval = lucy_InStream_do_open(arg_self, arg_file);
31846 30 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
31847 30 XSRETURN(1);
31848 }
31849  
31850  
31851 XS_INTERNAL(XS_Lucy_Store_InStream_reopen);
31852 2 XS_INTERNAL(XS_Lucy_Store_InStream_reopen) {
31853 2 dXSARGS;
31854 static const XSBind_ParamSpec param_specs[3] = {
31855 XSBIND_PARAM("filename", 0),
31856 XSBIND_PARAM("offset", 1),
31857 XSBIND_PARAM("len", 1)
31858 };
31859 int32_t locations[3];
31860 SV *sv;
31861 lucy_InStream* arg_self;
31862 cfish_String* arg_filename;
31863 int64_t arg_offset;
31864 int64_t arg_len;
31865 LUCY_InStream_Reopen_t method;
31866 lucy_InStream* retval;
31867  
31868 CFISH_UNUSED_VAR(cv);
31869 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
31870 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
31871 }
31872 2 SP -= items;
31873  
31874 /* Locate args on Perl stack. */
31875 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
31876 locations, 3);
31877 2 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
31878 2 sv = ST(locations[0]);
31879 2 ▶ arg_filename = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "filename", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_filename = locations[0] < items ? (cfish_String*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "filename", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 2 0 2
31880 2 sv = ST(locations[1]);
31881 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
31882 0 XSBind_undef_arg_error(aTHX_ "offset");
31883 }
31884 2 arg_offset = (int64_t)SvNV(sv);
31885 2 sv = ST(locations[2]);
31886 2 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2 2
31887 0 XSBind_undef_arg_error(aTHX_ "len");
31888 }
31889 2 arg_len = (int64_t)SvNV(sv);
31890  
31891 /* Execute */
31892 2 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Reopen);
31893 2 retval = method(arg_self, arg_filename, arg_offset, arg_len);
31894 2 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31895 2 CFISH_DECREF(retval);
31896 2 sv_2mortal( ST(0) );
31897 2 XSRETURN(1);
31898 }
31899  
31900 XS_INTERNAL(XS_Lucy_Store_InStream_clone);
31901 0 XS_INTERNAL(XS_Lucy_Store_InStream_clone) {
31902 0 dXSARGS;
31903 lucy_InStream* arg_self;
31904 LUCY_InStream_Clone_t method;
31905 lucy_InStream* retval;
31906  
31907 CFISH_UNUSED_VAR(cv);
31908 0 SP -= items;
31909 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
31910 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31911 }
31912  
31913 /* Extract vars from Perl stack. */
31914 0 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
31915  
31916 /* Execute */
31917 0 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Clone);
31918 0 retval = method(arg_self);
31919 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
31920 0 CFISH_DECREF(retval);
31921 0 sv_2mortal( ST(0) );
31922 0 XSRETURN(1);
31923 }
31924  
31925 XS_INTERNAL(XS_Lucy_Store_InStream_close);
31926 1 XS_INTERNAL(XS_Lucy_Store_InStream_close) {
31927 1 dXSARGS;
31928 lucy_InStream* arg_self;
31929 LUCY_InStream_Close_t method;
31930  
31931 CFISH_UNUSED_VAR(cv);
31932 1 SP -= items;
31933 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
31934 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31935 }
31936  
31937 /* Extract vars from Perl stack. */
31938 1 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
31939  
31940 /* Execute */
31941 1 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Close);
31942 1 method(arg_self);
31943 1 XSRETURN(0);
31944 }
31945  
31946 XS_INTERNAL(XS_Lucy_Store_InStream_seek);
31947 74 XS_INTERNAL(XS_Lucy_Store_InStream_seek) {
31948 74 dXSARGS;
31949 SV *sv;
31950 lucy_InStream* arg_self;
31951 int64_t arg_target;
31952 LUCY_InStream_Seek_t method;
31953  
31954 CFISH_UNUSED_VAR(cv);
31955 74 SP -= items;
31956 74 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 74 74
31957 0 XSBind_invalid_args_error(aTHX_ cv, "self, target");
31958 }
31959  
31960 /* Extract vars from Perl stack. */
31961 74 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
31962 74 sv = ST(1);
31963 74 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 74 74
31964 0 XSBind_undef_arg_error(aTHX_ "target");
31965 }
31966 74 arg_target = (int64_t)SvNV(sv);
31967  
31968 /* Execute */
31969 74 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Seek);
31970 74 method(arg_self, arg_target);
31971 74 XSRETURN(0);
31972 }
31973  
31974 XS_INTERNAL(XS_Lucy_Store_InStream_tell);
31975 1006 XS_INTERNAL(XS_Lucy_Store_InStream_tell) {
31976 1006 dXSARGS;
31977 lucy_InStream* arg_self;
31978 LUCY_InStream_Tell_t method;
31979 int64_t retval;
31980  
31981 CFISH_UNUSED_VAR(cv);
31982 1006 SP -= items;
31983 1006 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1006 1006
31984 0 XSBind_invalid_args_error(aTHX_ cv, "self");
31985 }
31986  
31987 /* Extract vars from Perl stack. */
31988 1006 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
31989  
31990 /* Execute */
31991 1006 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Tell);
31992 1006 retval = method(arg_self);
31993 1006 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
31994 1006 sv_2mortal( ST(0) );
31995 1006 XSRETURN(1);
31996 }
31997  
31998 XS_INTERNAL(XS_Lucy_Store_InStream_length);
31999 6 XS_INTERNAL(XS_Lucy_Store_InStream_length) {
32000 6 dXSARGS;
32001 lucy_InStream* arg_self;
32002 LUCY_InStream_Length_t method;
32003 int64_t retval;
32004  
32005 CFISH_UNUSED_VAR(cv);
32006 6 SP -= items;
32007 6 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 6 6
32008 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32009 }
32010  
32011 /* Extract vars from Perl stack. */
32012 6 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32013  
32014 /* Execute */
32015 6 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Length);
32016 6 retval = method(arg_self);
32017 6 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
32018 6 sv_2mortal( ST(0) );
32019 6 XSRETURN(1);
32020 }
32021  
32022 XS_INTERNAL(XS_Lucy_Store_InStream_refill);
32023 0 XS_INTERNAL(XS_Lucy_Store_InStream_refill) {
32024 0 dXSARGS;
32025 lucy_InStream* arg_self;
32026 LUCY_InStream_Refill_t method;
32027  
32028 CFISH_UNUSED_VAR(cv);
32029 0 SP -= items;
32030 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32031 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32032 }
32033  
32034 /* Extract vars from Perl stack. */
32035 0 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32036  
32037 /* Execute */
32038 0 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Refill);
32039 0 method(arg_self);
32040 0 XSRETURN(0);
32041 }
32042  
32043 XS_INTERNAL(XS_Lucy_Store_InStream_fill);
32044 0 XS_INTERNAL(XS_Lucy_Store_InStream_fill) {
32045 0 dXSARGS;
32046 SV *sv;
32047 lucy_InStream* arg_self;
32048 int64_t arg_amount;
32049 LUCY_InStream_Fill_t method;
32050  
32051 CFISH_UNUSED_VAR(cv);
32052 0 SP -= items;
32053 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
32054 0 XSBind_invalid_args_error(aTHX_ cv, "self, amount");
32055 }
32056  
32057 /* Extract vars from Perl stack. */
32058 0 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32059 0 sv = ST(1);
32060 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
32061 0 XSBind_undef_arg_error(aTHX_ "amount");
32062 }
32063 0 arg_amount = (int64_t)SvNV(sv);
32064  
32065 /* Execute */
32066 0 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Fill);
32067 0 method(arg_self, arg_amount);
32068 0 XSRETURN(0);
32069 }
32070  
32071 XS_INTERNAL(XS_Lucy_Store_InStream_read_i8);
32072 256 XS_INTERNAL(XS_Lucy_Store_InStream_read_i8) {
32073 256 dXSARGS;
32074 lucy_InStream* arg_self;
32075 LUCY_InStream_Read_I8_t method;
32076 int8_t retval;
32077  
32078 CFISH_UNUSED_VAR(cv);
32079 256 SP -= items;
32080 256 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 256 256
32081 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32082 }
32083  
32084 /* Extract vars from Perl stack. */
32085 256 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32086  
32087 /* Execute */
32088 256 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_I8);
32089 256 retval = method(arg_self);
32090 256 ST(0) = newSViv(retval);
32091 256 sv_2mortal( ST(0) );
32092 256 XSRETURN(1);
32093 }
32094  
32095 XS_INTERNAL(XS_Lucy_Store_InStream_read_u8);
32096 256 XS_INTERNAL(XS_Lucy_Store_InStream_read_u8) {
32097 256 dXSARGS;
32098 lucy_InStream* arg_self;
32099 LUCY_InStream_Read_U8_t method;
32100 uint8_t retval;
32101  
32102 CFISH_UNUSED_VAR(cv);
32103 256 SP -= items;
32104 256 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 256 256
32105 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32106 }
32107  
32108 /* Extract vars from Perl stack. */
32109 256 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32110  
32111 /* Execute */
32112 256 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_U8);
32113 256 retval = method(arg_self);
32114 256 ST(0) = newSVuv(retval);
32115 256 sv_2mortal( ST(0) );
32116 256 XSRETURN(1);
32117 }
32118  
32119 XS_INTERNAL(XS_Lucy_Store_InStream_read_i32);
32120 2003 XS_INTERNAL(XS_Lucy_Store_InStream_read_i32) {
32121 2003 dXSARGS;
32122 lucy_InStream* arg_self;
32123 LUCY_InStream_Read_I32_t method;
32124 int32_t retval;
32125  
32126 CFISH_UNUSED_VAR(cv);
32127 2003 SP -= items;
32128 2003 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2003 2003
32129 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32130 }
32131  
32132 /* Extract vars from Perl stack. */
32133 2003 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32134  
32135 /* Execute */
32136 2003 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_I32);
32137 2003 retval = method(arg_self);
32138 2003 ST(0) = newSViv(retval);
32139 2003 sv_2mortal( ST(0) );
32140 2003 XSRETURN(1);
32141 }
32142  
32143 XS_INTERNAL(XS_Lucy_Store_InStream_read_u32);
32144 2004 XS_INTERNAL(XS_Lucy_Store_InStream_read_u32) {
32145 2004 dXSARGS;
32146 lucy_InStream* arg_self;
32147 LUCY_InStream_Read_U32_t method;
32148 uint32_t retval;
32149  
32150 CFISH_UNUSED_VAR(cv);
32151 2004 SP -= items;
32152 2004 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2004 2004
32153 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32154 }
32155  
32156 /* Extract vars from Perl stack. */
32157 2004 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32158  
32159 /* Execute */
32160 2004 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_U32);
32161 2004 retval = method(arg_self);
32162 2004 ST(0) = newSVuv(retval);
32163 2004 sv_2mortal( ST(0) );
32164 2004 XSRETURN(1);
32165 }
32166  
32167 XS_INTERNAL(XS_Lucy_Store_InStream_read_i64);
32168 48 XS_INTERNAL(XS_Lucy_Store_InStream_read_i64) {
32169 48 dXSARGS;
32170 lucy_InStream* arg_self;
32171 LUCY_InStream_Read_I64_t method;
32172 int64_t retval;
32173  
32174 CFISH_UNUSED_VAR(cv);
32175 48 SP -= items;
32176 48 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 48 48
32177 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32178 }
32179  
32180 /* Extract vars from Perl stack. */
32181 48 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32182  
32183 /* Execute */
32184 48 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_I64);
32185 48 retval = method(arg_self);
32186 48 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
32187 48 sv_2mortal( ST(0) );
32188 48 XSRETURN(1);
32189 }
32190  
32191 XS_INTERNAL(XS_Lucy_Store_InStream_read_u64);
32192 2007 XS_INTERNAL(XS_Lucy_Store_InStream_read_u64) {
32193 2007 dXSARGS;
32194 lucy_InStream* arg_self;
32195 LUCY_InStream_Read_U64_t method;
32196 uint64_t retval;
32197  
32198 CFISH_UNUSED_VAR(cv);
32199 2007 SP -= items;
32200 2007 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2007 2007
32201 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32202 }
32203  
32204 /* Extract vars from Perl stack. */
32205 2007 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32206  
32207 /* Execute */
32208 2007 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_U64);
32209 2007 retval = method(arg_self);
32210 2007 ST(0) = newSVuv(retval);
32211 2007 sv_2mortal( ST(0) );
32212 2007 XSRETURN(1);
32213 }
32214  
32215 XS_INTERNAL(XS_Lucy_Store_InStream_read_f32);
32216 101 XS_INTERNAL(XS_Lucy_Store_InStream_read_f32) {
32217 101 dXSARGS;
32218 lucy_InStream* arg_self;
32219 LUCY_InStream_Read_F32_t method;
32220 float retval;
32221  
32222 CFISH_UNUSED_VAR(cv);
32223 101 SP -= items;
32224 101 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 101 101
32225 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32226 }
32227  
32228 /* Extract vars from Perl stack. */
32229 101 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32230  
32231 /* Execute */
32232 101 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_F32);
32233 101 retval = method(arg_self);
32234 101 ST(0) = newSVnv(retval);
32235 101 sv_2mortal( ST(0) );
32236 101 XSRETURN(1);
32237 }
32238  
32239 XS_INTERNAL(XS_Lucy_Store_InStream_read_f64);
32240 101 XS_INTERNAL(XS_Lucy_Store_InStream_read_f64) {
32241 101 dXSARGS;
32242 lucy_InStream* arg_self;
32243 LUCY_InStream_Read_F64_t method;
32244 double retval;
32245  
32246 CFISH_UNUSED_VAR(cv);
32247 101 SP -= items;
32248 101 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 101 101
32249 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32250 }
32251  
32252 /* Extract vars from Perl stack. */
32253 101 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32254  
32255 /* Execute */
32256 101 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_F64);
32257 101 retval = method(arg_self);
32258 101 ST(0) = newSVnv(retval);
32259 101 sv_2mortal( ST(0) );
32260 101 XSRETURN(1);
32261 }
32262  
32263 XS_INTERNAL(XS_Lucy_Store_InStream_read_ci32);
32264 186 XS_INTERNAL(XS_Lucy_Store_InStream_read_ci32) {
32265 186 dXSARGS;
32266 lucy_InStream* arg_self;
32267 LUCY_InStream_Read_CI32_t method;
32268 int32_t retval;
32269  
32270 CFISH_UNUSED_VAR(cv);
32271 186 SP -= items;
32272 186 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 186 186
32273 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32274 }
32275  
32276 /* Extract vars from Perl stack. */
32277 186 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32278  
32279 /* Execute */
32280 186 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_CI32);
32281 186 retval = method(arg_self);
32282 186 ST(0) = newSViv(retval);
32283 186 sv_2mortal( ST(0) );
32284 186 XSRETURN(1);
32285 }
32286  
32287 XS_INTERNAL(XS_Lucy_Store_InStream_read_cu32);
32288 374 XS_INTERNAL(XS_Lucy_Store_InStream_read_cu32) {
32289 374 dXSARGS;
32290 lucy_InStream* arg_self;
32291 LUCY_InStream_Read_CU32_t method;
32292 uint32_t retval;
32293  
32294 CFISH_UNUSED_VAR(cv);
32295 374 SP -= items;
32296 374 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 374 374
32297 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32298 }
32299  
32300 /* Extract vars from Perl stack. */
32301 374 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32302  
32303 /* Execute */
32304 374 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_CU32);
32305 374 retval = method(arg_self);
32306 374 ST(0) = newSVuv(retval);
32307 374 sv_2mortal( ST(0) );
32308 374 XSRETURN(1);
32309 }
32310  
32311 XS_INTERNAL(XS_Lucy_Store_InStream_read_ci64);
32312 128 XS_INTERNAL(XS_Lucy_Store_InStream_read_ci64) {
32313 128 dXSARGS;
32314 lucy_InStream* arg_self;
32315 LUCY_InStream_Read_CI64_t method;
32316 int64_t retval;
32317  
32318 CFISH_UNUSED_VAR(cv);
32319 128 SP -= items;
32320 128 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 128 128
32321 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32322 }
32323  
32324 /* Extract vars from Perl stack. */
32325 128 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32326  
32327 /* Execute */
32328 128 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_CI64);
32329 128 retval = method(arg_self);
32330 128 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
32331 128 sv_2mortal( ST(0) );
32332 128 XSRETURN(1);
32333 }
32334  
32335 XS_INTERNAL(XS_Lucy_Store_InStream_read_cu64);
32336 2374 XS_INTERNAL(XS_Lucy_Store_InStream_read_cu64) {
32337 2374 dXSARGS;
32338 lucy_InStream* arg_self;
32339 LUCY_InStream_Read_CU64_t method;
32340 uint64_t retval;
32341  
32342 CFISH_UNUSED_VAR(cv);
32343 2374 SP -= items;
32344 2374 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2374 2374
32345 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32346 }
32347  
32348 /* Extract vars from Perl stack. */
32349 2374 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32350  
32351 /* Execute */
32352 2374 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Read_CU64);
32353 2374 retval = method(arg_self);
32354 2374 ST(0) = newSVuv(retval);
32355 2374 sv_2mortal( ST(0) );
32356 2374 XSRETURN(1);
32357 }
32358  
32359 XS_INTERNAL(XS_Lucy_Store_InStream_get_filename);
32360 0 XS_INTERNAL(XS_Lucy_Store_InStream_get_filename) {
32361 0 dXSARGS;
32362 lucy_InStream* arg_self;
32363 LUCY_InStream_Get_Filename_t method;
32364 cfish_String* retval;
32365  
32366 CFISH_UNUSED_VAR(cv);
32367 0 SP -= items;
32368 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32369 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32370 }
32371  
32372 /* Extract vars from Perl stack. */
32373 0 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32374  
32375 /* Execute */
32376 0 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Get_Filename);
32377 0 retval = method(arg_self);
32378 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
32379 0 sv_2mortal( ST(0) );
32380 0 XSRETURN(1);
32381 }
32382  
32383 XS_INTERNAL(XS_Lucy_Store_InStream_get_window);
32384 0 XS_INTERNAL(XS_Lucy_Store_InStream_get_window) {
32385 0 dXSARGS;
32386 lucy_InStream* arg_self;
32387 LUCY_InStream_Get_Window_t method;
32388 lucy_FileWindow* retval;
32389  
32390 CFISH_UNUSED_VAR(cv);
32391 0 SP -= items;
32392 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32393 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32394 }
32395  
32396 /* Extract vars from Perl stack. */
32397 0 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32398  
32399 /* Execute */
32400 0 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Get_Window);
32401 0 retval = method(arg_self);
32402 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
32403 0 sv_2mortal( ST(0) );
32404 0 XSRETURN(1);
32405 }
32406  
32407 XS_INTERNAL(XS_Lucy_Store_InStream_get_handle);
32408 0 XS_INTERNAL(XS_Lucy_Store_InStream_get_handle) {
32409 0 dXSARGS;
32410 lucy_InStream* arg_self;
32411 LUCY_InStream_Get_Handle_t method;
32412 lucy_FileHandle* retval;
32413  
32414 CFISH_UNUSED_VAR(cv);
32415 0 SP -= items;
32416 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32417 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32418 }
32419  
32420 /* Extract vars from Perl stack. */
32421 0 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32422  
32423 /* Execute */
32424 0 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Get_Handle);
32425 0 retval = method(arg_self);
32426 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
32427 0 sv_2mortal( ST(0) );
32428 0 XSRETURN(1);
32429 }
32430  
32431 XS_INTERNAL(XS_Lucy_Store_InStream_bytes_in_buf);
32432 0 XS_INTERNAL(XS_Lucy_Store_InStream_bytes_in_buf) {
32433 0 dXSARGS;
32434 lucy_InStream* arg_self;
32435 LUCY_InStream_Bytes_In_Buf_t method;
32436 int64_t retval;
32437  
32438 CFISH_UNUSED_VAR(cv);
32439 0 SP -= items;
32440 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32441 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32442 }
32443  
32444 /* Extract vars from Perl stack. */
32445 0 arg_self = (lucy_InStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_INSTREAM, NULL);
32446  
32447 /* Execute */
32448 0 method = CFISH_METHOD_PTR(LUCY_INSTREAM, LUCY_InStream_Bytes_In_Buf);
32449 0 retval = method(arg_self);
32450 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
32451 0 sv_2mortal( ST(0) );
32452 0 XSRETURN(1);
32453 }
32454  
32455 XS_INTERNAL(XS_Lucy_Store_Lock_new);
32456 0 XS_INTERNAL(XS_Lucy_Store_Lock_new) {
32457 0 dXSARGS;
32458 static const XSBind_ParamSpec param_specs[4] = {
32459 XSBIND_PARAM("folder", 1),
32460 XSBIND_PARAM("name", 1),
32461 XSBIND_PARAM("timeout", 0),
32462 XSBIND_PARAM("interval", 0)
32463 };
32464 int32_t locations[4];
32465 SV *sv;
32466 lucy_Lock* arg_self;
32467 lucy_Folder* arg_folder;
32468 cfish_String* arg_name;
32469 int32_t arg_timeout;
32470 int32_t arg_interval;
32471 lucy_Lock* retval;
32472  
32473 CFISH_UNUSED_VAR(cv);
32474 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
32475 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
32476 }
32477 0 SP -= items;
32478  
32479 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
32480 locations, 4);
32481 0 sv = ST(locations[0]);
32482 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
32483 0 sv = ST(locations[1]);
32484 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
32485 0 sv = ST(locations[2]);
32486 0 ▶ arg_timeout = locations[2] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_timeout = locations[2] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
32487 0 ▶ ? (int32_t)SvIV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : 0; 0 0 0
32488 0 sv = ST(locations[3]);
32489 0 ▶ arg_interval = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_interval = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
32490 0 ▶ ? (int32_t)SvIV(sv) : 100;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : 100; 0 0 0
32491 0 arg_self = (lucy_Lock*)XSBind_new_blank_obj(aTHX_ ST(0));
32492  
32493 0 retval = lucy_Lock_init(arg_self, arg_folder, arg_name, arg_timeout, arg_interval);
32494 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
32495 0 XSRETURN(1);
32496 }
32497  
32498  
32499 XS_INTERNAL(XS_Lucy_Store_Lock_obtain_shared);
32500 0 XS_INTERNAL(XS_Lucy_Store_Lock_obtain_shared) {
32501 0 dXSARGS;
32502 lucy_Lock* arg_self;
32503 LUCY_Lock_Obtain_Shared_t method;
32504 bool retval;
32505  
32506 CFISH_UNUSED_VAR(cv);
32507 0 SP -= items;
32508 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32509 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32510 }
32511  
32512 /* Extract vars from Perl stack. */
32513 0 arg_self = (lucy_Lock*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LOCK, NULL);
32514  
32515 /* Execute */
32516 0 method = CFISH_METHOD_PTR(LUCY_LOCK, LUCY_Lock_Obtain_Shared);
32517 0 retval = method(arg_self);
32518 0 ST(0) = newSViv(!!retval);
32519 0 sv_2mortal( ST(0) );
32520 0 XSRETURN(1);
32521 }
32522  
32523 XS_INTERNAL(XS_Lucy_Store_Lock_obtain_exclusive);
32524 0 XS_INTERNAL(XS_Lucy_Store_Lock_obtain_exclusive) {
32525 0 dXSARGS;
32526 lucy_Lock* arg_self;
32527 LUCY_Lock_Obtain_Exclusive_t method;
32528 bool retval;
32529  
32530 CFISH_UNUSED_VAR(cv);
32531 0 SP -= items;
32532 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32533 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32534 }
32535  
32536 /* Extract vars from Perl stack. */
32537 0 arg_self = (lucy_Lock*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LOCK, NULL);
32538  
32539 /* Execute */
32540 0 method = CFISH_METHOD_PTR(LUCY_LOCK, LUCY_Lock_Obtain_Exclusive);
32541 0 retval = method(arg_self);
32542 0 ST(0) = newSViv(!!retval);
32543 0 sv_2mortal( ST(0) );
32544 0 XSRETURN(1);
32545 }
32546  
32547 XS_INTERNAL(XS_Lucy_Store_Lock_request_shared);
32548 0 XS_INTERNAL(XS_Lucy_Store_Lock_request_shared) {
32549 0 dXSARGS;
32550 lucy_Lock* arg_self;
32551 LUCY_Lock_Request_Shared_t method;
32552 bool retval;
32553  
32554 CFISH_UNUSED_VAR(cv);
32555 0 SP -= items;
32556 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32557 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32558 }
32559  
32560 /* Extract vars from Perl stack. */
32561 0 arg_self = (lucy_Lock*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LOCK, NULL);
32562  
32563 /* Execute */
32564 0 method = CFISH_METHOD_PTR(LUCY_LOCK, LUCY_Lock_Request_Shared);
32565 0 retval = method(arg_self);
32566 0 ST(0) = newSViv(!!retval);
32567 0 sv_2mortal( ST(0) );
32568 0 XSRETURN(1);
32569 }
32570  
32571 XS_INTERNAL(XS_Lucy_Store_Lock_request_exclusive);
32572 0 XS_INTERNAL(XS_Lucy_Store_Lock_request_exclusive) {
32573 0 dXSARGS;
32574 lucy_Lock* arg_self;
32575 LUCY_Lock_Request_Exclusive_t method;
32576 bool retval;
32577  
32578 CFISH_UNUSED_VAR(cv);
32579 0 SP -= items;
32580 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32581 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32582 }
32583  
32584 /* Extract vars from Perl stack. */
32585 0 arg_self = (lucy_Lock*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LOCK, NULL);
32586  
32587 /* Execute */
32588 0 method = CFISH_METHOD_PTR(LUCY_LOCK, LUCY_Lock_Request_Exclusive);
32589 0 retval = method(arg_self);
32590 0 ST(0) = newSViv(!!retval);
32591 0 sv_2mortal( ST(0) );
32592 0 XSRETURN(1);
32593 }
32594  
32595 XS_INTERNAL(XS_Lucy_Store_Lock_release);
32596 0 XS_INTERNAL(XS_Lucy_Store_Lock_release) {
32597 0 dXSARGS;
32598 lucy_Lock* arg_self;
32599 LUCY_Lock_Release_t method;
32600  
32601 CFISH_UNUSED_VAR(cv);
32602 0 SP -= items;
32603 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32604 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32605 }
32606  
32607 /* Extract vars from Perl stack. */
32608 0 arg_self = (lucy_Lock*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LOCK, NULL);
32609  
32610 /* Execute */
32611 0 method = CFISH_METHOD_PTR(LUCY_LOCK, LUCY_Lock_Release);
32612 0 method(arg_self);
32613 0 XSRETURN(0);
32614 }
32615  
32616 XS_INTERNAL(XS_Lucy_Store_LockFileLock_new);
32617 0 XS_INTERNAL(XS_Lucy_Store_LockFileLock_new) {
32618 0 dXSARGS;
32619 static const XSBind_ParamSpec param_specs[6] = {
32620 XSBIND_PARAM("folder", 1),
32621 XSBIND_PARAM("name", 1),
32622 XSBIND_PARAM("host", 1),
32623 XSBIND_PARAM("timeout", 0),
32624 XSBIND_PARAM("interval", 0),
32625 XSBIND_PARAM("exclusive_only", 1)
32626 };
32627 int32_t locations[6];
32628 SV *sv;
32629 lucy_LockFileLock* arg_self;
32630 lucy_Folder* arg_folder;
32631 cfish_String* arg_name;
32632 cfish_String* arg_host;
32633 int32_t arg_timeout;
32634 int32_t arg_interval;
32635 bool arg_exclusive_only;
32636 lucy_LockFileLock* retval;
32637  
32638 CFISH_UNUSED_VAR(cv);
32639 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
32640 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
32641 }
32642 0 SP -= items;
32643  
32644 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
32645 locations, 6);
32646 0 sv = ST(locations[0]);
32647 0 arg_folder = (lucy_Folder*)XSBind_arg_to_cfish(aTHX_ sv, "folder", LUCY_FOLDER, NULL);
32648 0 sv = ST(locations[1]);
32649 0 arg_name = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "name", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
32650 0 sv = ST(locations[2]);
32651 0 arg_host = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "host", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
32652 0 sv = ST(locations[3]);
32653 0 ▶ arg_timeout = locations[3] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_timeout = locations[3] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
32654 0 ▶ ? (int32_t)SvIV(sv) : 0;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : 0; 0 0 0
32655 0 sv = ST(locations[4]);
32656 0 ▶ arg_interval = locations[4] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_interval = locations[4] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
32657 0 ▶ ? (int32_t)SvIV(sv) : 100;
Branch: 1 branch
BranchTrueFalseTotal
? (int32_t)SvIV(sv) : 100; 0 0 0
32658 0 sv = ST(locations[5]);
32659 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
32660 0 XSBind_undef_arg_error(aTHX_ "exclusive_only");
32661 }
32662 0 arg_exclusive_only = XSBind_sv_true(aTHX_ sv);
32663 0 arg_self = (lucy_LockFileLock*)XSBind_new_blank_obj(aTHX_ ST(0));
32664  
32665 0 retval = lucy_LFLock_init(arg_self, arg_folder, arg_name, arg_host, arg_timeout, arg_interval, arg_exclusive_only);
32666 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
32667 0 XSRETURN(1);
32668 }
32669  
32670  
32671 XS_INTERNAL(XS_Lucy_Store_LockFileLock_request_shared);
32672 0 XS_INTERNAL(XS_Lucy_Store_LockFileLock_request_shared) {
32673 0 dXSARGS;
32674 lucy_LockFileLock* arg_self;
32675 LUCY_LFLock_Request_Shared_t method;
32676 bool retval;
32677  
32678 CFISH_UNUSED_VAR(cv);
32679 0 SP -= items;
32680 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32681 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32682 }
32683  
32684 /* Extract vars from Perl stack. */
32685 0 arg_self = (lucy_LockFileLock*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LOCKFILELOCK, NULL);
32686  
32687 /* Execute */
32688 0 method = CFISH_METHOD_PTR(LUCY_LOCKFILELOCK, LUCY_LFLock_Request_Shared);
32689 0 retval = method(arg_self);
32690 0 ST(0) = newSViv(!!retval);
32691 0 sv_2mortal( ST(0) );
32692 0 XSRETURN(1);
32693 }
32694  
32695 XS_INTERNAL(XS_Lucy_Store_LockFileLock_request_exclusive);
32696 0 XS_INTERNAL(XS_Lucy_Store_LockFileLock_request_exclusive) {
32697 0 dXSARGS;
32698 lucy_LockFileLock* arg_self;
32699 LUCY_LFLock_Request_Exclusive_t method;
32700 bool retval;
32701  
32702 CFISH_UNUSED_VAR(cv);
32703 0 SP -= items;
32704 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32705 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32706 }
32707  
32708 /* Extract vars from Perl stack. */
32709 0 arg_self = (lucy_LockFileLock*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LOCKFILELOCK, NULL);
32710  
32711 /* Execute */
32712 0 method = CFISH_METHOD_PTR(LUCY_LOCKFILELOCK, LUCY_LFLock_Request_Exclusive);
32713 0 retval = method(arg_self);
32714 0 ST(0) = newSViv(!!retval);
32715 0 sv_2mortal( ST(0) );
32716 0 XSRETURN(1);
32717 }
32718  
32719 XS_INTERNAL(XS_Lucy_Store_LockFileLock_release);
32720 0 XS_INTERNAL(XS_Lucy_Store_LockFileLock_release) {
32721 0 dXSARGS;
32722 lucy_LockFileLock* arg_self;
32723 LUCY_LFLock_Release_t method;
32724  
32725 CFISH_UNUSED_VAR(cv);
32726 0 SP -= items;
32727 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32728 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32729 }
32730  
32731 /* Extract vars from Perl stack. */
32732 0 arg_self = (lucy_LockFileLock*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_LOCKFILELOCK, NULL);
32733  
32734 /* Execute */
32735 0 method = CFISH_METHOD_PTR(LUCY_LOCKFILELOCK, LUCY_LFLock_Release);
32736 0 method(arg_self);
32737 0 XSRETURN(0);
32738 }
32739  
32740 XS_INTERNAL(XS_Lucy_Store_LockErr_new);
32741 0 XS_INTERNAL(XS_Lucy_Store_LockErr_new) {
32742 0 dXSARGS;
32743 static const XSBind_ParamSpec param_specs[1] = {
32744 XSBIND_PARAM("message", 1)
32745 };
32746 int32_t locations[1];
32747 SV *sv;
32748 lucy_LockErr* arg_self;
32749 cfish_String* arg_message;
32750 lucy_LockErr* retval;
32751  
32752 CFISH_UNUSED_VAR(cv);
32753 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
32754 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
32755 }
32756 0 SP -= items;
32757  
32758 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
32759 locations, 1);
32760 0 sv = ST(locations[0]);
32761 0 arg_message = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "message", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
32762 0 arg_self = (lucy_LockErr*)XSBind_new_blank_obj(aTHX_ ST(0));
32763  
32764 0 retval = lucy_LockErr_init(arg_self, arg_message);
32765 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
32766 0 XSRETURN(1);
32767 }
32768  
32769  
32770 XS_INTERNAL(XS_Lucy_Store_OutStream_open);
32771 33 XS_INTERNAL(XS_Lucy_Store_OutStream_open) {
32772 33 dXSARGS;
32773 static const XSBind_ParamSpec param_specs[1] = {
32774 XSBIND_PARAM("file", 1)
32775 };
32776 int32_t locations[1];
32777 SV *sv;
32778 lucy_OutStream* arg_self;
32779 cfish_Obj* arg_file;
32780 lucy_OutStream* retval;
32781  
32782 CFISH_UNUSED_VAR(cv);
32783 33 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 33 33
32784 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
32785 }
32786 33 SP -= items;
32787  
32788 33 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
32789 locations, 1);
32790 33 sv = ST(locations[0]);
32791 33 arg_file = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "file", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
32792 33 arg_self = (lucy_OutStream*)XSBind_new_blank_obj(aTHX_ ST(0));
32793  
32794 33 retval = lucy_OutStream_do_open(arg_self, arg_file);
32795 33 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
32796 33 XSRETURN(1);
32797 }
32798  
32799  
32800 XS_INTERNAL(XS_Lucy_Store_OutStream_get_path);
32801 0 XS_INTERNAL(XS_Lucy_Store_OutStream_get_path) {
32802 0 dXSARGS;
32803 lucy_OutStream* arg_self;
32804 LUCY_OutStream_Get_Path_t method;
32805 cfish_String* retval;
32806  
32807 CFISH_UNUSED_VAR(cv);
32808 0 SP -= items;
32809 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32810 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32811 }
32812  
32813 /* Extract vars from Perl stack. */
32814 0 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
32815  
32816 /* Execute */
32817 0 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Get_Path);
32818 0 retval = method(arg_self);
32819 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
32820 0 sv_2mortal( ST(0) );
32821 0 XSRETURN(1);
32822 }
32823  
32824 XS_INTERNAL(XS_Lucy_Store_OutStream_tell);
32825 51 XS_INTERNAL(XS_Lucy_Store_OutStream_tell) {
32826 51 dXSARGS;
32827 lucy_OutStream* arg_self;
32828 LUCY_OutStream_Tell_t method;
32829 int64_t retval;
32830  
32831 CFISH_UNUSED_VAR(cv);
32832 51 SP -= items;
32833 51 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 51 51
32834 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32835 }
32836  
32837 /* Extract vars from Perl stack. */
32838 51 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
32839  
32840 /* Execute */
32841 51 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Tell);
32842 51 retval = method(arg_self);
32843 51 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
32844 51 sv_2mortal( ST(0) );
32845 51 XSRETURN(1);
32846 }
32847  
32848 XS_INTERNAL(XS_Lucy_Store_OutStream_align);
32849 0 XS_INTERNAL(XS_Lucy_Store_OutStream_align) {
32850 0 dXSARGS;
32851 SV *sv;
32852 lucy_OutStream* arg_self;
32853 int64_t arg_modulus;
32854 LUCY_OutStream_Align_t method;
32855 int64_t retval;
32856  
32857 CFISH_UNUSED_VAR(cv);
32858 0 SP -= items;
32859 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
32860 0 XSBind_invalid_args_error(aTHX_ cv, "self, modulus");
32861 }
32862  
32863 /* Extract vars from Perl stack. */
32864 0 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
32865 0 sv = ST(1);
32866 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
32867 0 XSBind_undef_arg_error(aTHX_ "modulus");
32868 }
32869 0 arg_modulus = (int64_t)SvNV(sv);
32870  
32871 /* Execute */
32872 0 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Align);
32873 0 retval = method(arg_self, arg_modulus);
32874 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
32875 0 sv_2mortal( ST(0) );
32876 0 XSRETURN(1);
32877 }
32878  
32879 XS_INTERNAL(XS_Lucy_Store_OutStream_flush);
32880 2 XS_INTERNAL(XS_Lucy_Store_OutStream_flush) {
32881 2 dXSARGS;
32882 lucy_OutStream* arg_self;
32883 LUCY_OutStream_Flush_t method;
32884  
32885 CFISH_UNUSED_VAR(cv);
32886 2 SP -= items;
32887 2 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 2 2
32888 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32889 }
32890  
32891 /* Extract vars from Perl stack. */
32892 2 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
32893  
32894 /* Execute */
32895 2 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Flush);
32896 2 method(arg_self);
32897 2 XSRETURN(0);
32898 }
32899  
32900 XS_INTERNAL(XS_Lucy_Store_OutStream_length);
32901 0 XS_INTERNAL(XS_Lucy_Store_OutStream_length) {
32902 0 dXSARGS;
32903 lucy_OutStream* arg_self;
32904 LUCY_OutStream_Length_t method;
32905 int64_t retval;
32906  
32907 CFISH_UNUSED_VAR(cv);
32908 0 SP -= items;
32909 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
32910 0 XSBind_invalid_args_error(aTHX_ cv, "self");
32911 }
32912  
32913 /* Extract vars from Perl stack. */
32914 0 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
32915  
32916 /* Execute */
32917 0 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Length);
32918 0 retval = method(arg_self);
32919 0 ST(0) = sizeof(IV) == 8 ? newSViv((IV)retval) : newSVnv((NV)retval);
32920 0 sv_2mortal( ST(0) );
32921 0 XSRETURN(1);
32922 }
32923  
32924 XS_INTERNAL(XS_Lucy_Store_OutStream_grow);
32925 0 XS_INTERNAL(XS_Lucy_Store_OutStream_grow) {
32926 0 dXSARGS;
32927 SV *sv;
32928 lucy_OutStream* arg_self;
32929 int64_t arg_length;
32930 LUCY_OutStream_Grow_t method;
32931  
32932 CFISH_UNUSED_VAR(cv);
32933 0 SP -= items;
32934 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
32935 0 XSBind_invalid_args_error(aTHX_ cv, "self, length");
32936 }
32937  
32938 /* Extract vars from Perl stack. */
32939 0 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
32940 0 sv = ST(1);
32941 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
32942 0 XSBind_undef_arg_error(aTHX_ "length");
32943 }
32944 0 arg_length = (int64_t)SvNV(sv);
32945  
32946 /* Execute */
32947 0 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Grow);
32948 0 method(arg_self, arg_length);
32949 0 XSRETURN(0);
32950 }
32951  
32952 XS_INTERNAL(XS_Lucy_Store_OutStream_write_i8);
32953 256 XS_INTERNAL(XS_Lucy_Store_OutStream_write_i8) {
32954 256 dXSARGS;
32955 SV *sv;
32956 lucy_OutStream* arg_self;
32957 int8_t arg_value;
32958 LUCY_OutStream_Write_I8_t method;
32959  
32960 CFISH_UNUSED_VAR(cv);
32961 256 SP -= items;
32962 256 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 256 256
32963 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
32964 }
32965  
32966 /* Extract vars from Perl stack. */
32967 256 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
32968 256 sv = ST(1);
32969 256 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 256 256
32970 0 XSBind_undef_arg_error(aTHX_ "value");
32971 }
32972 256 arg_value = (int8_t)SvIV(sv);
32973  
32974 /* Execute */
32975 256 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_I8);
32976 256 method(arg_self, arg_value);
32977 256 XSRETURN(0);
32978 }
32979  
32980 XS_INTERNAL(XS_Lucy_Store_OutStream_write_u8);
32981 256 XS_INTERNAL(XS_Lucy_Store_OutStream_write_u8) {
32982 256 dXSARGS;
32983 SV *sv;
32984 lucy_OutStream* arg_self;
32985 uint8_t arg_value;
32986 LUCY_OutStream_Write_U8_t method;
32987  
32988 CFISH_UNUSED_VAR(cv);
32989 256 SP -= items;
32990 256 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 256 256
32991 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
32992 }
32993  
32994 /* Extract vars from Perl stack. */
32995 256 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
32996 256 sv = ST(1);
32997 256 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 256 256
32998 0 XSBind_undef_arg_error(aTHX_ "value");
32999 }
33000 256 arg_value = (uint8_t)SvUV(sv);
33001  
33002 /* Execute */
33003 256 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_U8);
33004 256 method(arg_self, arg_value);
33005 256 XSRETURN(0);
33006 }
33007  
33008 XS_INTERNAL(XS_Lucy_Store_OutStream_write_i32);
33009 2003 XS_INTERNAL(XS_Lucy_Store_OutStream_write_i32) {
33010 2003 dXSARGS;
33011 SV *sv;
33012 lucy_OutStream* arg_self;
33013 int32_t arg_value;
33014 LUCY_OutStream_Write_I32_t method;
33015  
33016 CFISH_UNUSED_VAR(cv);
33017 2003 SP -= items;
33018 2003 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2003 2003
33019 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33020 }
33021  
33022 /* Extract vars from Perl stack. */
33023 2003 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33024 2003 sv = ST(1);
33025 2003 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2003 2003
33026 0 XSBind_undef_arg_error(aTHX_ "value");
33027 }
33028 2003 arg_value = (int32_t)SvIV(sv);
33029  
33030 /* Execute */
33031 2003 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_I32);
33032 2003 method(arg_self, arg_value);
33033 2003 XSRETURN(0);
33034 }
33035  
33036 XS_INTERNAL(XS_Lucy_Store_OutStream_write_u32);
33037 2004 XS_INTERNAL(XS_Lucy_Store_OutStream_write_u32) {
33038 2004 dXSARGS;
33039 SV *sv;
33040 lucy_OutStream* arg_self;
33041 uint32_t arg_value;
33042 LUCY_OutStream_Write_U32_t method;
33043  
33044 CFISH_UNUSED_VAR(cv);
33045 2004 SP -= items;
33046 2004 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2004 2004
33047 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33048 }
33049  
33050 /* Extract vars from Perl stack. */
33051 2004 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33052 2004 sv = ST(1);
33053 2004 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2004 2004
33054 0 XSBind_undef_arg_error(aTHX_ "value");
33055 }
33056 2004 arg_value = (uint32_t)SvUV(sv);
33057  
33058 /* Execute */
33059 2004 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_U32);
33060 2004 method(arg_self, arg_value);
33061 2004 XSRETURN(0);
33062 }
33063  
33064 XS_INTERNAL(XS_Lucy_Store_OutStream_write_i64);
33065 42 XS_INTERNAL(XS_Lucy_Store_OutStream_write_i64) {
33066 42 dXSARGS;
33067 SV *sv;
33068 lucy_OutStream* arg_self;
33069 int64_t arg_value;
33070 LUCY_OutStream_Write_I64_t method;
33071  
33072 CFISH_UNUSED_VAR(cv);
33073 42 SP -= items;
33074 42 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 42 42
33075 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33076 }
33077  
33078 /* Extract vars from Perl stack. */
33079 42 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33080 42 sv = ST(1);
33081 42 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 42 42
33082 0 XSBind_undef_arg_error(aTHX_ "value");
33083 }
33084 42 arg_value = (int64_t)SvNV(sv);
33085  
33086 /* Execute */
33087 42 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_I64);
33088 42 method(arg_self, arg_value);
33089 42 XSRETURN(0);
33090 }
33091  
33092 XS_INTERNAL(XS_Lucy_Store_OutStream_write_u64);
33093 2007 XS_INTERNAL(XS_Lucy_Store_OutStream_write_u64) {
33094 2007 dXSARGS;
33095 SV *sv;
33096 lucy_OutStream* arg_self;
33097 uint64_t arg_value;
33098 LUCY_OutStream_Write_U64_t method;
33099  
33100 CFISH_UNUSED_VAR(cv);
33101 2007 SP -= items;
33102 2007 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2007 2007
33103 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33104 }
33105  
33106 /* Extract vars from Perl stack. */
33107 2007 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33108 2007 sv = ST(1);
33109 2007 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2007 2007
33110 0 XSBind_undef_arg_error(aTHX_ "value");
33111 }
33112 2007 arg_value = (uint64_t)SvNV(sv);
33113  
33114 /* Execute */
33115 2007 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_U64);
33116 2007 method(arg_self, arg_value);
33117 2007 XSRETURN(0);
33118 }
33119  
33120 XS_INTERNAL(XS_Lucy_Store_OutStream_write_ci32);
33121 186 XS_INTERNAL(XS_Lucy_Store_OutStream_write_ci32) {
33122 186 dXSARGS;
33123 SV *sv;
33124 lucy_OutStream* arg_self;
33125 int32_t arg_value;
33126 LUCY_OutStream_Write_CI32_t method;
33127  
33128 CFISH_UNUSED_VAR(cv);
33129 186 SP -= items;
33130 186 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 186 186
33131 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33132 }
33133  
33134 /* Extract vars from Perl stack. */
33135 186 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33136 186 sv = ST(1);
33137 186 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 186 186
33138 0 XSBind_undef_arg_error(aTHX_ "value");
33139 }
33140 186 arg_value = (int32_t)SvIV(sv);
33141  
33142 /* Execute */
33143 186 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_CI32);
33144 186 method(arg_self, arg_value);
33145 186 XSRETURN(0);
33146 }
33147  
33148 XS_INTERNAL(XS_Lucy_Store_OutStream_write_cu32);
33149 374 XS_INTERNAL(XS_Lucy_Store_OutStream_write_cu32) {
33150 374 dXSARGS;
33151 SV *sv;
33152 lucy_OutStream* arg_self;
33153 uint32_t arg_value;
33154 LUCY_OutStream_Write_CU32_t method;
33155  
33156 CFISH_UNUSED_VAR(cv);
33157 374 SP -= items;
33158 374 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 374 374
33159 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33160 }
33161  
33162 /* Extract vars from Perl stack. */
33163 374 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33164 374 sv = ST(1);
33165 374 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 374 374
33166 0 XSBind_undef_arg_error(aTHX_ "value");
33167 }
33168 374 arg_value = (uint32_t)SvUV(sv);
33169  
33170 /* Execute */
33171 374 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_CU32);
33172 374 method(arg_self, arg_value);
33173 374 XSRETURN(0);
33174 }
33175  
33176 XS_INTERNAL(XS_Lucy_Store_OutStream_write_ci64);
33177 128 XS_INTERNAL(XS_Lucy_Store_OutStream_write_ci64) {
33178 128 dXSARGS;
33179 SV *sv;
33180 lucy_OutStream* arg_self;
33181 int64_t arg_value;
33182 LUCY_OutStream_Write_CI64_t method;
33183  
33184 CFISH_UNUSED_VAR(cv);
33185 128 SP -= items;
33186 128 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 128 128
33187 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33188 }
33189  
33190 /* Extract vars from Perl stack. */
33191 128 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33192 128 sv = ST(1);
33193 128 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 128 128
33194 0 XSBind_undef_arg_error(aTHX_ "value");
33195 }
33196 128 arg_value = (int64_t)SvNV(sv);
33197  
33198 /* Execute */
33199 128 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_CI64);
33200 128 method(arg_self, arg_value);
33201 128 XSRETURN(0);
33202 }
33203  
33204 XS_INTERNAL(XS_Lucy_Store_OutStream_write_cu64);
33205 2375 XS_INTERNAL(XS_Lucy_Store_OutStream_write_cu64) {
33206 2375 dXSARGS;
33207 SV *sv;
33208 lucy_OutStream* arg_self;
33209 uint64_t arg_value;
33210 LUCY_OutStream_Write_CU64_t method;
33211  
33212 CFISH_UNUSED_VAR(cv);
33213 2375 SP -= items;
33214 2375 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 2375 2375
33215 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33216 }
33217  
33218 /* Extract vars from Perl stack. */
33219 2375 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33220 2375 sv = ST(1);
33221 2375 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 2375 2375
33222 0 XSBind_undef_arg_error(aTHX_ "value");
33223 }
33224 2375 arg_value = (uint64_t)SvNV(sv);
33225  
33226 /* Execute */
33227 2375 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_CU64);
33228 2375 method(arg_self, arg_value);
33229 2375 XSRETURN(0);
33230 }
33231  
33232 XS_INTERNAL(XS_Lucy_Store_OutStream_write_f32);
33233 101 XS_INTERNAL(XS_Lucy_Store_OutStream_write_f32) {
33234 101 dXSARGS;
33235 SV *sv;
33236 lucy_OutStream* arg_self;
33237 float arg_value;
33238 LUCY_OutStream_Write_F32_t method;
33239  
33240 CFISH_UNUSED_VAR(cv);
33241 101 SP -= items;
33242 101 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 101 101
33243 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33244 }
33245  
33246 /* Extract vars from Perl stack. */
33247 101 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33248 101 sv = ST(1);
33249 101 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 101 101
33250 0 XSBind_undef_arg_error(aTHX_ "value");
33251 }
33252 101 arg_value = (float)SvNV(sv);
33253  
33254 /* Execute */
33255 101 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_F32);
33256 101 method(arg_self, arg_value);
33257 101 XSRETURN(0);
33258 }
33259  
33260 XS_INTERNAL(XS_Lucy_Store_OutStream_write_f64);
33261 101 XS_INTERNAL(XS_Lucy_Store_OutStream_write_f64) {
33262 101 dXSARGS;
33263 SV *sv;
33264 lucy_OutStream* arg_self;
33265 double arg_value;
33266 LUCY_OutStream_Write_F64_t method;
33267  
33268 CFISH_UNUSED_VAR(cv);
33269 101 SP -= items;
33270 101 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 101 101
33271 0 XSBind_invalid_args_error(aTHX_ cv, "self, value");
33272 }
33273  
33274 /* Extract vars from Perl stack. */
33275 101 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33276 101 sv = ST(1);
33277 101 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 101 101
33278 0 XSBind_undef_arg_error(aTHX_ "value");
33279 }
33280 101 arg_value = SvNV(sv);
33281  
33282 /* Execute */
33283 101 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Write_F64);
33284 101 method(arg_self, arg_value);
33285 101 XSRETURN(0);
33286 }
33287  
33288 XS_INTERNAL(XS_Lucy_Store_OutStream_absorb);
33289 0 XS_INTERNAL(XS_Lucy_Store_OutStream_absorb) {
33290 0 dXSARGS;
33291 SV *sv;
33292 lucy_OutStream* arg_self;
33293 lucy_InStream* arg_instream;
33294 LUCY_OutStream_Absorb_t method;
33295  
33296 CFISH_UNUSED_VAR(cv);
33297 0 SP -= items;
33298 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
33299 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
33300 }
33301  
33302 /* Extract vars from Perl stack. */
33303 0 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33304 0 sv = ST(1);
33305 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
33306  
33307 /* Execute */
33308 0 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Absorb);
33309 0 method(arg_self, arg_instream);
33310 0 XSRETURN(0);
33311 }
33312  
33313 XS_INTERNAL(XS_Lucy_Store_OutStream_close);
33314 49 XS_INTERNAL(XS_Lucy_Store_OutStream_close) {
33315 49 dXSARGS;
33316 lucy_OutStream* arg_self;
33317 LUCY_OutStream_Close_t method;
33318  
33319 CFISH_UNUSED_VAR(cv);
33320 49 SP -= items;
33321 49 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 49 49
33322 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33323 }
33324  
33325 /* Extract vars from Perl stack. */
33326 49 arg_self = (lucy_OutStream*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_OUTSTREAM, NULL);
33327  
33328 /* Execute */
33329 49 method = CFISH_METHOD_PTR(LUCY_OUTSTREAM, LUCY_OutStream_Close);
33330 49 method(arg_self);
33331 49 XSRETURN(0);
33332 }
33333  
33334 XS_INTERNAL(XS_Lucy_Store_RAMFile_new);
33335 30 XS_INTERNAL(XS_Lucy_Store_RAMFile_new) {
33336 30 dXSARGS;
33337 static const XSBind_ParamSpec param_specs[2] = {
33338 XSBIND_PARAM("contents", 0),
33339 XSBIND_PARAM("read_only", 0)
33340 };
33341 int32_t locations[2];
33342 SV *sv;
33343 lucy_RAMFile* arg_self;
33344 cfish_ByteBuf* arg_contents;
33345 bool arg_read_only;
33346 lucy_RAMFile* retval;
33347  
33348 CFISH_UNUSED_VAR(cv);
33349 30 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 30 30
33350 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
33351 }
33352 30 SP -= items;
33353  
33354 30 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
33355 locations, 2);
33356 30 sv = ST(locations[0]);
33357 30 ▶ arg_contents = locations[0] < items ? (cfish_ByteBuf*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "contents", CFISH_BYTEBUF, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_contents = locations[0] < items ? (cfish_ByteBuf*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "contents", CFISH_BYTEBUF, NULL) : NULL; 0 30 30
33358 30 sv = ST(locations[1]);
33359 30 ▶ arg_read_only = locations[1] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 2 branches
BranchTrueFalseTotal
arg_read_only = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 30 30
arg_read_only = locations[1] < items && XSBind_sv_defined(aTHX_ sv) 0 0 0
33360 30 ▶ ? XSBind_sv_true(aTHX_ sv) : false;
Branch: 2 branches
BranchTrueFalseTotal
? XSBind_sv_true(aTHX_ sv) : false; 0 30 30
? XSBind_sv_true(aTHX_ sv) : false; 0 0 0
33361 30 arg_self = (lucy_RAMFile*)XSBind_new_blank_obj(aTHX_ ST(0));
33362  
33363 30 retval = lucy_RAMFile_init(arg_self, arg_contents, arg_read_only);
33364 30 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
33365 30 XSRETURN(1);
33366 }
33367  
33368  
33369 XS_INTERNAL(XS_Lucy_Store_RAMFile_get_contents);
33370 9 XS_INTERNAL(XS_Lucy_Store_RAMFile_get_contents) {
33371 9 dXSARGS;
33372 lucy_RAMFile* arg_self;
33373 LUCY_RAMFile_Get_Contents_t method;
33374 cfish_ByteBuf* retval;
33375  
33376 CFISH_UNUSED_VAR(cv);
33377 9 SP -= items;
33378 9 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 9 9
33379 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33380 }
33381  
33382 /* Extract vars from Perl stack. */
33383 9 arg_self = (lucy_RAMFile*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILE, NULL);
33384  
33385 /* Execute */
33386 9 method = CFISH_METHOD_PTR(LUCY_RAMFILE, LUCY_RAMFile_Get_Contents);
33387 9 retval = method(arg_self);
33388 9 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
33389 9 sv_2mortal( ST(0) );
33390 9 XSRETURN(1);
33391 }
33392  
33393 XS_INTERNAL(XS_Lucy_Store_RAMFile_read_only);
33394 0 XS_INTERNAL(XS_Lucy_Store_RAMFile_read_only) {
33395 0 dXSARGS;
33396 lucy_RAMFile* arg_self;
33397 LUCY_RAMFile_Read_Only_t method;
33398 bool retval;
33399  
33400 CFISH_UNUSED_VAR(cv);
33401 0 SP -= items;
33402 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33403 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33404 }
33405  
33406 /* Extract vars from Perl stack. */
33407 0 arg_self = (lucy_RAMFile*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILE, NULL);
33408  
33409 /* Execute */
33410 0 method = CFISH_METHOD_PTR(LUCY_RAMFILE, LUCY_RAMFile_Read_Only);
33411 0 retval = method(arg_self);
33412 0 ST(0) = newSViv(!!retval);
33413 0 sv_2mortal( ST(0) );
33414 0 XSRETURN(1);
33415 }
33416  
33417 XS_INTERNAL(XS_Lucy_Store_RAMFile_set_read_only);
33418 0 XS_INTERNAL(XS_Lucy_Store_RAMFile_set_read_only) {
33419 0 dXSARGS;
33420 SV *sv;
33421 lucy_RAMFile* arg_self;
33422 bool arg_read_only;
33423 LUCY_RAMFile_Set_Read_Only_t method;
33424  
33425 CFISH_UNUSED_VAR(cv);
33426 0 SP -= items;
33427 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
33428 0 XSBind_invalid_args_error(aTHX_ cv, "self, read_only");
33429 }
33430  
33431 /* Extract vars from Perl stack. */
33432 0 arg_self = (lucy_RAMFile*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAMFILE, NULL);
33433 0 sv = ST(1);
33434 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
33435 0 XSBind_undef_arg_error(aTHX_ "read_only");
33436 }
33437 0 arg_read_only = XSBind_sv_true(aTHX_ sv);
33438  
33439 /* Execute */
33440 0 method = CFISH_METHOD_PTR(LUCY_RAMFILE, LUCY_RAMFile_Set_Read_Only);
33441 0 method(arg_self, arg_read_only);
33442 0 XSRETURN(0);
33443 }
33444  
33445 XS_INTERNAL(XS_Lucy_Util_MemoryPool_new);
33446 0 XS_INTERNAL(XS_Lucy_Util_MemoryPool_new) {
33447 0 dXSARGS;
33448 static const XSBind_ParamSpec param_specs[1] = {
33449 XSBIND_PARAM("arena_size", 1)
33450 };
33451 int32_t locations[1];
33452 SV *sv;
33453 lucy_MemoryPool* arg_self;
33454 uint32_t arg_arena_size;
33455 lucy_MemoryPool* retval;
33456  
33457 CFISH_UNUSED_VAR(cv);
33458 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
33459 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
33460 }
33461 0 SP -= items;
33462  
33463 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
33464 locations, 1);
33465 0 sv = ST(locations[0]);
33466 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
33467 0 XSBind_undef_arg_error(aTHX_ "arena_size");
33468 }
33469 0 arg_arena_size = (uint32_t)SvUV(sv);
33470 0 arg_self = (lucy_MemoryPool*)XSBind_new_blank_obj(aTHX_ ST(0));
33471  
33472 0 retval = lucy_MemPool_init(arg_self, arg_arena_size);
33473 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
33474 0 XSRETURN(1);
33475 }
33476  
33477  
33478 XS_INTERNAL(XS_Lucy_Util_MemoryPool_release_all);
33479 0 XS_INTERNAL(XS_Lucy_Util_MemoryPool_release_all) {
33480 0 dXSARGS;
33481 lucy_MemoryPool* arg_self;
33482 LUCY_MemPool_Release_All_t method;
33483  
33484 CFISH_UNUSED_VAR(cv);
33485 0 SP -= items;
33486 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33487 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33488 }
33489  
33490 /* Extract vars from Perl stack. */
33491 0 arg_self = (lucy_MemoryPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MEMORYPOOL, NULL);
33492  
33493 /* Execute */
33494 0 method = CFISH_METHOD_PTR(LUCY_MEMORYPOOL, LUCY_MemPool_Release_All);
33495 0 method(arg_self);
33496 0 XSRETURN(0);
33497 }
33498  
33499 XS_INTERNAL(XS_Lucy_Util_MemoryPool_get_consumed);
33500 0 XS_INTERNAL(XS_Lucy_Util_MemoryPool_get_consumed) {
33501 0 dXSARGS;
33502 lucy_MemoryPool* arg_self;
33503 LUCY_MemPool_Get_Consumed_t method;
33504 size_t retval;
33505  
33506 CFISH_UNUSED_VAR(cv);
33507 0 SP -= items;
33508 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33509 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33510 }
33511  
33512 /* Extract vars from Perl stack. */
33513 0 arg_self = (lucy_MemoryPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MEMORYPOOL, NULL);
33514  
33515 /* Execute */
33516 0 method = CFISH_METHOD_PTR(LUCY_MEMORYPOOL, LUCY_MemPool_Get_Consumed);
33517 0 retval = method(arg_self);
33518 0 ST(0) = newSViv(retval);
33519 0 sv_2mortal( ST(0) );
33520 0 XSRETURN(1);
33521 }
33522  
33523 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_new);
33524 0 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_new) {
33525 0 dXSARGS;
33526 static const XSBind_ParamSpec param_specs[1] = {
33527 XSBIND_PARAM("max_size", 1)
33528 };
33529 int32_t locations[1];
33530 SV *sv;
33531 lucy_PriorityQueue* arg_self;
33532 uint32_t arg_max_size;
33533 lucy_PriorityQueue* retval;
33534  
33535 CFISH_UNUSED_VAR(cv);
33536 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
33537 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
33538 }
33539 0 SP -= items;
33540  
33541 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
33542 locations, 1);
33543 0 sv = ST(locations[0]);
33544 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
33545 0 XSBind_undef_arg_error(aTHX_ "max_size");
33546 }
33547 0 arg_max_size = (uint32_t)SvUV(sv);
33548 0 arg_self = (lucy_PriorityQueue*)XSBind_new_blank_obj(aTHX_ ST(0));
33549  
33550 0 retval = lucy_PriQ_init(arg_self, arg_max_size);
33551 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
33552 0 XSRETURN(1);
33553 }
33554  
33555  
33556 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_less_than);
33557 0 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_less_than) {
33558 0 dXSARGS;
33559 static const XSBind_ParamSpec param_specs[2] = {
33560 XSBIND_PARAM("a", 1),
33561 XSBIND_PARAM("b", 1)
33562 };
33563 int32_t locations[2];
33564 SV *sv;
33565 lucy_PriorityQueue* arg_self;
33566 cfish_Obj* arg_a;
33567 cfish_Obj* arg_b;
33568 LUCY_PriQ_Less_Than_t method;
33569 bool retval;
33570  
33571 CFISH_UNUSED_VAR(cv);
33572 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
33573 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
33574 }
33575 0 SP -= items;
33576  
33577 /* Locate args on Perl stack. */
33578 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
33579 locations, 2);
33580 0 arg_self = (lucy_PriorityQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PRIORITYQUEUE, NULL);
33581 0 sv = ST(locations[0]);
33582 0 arg_a = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "a", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33583 0 sv = ST(locations[1]);
33584 0 arg_b = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "b", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33585  
33586 /* Execute */
33587 0 method = CFISH_METHOD_PTR(LUCY_PRIORITYQUEUE, LUCY_PriQ_Less_Than);
33588 0 retval = method(arg_self, arg_a, arg_b);
33589 0 ST(0) = newSViv(!!retval);
33590 0 sv_2mortal( ST(0) );
33591 0 XSRETURN(1);
33592 }
33593  
33594 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_insert);
33595 1306 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_insert) {
33596 1306 dXSARGS;
33597 SV *sv;
33598 lucy_PriorityQueue* arg_self;
33599 cfish_Obj* arg_element;
33600 LUCY_PriQ_Insert_t method;
33601 bool retval;
33602  
33603 CFISH_UNUSED_VAR(cv);
33604 1306 SP -= items;
33605 1306 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1306 1306
33606 0 XSBind_invalid_args_error(aTHX_ cv, "self, element");
33607 }
33608  
33609 /* Extract vars from Perl stack. */
33610 1306 arg_self = (lucy_PriorityQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PRIORITYQUEUE, NULL);
33611 1306 sv = ST(1);
33612 1306 arg_element = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "element", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33613  
33614 /* Execute */
33615 1306 method = CFISH_METHOD_PTR(LUCY_PRIORITYQUEUE, LUCY_PriQ_Insert);
33616 1306 arg_element = (cfish_Obj*)CFISH_INCREF(arg_element);
33617 1306 retval = method(arg_self, arg_element);
33618 1306 ST(0) = newSViv(!!retval);
33619 1306 sv_2mortal( ST(0) );
33620 1306 XSRETURN(1);
33621 }
33622  
33623 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_jostle);
33624 0 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_jostle) {
33625 0 dXSARGS;
33626 SV *sv;
33627 lucy_PriorityQueue* arg_self;
33628 cfish_Obj* arg_element;
33629 LUCY_PriQ_Jostle_t method;
33630 cfish_Obj* retval;
33631  
33632 CFISH_UNUSED_VAR(cv);
33633 0 SP -= items;
33634 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
33635 0 XSBind_invalid_args_error(aTHX_ cv, "self, element");
33636 }
33637  
33638 /* Extract vars from Perl stack. */
33639 0 arg_self = (lucy_PriorityQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PRIORITYQUEUE, NULL);
33640 0 sv = ST(1);
33641 0 arg_element = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "element", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33642  
33643 /* Execute */
33644 0 method = CFISH_METHOD_PTR(LUCY_PRIORITYQUEUE, LUCY_PriQ_Jostle);
33645 0 arg_element = (cfish_Obj*)CFISH_INCREF(arg_element);
33646 0 retval = method(arg_self, arg_element);
33647 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
33648 0 CFISH_DECREF(retval);
33649 0 sv_2mortal( ST(0) );
33650 0 XSRETURN(1);
33651 }
33652  
33653 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_pop);
33654 0 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_pop) {
33655 0 dXSARGS;
33656 lucy_PriorityQueue* arg_self;
33657 LUCY_PriQ_Pop_t method;
33658 cfish_Obj* retval;
33659  
33660 CFISH_UNUSED_VAR(cv);
33661 0 SP -= items;
33662 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33663 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33664 }
33665  
33666 /* Extract vars from Perl stack. */
33667 0 arg_self = (lucy_PriorityQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PRIORITYQUEUE, NULL);
33668  
33669 /* Execute */
33670 0 method = CFISH_METHOD_PTR(LUCY_PRIORITYQUEUE, LUCY_PriQ_Pop);
33671 0 retval = method(arg_self);
33672 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
33673 0 CFISH_DECREF(retval);
33674 0 sv_2mortal( ST(0) );
33675 0 XSRETURN(1);
33676 }
33677  
33678 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_pop_all);
33679 35 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_pop_all) {
33680 35 dXSARGS;
33681 lucy_PriorityQueue* arg_self;
33682 LUCY_PriQ_Pop_All_t method;
33683 cfish_Vector* retval;
33684  
33685 CFISH_UNUSED_VAR(cv);
33686 35 SP -= items;
33687 35 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 35 35
33688 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33689 }
33690  
33691 /* Extract vars from Perl stack. */
33692 35 arg_self = (lucy_PriorityQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PRIORITYQUEUE, NULL);
33693  
33694 /* Execute */
33695 35 method = CFISH_METHOD_PTR(LUCY_PRIORITYQUEUE, LUCY_PriQ_Pop_All);
33696 35 retval = method(arg_self);
33697 35 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
33698 35 CFISH_DECREF(retval);
33699 35 sv_2mortal( ST(0) );
33700 35 XSRETURN(1);
33701 }
33702  
33703 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_peek);
33704 0 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_peek) {
33705 0 dXSARGS;
33706 lucy_PriorityQueue* arg_self;
33707 LUCY_PriQ_Peek_t method;
33708 cfish_Obj* retval;
33709  
33710 CFISH_UNUSED_VAR(cv);
33711 0 SP -= items;
33712 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33713 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33714 }
33715  
33716 /* Extract vars from Perl stack. */
33717 0 arg_self = (lucy_PriorityQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PRIORITYQUEUE, NULL);
33718  
33719 /* Execute */
33720 0 method = CFISH_METHOD_PTR(LUCY_PRIORITYQUEUE, LUCY_PriQ_Peek);
33721 0 retval = method(arg_self);
33722 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
33723 0 sv_2mortal( ST(0) );
33724 0 XSRETURN(1);
33725 }
33726  
33727 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_get_size);
33728 0 XS_INTERNAL(XS_Lucy_Util_PriorityQueue_get_size) {
33729 0 dXSARGS;
33730 lucy_PriorityQueue* arg_self;
33731 LUCY_PriQ_Get_Size_t method;
33732 uint32_t retval;
33733  
33734 CFISH_UNUSED_VAR(cv);
33735 0 SP -= items;
33736 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33737 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33738 }
33739  
33740 /* Extract vars from Perl stack. */
33741 0 arg_self = (lucy_PriorityQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_PRIORITYQUEUE, NULL);
33742  
33743 /* Execute */
33744 0 method = CFISH_METHOD_PTR(LUCY_PRIORITYQUEUE, LUCY_PriQ_Get_Size);
33745 0 retval = method(arg_self);
33746 0 ST(0) = newSVuv(retval);
33747 0 sv_2mortal( ST(0) );
33748 0 XSRETURN(1);
33749 }
33750  
33751 XS_INTERNAL(XS_Lucy_Index_SegLexQueue_less_than);
33752 0 XS_INTERNAL(XS_Lucy_Index_SegLexQueue_less_than) {
33753 0 dXSARGS;
33754 static const XSBind_ParamSpec param_specs[2] = {
33755 XSBIND_PARAM("a", 1),
33756 XSBIND_PARAM("b", 1)
33757 };
33758 int32_t locations[2];
33759 SV *sv;
33760 lucy_SegLexQueue* arg_self;
33761 cfish_Obj* arg_a;
33762 cfish_Obj* arg_b;
33763 LUCY_SegLexQ_Less_Than_t method;
33764 bool retval;
33765  
33766 CFISH_UNUSED_VAR(cv);
33767 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
33768 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
33769 }
33770 0 SP -= items;
33771  
33772 /* Locate args on Perl stack. */
33773 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
33774 locations, 2);
33775 0 arg_self = (lucy_SegLexQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SEGLEXQUEUE, NULL);
33776 0 sv = ST(locations[0]);
33777 0 arg_a = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "a", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33778 0 sv = ST(locations[1]);
33779 0 arg_b = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "b", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33780  
33781 /* Execute */
33782 0 method = CFISH_METHOD_PTR(LUCY_SEGLEXQUEUE, LUCY_SegLexQ_Less_Than);
33783 0 retval = method(arg_self, arg_a, arg_b);
33784 0 ST(0) = newSViv(!!retval);
33785 0 sv_2mortal( ST(0) );
33786 0 XSRETURN(1);
33787 }
33788  
33789 XS_INTERNAL(XS_Lucy_Search_HitQueue_new);
33790 35 XS_INTERNAL(XS_Lucy_Search_HitQueue_new) {
33791 35 dXSARGS;
33792 static const XSBind_ParamSpec param_specs[3] = {
33793 XSBIND_PARAM("schema", 0),
33794 XSBIND_PARAM("sort_spec", 0),
33795 XSBIND_PARAM("wanted", 1)
33796 };
33797 int32_t locations[3];
33798 SV *sv;
33799 lucy_HitQueue* arg_self;
33800 lucy_Schema* arg_schema;
33801 lucy_SortSpec* arg_sort_spec;
33802 uint32_t arg_wanted;
33803 lucy_HitQueue* retval;
33804  
33805 CFISH_UNUSED_VAR(cv);
33806 35 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 35 35
33807 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
33808 }
33809 35 SP -= items;
33810  
33811 35 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
33812 locations, 3);
33813 35 sv = ST(locations[0]);
33814 35 ▶ arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_schema = locations[0] < items ? (lucy_Schema*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "schema", LUCY_SCHEMA, NULL) : NULL; 4 31 35
33815 35 sv = ST(locations[1]);
33816 35 ▶ arg_sort_spec = locations[1] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_sort_spec = locations[1] < items ? (lucy_SortSpec*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "sort_spec", LUCY_SORTSPEC, NULL) : NULL; 4 31 35
33817 35 sv = ST(locations[2]);
33818 35 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 35 35
33819 0 XSBind_undef_arg_error(aTHX_ "wanted");
33820 }
33821 35 arg_wanted = (uint32_t)SvUV(sv);
33822 35 arg_self = (lucy_HitQueue*)XSBind_new_blank_obj(aTHX_ ST(0));
33823  
33824 35 retval = lucy_HitQ_init(arg_self, arg_schema, arg_sort_spec, arg_wanted);
33825 35 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
33826 35 XSRETURN(1);
33827 }
33828  
33829  
33830 XS_INTERNAL(XS_Lucy_Search_HitQueue_jostle);
33831 0 XS_INTERNAL(XS_Lucy_Search_HitQueue_jostle) {
33832 0 dXSARGS;
33833 SV *sv;
33834 lucy_HitQueue* arg_self;
33835 cfish_Obj* arg_element;
33836 LUCY_HitQ_Jostle_t method;
33837 cfish_Obj* retval;
33838  
33839 CFISH_UNUSED_VAR(cv);
33840 0 SP -= items;
33841 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
33842 0 XSBind_invalid_args_error(aTHX_ cv, "self, element");
33843 }
33844  
33845 /* Extract vars from Perl stack. */
33846 0 arg_self = (lucy_HitQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITQUEUE, NULL);
33847 0 sv = ST(1);
33848 0 arg_element = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "element", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33849  
33850 /* Execute */
33851 0 method = CFISH_METHOD_PTR(LUCY_HITQUEUE, LUCY_HitQ_Jostle);
33852 0 arg_element = (cfish_Obj*)CFISH_INCREF(arg_element);
33853 0 retval = method(arg_self, arg_element);
33854 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
33855 0 CFISH_DECREF(retval);
33856 0 sv_2mortal( ST(0) );
33857 0 XSRETURN(1);
33858 }
33859  
33860 XS_INTERNAL(XS_Lucy_Search_HitQueue_less_than);
33861 0 XS_INTERNAL(XS_Lucy_Search_HitQueue_less_than) {
33862 0 dXSARGS;
33863 static const XSBind_ParamSpec param_specs[2] = {
33864 XSBIND_PARAM("a", 1),
33865 XSBIND_PARAM("b", 1)
33866 };
33867 int32_t locations[2];
33868 SV *sv;
33869 lucy_HitQueue* arg_self;
33870 cfish_Obj* arg_a;
33871 cfish_Obj* arg_b;
33872 LUCY_HitQ_Less_Than_t method;
33873 bool retval;
33874  
33875 CFISH_UNUSED_VAR(cv);
33876 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
33877 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
33878 }
33879 0 SP -= items;
33880  
33881 /* Locate args on Perl stack. */
33882 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
33883 locations, 2);
33884 0 arg_self = (lucy_HitQueue*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_HITQUEUE, NULL);
33885 0 sv = ST(locations[0]);
33886 0 arg_a = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "a", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33887 0 sv = ST(locations[1]);
33888 0 arg_b = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "b", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33889  
33890 /* Execute */
33891 0 method = CFISH_METHOD_PTR(LUCY_HITQUEUE, LUCY_HitQ_Less_Than);
33892 0 retval = method(arg_self, arg_a, arg_b);
33893 0 ST(0) = newSViv(!!retval);
33894 0 sv_2mortal( ST(0) );
33895 0 XSRETURN(1);
33896 }
33897  
33898 XS_INTERNAL(XS_Lucy_Util_SortExternal_new);
33899 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_new) {
33900 0 dXSARGS;
33901 lucy_SortExternal* arg_self;
33902 lucy_SortExternal* retval;
33903  
33904 CFISH_UNUSED_VAR(cv);
33905 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33906 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
33907 }
33908 0 SP -= items;
33909  
33910 0 arg_self = (lucy_SortExternal*)XSBind_new_blank_obj(aTHX_ ST(0));
33911  
33912 0 retval = lucy_SortEx_init(arg_self);
33913 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
33914 0 XSRETURN(1);
33915 }
33916  
33917  
33918 XS_INTERNAL(XS_Lucy_Util_SortExternal_flush);
33919 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_flush) {
33920 0 dXSARGS;
33921 lucy_SortExternal* arg_self;
33922 LUCY_SortEx_Flush_t method;
33923  
33924 CFISH_UNUSED_VAR(cv);
33925 0 SP -= items;
33926 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33927 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33928 }
33929  
33930 /* Extract vars from Perl stack. */
33931 0 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
33932  
33933 /* Execute */
33934 0 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Flush);
33935 0 method(arg_self);
33936 0 XSRETURN(0);
33937 }
33938  
33939 XS_INTERNAL(XS_Lucy_Util_SortExternal_feed);
33940 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_feed) {
33941 0 dXSARGS;
33942 SV *sv;
33943 lucy_SortExternal* arg_self;
33944 cfish_Obj* arg_item;
33945 LUCY_SortEx_Feed_t method;
33946  
33947 CFISH_UNUSED_VAR(cv);
33948 0 SP -= items;
33949 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
33950 0 XSBind_invalid_args_error(aTHX_ cv, "self, item");
33951 }
33952  
33953 /* Extract vars from Perl stack. */
33954 0 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
33955 0 sv = ST(1);
33956 0 arg_item = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "item", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
33957  
33958 /* Execute */
33959 0 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Feed);
33960 0 arg_item = (cfish_Obj*)CFISH_INCREF(arg_item);
33961 0 method(arg_self, arg_item);
33962 0 XSRETURN(0);
33963 }
33964  
33965 XS_INTERNAL(XS_Lucy_Util_SortExternal_flip);
33966 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_flip) {
33967 0 dXSARGS;
33968 lucy_SortExternal* arg_self;
33969 LUCY_SortEx_Flip_t method;
33970  
33971 CFISH_UNUSED_VAR(cv);
33972 0 SP -= items;
33973 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
33974 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33975 }
33976  
33977 /* Extract vars from Perl stack. */
33978 0 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
33979  
33980 /* Execute */
33981 0 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Flip);
33982 0 method(arg_self);
33983 0 XSRETURN(0);
33984 }
33985  
33986 XS_INTERNAL(XS_Lucy_Util_SortExternal_fetch);
33987 12141 XS_INTERNAL(XS_Lucy_Util_SortExternal_fetch) {
33988 12141 dXSARGS;
33989 lucy_SortExternal* arg_self;
33990 LUCY_SortEx_Fetch_t method;
33991 cfish_Obj* retval;
33992  
33993 CFISH_UNUSED_VAR(cv);
33994 12141 SP -= items;
33995 12141 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 12141 12141
33996 0 XSBind_invalid_args_error(aTHX_ cv, "self");
33997 }
33998  
33999 /* Extract vars from Perl stack. */
34000 12141 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34001  
34002 /* Execute */
34003 12141 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Fetch);
34004 12141 retval = method(arg_self);
34005 12141 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
34006 12141 CFISH_DECREF(retval);
34007 12141 sv_2mortal( ST(0) );
34008 12141 XSRETURN(1);
34009 }
34010  
34011 XS_INTERNAL(XS_Lucy_Util_SortExternal_peek);
34012 1 XS_INTERNAL(XS_Lucy_Util_SortExternal_peek) {
34013 1 dXSARGS;
34014 lucy_SortExternal* arg_self;
34015 LUCY_SortEx_Peek_t method;
34016 cfish_Obj* retval;
34017  
34018 CFISH_UNUSED_VAR(cv);
34019 1 SP -= items;
34020 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
34021 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34022 }
34023  
34024 /* Extract vars from Perl stack. */
34025 1 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34026  
34027 /* Execute */
34028 1 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Peek);
34029 1 retval = method(arg_self);
34030 1 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
34031 1 sv_2mortal( ST(0) );
34032 1 XSRETURN(1);
34033 }
34034  
34035 XS_INTERNAL(XS_Lucy_Util_SortExternal_add_run);
34036 1 XS_INTERNAL(XS_Lucy_Util_SortExternal_add_run) {
34037 1 dXSARGS;
34038 SV *sv;
34039 lucy_SortExternal* arg_self;
34040 lucy_SortExternal* arg_run;
34041 LUCY_SortEx_Add_Run_t method;
34042  
34043 CFISH_UNUSED_VAR(cv);
34044 1 SP -= items;
34045 1 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 1 1
34046 0 XSBind_invalid_args_error(aTHX_ cv, "self, run");
34047 }
34048  
34049 /* Extract vars from Perl stack. */
34050 1 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34051 1 sv = ST(1);
34052 1 arg_run = (lucy_SortExternal*)XSBind_arg_to_cfish(aTHX_ sv, "run", LUCY_SORTEXTERNAL, NULL);
34053  
34054 /* Execute */
34055 1 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Add_Run);
34056 1 arg_run = (lucy_SortExternal*)CFISH_INCREF(arg_run);
34057 1 method(arg_self, arg_run);
34058 1 XSRETURN(0);
34059 }
34060  
34061 XS_INTERNAL(XS_Lucy_Util_SortExternal_shrink);
34062 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_shrink) {
34063 0 dXSARGS;
34064 lucy_SortExternal* arg_self;
34065 LUCY_SortEx_Shrink_t method;
34066  
34067 CFISH_UNUSED_VAR(cv);
34068 0 SP -= items;
34069 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34070 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34071 }
34072  
34073 /* Extract vars from Perl stack. */
34074 0 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34075  
34076 /* Execute */
34077 0 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Shrink);
34078 0 method(arg_self);
34079 0 XSRETURN(0);
34080 }
34081  
34082 XS_INTERNAL(XS_Lucy_Util_SortExternal_refill);
34083 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_refill) {
34084 0 dXSARGS;
34085 lucy_SortExternal* arg_self;
34086 LUCY_SortEx_Refill_t method;
34087 uint32_t retval;
34088  
34089 CFISH_UNUSED_VAR(cv);
34090 0 SP -= items;
34091 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34092 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34093 }
34094  
34095 /* Extract vars from Perl stack. */
34096 0 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34097  
34098 /* Execute */
34099 0 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Refill);
34100 0 retval = method(arg_self);
34101 0 ST(0) = newSVuv(retval);
34102 0 sv_2mortal( ST(0) );
34103 0 XSRETURN(1);
34104 }
34105  
34106 XS_INTERNAL(XS_Lucy_Util_SortExternal_sort_buffer);
34107 1 XS_INTERNAL(XS_Lucy_Util_SortExternal_sort_buffer) {
34108 1 dXSARGS;
34109 lucy_SortExternal* arg_self;
34110 LUCY_SortEx_Sort_Buffer_t method;
34111  
34112 CFISH_UNUSED_VAR(cv);
34113 1 SP -= items;
34114 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
34115 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34116 }
34117  
34118 /* Extract vars from Perl stack. */
34119 1 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34120  
34121 /* Execute */
34122 1 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Sort_Buffer);
34123 1 method(arg_self);
34124 1 XSRETURN(0);
34125 }
34126  
34127 XS_INTERNAL(XS_Lucy_Util_SortExternal_clear_buffer);
34128 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_clear_buffer) {
34129 0 dXSARGS;
34130 lucy_SortExternal* arg_self;
34131 LUCY_SortEx_Clear_Buffer_t method;
34132  
34133 CFISH_UNUSED_VAR(cv);
34134 0 SP -= items;
34135 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34136 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34137 }
34138  
34139 /* Extract vars from Perl stack. */
34140 0 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34141  
34142 /* Execute */
34143 0 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Clear_Buffer);
34144 0 method(arg_self);
34145 0 XSRETURN(0);
34146 }
34147  
34148 XS_INTERNAL(XS_Lucy_Util_SortExternal_buffer_count);
34149 3 XS_INTERNAL(XS_Lucy_Util_SortExternal_buffer_count) {
34150 3 dXSARGS;
34151 lucy_SortExternal* arg_self;
34152 LUCY_SortEx_Buffer_Count_t method;
34153 uint32_t retval;
34154  
34155 CFISH_UNUSED_VAR(cv);
34156 3 SP -= items;
34157 3 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 3 3
34158 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34159 }
34160  
34161 /* Extract vars from Perl stack. */
34162 3 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34163  
34164 /* Execute */
34165 3 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Buffer_Count);
34166 3 retval = method(arg_self);
34167 3 ST(0) = newSVuv(retval);
34168 3 sv_2mortal( ST(0) );
34169 3 XSRETURN(1);
34170 }
34171  
34172 XS_INTERNAL(XS_Lucy_Util_SortExternal_grow_buffer);
34173 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_grow_buffer) {
34174 0 dXSARGS;
34175 SV *sv;
34176 lucy_SortExternal* arg_self;
34177 uint32_t arg_cap;
34178 LUCY_SortEx_Grow_Buffer_t method;
34179  
34180 CFISH_UNUSED_VAR(cv);
34181 0 SP -= items;
34182 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
34183 0 XSBind_invalid_args_error(aTHX_ cv, "self, cap");
34184 }
34185  
34186 /* Extract vars from Perl stack. */
34187 0 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34188 0 sv = ST(1);
34189 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
34190 0 XSBind_undef_arg_error(aTHX_ "cap");
34191 }
34192 0 arg_cap = (uint32_t)SvUV(sv);
34193  
34194 /* Execute */
34195 0 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Grow_Buffer);
34196 0 method(arg_self, arg_cap);
34197 0 XSRETURN(0);
34198 }
34199  
34200 XS_INTERNAL(XS_Lucy_Util_SortExternal_set_mem_thresh);
34201 0 XS_INTERNAL(XS_Lucy_Util_SortExternal_set_mem_thresh) {
34202 0 dXSARGS;
34203 SV *sv;
34204 lucy_SortExternal* arg_self;
34205 uint32_t arg_mem_thresh;
34206 LUCY_SortEx_Set_Mem_Thresh_t method;
34207  
34208 CFISH_UNUSED_VAR(cv);
34209 0 SP -= items;
34210 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
34211 0 XSBind_invalid_args_error(aTHX_ cv, "self, mem_thresh");
34212 }
34213  
34214 /* Extract vars from Perl stack. */
34215 0 arg_self = (lucy_SortExternal*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTEXTERNAL, NULL);
34216 0 sv = ST(1);
34217 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
34218 0 XSBind_undef_arg_error(aTHX_ "mem_thresh");
34219 }
34220 0 arg_mem_thresh = (uint32_t)SvUV(sv);
34221  
34222 /* Execute */
34223 0 method = CFISH_METHOD_PTR(LUCY_SORTEXTERNAL, LUCY_SortEx_Set_Mem_Thresh);
34224 0 method(arg_self, arg_mem_thresh);
34225 0 XSRETURN(0);
34226 }
34227  
34228 XS_INTERNAL(XS_Lucy_Index_PostingPool_new);
34229 0 XS_INTERNAL(XS_Lucy_Index_PostingPool_new) {
34230 0 dXSARGS;
34231 static const XSBind_ParamSpec param_specs[10] = {
34232 XSBIND_PARAM("schema", 1),
34233 XSBIND_PARAM("snapshot", 1),
34234 XSBIND_PARAM("segment", 1),
34235 XSBIND_PARAM("polyreader", 1),
34236 XSBIND_PARAM("field", 1),
34237 XSBIND_PARAM("lex_writer", 1),
34238 XSBIND_PARAM("mem_pool", 1),
34239 XSBIND_PARAM("lex_temp_out", 1),
34240 XSBIND_PARAM("post_temp_out", 1),
34241 XSBIND_PARAM("skip_out", 1)
34242 };
34243 int32_t locations[10];
34244 SV *sv;
34245 lucy_PostingPool* arg_self;
34246 lucy_Schema* arg_schema;
34247 lucy_Snapshot* arg_snapshot;
34248 lucy_Segment* arg_segment;
34249 lucy_PolyReader* arg_polyreader;
34250 cfish_String* arg_field;
34251 lucy_LexiconWriter* arg_lex_writer;
34252 lucy_MemoryPool* arg_mem_pool;
34253 lucy_OutStream* arg_lex_temp_out;
34254 lucy_OutStream* arg_post_temp_out;
34255 lucy_OutStream* arg_skip_out;
34256 lucy_PostingPool* retval;
34257  
34258 CFISH_UNUSED_VAR(cv);
34259 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
34260 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
34261 }
34262 0 SP -= items;
34263  
34264 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
34265 locations, 10);
34266 0 sv = ST(locations[0]);
34267 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
34268 0 sv = ST(locations[1]);
34269 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
34270 0 sv = ST(locations[2]);
34271 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
34272 0 sv = ST(locations[3]);
34273 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
34274 0 sv = ST(locations[4]);
34275 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
34276 0 sv = ST(locations[5]);
34277 0 arg_lex_writer = (lucy_LexiconWriter*)XSBind_arg_to_cfish(aTHX_ sv, "lex_writer", LUCY_LEXICONWRITER, NULL);
34278 0 sv = ST(locations[6]);
34279 0 arg_mem_pool = (lucy_MemoryPool*)XSBind_arg_to_cfish(aTHX_ sv, "mem_pool", LUCY_MEMORYPOOL, NULL);
34280 0 sv = ST(locations[7]);
34281 0 arg_lex_temp_out = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "lex_temp_out", LUCY_OUTSTREAM, NULL);
34282 0 sv = ST(locations[8]);
34283 0 arg_post_temp_out = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "post_temp_out", LUCY_OUTSTREAM, NULL);
34284 0 sv = ST(locations[9]);
34285 0 arg_skip_out = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "skip_out", LUCY_OUTSTREAM, NULL);
34286 0 arg_self = (lucy_PostingPool*)XSBind_new_blank_obj(aTHX_ ST(0));
34287  
34288 0 retval = lucy_PostPool_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader, arg_field, arg_lex_writer, arg_mem_pool, arg_lex_temp_out, arg_post_temp_out, arg_skip_out);
34289 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
34290 0 XSRETURN(1);
34291 }
34292  
34293  
34294 XS_INTERNAL(XS_Lucy_Index_PostingPool_add_inversion);
34295 0 XS_INTERNAL(XS_Lucy_Index_PostingPool_add_inversion) {
34296 0 dXSARGS;
34297 static const XSBind_ParamSpec param_specs[4] = {
34298 XSBIND_PARAM("inversion", 1),
34299 XSBIND_PARAM("doc_id", 1),
34300 XSBIND_PARAM("doc_boost", 1),
34301 XSBIND_PARAM("length_norm", 1)
34302 };
34303 int32_t locations[4];
34304 SV *sv;
34305 lucy_PostingPool* arg_self;
34306 lucy_Inversion* arg_inversion;
34307 int32_t arg_doc_id;
34308 float arg_doc_boost;
34309 float arg_length_norm;
34310 LUCY_PostPool_Add_Inversion_t method;
34311  
34312 CFISH_UNUSED_VAR(cv);
34313 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
34314 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
34315 }
34316 0 SP -= items;
34317  
34318 /* Locate args on Perl stack. */
34319 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
34320 locations, 4);
34321 0 arg_self = (lucy_PostingPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGPOOL, NULL);
34322 0 sv = ST(locations[0]);
34323 0 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
34324 0 sv = ST(locations[1]);
34325 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
34326 0 XSBind_undef_arg_error(aTHX_ "doc_id");
34327 }
34328 0 arg_doc_id = (int32_t)SvIV(sv);
34329 0 sv = ST(locations[2]);
34330 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
34331 0 XSBind_undef_arg_error(aTHX_ "doc_boost");
34332 }
34333 0 arg_doc_boost = (float)SvNV(sv);
34334 0 sv = ST(locations[3]);
34335 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
34336 0 XSBind_undef_arg_error(aTHX_ "length_norm");
34337 }
34338 0 arg_length_norm = (float)SvNV(sv);
34339  
34340 /* Execute */
34341 0 method = CFISH_METHOD_PTR(LUCY_POSTINGPOOL, LUCY_PostPool_Add_Inversion);
34342 0 method(arg_self, arg_inversion, arg_doc_id, arg_doc_boost, arg_length_norm);
34343 0 XSRETURN(0);
34344 }
34345  
34346 XS_INTERNAL(XS_Lucy_Index_PostingPool_get_mem_pool);
34347 0 XS_INTERNAL(XS_Lucy_Index_PostingPool_get_mem_pool) {
34348 0 dXSARGS;
34349 lucy_PostingPool* arg_self;
34350 LUCY_PostPool_Get_Mem_Pool_t method;
34351 lucy_MemoryPool* retval;
34352  
34353 CFISH_UNUSED_VAR(cv);
34354 0 SP -= items;
34355 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34356 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34357 }
34358  
34359 /* Extract vars from Perl stack. */
34360 0 arg_self = (lucy_PostingPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGPOOL, NULL);
34361  
34362 /* Execute */
34363 0 method = CFISH_METHOD_PTR(LUCY_POSTINGPOOL, LUCY_PostPool_Get_Mem_Pool);
34364 0 retval = method(arg_self);
34365 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
34366 0 sv_2mortal( ST(0) );
34367 0 XSRETURN(1);
34368 }
34369  
34370 XS_INTERNAL(XS_Lucy_Index_PostingPool_add_segment);
34371 0 XS_INTERNAL(XS_Lucy_Index_PostingPool_add_segment) {
34372 0 dXSARGS;
34373 static const XSBind_ParamSpec param_specs[3] = {
34374 XSBIND_PARAM("reader", 1),
34375 XSBIND_PARAM("doc_map", 1),
34376 XSBIND_PARAM("doc_base", 1)
34377 };
34378 int32_t locations[3];
34379 SV *sv;
34380 lucy_PostingPool* arg_self;
34381 lucy_SegReader* arg_reader;
34382 lucy_I32Array* arg_doc_map;
34383 int32_t arg_doc_base;
34384 LUCY_PostPool_Add_Segment_t method;
34385  
34386 CFISH_UNUSED_VAR(cv);
34387 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
34388 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
34389 }
34390 0 SP -= items;
34391  
34392 /* Locate args on Perl stack. */
34393 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
34394 locations, 3);
34395 0 arg_self = (lucy_PostingPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGPOOL, NULL);
34396 0 sv = ST(locations[0]);
34397 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
34398 0 sv = ST(locations[1]);
34399 0 arg_doc_map = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL);
34400 0 sv = ST(locations[2]);
34401 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
34402 0 XSBind_undef_arg_error(aTHX_ "doc_base");
34403 }
34404 0 arg_doc_base = (int32_t)SvIV(sv);
34405  
34406 /* Execute */
34407 0 method = CFISH_METHOD_PTR(LUCY_POSTINGPOOL, LUCY_PostPool_Add_Segment);
34408 0 method(arg_self, arg_reader, arg_doc_map, arg_doc_base);
34409 0 XSRETURN(0);
34410 }
34411  
34412 XS_INTERNAL(XS_Lucy_Index_PostingPool_flip);
34413 0 XS_INTERNAL(XS_Lucy_Index_PostingPool_flip) {
34414 0 dXSARGS;
34415 lucy_PostingPool* arg_self;
34416 LUCY_PostPool_Flip_t method;
34417  
34418 CFISH_UNUSED_VAR(cv);
34419 0 SP -= items;
34420 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34421 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34422 }
34423  
34424 /* Extract vars from Perl stack. */
34425 0 arg_self = (lucy_PostingPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGPOOL, NULL);
34426  
34427 /* Execute */
34428 0 method = CFISH_METHOD_PTR(LUCY_POSTINGPOOL, LUCY_PostPool_Flip);
34429 0 method(arg_self);
34430 0 XSRETURN(0);
34431 }
34432  
34433 XS_INTERNAL(XS_Lucy_Index_PostingPool_refill);
34434 0 XS_INTERNAL(XS_Lucy_Index_PostingPool_refill) {
34435 0 dXSARGS;
34436 lucy_PostingPool* arg_self;
34437 LUCY_PostPool_Refill_t method;
34438 uint32_t retval;
34439  
34440 CFISH_UNUSED_VAR(cv);
34441 0 SP -= items;
34442 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34443 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34444 }
34445  
34446 /* Extract vars from Perl stack. */
34447 0 arg_self = (lucy_PostingPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGPOOL, NULL);
34448  
34449 /* Execute */
34450 0 method = CFISH_METHOD_PTR(LUCY_POSTINGPOOL, LUCY_PostPool_Refill);
34451 0 retval = method(arg_self);
34452 0 ST(0) = newSVuv(retval);
34453 0 sv_2mortal( ST(0) );
34454 0 XSRETURN(1);
34455 }
34456  
34457 XS_INTERNAL(XS_Lucy_Index_PostingPool_finish);
34458 0 XS_INTERNAL(XS_Lucy_Index_PostingPool_finish) {
34459 0 dXSARGS;
34460 lucy_PostingPool* arg_self;
34461 LUCY_PostPool_Finish_t method;
34462  
34463 CFISH_UNUSED_VAR(cv);
34464 0 SP -= items;
34465 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34466 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34467 }
34468  
34469 /* Extract vars from Perl stack. */
34470 0 arg_self = (lucy_PostingPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGPOOL, NULL);
34471  
34472 /* Execute */
34473 0 method = CFISH_METHOD_PTR(LUCY_POSTINGPOOL, LUCY_PostPool_Finish);
34474 0 method(arg_self);
34475 0 XSRETURN(0);
34476 }
34477  
34478 XS_INTERNAL(XS_Lucy_Index_PostingPool_flush);
34479 0 XS_INTERNAL(XS_Lucy_Index_PostingPool_flush) {
34480 0 dXSARGS;
34481 lucy_PostingPool* arg_self;
34482 LUCY_PostPool_Flush_t method;
34483  
34484 CFISH_UNUSED_VAR(cv);
34485 0 SP -= items;
34486 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34487 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34488 }
34489  
34490 /* Extract vars from Perl stack. */
34491 0 arg_self = (lucy_PostingPool*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTINGPOOL, NULL);
34492  
34493 /* Execute */
34494 0 method = CFISH_METHOD_PTR(LUCY_POSTINGPOOL, LUCY_PostPool_Flush);
34495 0 method(arg_self);
34496 0 XSRETURN(0);
34497 }
34498  
34499 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_new);
34500 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_new) {
34501 0 dXSARGS;
34502 static const XSBind_ParamSpec param_specs[10] = {
34503 XSBIND_PARAM("schema", 1),
34504 XSBIND_PARAM("snapshot", 1),
34505 XSBIND_PARAM("segment", 1),
34506 XSBIND_PARAM("polyreader", 1),
34507 XSBIND_PARAM("field", 1),
34508 XSBIND_PARAM("counter", 1),
34509 XSBIND_PARAM("mem_thresh", 1),
34510 XSBIND_PARAM("temp_ord_out", 1),
34511 XSBIND_PARAM("temp_ix_out", 1),
34512 XSBIND_PARAM("temp_dat_out", 1)
34513 };
34514 int32_t locations[10];
34515 SV *sv;
34516 lucy_SortFieldWriter* arg_self;
34517 lucy_Schema* arg_schema;
34518 lucy_Snapshot* arg_snapshot;
34519 lucy_Segment* arg_segment;
34520 lucy_PolyReader* arg_polyreader;
34521 cfish_String* arg_field;
34522 lucy_Counter* arg_counter;
34523 uint32_t arg_mem_thresh;
34524 lucy_OutStream* arg_temp_ord_out;
34525 lucy_OutStream* arg_temp_ix_out;
34526 lucy_OutStream* arg_temp_dat_out;
34527 lucy_SortFieldWriter* retval;
34528  
34529 CFISH_UNUSED_VAR(cv);
34530 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
34531 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
34532 }
34533 0 SP -= items;
34534  
34535 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
34536 locations, 10);
34537 0 sv = ST(locations[0]);
34538 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
34539 0 sv = ST(locations[1]);
34540 0 arg_snapshot = (lucy_Snapshot*)XSBind_arg_to_cfish(aTHX_ sv, "snapshot", LUCY_SNAPSHOT, NULL);
34541 0 sv = ST(locations[2]);
34542 0 arg_segment = (lucy_Segment*)XSBind_arg_to_cfish(aTHX_ sv, "segment", LUCY_SEGMENT, NULL);
34543 0 sv = ST(locations[3]);
34544 0 arg_polyreader = (lucy_PolyReader*)XSBind_arg_to_cfish(aTHX_ sv, "polyreader", LUCY_POLYREADER, NULL);
34545 0 sv = ST(locations[4]);
34546 0 arg_field = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "field", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
34547 0 sv = ST(locations[5]);
34548 0 arg_counter = (lucy_Counter*)XSBind_arg_to_cfish(aTHX_ sv, "counter", LUCY_COUNTER, NULL);
34549 0 sv = ST(locations[6]);
34550 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
34551 0 XSBind_undef_arg_error(aTHX_ "mem_thresh");
34552 }
34553 0 arg_mem_thresh = (uint32_t)SvUV(sv);
34554 0 sv = ST(locations[7]);
34555 0 arg_temp_ord_out = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "temp_ord_out", LUCY_OUTSTREAM, NULL);
34556 0 sv = ST(locations[8]);
34557 0 arg_temp_ix_out = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "temp_ix_out", LUCY_OUTSTREAM, NULL);
34558 0 sv = ST(locations[9]);
34559 0 arg_temp_dat_out = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "temp_dat_out", LUCY_OUTSTREAM, NULL);
34560 0 arg_self = (lucy_SortFieldWriter*)XSBind_new_blank_obj(aTHX_ ST(0));
34561  
34562 0 retval = lucy_SortFieldWriter_init(arg_self, arg_schema, arg_snapshot, arg_segment, arg_polyreader, arg_field, arg_counter, arg_mem_thresh, arg_temp_ord_out, arg_temp_ix_out, arg_temp_dat_out);
34563 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
34564 0 XSRETURN(1);
34565 }
34566  
34567  
34568 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_add);
34569 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_add) {
34570 0 dXSARGS;
34571 static const XSBind_ParamSpec param_specs[2] = {
34572 XSBIND_PARAM("doc_id", 1),
34573 XSBIND_PARAM("value", 1)
34574 };
34575 int32_t locations[2];
34576 SV *sv;
34577 lucy_SortFieldWriter* arg_self;
34578 int32_t arg_doc_id;
34579 cfish_Obj* arg_value;
34580 LUCY_SortFieldWriter_Add_t method;
34581  
34582 CFISH_UNUSED_VAR(cv);
34583 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
34584 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
34585 }
34586 0 SP -= items;
34587  
34588 /* Locate args on Perl stack. */
34589 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
34590 locations, 2);
34591 0 arg_self = (lucy_SortFieldWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTFIELDWRITER, NULL);
34592 0 sv = ST(locations[0]);
34593 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
34594 0 XSBind_undef_arg_error(aTHX_ "doc_id");
34595 }
34596 0 arg_doc_id = (int32_t)SvIV(sv);
34597 0 sv = ST(locations[1]);
34598 0 arg_value = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
34599  
34600 /* Execute */
34601 0 method = CFISH_METHOD_PTR(LUCY_SORTFIELDWRITER, LUCY_SortFieldWriter_Add);
34602 0 method(arg_self, arg_doc_id, arg_value);
34603 0 XSRETURN(0);
34604 }
34605  
34606 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_add_segment);
34607 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_add_segment) {
34608 0 dXSARGS;
34609 static const XSBind_ParamSpec param_specs[3] = {
34610 XSBIND_PARAM("reader", 1),
34611 XSBIND_PARAM("doc_map", 1),
34612 XSBIND_PARAM("sort_cache", 1)
34613 };
34614 int32_t locations[3];
34615 SV *sv;
34616 lucy_SortFieldWriter* arg_self;
34617 lucy_SegReader* arg_reader;
34618 lucy_I32Array* arg_doc_map;
34619 lucy_SortCache* arg_sort_cache;
34620 LUCY_SortFieldWriter_Add_Segment_t method;
34621  
34622 CFISH_UNUSED_VAR(cv);
34623 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
34624 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
34625 }
34626 0 SP -= items;
34627  
34628 /* Locate args on Perl stack. */
34629 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
34630 locations, 3);
34631 0 arg_self = (lucy_SortFieldWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTFIELDWRITER, NULL);
34632 0 sv = ST(locations[0]);
34633 0 arg_reader = (lucy_SegReader*)XSBind_arg_to_cfish(aTHX_ sv, "reader", LUCY_SEGREADER, NULL);
34634 0 sv = ST(locations[1]);
34635 0 arg_doc_map = (lucy_I32Array*)XSBind_arg_to_cfish(aTHX_ sv, "doc_map", LUCY_I32ARRAY, NULL);
34636 0 sv = ST(locations[2]);
34637 0 arg_sort_cache = (lucy_SortCache*)XSBind_arg_to_cfish(aTHX_ sv, "sort_cache", LUCY_SORTCACHE, NULL);
34638  
34639 /* Execute */
34640 0 method = CFISH_METHOD_PTR(LUCY_SORTFIELDWRITER, LUCY_SortFieldWriter_Add_Segment);
34641 0 method(arg_self, arg_reader, arg_doc_map, arg_sort_cache);
34642 0 XSRETURN(0);
34643 }
34644  
34645 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_flush);
34646 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_flush) {
34647 0 dXSARGS;
34648 lucy_SortFieldWriter* arg_self;
34649 LUCY_SortFieldWriter_Flush_t method;
34650  
34651 CFISH_UNUSED_VAR(cv);
34652 0 SP -= items;
34653 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34654 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34655 }
34656  
34657 /* Extract vars from Perl stack. */
34658 0 arg_self = (lucy_SortFieldWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTFIELDWRITER, NULL);
34659  
34660 /* Execute */
34661 0 method = CFISH_METHOD_PTR(LUCY_SORTFIELDWRITER, LUCY_SortFieldWriter_Flush);
34662 0 method(arg_self);
34663 0 XSRETURN(0);
34664 }
34665  
34666 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_flip);
34667 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_flip) {
34668 0 dXSARGS;
34669 lucy_SortFieldWriter* arg_self;
34670 LUCY_SortFieldWriter_Flip_t method;
34671  
34672 CFISH_UNUSED_VAR(cv);
34673 0 SP -= items;
34674 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34675 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34676 }
34677  
34678 /* Extract vars from Perl stack. */
34679 0 arg_self = (lucy_SortFieldWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTFIELDWRITER, NULL);
34680  
34681 /* Execute */
34682 0 method = CFISH_METHOD_PTR(LUCY_SORTFIELDWRITER, LUCY_SortFieldWriter_Flip);
34683 0 method(arg_self);
34684 0 XSRETURN(0);
34685 }
34686  
34687 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_refill);
34688 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_refill) {
34689 0 dXSARGS;
34690 lucy_SortFieldWriter* arg_self;
34691 LUCY_SortFieldWriter_Refill_t method;
34692 uint32_t retval;
34693  
34694 CFISH_UNUSED_VAR(cv);
34695 0 SP -= items;
34696 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34697 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34698 }
34699  
34700 /* Extract vars from Perl stack. */
34701 0 arg_self = (lucy_SortFieldWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTFIELDWRITER, NULL);
34702  
34703 /* Execute */
34704 0 method = CFISH_METHOD_PTR(LUCY_SORTFIELDWRITER, LUCY_SortFieldWriter_Refill);
34705 0 retval = method(arg_self);
34706 0 ST(0) = newSVuv(retval);
34707 0 sv_2mortal( ST(0) );
34708 0 XSRETURN(1);
34709 }
34710  
34711 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_finish);
34712 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_finish) {
34713 0 dXSARGS;
34714 lucy_SortFieldWriter* arg_self;
34715 LUCY_SortFieldWriter_Finish_t method;
34716 int32_t retval;
34717  
34718 CFISH_UNUSED_VAR(cv);
34719 0 SP -= items;
34720 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34721 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34722 }
34723  
34724 /* Extract vars from Perl stack. */
34725 0 arg_self = (lucy_SortFieldWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTFIELDWRITER, NULL);
34726  
34727 /* Execute */
34728 0 method = CFISH_METHOD_PTR(LUCY_SORTFIELDWRITER, LUCY_SortFieldWriter_Finish);
34729 0 retval = method(arg_self);
34730 0 ST(0) = newSViv(retval);
34731 0 sv_2mortal( ST(0) );
34732 0 XSRETURN(1);
34733 }
34734  
34735 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_get_null_ord);
34736 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_get_null_ord) {
34737 0 dXSARGS;
34738 lucy_SortFieldWriter* arg_self;
34739 LUCY_SortFieldWriter_Get_Null_Ord_t method;
34740 int32_t retval;
34741  
34742 CFISH_UNUSED_VAR(cv);
34743 0 SP -= items;
34744 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34745 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34746 }
34747  
34748 /* Extract vars from Perl stack. */
34749 0 arg_self = (lucy_SortFieldWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTFIELDWRITER, NULL);
34750  
34751 /* Execute */
34752 0 method = CFISH_METHOD_PTR(LUCY_SORTFIELDWRITER, LUCY_SortFieldWriter_Get_Null_Ord);
34753 0 retval = method(arg_self);
34754 0 ST(0) = newSViv(retval);
34755 0 sv_2mortal( ST(0) );
34756 0 XSRETURN(1);
34757 }
34758  
34759 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_get_ord_width);
34760 0 XS_INTERNAL(XS_Lucy_Index_SortFieldWriter_get_ord_width) {
34761 0 dXSARGS;
34762 lucy_SortFieldWriter* arg_self;
34763 LUCY_SortFieldWriter_Get_Ord_Width_t method;
34764 int32_t retval;
34765  
34766 CFISH_UNUSED_VAR(cv);
34767 0 SP -= items;
34768 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34769 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34770 }
34771  
34772 /* Extract vars from Perl stack. */
34773 0 arg_self = (lucy_SortFieldWriter*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SORTFIELDWRITER, NULL);
34774  
34775 /* Execute */
34776 0 method = CFISH_METHOD_PTR(LUCY_SORTFIELDWRITER, LUCY_SortFieldWriter_Get_Ord_Width);
34777 0 retval = method(arg_self);
34778 0 ST(0) = newSViv(retval);
34779 0 sv_2mortal( ST(0) );
34780 0 XSRETURN(1);
34781 }
34782  
34783 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_new);
34784 11 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_new) {
34785 11 dXSARGS;
34786 static const XSBind_ParamSpec param_specs[2] = {
34787 XSBIND_PARAM("mem_thresh", 0),
34788 XSBIND_PARAM("external", 0)
34789 };
34790 int32_t locations[2];
34791 SV *sv;
34792 lucy_BlobSortEx* arg_self;
34793 uint32_t arg_mem_thresh;
34794 cfish_Vector* arg_external;
34795 lucy_BlobSortEx* retval;
34796  
34797 CFISH_UNUSED_VAR(cv);
34798 11 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 11 11
34799 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
34800 }
34801 11 SP -= items;
34802  
34803 11 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
34804 locations, 2);
34805 11 sv = ST(locations[0]);
34806 6 ▶ arg_mem_thresh = locations[0] < items && XSBind_sv_defined(aTHX_ sv)
Branch: 1 branch
BranchTrueFalseTotal
arg_mem_thresh = locations[0] < items && XSBind_sv_defined(aTHX_ sv) 6 0 6
34807 17 ▶ ? (uint32_t)SvUV(sv) : 0x1000000;
Branch: 1 branch
BranchTrueFalseTotal
? (uint32_t)SvUV(sv) : 0x1000000; 6 5 11
34808 11 sv = ST(locations[1]);
34809 11 ▶ arg_external = locations[1] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "external", CFISH_VECTOR, NULL) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_external = locations[1] < items ? (cfish_Vector*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "external", CFISH_VECTOR, NULL) : NULL; 1 10 11
34810 11 arg_self = (lucy_BlobSortEx*)XSBind_new_blank_obj(aTHX_ ST(0));
34811  
34812 11 retval = lucy_BlobSortEx_init(arg_self, arg_mem_thresh, arg_external);
34813 11 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
34814 11 XSRETURN(1);
34815 }
34816  
34817  
34818 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_feed);
34819 12129 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_feed) {
34820 12129 dXSARGS;
34821 SV *sv;
34822 lucy_BlobSortEx* arg_self;
34823 cfish_Obj* arg_item;
34824 LUCY_BlobSortEx_Feed_t method;
34825  
34826 CFISH_UNUSED_VAR(cv);
34827 12129 SP -= items;
34828 12129 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 12129 12129
34829 0 XSBind_invalid_args_error(aTHX_ cv, "self, item");
34830 }
34831  
34832 /* Extract vars from Perl stack. */
34833 12129 arg_self = (lucy_BlobSortEx*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBSORTEX, NULL);
34834 12129 sv = ST(1);
34835 12129 arg_item = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "item", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
34836  
34837 /* Execute */
34838 12129 method = CFISH_METHOD_PTR(LUCY_BLOBSORTEX, LUCY_BlobSortEx_Feed);
34839 12129 arg_item = (cfish_Obj*)CFISH_INCREF(arg_item);
34840 12129 method(arg_self, arg_item);
34841 12129 XSRETURN(0);
34842 }
34843  
34844 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_flush);
34845 1 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_flush) {
34846 1 dXSARGS;
34847 lucy_BlobSortEx* arg_self;
34848 LUCY_BlobSortEx_Flush_t method;
34849  
34850 CFISH_UNUSED_VAR(cv);
34851 1 SP -= items;
34852 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
34853 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34854 }
34855  
34856 /* Extract vars from Perl stack. */
34857 1 arg_self = (lucy_BlobSortEx*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBSORTEX, NULL);
34858  
34859 /* Execute */
34860 1 method = CFISH_METHOD_PTR(LUCY_BLOBSORTEX, LUCY_BlobSortEx_Flush);
34861 1 method(arg_self);
34862 1 XSRETURN(0);
34863 }
34864  
34865 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_refill);
34866 0 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_refill) {
34867 0 dXSARGS;
34868 lucy_BlobSortEx* arg_self;
34869 LUCY_BlobSortEx_Refill_t method;
34870 uint32_t retval;
34871  
34872 CFISH_UNUSED_VAR(cv);
34873 0 SP -= items;
34874 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34875 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34876 }
34877  
34878 /* Extract vars from Perl stack. */
34879 0 arg_self = (lucy_BlobSortEx*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBSORTEX, NULL);
34880  
34881 /* Execute */
34882 0 method = CFISH_METHOD_PTR(LUCY_BLOBSORTEX, LUCY_BlobSortEx_Refill);
34883 0 retval = method(arg_self);
34884 0 ST(0) = newSVuv(retval);
34885 0 sv_2mortal( ST(0) );
34886 0 XSRETURN(1);
34887 }
34888  
34889 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_clear_buffer);
34890 1 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_clear_buffer) {
34891 1 dXSARGS;
34892 lucy_BlobSortEx* arg_self;
34893 LUCY_BlobSortEx_Clear_Buffer_t method;
34894  
34895 CFISH_UNUSED_VAR(cv);
34896 1 SP -= items;
34897 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
34898 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34899 }
34900  
34901 /* Extract vars from Perl stack. */
34902 1 arg_self = (lucy_BlobSortEx*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBSORTEX, NULL);
34903  
34904 /* Execute */
34905 1 method = CFISH_METHOD_PTR(LUCY_BLOBSORTEX, LUCY_BlobSortEx_Clear_Buffer);
34906 1 method(arg_self);
34907 1 XSRETURN(0);
34908 }
34909  
34910 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_flip);
34911 10 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_flip) {
34912 10 dXSARGS;
34913 lucy_BlobSortEx* arg_self;
34914 LUCY_BlobSortEx_Flip_t method;
34915  
34916 CFISH_UNUSED_VAR(cv);
34917 10 SP -= items;
34918 10 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 10 10
34919 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34920 }
34921  
34922 /* Extract vars from Perl stack. */
34923 10 arg_self = (lucy_BlobSortEx*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBSORTEX, NULL);
34924  
34925 /* Execute */
34926 10 method = CFISH_METHOD_PTR(LUCY_BLOBSORTEX, LUCY_BlobSortEx_Flip);
34927 10 method(arg_self);
34928 10 XSRETURN(0);
34929 }
34930  
34931 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_peek_cache);
34932 0 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_peek_cache) {
34933 0 dXSARGS;
34934 lucy_BlobSortEx* arg_self;
34935 LUCY_BlobSortEx_Peek_Cache_t method;
34936 cfish_Vector* retval;
34937  
34938 CFISH_UNUSED_VAR(cv);
34939 0 SP -= items;
34940 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34941 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34942 }
34943  
34944 /* Extract vars from Perl stack. */
34945 0 arg_self = (lucy_BlobSortEx*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBSORTEX, NULL);
34946  
34947 /* Execute */
34948 0 method = CFISH_METHOD_PTR(LUCY_BLOBSORTEX, LUCY_BlobSortEx_Peek_Cache);
34949 0 retval = method(arg_self);
34950 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
34951 0 CFISH_DECREF(retval);
34952 0 sv_2mortal( ST(0) );
34953 0 XSRETURN(1);
34954 }
34955  
34956 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_peek_last);
34957 0 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_peek_last) {
34958 0 dXSARGS;
34959 lucy_BlobSortEx* arg_self;
34960 LUCY_BlobSortEx_Peek_Last_t method;
34961 cfish_Obj* retval;
34962  
34963 CFISH_UNUSED_VAR(cv);
34964 0 SP -= items;
34965 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34966 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34967 }
34968  
34969 /* Extract vars from Perl stack. */
34970 0 arg_self = (lucy_BlobSortEx*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBSORTEX, NULL);
34971  
34972 /* Execute */
34973 0 method = CFISH_METHOD_PTR(LUCY_BLOBSORTEX, LUCY_BlobSortEx_Peek_Last);
34974 0 retval = method(arg_self);
34975 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
34976 0 CFISH_DECREF(retval);
34977 0 sv_2mortal( ST(0) );
34978 0 XSRETURN(1);
34979 }
34980  
34981 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_get_num_runs);
34982 0 XS_INTERNAL(XS_Lucy_Util_BlobSortEx_get_num_runs) {
34983 0 dXSARGS;
34984 lucy_BlobSortEx* arg_self;
34985 LUCY_BlobSortEx_Get_Num_Runs_t method;
34986 uint32_t retval;
34987  
34988 CFISH_UNUSED_VAR(cv);
34989 0 SP -= items;
34990 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
34991 0 XSBind_invalid_args_error(aTHX_ cv, "self");
34992 }
34993  
34994 /* Extract vars from Perl stack. */
34995 0 arg_self = (lucy_BlobSortEx*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_BLOBSORTEX, NULL);
34996  
34997 /* Execute */
34998 0 method = CFISH_METHOD_PTR(LUCY_BLOBSORTEX, LUCY_BlobSortEx_Get_Num_Runs);
34999 0 retval = method(arg_self);
35000 0 ST(0) = newSVuv(retval);
35001 0 sv_2mortal( ST(0) );
35002 0 XSRETURN(1);
35003 }
35004  
35005 XS_INTERNAL(XS_Lucy_Util_Stepper_new);
35006 1 XS_INTERNAL(XS_Lucy_Util_Stepper_new) {
35007 1 dXSARGS;
35008 lucy_Stepper* arg_self;
35009 lucy_Stepper* retval;
35010  
35011 CFISH_UNUSED_VAR(cv);
35012 1 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 1 1
35013 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
35014 }
35015 1 SP -= items;
35016  
35017 1 arg_self = (lucy_Stepper*)XSBind_new_blank_obj(aTHX_ ST(0));
35018  
35019 1 retval = lucy_Stepper_init(arg_self);
35020 1 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
35021 1 XSRETURN(1);
35022 }
35023  
35024  
35025 XS_INTERNAL(XS_Lucy_Util_Stepper_reset);
35026 0 XS_INTERNAL(XS_Lucy_Util_Stepper_reset) {
35027 0 dXSARGS;
35028 lucy_Stepper* arg_self;
35029 LUCY_Stepper_Reset_t method;
35030  
35031 CFISH_UNUSED_VAR(cv);
35032 0 SP -= items;
35033 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
35034 0 XSBind_invalid_args_error(aTHX_ cv, "self");
35035 }
35036  
35037 /* Extract vars from Perl stack. */
35038 0 arg_self = (lucy_Stepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STEPPER, NULL);
35039  
35040 /* Execute */
35041 0 method = CFISH_METHOD_PTR(LUCY_STEPPER, LUCY_Stepper_Reset);
35042 0 method(arg_self);
35043 0 XSRETURN(0);
35044 }
35045  
35046 XS_INTERNAL(XS_Lucy_Util_Stepper_write_key_frame);
35047 0 XS_INTERNAL(XS_Lucy_Util_Stepper_write_key_frame) {
35048 0 dXSARGS;
35049 static const XSBind_ParamSpec param_specs[2] = {
35050 XSBIND_PARAM("outstream", 1),
35051 XSBIND_PARAM("value", 1)
35052 };
35053 int32_t locations[2];
35054 SV *sv;
35055 lucy_Stepper* arg_self;
35056 lucy_OutStream* arg_outstream;
35057 cfish_Obj* arg_value;
35058 LUCY_Stepper_Write_Key_Frame_t method;
35059  
35060 CFISH_UNUSED_VAR(cv);
35061 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35062 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35063 }
35064 0 SP -= items;
35065  
35066 /* Locate args on Perl stack. */
35067 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35068 locations, 2);
35069 0 arg_self = (lucy_Stepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STEPPER, NULL);
35070 0 sv = ST(locations[0]);
35071 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
35072 0 sv = ST(locations[1]);
35073 0 arg_value = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
35074  
35075 /* Execute */
35076 0 method = CFISH_METHOD_PTR(LUCY_STEPPER, LUCY_Stepper_Write_Key_Frame);
35077 0 method(arg_self, arg_outstream, arg_value);
35078 0 XSRETURN(0);
35079 }
35080  
35081 XS_INTERNAL(XS_Lucy_Util_Stepper_write_delta);
35082 0 XS_INTERNAL(XS_Lucy_Util_Stepper_write_delta) {
35083 0 dXSARGS;
35084 static const XSBind_ParamSpec param_specs[2] = {
35085 XSBIND_PARAM("outstream", 1),
35086 XSBIND_PARAM("value", 1)
35087 };
35088 int32_t locations[2];
35089 SV *sv;
35090 lucy_Stepper* arg_self;
35091 lucy_OutStream* arg_outstream;
35092 cfish_Obj* arg_value;
35093 LUCY_Stepper_Write_Delta_t method;
35094  
35095 CFISH_UNUSED_VAR(cv);
35096 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35097 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35098 }
35099 0 SP -= items;
35100  
35101 /* Locate args on Perl stack. */
35102 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35103 locations, 2);
35104 0 arg_self = (lucy_Stepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STEPPER, NULL);
35105 0 sv = ST(locations[0]);
35106 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
35107 0 sv = ST(locations[1]);
35108 0 arg_value = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
35109  
35110 /* Execute */
35111 0 method = CFISH_METHOD_PTR(LUCY_STEPPER, LUCY_Stepper_Write_Delta);
35112 0 method(arg_self, arg_outstream, arg_value);
35113 0 XSRETURN(0);
35114 }
35115  
35116 XS_INTERNAL(XS_Lucy_Util_Stepper_read_key_frame);
35117 0 XS_INTERNAL(XS_Lucy_Util_Stepper_read_key_frame) {
35118 0 dXSARGS;
35119 SV *sv;
35120 lucy_Stepper* arg_self;
35121 lucy_InStream* arg_instream;
35122 LUCY_Stepper_Read_Key_Frame_t method;
35123  
35124 CFISH_UNUSED_VAR(cv);
35125 0 SP -= items;
35126 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
35127 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
35128 }
35129  
35130 /* Extract vars from Perl stack. */
35131 0 arg_self = (lucy_Stepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STEPPER, NULL);
35132 0 sv = ST(1);
35133 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35134  
35135 /* Execute */
35136 0 method = CFISH_METHOD_PTR(LUCY_STEPPER, LUCY_Stepper_Read_Key_Frame);
35137 0 method(arg_self, arg_instream);
35138 0 XSRETURN(0);
35139 }
35140  
35141 XS_INTERNAL(XS_Lucy_Util_Stepper_read_delta);
35142 0 XS_INTERNAL(XS_Lucy_Util_Stepper_read_delta) {
35143 0 dXSARGS;
35144 SV *sv;
35145 lucy_Stepper* arg_self;
35146 lucy_InStream* arg_instream;
35147 LUCY_Stepper_Read_Delta_t method;
35148  
35149 CFISH_UNUSED_VAR(cv);
35150 0 SP -= items;
35151 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
35152 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
35153 }
35154  
35155 /* Extract vars from Perl stack. */
35156 0 arg_self = (lucy_Stepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STEPPER, NULL);
35157 0 sv = ST(1);
35158 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35159  
35160 /* Execute */
35161 0 method = CFISH_METHOD_PTR(LUCY_STEPPER, LUCY_Stepper_Read_Delta);
35162 0 method(arg_self, arg_instream);
35163 0 XSRETURN(0);
35164 }
35165  
35166 XS_INTERNAL(XS_Lucy_Util_Stepper_read_record);
35167 0 XS_INTERNAL(XS_Lucy_Util_Stepper_read_record) {
35168 0 dXSARGS;
35169 SV *sv;
35170 lucy_Stepper* arg_self;
35171 lucy_InStream* arg_instream;
35172 LUCY_Stepper_Read_Record_t method;
35173  
35174 CFISH_UNUSED_VAR(cv);
35175 0 SP -= items;
35176 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
35177 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
35178 }
35179  
35180 /* Extract vars from Perl stack. */
35181 0 arg_self = (lucy_Stepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_STEPPER, NULL);
35182 0 sv = ST(1);
35183 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35184  
35185 /* Execute */
35186 0 method = CFISH_METHOD_PTR(LUCY_STEPPER, LUCY_Stepper_Read_Record);
35187 0 method(arg_self, arg_instream);
35188 0 XSRETURN(0);
35189 }
35190  
35191 XS_INTERNAL(XS_Lucy_Index_Posting_new);
35192 0 XS_INTERNAL(XS_Lucy_Index_Posting_new) {
35193 0 dXSARGS;
35194 lucy_Posting* arg_self;
35195 lucy_Posting* retval;
35196  
35197 CFISH_UNUSED_VAR(cv);
35198 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
35199 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
35200 }
35201 0 SP -= items;
35202  
35203 0 arg_self = (lucy_Posting*)XSBind_new_blank_obj(aTHX_ ST(0));
35204  
35205 0 retval = lucy_Post_init(arg_self);
35206 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
35207 0 XSRETURN(1);
35208 }
35209  
35210  
35211 XS_INTERNAL(XS_Lucy_Index_Posting_read_raw);
35212 0 XS_INTERNAL(XS_Lucy_Index_Posting_read_raw) {
35213 0 dXSARGS;
35214 static const XSBind_ParamSpec param_specs[4] = {
35215 XSBIND_PARAM("instream", 1),
35216 XSBIND_PARAM("last_doc_id", 1),
35217 XSBIND_PARAM("term_text", 1),
35218 XSBIND_PARAM("mem_pool", 1)
35219 };
35220 int32_t locations[4];
35221 SV *sv;
35222 lucy_Posting* arg_self;
35223 lucy_InStream* arg_instream;
35224 int32_t arg_last_doc_id;
35225 cfish_String* arg_term_text;
35226 lucy_MemoryPool* arg_mem_pool;
35227 LUCY_Post_Read_Raw_t method;
35228 lucy_RawPosting* retval;
35229  
35230 CFISH_UNUSED_VAR(cv);
35231 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35232 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35233 }
35234 0 SP -= items;
35235  
35236 /* Locate args on Perl stack. */
35237 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35238 locations, 4);
35239 0 arg_self = (lucy_Posting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTING, NULL);
35240 0 sv = ST(locations[0]);
35241 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35242 0 sv = ST(locations[1]);
35243 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35244 0 XSBind_undef_arg_error(aTHX_ "last_doc_id");
35245 }
35246 0 arg_last_doc_id = (int32_t)SvIV(sv);
35247 0 sv = ST(locations[2]);
35248 0 arg_term_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "term_text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
35249 0 sv = ST(locations[3]);
35250 0 arg_mem_pool = (lucy_MemoryPool*)XSBind_arg_to_cfish(aTHX_ sv, "mem_pool", LUCY_MEMORYPOOL, NULL);
35251  
35252 /* Execute */
35253 0 method = CFISH_METHOD_PTR(LUCY_POSTING, LUCY_Post_Read_Raw);
35254 0 retval = method(arg_self, arg_instream, arg_last_doc_id, arg_term_text, arg_mem_pool);
35255 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
35256 0 CFISH_DECREF(retval);
35257 0 sv_2mortal( ST(0) );
35258 0 XSRETURN(1);
35259 }
35260  
35261 XS_INTERNAL(XS_Lucy_Index_Posting_add_inversion_to_pool);
35262 0 XS_INTERNAL(XS_Lucy_Index_Posting_add_inversion_to_pool) {
35263 0 dXSARGS;
35264 static const XSBind_ParamSpec param_specs[6] = {
35265 XSBIND_PARAM("post_pool", 1),
35266 XSBIND_PARAM("inversion", 1),
35267 XSBIND_PARAM("type", 1),
35268 XSBIND_PARAM("doc_id", 1),
35269 XSBIND_PARAM("doc_boost", 1),
35270 XSBIND_PARAM("length_norm", 1)
35271 };
35272 int32_t locations[6];
35273 SV *sv;
35274 lucy_Posting* arg_self;
35275 lucy_PostingPool* arg_post_pool;
35276 lucy_Inversion* arg_inversion;
35277 lucy_FieldType* arg_type;
35278 int32_t arg_doc_id;
35279 float arg_doc_boost;
35280 float arg_length_norm;
35281 LUCY_Post_Add_Inversion_To_Pool_t method;
35282  
35283 CFISH_UNUSED_VAR(cv);
35284 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35285 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35286 }
35287 0 SP -= items;
35288  
35289 /* Locate args on Perl stack. */
35290 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35291 locations, 6);
35292 0 arg_self = (lucy_Posting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTING, NULL);
35293 0 sv = ST(locations[0]);
35294 0 arg_post_pool = (lucy_PostingPool*)XSBind_arg_to_cfish(aTHX_ sv, "post_pool", LUCY_POSTINGPOOL, NULL);
35295 0 sv = ST(locations[1]);
35296 0 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
35297 0 sv = ST(locations[2]);
35298 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
35299 0 sv = ST(locations[3]);
35300 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35301 0 XSBind_undef_arg_error(aTHX_ "doc_id");
35302 }
35303 0 arg_doc_id = (int32_t)SvIV(sv);
35304 0 sv = ST(locations[4]);
35305 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35306 0 XSBind_undef_arg_error(aTHX_ "doc_boost");
35307 }
35308 0 arg_doc_boost = (float)SvNV(sv);
35309 0 sv = ST(locations[5]);
35310 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35311 0 XSBind_undef_arg_error(aTHX_ "length_norm");
35312 }
35313 0 arg_length_norm = (float)SvNV(sv);
35314  
35315 /* Execute */
35316 0 method = CFISH_METHOD_PTR(LUCY_POSTING, LUCY_Post_Add_Inversion_To_Pool);
35317 0 method(arg_self, arg_post_pool, arg_inversion, arg_type, arg_doc_id, arg_doc_boost, arg_length_norm);
35318 0 XSRETURN(0);
35319 }
35320  
35321 XS_INTERNAL(XS_Lucy_Index_Posting_set_doc_id);
35322 0 XS_INTERNAL(XS_Lucy_Index_Posting_set_doc_id) {
35323 0 dXSARGS;
35324 SV *sv;
35325 lucy_Posting* arg_self;
35326 int32_t arg_doc_id;
35327 LUCY_Post_Set_Doc_ID_t method;
35328  
35329 CFISH_UNUSED_VAR(cv);
35330 0 SP -= items;
35331 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
35332 0 XSBind_invalid_args_error(aTHX_ cv, "self, doc_id");
35333 }
35334  
35335 /* Extract vars from Perl stack. */
35336 0 arg_self = (lucy_Posting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTING, NULL);
35337 0 sv = ST(1);
35338 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35339 0 XSBind_undef_arg_error(aTHX_ "doc_id");
35340 }
35341 0 arg_doc_id = (int32_t)SvIV(sv);
35342  
35343 /* Execute */
35344 0 method = CFISH_METHOD_PTR(LUCY_POSTING, LUCY_Post_Set_Doc_ID);
35345 0 method(arg_self, arg_doc_id);
35346 0 XSRETURN(0);
35347 }
35348  
35349 XS_INTERNAL(XS_Lucy_Index_Posting_get_doc_id);
35350 3 XS_INTERNAL(XS_Lucy_Index_Posting_get_doc_id) {
35351 3 dXSARGS;
35352 lucy_Posting* arg_self;
35353 LUCY_Post_Get_Doc_ID_t method;
35354 int32_t retval;
35355  
35356 CFISH_UNUSED_VAR(cv);
35357 3 SP -= items;
35358 3 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 3 3
35359 0 XSBind_invalid_args_error(aTHX_ cv, "self");
35360 }
35361  
35362 /* Extract vars from Perl stack. */
35363 3 arg_self = (lucy_Posting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTING, NULL);
35364  
35365 /* Execute */
35366 3 method = CFISH_METHOD_PTR(LUCY_POSTING, LUCY_Post_Get_Doc_ID);
35367 3 retval = method(arg_self);
35368 3 ST(0) = newSViv(retval);
35369 3 sv_2mortal( ST(0) );
35370 3 XSRETURN(1);
35371 }
35372  
35373 XS_INTERNAL(XS_Lucy_Index_Posting_make_matcher);
35374 0 XS_INTERNAL(XS_Lucy_Index_Posting_make_matcher) {
35375 0 dXSARGS;
35376 static const XSBind_ParamSpec param_specs[4] = {
35377 XSBIND_PARAM("sim", 1),
35378 XSBIND_PARAM("plist", 1),
35379 XSBIND_PARAM("compiler", 1),
35380 XSBIND_PARAM("need_score", 1)
35381 };
35382 int32_t locations[4];
35383 SV *sv;
35384 lucy_Posting* arg_self;
35385 lucy_Similarity* arg_sim;
35386 lucy_PostingList* arg_plist;
35387 lucy_Compiler* arg_compiler;
35388 bool arg_need_score;
35389 LUCY_Post_Make_Matcher_t method;
35390 lucy_Matcher* retval;
35391  
35392 CFISH_UNUSED_VAR(cv);
35393 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35394 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35395 }
35396 0 SP -= items;
35397  
35398 /* Locate args on Perl stack. */
35399 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35400 locations, 4);
35401 0 arg_self = (lucy_Posting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_POSTING, NULL);
35402 0 sv = ST(locations[0]);
35403 0 arg_sim = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "sim", LUCY_SIMILARITY, NULL);
35404 0 sv = ST(locations[1]);
35405 0 arg_plist = (lucy_PostingList*)XSBind_arg_to_cfish(aTHX_ sv, "plist", LUCY_POSTINGLIST, NULL);
35406 0 sv = ST(locations[2]);
35407 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
35408 0 sv = ST(locations[3]);
35409 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35410 0 XSBind_undef_arg_error(aTHX_ "need_score");
35411 }
35412 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
35413  
35414 /* Execute */
35415 0 method = CFISH_METHOD_PTR(LUCY_POSTING, LUCY_Post_Make_Matcher);
35416 0 retval = method(arg_self, arg_sim, arg_plist, arg_compiler, arg_need_score);
35417 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
35418 0 CFISH_DECREF(retval);
35419 0 sv_2mortal( ST(0) );
35420 0 XSRETURN(1);
35421 }
35422  
35423 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_new);
35424 64 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_new) {
35425 64 dXSARGS;
35426 static const XSBind_ParamSpec param_specs[1] = {
35427 XSBIND_PARAM("similarity", 1)
35428 };
35429 int32_t locations[1];
35430 SV *sv;
35431 lucy_MatchPosting* arg_self;
35432 lucy_Similarity* arg_similarity;
35433 lucy_MatchPosting* retval;
35434  
35435 CFISH_UNUSED_VAR(cv);
35436 64 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 64 64
35437 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
35438 }
35439 64 SP -= items;
35440  
35441 64 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35442 locations, 1);
35443 64 sv = ST(locations[0]);
35444 64 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
35445 64 arg_self = (lucy_MatchPosting*)XSBind_new_blank_obj(aTHX_ ST(0));
35446  
35447 64 retval = lucy_MatchPost_init(arg_self, arg_similarity);
35448 64 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
35449 64 XSRETURN(1);
35450 }
35451  
35452  
35453 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_get_freq);
35454 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_get_freq) {
35455 0 dXSARGS;
35456 lucy_MatchPosting* arg_self;
35457 LUCY_MatchPost_Get_Freq_t method;
35458 int32_t retval;
35459  
35460 CFISH_UNUSED_VAR(cv);
35461 0 SP -= items;
35462 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
35463 0 XSBind_invalid_args_error(aTHX_ cv, "self");
35464 }
35465  
35466 /* Extract vars from Perl stack. */
35467 0 arg_self = (lucy_MatchPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTING, NULL);
35468  
35469 /* Execute */
35470 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTING, LUCY_MatchPost_Get_Freq);
35471 0 retval = method(arg_self);
35472 0 ST(0) = newSViv(retval);
35473 0 sv_2mortal( ST(0) );
35474 0 XSRETURN(1);
35475 }
35476  
35477 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_read_record);
35478 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_read_record) {
35479 0 dXSARGS;
35480 SV *sv;
35481 lucy_MatchPosting* arg_self;
35482 lucy_InStream* arg_instream;
35483 LUCY_MatchPost_Read_Record_t method;
35484  
35485 CFISH_UNUSED_VAR(cv);
35486 0 SP -= items;
35487 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
35488 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
35489 }
35490  
35491 /* Extract vars from Perl stack. */
35492 0 arg_self = (lucy_MatchPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTING, NULL);
35493 0 sv = ST(1);
35494 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35495  
35496 /* Execute */
35497 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTING, LUCY_MatchPost_Read_Record);
35498 0 method(arg_self, arg_instream);
35499 0 XSRETURN(0);
35500 }
35501  
35502 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_read_raw);
35503 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_read_raw) {
35504 0 dXSARGS;
35505 static const XSBind_ParamSpec param_specs[4] = {
35506 XSBIND_PARAM("instream", 1),
35507 XSBIND_PARAM("last_doc_id", 1),
35508 XSBIND_PARAM("term_text", 1),
35509 XSBIND_PARAM("mem_pool", 1)
35510 };
35511 int32_t locations[4];
35512 SV *sv;
35513 lucy_MatchPosting* arg_self;
35514 lucy_InStream* arg_instream;
35515 int32_t arg_last_doc_id;
35516 cfish_String* arg_term_text;
35517 lucy_MemoryPool* arg_mem_pool;
35518 LUCY_MatchPost_Read_Raw_t method;
35519 lucy_RawPosting* retval;
35520  
35521 CFISH_UNUSED_VAR(cv);
35522 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35523 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35524 }
35525 0 SP -= items;
35526  
35527 /* Locate args on Perl stack. */
35528 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35529 locations, 4);
35530 0 arg_self = (lucy_MatchPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTING, NULL);
35531 0 sv = ST(locations[0]);
35532 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35533 0 sv = ST(locations[1]);
35534 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35535 0 XSBind_undef_arg_error(aTHX_ "last_doc_id");
35536 }
35537 0 arg_last_doc_id = (int32_t)SvIV(sv);
35538 0 sv = ST(locations[2]);
35539 0 arg_term_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "term_text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
35540 0 sv = ST(locations[3]);
35541 0 arg_mem_pool = (lucy_MemoryPool*)XSBind_arg_to_cfish(aTHX_ sv, "mem_pool", LUCY_MEMORYPOOL, NULL);
35542  
35543 /* Execute */
35544 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTING, LUCY_MatchPost_Read_Raw);
35545 0 retval = method(arg_self, arg_instream, arg_last_doc_id, arg_term_text, arg_mem_pool);
35546 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
35547 0 CFISH_DECREF(retval);
35548 0 sv_2mortal( ST(0) );
35549 0 XSRETURN(1);
35550 }
35551  
35552 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_add_inversion_to_pool);
35553 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_add_inversion_to_pool) {
35554 0 dXSARGS;
35555 static const XSBind_ParamSpec param_specs[6] = {
35556 XSBIND_PARAM("post_pool", 1),
35557 XSBIND_PARAM("inversion", 1),
35558 XSBIND_PARAM("type", 1),
35559 XSBIND_PARAM("doc_id", 1),
35560 XSBIND_PARAM("doc_boost", 1),
35561 XSBIND_PARAM("length_norm", 1)
35562 };
35563 int32_t locations[6];
35564 SV *sv;
35565 lucy_MatchPosting* arg_self;
35566 lucy_PostingPool* arg_post_pool;
35567 lucy_Inversion* arg_inversion;
35568 lucy_FieldType* arg_type;
35569 int32_t arg_doc_id;
35570 float arg_doc_boost;
35571 float arg_length_norm;
35572 LUCY_MatchPost_Add_Inversion_To_Pool_t method;
35573  
35574 CFISH_UNUSED_VAR(cv);
35575 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35576 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35577 }
35578 0 SP -= items;
35579  
35580 /* Locate args on Perl stack. */
35581 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35582 locations, 6);
35583 0 arg_self = (lucy_MatchPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTING, NULL);
35584 0 sv = ST(locations[0]);
35585 0 arg_post_pool = (lucy_PostingPool*)XSBind_arg_to_cfish(aTHX_ sv, "post_pool", LUCY_POSTINGPOOL, NULL);
35586 0 sv = ST(locations[1]);
35587 0 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
35588 0 sv = ST(locations[2]);
35589 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
35590 0 sv = ST(locations[3]);
35591 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35592 0 XSBind_undef_arg_error(aTHX_ "doc_id");
35593 }
35594 0 arg_doc_id = (int32_t)SvIV(sv);
35595 0 sv = ST(locations[4]);
35596 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35597 0 XSBind_undef_arg_error(aTHX_ "doc_boost");
35598 }
35599 0 arg_doc_boost = (float)SvNV(sv);
35600 0 sv = ST(locations[5]);
35601 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35602 0 XSBind_undef_arg_error(aTHX_ "length_norm");
35603 }
35604 0 arg_length_norm = (float)SvNV(sv);
35605  
35606 /* Execute */
35607 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTING, LUCY_MatchPost_Add_Inversion_To_Pool);
35608 0 method(arg_self, arg_post_pool, arg_inversion, arg_type, arg_doc_id, arg_doc_boost, arg_length_norm);
35609 0 XSRETURN(0);
35610 }
35611  
35612 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_reset);
35613 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_reset) {
35614 0 dXSARGS;
35615 lucy_MatchPosting* arg_self;
35616 LUCY_MatchPost_Reset_t method;
35617  
35618 CFISH_UNUSED_VAR(cv);
35619 0 SP -= items;
35620 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
35621 0 XSBind_invalid_args_error(aTHX_ cv, "self");
35622 }
35623  
35624 /* Extract vars from Perl stack. */
35625 0 arg_self = (lucy_MatchPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTING, NULL);
35626  
35627 /* Execute */
35628 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTING, LUCY_MatchPost_Reset);
35629 0 method(arg_self);
35630 0 XSRETURN(0);
35631 }
35632  
35633 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_make_matcher);
35634 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_make_matcher) {
35635 0 dXSARGS;
35636 static const XSBind_ParamSpec param_specs[4] = {
35637 XSBIND_PARAM("sim", 1),
35638 XSBIND_PARAM("plist", 1),
35639 XSBIND_PARAM("compiler", 1),
35640 XSBIND_PARAM("need_score", 1)
35641 };
35642 int32_t locations[4];
35643 SV *sv;
35644 lucy_MatchPosting* arg_self;
35645 lucy_Similarity* arg_sim;
35646 lucy_PostingList* arg_plist;
35647 lucy_Compiler* arg_compiler;
35648 bool arg_need_score;
35649 LUCY_MatchPost_Make_Matcher_t method;
35650 lucy_MatchPostingMatcher* retval;
35651  
35652 CFISH_UNUSED_VAR(cv);
35653 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35654 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35655 }
35656 0 SP -= items;
35657  
35658 /* Locate args on Perl stack. */
35659 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35660 locations, 4);
35661 0 arg_self = (lucy_MatchPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHPOSTING, NULL);
35662 0 sv = ST(locations[0]);
35663 0 arg_sim = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "sim", LUCY_SIMILARITY, NULL);
35664 0 sv = ST(locations[1]);
35665 0 arg_plist = (lucy_PostingList*)XSBind_arg_to_cfish(aTHX_ sv, "plist", LUCY_POSTINGLIST, NULL);
35666 0 sv = ST(locations[2]);
35667 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
35668 0 sv = ST(locations[3]);
35669 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35670 0 XSBind_undef_arg_error(aTHX_ "need_score");
35671 }
35672 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
35673  
35674 /* Execute */
35675 0 method = CFISH_METHOD_PTR(LUCY_MATCHPOSTING, LUCY_MatchPost_Make_Matcher);
35676 0 retval = method(arg_self, arg_sim, arg_plist, arg_compiler, arg_need_score);
35677 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
35678 0 CFISH_DECREF(retval);
35679 0 sv_2mortal( ST(0) );
35680 0 XSRETURN(1);
35681 }
35682  
35683 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_new);
35684 0 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_new) {
35685 0 dXSARGS;
35686 static const XSBind_ParamSpec param_specs[1] = {
35687 XSBIND_PARAM("similarity", 1)
35688 };
35689 int32_t locations[1];
35690 SV *sv;
35691 lucy_ScorePosting* arg_self;
35692 lucy_Similarity* arg_similarity;
35693 lucy_ScorePosting* retval;
35694  
35695 CFISH_UNUSED_VAR(cv);
35696 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35697 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
35698 }
35699 0 SP -= items;
35700  
35701 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35702 locations, 1);
35703 0 sv = ST(locations[0]);
35704 0 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
35705 0 arg_self = (lucy_ScorePosting*)XSBind_new_blank_obj(aTHX_ ST(0));
35706  
35707 0 retval = lucy_ScorePost_init(arg_self, arg_similarity);
35708 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
35709 0 XSRETURN(1);
35710 }
35711  
35712  
35713 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_read_record);
35714 0 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_read_record) {
35715 0 dXSARGS;
35716 SV *sv;
35717 lucy_ScorePosting* arg_self;
35718 lucy_InStream* arg_instream;
35719 LUCY_ScorePost_Read_Record_t method;
35720  
35721 CFISH_UNUSED_VAR(cv);
35722 0 SP -= items;
35723 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
35724 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
35725 }
35726  
35727 /* Extract vars from Perl stack. */
35728 0 arg_self = (lucy_ScorePosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCOREPOSTING, NULL);
35729 0 sv = ST(1);
35730 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35731  
35732 /* Execute */
35733 0 method = CFISH_METHOD_PTR(LUCY_SCOREPOSTING, LUCY_ScorePost_Read_Record);
35734 0 method(arg_self, arg_instream);
35735 0 XSRETURN(0);
35736 }
35737  
35738 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_read_raw);
35739 0 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_read_raw) {
35740 0 dXSARGS;
35741 static const XSBind_ParamSpec param_specs[4] = {
35742 XSBIND_PARAM("instream", 1),
35743 XSBIND_PARAM("last_doc_id", 1),
35744 XSBIND_PARAM("term_text", 1),
35745 XSBIND_PARAM("mem_pool", 1)
35746 };
35747 int32_t locations[4];
35748 SV *sv;
35749 lucy_ScorePosting* arg_self;
35750 lucy_InStream* arg_instream;
35751 int32_t arg_last_doc_id;
35752 cfish_String* arg_term_text;
35753 lucy_MemoryPool* arg_mem_pool;
35754 LUCY_ScorePost_Read_Raw_t method;
35755 lucy_RawPosting* retval;
35756  
35757 CFISH_UNUSED_VAR(cv);
35758 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35759 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35760 }
35761 0 SP -= items;
35762  
35763 /* Locate args on Perl stack. */
35764 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35765 locations, 4);
35766 0 arg_self = (lucy_ScorePosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCOREPOSTING, NULL);
35767 0 sv = ST(locations[0]);
35768 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35769 0 sv = ST(locations[1]);
35770 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35771 0 XSBind_undef_arg_error(aTHX_ "last_doc_id");
35772 }
35773 0 arg_last_doc_id = (int32_t)SvIV(sv);
35774 0 sv = ST(locations[2]);
35775 0 arg_term_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "term_text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
35776 0 sv = ST(locations[3]);
35777 0 arg_mem_pool = (lucy_MemoryPool*)XSBind_arg_to_cfish(aTHX_ sv, "mem_pool", LUCY_MEMORYPOOL, NULL);
35778  
35779 /* Execute */
35780 0 method = CFISH_METHOD_PTR(LUCY_SCOREPOSTING, LUCY_ScorePost_Read_Raw);
35781 0 retval = method(arg_self, arg_instream, arg_last_doc_id, arg_term_text, arg_mem_pool);
35782 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
35783 0 CFISH_DECREF(retval);
35784 0 sv_2mortal( ST(0) );
35785 0 XSRETURN(1);
35786 }
35787  
35788 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_add_inversion_to_pool);
35789 0 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_add_inversion_to_pool) {
35790 0 dXSARGS;
35791 static const XSBind_ParamSpec param_specs[6] = {
35792 XSBIND_PARAM("post_pool", 1),
35793 XSBIND_PARAM("inversion", 1),
35794 XSBIND_PARAM("type", 1),
35795 XSBIND_PARAM("doc_id", 1),
35796 XSBIND_PARAM("doc_boost", 1),
35797 XSBIND_PARAM("length_norm", 1)
35798 };
35799 int32_t locations[6];
35800 SV *sv;
35801 lucy_ScorePosting* arg_self;
35802 lucy_PostingPool* arg_post_pool;
35803 lucy_Inversion* arg_inversion;
35804 lucy_FieldType* arg_type;
35805 int32_t arg_doc_id;
35806 float arg_doc_boost;
35807 float arg_length_norm;
35808 LUCY_ScorePost_Add_Inversion_To_Pool_t method;
35809  
35810 CFISH_UNUSED_VAR(cv);
35811 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35812 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35813 }
35814 0 SP -= items;
35815  
35816 /* Locate args on Perl stack. */
35817 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35818 locations, 6);
35819 0 arg_self = (lucy_ScorePosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCOREPOSTING, NULL);
35820 0 sv = ST(locations[0]);
35821 0 arg_post_pool = (lucy_PostingPool*)XSBind_arg_to_cfish(aTHX_ sv, "post_pool", LUCY_POSTINGPOOL, NULL);
35822 0 sv = ST(locations[1]);
35823 0 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
35824 0 sv = ST(locations[2]);
35825 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
35826 0 sv = ST(locations[3]);
35827 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35828 0 XSBind_undef_arg_error(aTHX_ "doc_id");
35829 }
35830 0 arg_doc_id = (int32_t)SvIV(sv);
35831 0 sv = ST(locations[4]);
35832 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35833 0 XSBind_undef_arg_error(aTHX_ "doc_boost");
35834 }
35835 0 arg_doc_boost = (float)SvNV(sv);
35836 0 sv = ST(locations[5]);
35837 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35838 0 XSBind_undef_arg_error(aTHX_ "length_norm");
35839 }
35840 0 arg_length_norm = (float)SvNV(sv);
35841  
35842 /* Execute */
35843 0 method = CFISH_METHOD_PTR(LUCY_SCOREPOSTING, LUCY_ScorePost_Add_Inversion_To_Pool);
35844 0 method(arg_self, arg_post_pool, arg_inversion, arg_type, arg_doc_id, arg_doc_boost, arg_length_norm);
35845 0 XSRETURN(0);
35846 }
35847  
35848 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_reset);
35849 0 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_reset) {
35850 0 dXSARGS;
35851 lucy_ScorePosting* arg_self;
35852 LUCY_ScorePost_Reset_t method;
35853  
35854 CFISH_UNUSED_VAR(cv);
35855 0 SP -= items;
35856 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
35857 0 XSBind_invalid_args_error(aTHX_ cv, "self");
35858 }
35859  
35860 /* Extract vars from Perl stack. */
35861 0 arg_self = (lucy_ScorePosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCOREPOSTING, NULL);
35862  
35863 /* Execute */
35864 0 method = CFISH_METHOD_PTR(LUCY_SCOREPOSTING, LUCY_ScorePost_Reset);
35865 0 method(arg_self);
35866 0 XSRETURN(0);
35867 }
35868  
35869 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_make_matcher);
35870 0 XS_INTERNAL(XS_Lucy_Index_Posting_ScorePosting_make_matcher) {
35871 0 dXSARGS;
35872 static const XSBind_ParamSpec param_specs[4] = {
35873 XSBIND_PARAM("sim", 1),
35874 XSBIND_PARAM("plist", 1),
35875 XSBIND_PARAM("compiler", 1),
35876 XSBIND_PARAM("need_score", 1)
35877 };
35878 int32_t locations[4];
35879 SV *sv;
35880 lucy_ScorePosting* arg_self;
35881 lucy_Similarity* arg_sim;
35882 lucy_PostingList* arg_plist;
35883 lucy_Compiler* arg_compiler;
35884 bool arg_need_score;
35885 LUCY_ScorePost_Make_Matcher_t method;
35886 lucy_ScorePostingMatcher* retval;
35887  
35888 CFISH_UNUSED_VAR(cv);
35889 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35890 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35891 }
35892 0 SP -= items;
35893  
35894 /* Locate args on Perl stack. */
35895 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35896 locations, 4);
35897 0 arg_self = (lucy_ScorePosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SCOREPOSTING, NULL);
35898 0 sv = ST(locations[0]);
35899 0 arg_sim = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "sim", LUCY_SIMILARITY, NULL);
35900 0 sv = ST(locations[1]);
35901 0 arg_plist = (lucy_PostingList*)XSBind_arg_to_cfish(aTHX_ sv, "plist", LUCY_POSTINGLIST, NULL);
35902 0 sv = ST(locations[2]);
35903 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
35904 0 sv = ST(locations[3]);
35905 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
35906 0 XSBind_undef_arg_error(aTHX_ "need_score");
35907 }
35908 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
35909  
35910 /* Execute */
35911 0 method = CFISH_METHOD_PTR(LUCY_SCOREPOSTING, LUCY_ScorePost_Make_Matcher);
35912 0 retval = method(arg_self, arg_sim, arg_plist, arg_compiler, arg_need_score);
35913 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
35914 0 CFISH_DECREF(retval);
35915 0 sv_2mortal( ST(0) );
35916 0 XSRETURN(1);
35917 }
35918  
35919 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_new);
35920 2 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_new) {
35921 2 dXSARGS;
35922 static const XSBind_ParamSpec param_specs[1] = {
35923 XSBIND_PARAM("similarity", 1)
35924 };
35925 int32_t locations[1];
35926 SV *sv;
35927 lucy_RichPosting* arg_self;
35928 lucy_Similarity* arg_similarity;
35929 lucy_RichPosting* retval;
35930  
35931 CFISH_UNUSED_VAR(cv);
35932 2 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 2 2
35933 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
35934 }
35935 2 SP -= items;
35936  
35937 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
35938 locations, 1);
35939 2 sv = ST(locations[0]);
35940 2 arg_similarity = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "similarity", LUCY_SIMILARITY, NULL);
35941 2 arg_self = (lucy_RichPosting*)XSBind_new_blank_obj(aTHX_ ST(0));
35942  
35943 2 retval = lucy_RichPost_init(arg_self, arg_similarity);
35944 2 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
35945 2 XSRETURN(1);
35946 }
35947  
35948  
35949 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_read_record);
35950 0 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_read_record) {
35951 0 dXSARGS;
35952 SV *sv;
35953 lucy_RichPosting* arg_self;
35954 lucy_InStream* arg_instream;
35955 LUCY_RichPost_Read_Record_t method;
35956  
35957 CFISH_UNUSED_VAR(cv);
35958 0 SP -= items;
35959 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
35960 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
35961 }
35962  
35963 /* Extract vars from Perl stack. */
35964 0 arg_self = (lucy_RichPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RICHPOSTING, NULL);
35965 0 sv = ST(1);
35966 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
35967  
35968 /* Execute */
35969 0 method = CFISH_METHOD_PTR(LUCY_RICHPOSTING, LUCY_RichPost_Read_Record);
35970 0 method(arg_self, arg_instream);
35971 0 XSRETURN(0);
35972 }
35973  
35974 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_read_raw);
35975 0 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_read_raw) {
35976 0 dXSARGS;
35977 static const XSBind_ParamSpec param_specs[4] = {
35978 XSBIND_PARAM("instream", 1),
35979 XSBIND_PARAM("last_doc_id", 1),
35980 XSBIND_PARAM("term_text", 1),
35981 XSBIND_PARAM("mem_pool", 1)
35982 };
35983 int32_t locations[4];
35984 SV *sv;
35985 lucy_RichPosting* arg_self;
35986 lucy_InStream* arg_instream;
35987 int32_t arg_last_doc_id;
35988 cfish_String* arg_term_text;
35989 lucy_MemoryPool* arg_mem_pool;
35990 LUCY_RichPost_Read_Raw_t method;
35991 lucy_RawPosting* retval;
35992  
35993 CFISH_UNUSED_VAR(cv);
35994 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
35995 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
35996 }
35997 0 SP -= items;
35998  
35999 /* Locate args on Perl stack. */
36000 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36001 locations, 4);
36002 0 arg_self = (lucy_RichPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RICHPOSTING, NULL);
36003 0 sv = ST(locations[0]);
36004 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
36005 0 sv = ST(locations[1]);
36006 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36007 0 XSBind_undef_arg_error(aTHX_ "last_doc_id");
36008 }
36009 0 arg_last_doc_id = (int32_t)SvIV(sv);
36010 0 sv = ST(locations[2]);
36011 0 arg_term_text = (cfish_String*)XSBind_arg_to_cfish(aTHX_ sv, "term_text", CFISH_STRING, CFISH_ALLOCA_OBJ(CFISH_STRING));
36012 0 sv = ST(locations[3]);
36013 0 arg_mem_pool = (lucy_MemoryPool*)XSBind_arg_to_cfish(aTHX_ sv, "mem_pool", LUCY_MEMORYPOOL, NULL);
36014  
36015 /* Execute */
36016 0 method = CFISH_METHOD_PTR(LUCY_RICHPOSTING, LUCY_RichPost_Read_Raw);
36017 0 retval = method(arg_self, arg_instream, arg_last_doc_id, arg_term_text, arg_mem_pool);
36018 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
36019 0 CFISH_DECREF(retval);
36020 0 sv_2mortal( ST(0) );
36021 0 XSRETURN(1);
36022 }
36023  
36024 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_add_inversion_to_pool);
36025 0 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_add_inversion_to_pool) {
36026 0 dXSARGS;
36027 static const XSBind_ParamSpec param_specs[6] = {
36028 XSBIND_PARAM("post_pool", 1),
36029 XSBIND_PARAM("inversion", 1),
36030 XSBIND_PARAM("type", 1),
36031 XSBIND_PARAM("doc_id", 1),
36032 XSBIND_PARAM("doc_boost", 1),
36033 XSBIND_PARAM("length_norm", 1)
36034 };
36035 int32_t locations[6];
36036 SV *sv;
36037 lucy_RichPosting* arg_self;
36038 lucy_PostingPool* arg_post_pool;
36039 lucy_Inversion* arg_inversion;
36040 lucy_FieldType* arg_type;
36041 int32_t arg_doc_id;
36042 float arg_doc_boost;
36043 float arg_length_norm;
36044 LUCY_RichPost_Add_Inversion_To_Pool_t method;
36045  
36046 CFISH_UNUSED_VAR(cv);
36047 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36048 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
36049 }
36050 0 SP -= items;
36051  
36052 /* Locate args on Perl stack. */
36053 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36054 locations, 6);
36055 0 arg_self = (lucy_RichPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RICHPOSTING, NULL);
36056 0 sv = ST(locations[0]);
36057 0 arg_post_pool = (lucy_PostingPool*)XSBind_arg_to_cfish(aTHX_ sv, "post_pool", LUCY_POSTINGPOOL, NULL);
36058 0 sv = ST(locations[1]);
36059 0 arg_inversion = (lucy_Inversion*)XSBind_arg_to_cfish(aTHX_ sv, "inversion", LUCY_INVERSION, NULL);
36060 0 sv = ST(locations[2]);
36061 0 arg_type = (lucy_FieldType*)XSBind_arg_to_cfish(aTHX_ sv, "type", LUCY_FIELDTYPE, NULL);
36062 0 sv = ST(locations[3]);
36063 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36064 0 XSBind_undef_arg_error(aTHX_ "doc_id");
36065 }
36066 0 arg_doc_id = (int32_t)SvIV(sv);
36067 0 sv = ST(locations[4]);
36068 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36069 0 XSBind_undef_arg_error(aTHX_ "doc_boost");
36070 }
36071 0 arg_doc_boost = (float)SvNV(sv);
36072 0 sv = ST(locations[5]);
36073 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36074 0 XSBind_undef_arg_error(aTHX_ "length_norm");
36075 }
36076 0 arg_length_norm = (float)SvNV(sv);
36077  
36078 /* Execute */
36079 0 method = CFISH_METHOD_PTR(LUCY_RICHPOSTING, LUCY_RichPost_Add_Inversion_To_Pool);
36080 0 method(arg_self, arg_post_pool, arg_inversion, arg_type, arg_doc_id, arg_doc_boost, arg_length_norm);
36081 0 XSRETURN(0);
36082 }
36083  
36084 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_make_matcher);
36085 0 XS_INTERNAL(XS_Lucy_Index_Posting_RichPosting_make_matcher) {
36086 0 dXSARGS;
36087 static const XSBind_ParamSpec param_specs[4] = {
36088 XSBIND_PARAM("sim", 1),
36089 XSBIND_PARAM("plist", 1),
36090 XSBIND_PARAM("compiler", 1),
36091 XSBIND_PARAM("need_score", 1)
36092 };
36093 int32_t locations[4];
36094 SV *sv;
36095 lucy_RichPosting* arg_self;
36096 lucy_Similarity* arg_sim;
36097 lucy_PostingList* arg_plist;
36098 lucy_Compiler* arg_compiler;
36099 bool arg_need_score;
36100 LUCY_RichPost_Make_Matcher_t method;
36101 lucy_RichPostingMatcher* retval;
36102  
36103 CFISH_UNUSED_VAR(cv);
36104 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36105 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
36106 }
36107 0 SP -= items;
36108  
36109 /* Locate args on Perl stack. */
36110 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36111 locations, 4);
36112 0 arg_self = (lucy_RichPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RICHPOSTING, NULL);
36113 0 sv = ST(locations[0]);
36114 0 arg_sim = (lucy_Similarity*)XSBind_arg_to_cfish(aTHX_ sv, "sim", LUCY_SIMILARITY, NULL);
36115 0 sv = ST(locations[1]);
36116 0 arg_plist = (lucy_PostingList*)XSBind_arg_to_cfish(aTHX_ sv, "plist", LUCY_POSTINGLIST, NULL);
36117 0 sv = ST(locations[2]);
36118 0 arg_compiler = (lucy_Compiler*)XSBind_arg_to_cfish(aTHX_ sv, "compiler", LUCY_COMPILER, NULL);
36119 0 sv = ST(locations[3]);
36120 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36121 0 XSBind_undef_arg_error(aTHX_ "need_score");
36122 }
36123 0 arg_need_score = XSBind_sv_true(aTHX_ sv);
36124  
36125 /* Execute */
36126 0 method = CFISH_METHOD_PTR(LUCY_RICHPOSTING, LUCY_RichPost_Make_Matcher);
36127 0 retval = method(arg_self, arg_sim, arg_plist, arg_compiler, arg_need_score);
36128 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
36129 0 CFISH_DECREF(retval);
36130 0 sv_2mortal( ST(0) );
36131 0 XSRETURN(1);
36132 }
36133  
36134 XS_INTERNAL(XS_Lucy_Index_RawPosting_compare_to);
36135 0 XS_INTERNAL(XS_Lucy_Index_RawPosting_compare_to) {
36136 0 dXSARGS;
36137 SV *sv;
36138 lucy_RawPosting* arg_self;
36139 cfish_Obj* arg_other;
36140 LUCY_RawPost_Compare_To_t method;
36141 int32_t retval;
36142  
36143 CFISH_UNUSED_VAR(cv);
36144 0 SP -= items;
36145 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
36146 0 XSBind_invalid_args_error(aTHX_ cv, "self, other");
36147 }
36148  
36149 /* Extract vars from Perl stack. */
36150 0 arg_self = (lucy_RawPosting*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_RAWPOSTING, NULL);
36151 0 sv = ST(1);
36152 0 arg_other = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "other", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
36153  
36154 /* Execute */
36155 0 method = CFISH_METHOD_PTR(LUCY_RAWPOSTING, LUCY_RawPost_Compare_To);
36156 0 retval = method(arg_self, arg_other);
36157 0 ST(0) = newSViv(retval);
36158 0 sv_2mortal( ST(0) );
36159 0 XSRETURN(1);
36160 }
36161  
36162 XS_INTERNAL(XS_Lucy_Index_SkipStepper_read_record);
36163 0 XS_INTERNAL(XS_Lucy_Index_SkipStepper_read_record) {
36164 0 dXSARGS;
36165 SV *sv;
36166 lucy_SkipStepper* arg_self;
36167 lucy_InStream* arg_instream;
36168 LUCY_SkipStepper_Read_Record_t method;
36169  
36170 CFISH_UNUSED_VAR(cv);
36171 0 SP -= items;
36172 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
36173 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
36174 }
36175  
36176 /* Extract vars from Perl stack. */
36177 0 arg_self = (lucy_SkipStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SKIPSTEPPER, NULL);
36178 0 sv = ST(1);
36179 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
36180  
36181 /* Execute */
36182 0 method = CFISH_METHOD_PTR(LUCY_SKIPSTEPPER, LUCY_SkipStepper_Read_Record);
36183 0 method(arg_self, arg_instream);
36184 0 XSRETURN(0);
36185 }
36186  
36187 XS_INTERNAL(XS_Lucy_Index_SkipStepper_write_record);
36188 0 XS_INTERNAL(XS_Lucy_Index_SkipStepper_write_record) {
36189 0 dXSARGS;
36190 static const XSBind_ParamSpec param_specs[3] = {
36191 XSBIND_PARAM("outstream", 1),
36192 XSBIND_PARAM("last_doc_id", 1),
36193 XSBIND_PARAM("last_filepos", 1)
36194 };
36195 int32_t locations[3];
36196 SV *sv;
36197 lucy_SkipStepper* arg_self;
36198 lucy_OutStream* arg_outstream;
36199 int32_t arg_last_doc_id;
36200 int64_t arg_last_filepos;
36201 LUCY_SkipStepper_Write_Record_t method;
36202  
36203 CFISH_UNUSED_VAR(cv);
36204 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36205 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
36206 }
36207 0 SP -= items;
36208  
36209 /* Locate args on Perl stack. */
36210 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36211 locations, 3);
36212 0 arg_self = (lucy_SkipStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SKIPSTEPPER, NULL);
36213 0 sv = ST(locations[0]);
36214 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
36215 0 sv = ST(locations[1]);
36216 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36217 0 XSBind_undef_arg_error(aTHX_ "last_doc_id");
36218 }
36219 0 arg_last_doc_id = (int32_t)SvIV(sv);
36220 0 sv = ST(locations[2]);
36221 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36222 0 XSBind_undef_arg_error(aTHX_ "last_filepos");
36223 }
36224 0 arg_last_filepos = (int64_t)SvNV(sv);
36225  
36226 /* Execute */
36227 0 method = CFISH_METHOD_PTR(LUCY_SKIPSTEPPER, LUCY_SkipStepper_Write_Record);
36228 0 method(arg_self, arg_outstream, arg_last_doc_id, arg_last_filepos);
36229 0 XSRETURN(0);
36230 }
36231  
36232 XS_INTERNAL(XS_Lucy_Index_SkipStepper_set_id_and_filepos);
36233 0 XS_INTERNAL(XS_Lucy_Index_SkipStepper_set_id_and_filepos) {
36234 0 dXSARGS;
36235 static const XSBind_ParamSpec param_specs[2] = {
36236 XSBIND_PARAM("doc_id", 1),
36237 XSBIND_PARAM("filepos", 1)
36238 };
36239 int32_t locations[2];
36240 SV *sv;
36241 lucy_SkipStepper* arg_self;
36242 int32_t arg_doc_id;
36243 int64_t arg_filepos;
36244 LUCY_SkipStepper_Set_ID_And_Filepos_t method;
36245  
36246 CFISH_UNUSED_VAR(cv);
36247 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36248 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
36249 }
36250 0 SP -= items;
36251  
36252 /* Locate args on Perl stack. */
36253 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36254 locations, 2);
36255 0 arg_self = (lucy_SkipStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SKIPSTEPPER, NULL);
36256 0 sv = ST(locations[0]);
36257 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36258 0 XSBind_undef_arg_error(aTHX_ "doc_id");
36259 }
36260 0 arg_doc_id = (int32_t)SvIV(sv);
36261 0 sv = ST(locations[1]);
36262 0 ▶ if (!XSBind_sv_defined(aTHX_ sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (!XSBind_sv_defined(aTHX_ sv)) { 0 0 0
36263 0 XSBind_undef_arg_error(aTHX_ "filepos");
36264 }
36265 0 arg_filepos = (int64_t)SvNV(sv);
36266  
36267 /* Execute */
36268 0 method = CFISH_METHOD_PTR(LUCY_SKIPSTEPPER, LUCY_SkipStepper_Set_ID_And_Filepos);
36269 0 method(arg_self, arg_doc_id, arg_filepos);
36270 0 XSRETURN(0);
36271 }
36272  
36273 XS_INTERNAL(XS_Lucy_Index_SkipStepper_to_string);
36274 0 XS_INTERNAL(XS_Lucy_Index_SkipStepper_to_string) {
36275 0 dXSARGS;
36276 lucy_SkipStepper* arg_self;
36277 LUCY_SkipStepper_To_String_t method;
36278 cfish_String* retval;
36279  
36280 CFISH_UNUSED_VAR(cv);
36281 0 SP -= items;
36282 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
36283 0 XSBind_invalid_args_error(aTHX_ cv, "self");
36284 }
36285  
36286 /* Extract vars from Perl stack. */
36287 0 arg_self = (lucy_SkipStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_SKIPSTEPPER, NULL);
36288  
36289 /* Execute */
36290 0 method = CFISH_METHOD_PTR(LUCY_SKIPSTEPPER, LUCY_SkipStepper_To_String);
36291 0 retval = method(arg_self);
36292 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
36293 0 CFISH_DECREF(retval);
36294 0 sv_2mortal( ST(0) );
36295 0 XSRETURN(1);
36296 }
36297  
36298 XS_INTERNAL(XS_Lucy_Index_TermStepper_new);
36299 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_new) {
36300 0 dXSARGS;
36301 lucy_TermStepper* arg_self;
36302 lucy_TermStepper* retval;
36303  
36304 CFISH_UNUSED_VAR(cv);
36305 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
36306 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
36307 }
36308 0 SP -= items;
36309  
36310 0 arg_self = (lucy_TermStepper*)XSBind_new_blank_obj(aTHX_ ST(0));
36311  
36312 0 retval = lucy_TermStepper_init(arg_self);
36313 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
36314 0 XSRETURN(1);
36315 }
36316  
36317  
36318 XS_INTERNAL(XS_Lucy_Index_TermStepper_set_value);
36319 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_set_value) {
36320 0 dXSARGS;
36321 SV *sv;
36322 lucy_TermStepper* arg_self;
36323 cfish_Obj* arg_value;
36324 LUCY_TermStepper_Set_Value_t method;
36325  
36326 CFISH_UNUSED_VAR(cv);
36327 0 SP -= items;
36328 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
36329 0 XSBind_invalid_args_error(aTHX_ cv, "self, [value]");
36330 }
36331  
36332 /* Extract vars from Perl stack. */
36333 0 arg_self = (lucy_TermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMSTEPPER, NULL);
36334 0 sv = ST(1);
36335 0 ▶ arg_value = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_value = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
36336  
36337 /* Execute */
36338 0 method = CFISH_METHOD_PTR(LUCY_TERMSTEPPER, LUCY_TermStepper_Set_Value);
36339 0 method(arg_self, arg_value);
36340 0 XSRETURN(0);
36341 }
36342  
36343 XS_INTERNAL(XS_Lucy_Index_TermStepper_get_value);
36344 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_get_value) {
36345 0 dXSARGS;
36346 lucy_TermStepper* arg_self;
36347 LUCY_TermStepper_Get_Value_t method;
36348 cfish_Obj* retval;
36349  
36350 CFISH_UNUSED_VAR(cv);
36351 0 SP -= items;
36352 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
36353 0 XSBind_invalid_args_error(aTHX_ cv, "self");
36354 }
36355  
36356 /* Extract vars from Perl stack. */
36357 0 arg_self = (lucy_TermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TERMSTEPPER, NULL);
36358  
36359 /* Execute */
36360 0 method = CFISH_METHOD_PTR(LUCY_TERMSTEPPER, LUCY_TermStepper_Get_Value);
36361 0 retval = method(arg_self);
36362 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
36363 0 sv_2mortal( ST(0) );
36364 0 XSRETURN(1);
36365 }
36366  
36367 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_new);
36368 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_new) {
36369 0 dXSARGS;
36370 static const XSBind_ParamSpec param_specs[1] = {
36371 XSBIND_PARAM("schema", 1)
36372 };
36373 int32_t locations[1];
36374 SV *sv;
36375 lucy_MatchTermInfoStepper* arg_self;
36376 lucy_Schema* arg_schema;
36377 lucy_MatchTermInfoStepper* retval;
36378  
36379 CFISH_UNUSED_VAR(cv);
36380 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36381 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
36382 }
36383 0 SP -= items;
36384  
36385 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36386 locations, 1);
36387 0 sv = ST(locations[0]);
36388 0 arg_schema = (lucy_Schema*)XSBind_arg_to_cfish(aTHX_ sv, "schema", LUCY_SCHEMA, NULL);
36389 0 arg_self = (lucy_MatchTermInfoStepper*)XSBind_new_blank_obj(aTHX_ ST(0));
36390  
36391 0 retval = lucy_MatchTInfoStepper_init(arg_self, arg_schema);
36392 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
36393 0 XSRETURN(1);
36394 }
36395  
36396  
36397 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_reset);
36398 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_reset) {
36399 0 dXSARGS;
36400 lucy_MatchTermInfoStepper* arg_self;
36401 LUCY_MatchTInfoStepper_Reset_t method;
36402  
36403 CFISH_UNUSED_VAR(cv);
36404 0 SP -= items;
36405 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
36406 0 XSBind_invalid_args_error(aTHX_ cv, "self");
36407 }
36408  
36409 /* Extract vars from Perl stack. */
36410 0 arg_self = (lucy_MatchTermInfoStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHTERMINFOSTEPPER, NULL);
36411  
36412 /* Execute */
36413 0 method = CFISH_METHOD_PTR(LUCY_MATCHTERMINFOSTEPPER, LUCY_MatchTInfoStepper_Reset);
36414 0 method(arg_self);
36415 0 XSRETURN(0);
36416 }
36417  
36418 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_write_key_frame);
36419 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_write_key_frame) {
36420 0 dXSARGS;
36421 static const XSBind_ParamSpec param_specs[2] = {
36422 XSBIND_PARAM("outstream", 1),
36423 XSBIND_PARAM("value", 1)
36424 };
36425 int32_t locations[2];
36426 SV *sv;
36427 lucy_MatchTermInfoStepper* arg_self;
36428 lucy_OutStream* arg_outstream;
36429 cfish_Obj* arg_value;
36430 LUCY_MatchTInfoStepper_Write_Key_Frame_t method;
36431  
36432 CFISH_UNUSED_VAR(cv);
36433 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36434 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
36435 }
36436 0 SP -= items;
36437  
36438 /* Locate args on Perl stack. */
36439 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36440 locations, 2);
36441 0 arg_self = (lucy_MatchTermInfoStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHTERMINFOSTEPPER, NULL);
36442 0 sv = ST(locations[0]);
36443 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
36444 0 sv = ST(locations[1]);
36445 0 arg_value = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
36446  
36447 /* Execute */
36448 0 method = CFISH_METHOD_PTR(LUCY_MATCHTERMINFOSTEPPER, LUCY_MatchTInfoStepper_Write_Key_Frame);
36449 0 method(arg_self, arg_outstream, arg_value);
36450 0 XSRETURN(0);
36451 }
36452  
36453 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_write_delta);
36454 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_write_delta) {
36455 0 dXSARGS;
36456 static const XSBind_ParamSpec param_specs[2] = {
36457 XSBIND_PARAM("outstream", 1),
36458 XSBIND_PARAM("value", 1)
36459 };
36460 int32_t locations[2];
36461 SV *sv;
36462 lucy_MatchTermInfoStepper* arg_self;
36463 lucy_OutStream* arg_outstream;
36464 cfish_Obj* arg_value;
36465 LUCY_MatchTInfoStepper_Write_Delta_t method;
36466  
36467 CFISH_UNUSED_VAR(cv);
36468 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36469 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
36470 }
36471 0 SP -= items;
36472  
36473 /* Locate args on Perl stack. */
36474 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36475 locations, 2);
36476 0 arg_self = (lucy_MatchTermInfoStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHTERMINFOSTEPPER, NULL);
36477 0 sv = ST(locations[0]);
36478 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
36479 0 sv = ST(locations[1]);
36480 0 arg_value = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
36481  
36482 /* Execute */
36483 0 method = CFISH_METHOD_PTR(LUCY_MATCHTERMINFOSTEPPER, LUCY_MatchTInfoStepper_Write_Delta);
36484 0 method(arg_self, arg_outstream, arg_value);
36485 0 XSRETURN(0);
36486 }
36487  
36488 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_read_key_frame);
36489 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_read_key_frame) {
36490 0 dXSARGS;
36491 SV *sv;
36492 lucy_MatchTermInfoStepper* arg_self;
36493 lucy_InStream* arg_instream;
36494 LUCY_MatchTInfoStepper_Read_Key_Frame_t method;
36495  
36496 CFISH_UNUSED_VAR(cv);
36497 0 SP -= items;
36498 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
36499 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
36500 }
36501  
36502 /* Extract vars from Perl stack. */
36503 0 arg_self = (lucy_MatchTermInfoStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHTERMINFOSTEPPER, NULL);
36504 0 sv = ST(1);
36505 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
36506  
36507 /* Execute */
36508 0 method = CFISH_METHOD_PTR(LUCY_MATCHTERMINFOSTEPPER, LUCY_MatchTInfoStepper_Read_Key_Frame);
36509 0 method(arg_self, arg_instream);
36510 0 XSRETURN(0);
36511 }
36512  
36513 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_read_delta);
36514 0 XS_INTERNAL(XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_read_delta) {
36515 0 dXSARGS;
36516 SV *sv;
36517 lucy_MatchTermInfoStepper* arg_self;
36518 lucy_InStream* arg_instream;
36519 LUCY_MatchTInfoStepper_Read_Delta_t method;
36520  
36521 CFISH_UNUSED_VAR(cv);
36522 0 SP -= items;
36523 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
36524 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
36525 }
36526  
36527 /* Extract vars from Perl stack. */
36528 0 arg_self = (lucy_MatchTermInfoStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_MATCHTERMINFOSTEPPER, NULL);
36529 0 sv = ST(1);
36530 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
36531  
36532 /* Execute */
36533 0 method = CFISH_METHOD_PTR(LUCY_MATCHTERMINFOSTEPPER, LUCY_MatchTInfoStepper_Read_Delta);
36534 0 method(arg_self, arg_instream);
36535 0 XSRETURN(0);
36536 }
36537  
36538 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_new);
36539 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_new) {
36540 0 dXSARGS;
36541 lucy_TextTermStepper* arg_self;
36542 lucy_TextTermStepper* retval;
36543  
36544 CFISH_UNUSED_VAR(cv);
36545 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
36546 0 XSBind_invalid_args_error(aTHX_ cv, "class_name, ...");
36547 }
36548 0 SP -= items;
36549  
36550 0 arg_self = (lucy_TextTermStepper*)XSBind_new_blank_obj(aTHX_ ST(0));
36551  
36552 0 retval = lucy_TextTermStepper_init(arg_self);
36553 0 ST(0) = sv_2mortal(CFISH_OBJ_TO_SV_NOINC(retval));
36554 0 XSRETURN(1);
36555 }
36556  
36557  
36558 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_reset);
36559 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_reset) {
36560 0 dXSARGS;
36561 lucy_TextTermStepper* arg_self;
36562 LUCY_TextTermStepper_Reset_t method;
36563  
36564 CFISH_UNUSED_VAR(cv);
36565 0 SP -= items;
36566 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
36567 0 XSBind_invalid_args_error(aTHX_ cv, "self");
36568 }
36569  
36570 /* Extract vars from Perl stack. */
36571 0 arg_self = (lucy_TextTermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTERMSTEPPER, NULL);
36572  
36573 /* Execute */
36574 0 method = CFISH_METHOD_PTR(LUCY_TEXTTERMSTEPPER, LUCY_TextTermStepper_Reset);
36575 0 method(arg_self);
36576 0 XSRETURN(0);
36577 }
36578  
36579 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_set_value);
36580 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_set_value) {
36581 0 dXSARGS;
36582 SV *sv;
36583 lucy_TextTermStepper* arg_self;
36584 cfish_Obj* arg_value;
36585 LUCY_TextTermStepper_Set_Value_t method;
36586  
36587 CFISH_UNUSED_VAR(cv);
36588 0 SP -= items;
36589 0 ▶ if (items < 1 || items > 2) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 1 || items > 2) { 0 0 0
if (items < 1 || items > 2) { 0 0 0
36590 0 XSBind_invalid_args_error(aTHX_ cv, "self, [value]");
36591 }
36592  
36593 /* Extract vars from Perl stack. */
36594 0 arg_self = (lucy_TextTermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTERMSTEPPER, NULL);
36595 0 sv = ST(1);
36596 0 ▶ arg_value = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
arg_value = 1 < items ? (cfish_Obj*)XSBind_arg_to_cfish_nullable(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING)) : NULL; 0 0 0
36597  
36598 /* Execute */
36599 0 method = CFISH_METHOD_PTR(LUCY_TEXTTERMSTEPPER, LUCY_TextTermStepper_Set_Value);
36600 0 method(arg_self, arg_value);
36601 0 XSRETURN(0);
36602 }
36603  
36604 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_get_value);
36605 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_get_value) {
36606 0 dXSARGS;
36607 lucy_TextTermStepper* arg_self;
36608 LUCY_TextTermStepper_Get_Value_t method;
36609 cfish_Obj* retval;
36610  
36611 CFISH_UNUSED_VAR(cv);
36612 0 SP -= items;
36613 0 ▶ if (items != 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 1) { 0 0 0
36614 0 XSBind_invalid_args_error(aTHX_ cv, "self");
36615 }
36616  
36617 /* Extract vars from Perl stack. */
36618 0 arg_self = (lucy_TextTermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTERMSTEPPER, NULL);
36619  
36620 /* Execute */
36621 0 method = CFISH_METHOD_PTR(LUCY_TEXTTERMSTEPPER, LUCY_TextTermStepper_Get_Value);
36622 0 retval = method(arg_self);
36623 0 ST(0) = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)retval);
36624 0 sv_2mortal( ST(0) );
36625 0 XSRETURN(1);
36626 }
36627  
36628 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_write_key_frame);
36629 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_write_key_frame) {
36630 0 dXSARGS;
36631 static const XSBind_ParamSpec param_specs[2] = {
36632 XSBIND_PARAM("outstream", 1),
36633 XSBIND_PARAM("value", 1)
36634 };
36635 int32_t locations[2];
36636 SV *sv;
36637 lucy_TextTermStepper* arg_self;
36638 lucy_OutStream* arg_outstream;
36639 cfish_Obj* arg_value;
36640 LUCY_TextTermStepper_Write_Key_Frame_t method;
36641  
36642 CFISH_UNUSED_VAR(cv);
36643 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36644 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
36645 }
36646 0 SP -= items;
36647  
36648 /* Locate args on Perl stack. */
36649 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36650 locations, 2);
36651 0 arg_self = (lucy_TextTermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTERMSTEPPER, NULL);
36652 0 sv = ST(locations[0]);
36653 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
36654 0 sv = ST(locations[1]);
36655 0 arg_value = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
36656  
36657 /* Execute */
36658 0 method = CFISH_METHOD_PTR(LUCY_TEXTTERMSTEPPER, LUCY_TextTermStepper_Write_Key_Frame);
36659 0 method(arg_self, arg_outstream, arg_value);
36660 0 XSRETURN(0);
36661 }
36662  
36663 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_write_delta);
36664 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_write_delta) {
36665 0 dXSARGS;
36666 static const XSBind_ParamSpec param_specs[2] = {
36667 XSBIND_PARAM("outstream", 1),
36668 XSBIND_PARAM("value", 1)
36669 };
36670 int32_t locations[2];
36671 SV *sv;
36672 lucy_TextTermStepper* arg_self;
36673 lucy_OutStream* arg_outstream;
36674 cfish_Obj* arg_value;
36675 LUCY_TextTermStepper_Write_Delta_t method;
36676  
36677 CFISH_UNUSED_VAR(cv);
36678 0 ▶ if (items < 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (items < 1) { 0 0 0
36679 0 XSBind_invalid_args_error(aTHX_ cv, "self, ...");
36680 }
36681 0 SP -= items;
36682  
36683 /* Locate args on Perl stack. */
36684 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs,
36685 locations, 2);
36686 0 arg_self = (lucy_TextTermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTERMSTEPPER, NULL);
36687 0 sv = ST(locations[0]);
36688 0 arg_outstream = (lucy_OutStream*)XSBind_arg_to_cfish(aTHX_ sv, "outstream", LUCY_OUTSTREAM, NULL);
36689 0 sv = ST(locations[1]);
36690 0 arg_value = (cfish_Obj*)XSBind_arg_to_cfish(aTHX_ sv, "value", CFISH_OBJ, CFISH_ALLOCA_OBJ(CFISH_STRING));
36691  
36692 /* Execute */
36693 0 method = CFISH_METHOD_PTR(LUCY_TEXTTERMSTEPPER, LUCY_TextTermStepper_Write_Delta);
36694 0 method(arg_self, arg_outstream, arg_value);
36695 0 XSRETURN(0);
36696 }
36697  
36698 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_read_key_frame);
36699 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_read_key_frame) {
36700 0 dXSARGS;
36701 SV *sv;
36702 lucy_TextTermStepper* arg_self;
36703 lucy_InStream* arg_instream;
36704 LUCY_TextTermStepper_Read_Key_Frame_t method;
36705  
36706 CFISH_UNUSED_VAR(cv);
36707 0 SP -= items;
36708 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
36709 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
36710 }
36711  
36712 /* Extract vars from Perl stack. */
36713 0 arg_self = (lucy_TextTermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTERMSTEPPER, NULL);
36714 0 sv = ST(1);
36715 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
36716  
36717 /* Execute */
36718 0 method = CFISH_METHOD_PTR(LUCY_TEXTTERMSTEPPER, LUCY_TextTermStepper_Read_Key_Frame);
36719 0 method(arg_self, arg_instream);
36720 0 XSRETURN(0);
36721 }
36722  
36723 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_read_delta);
36724 0 XS_INTERNAL(XS_Lucy_Index_TermStepper_TextTermStepper_read_delta) {
36725 0 dXSARGS;
36726 SV *sv;
36727 lucy_TextTermStepper* arg_self;
36728 lucy_InStream* arg_instream;
36729 LUCY_TextTermStepper_Read_Delta_t method;
36730  
36731 CFISH_UNUSED_VAR(cv);
36732 0 SP -= items;
36733 0 ▶ if (items != 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items != 2) { 0 0 0
36734 0 XSBind_invalid_args_error(aTHX_ cv, "self, instream");
36735 }
36736  
36737 /* Extract vars from Perl stack. */
36738 0 arg_self = (lucy_TextTermStepper*)XSBind_perl_to_cfish_noinc(aTHX_ ST(0), LUCY_TEXTTERMSTEPPER, NULL);
36739 0 sv = ST(1);
36740 0 arg_instream = (lucy_InStream*)XSBind_arg_to_cfish(aTHX_ sv, "instream", LUCY_INSTREAM, NULL);
36741  
36742 /* Execute */
36743 0 method = CFISH_METHOD_PTR(LUCY_TEXTTERMSTEPPER, LUCY_TextTermStepper_Read_Delta);
36744 0 method(arg_self, arg_instream);
36745 0 XSRETURN(0);
36746 }
36747  
36748  
36749 MODULE = Lucy PACKAGE = Lucy
36750  
36751 BOOT:
36752 {
36753 static const cfish_XSBind_ClassSpec class_specs[] = {
36754 { "Lucy::Analysis::Analyzer", "Clownfish::Obj", 6 },
36755 { "Lucy::Analysis::CaseFolder", "Lucy::Analysis::Analyzer", 6 },
36756 { "Lucy::Analysis::EasyAnalyzer", "Lucy::Analysis::Analyzer", 6 },
36757 { "Lucy::Analysis::Normalizer", "Lucy::Analysis::Analyzer", 5 },
36758 { "Lucy::Analysis::PolyAnalyzer", "Lucy::Analysis::Analyzer", 7 },
36759 { "Lucy::Analysis::RegexTokenizer", "Lucy::Analysis::Analyzer", 6 },
36760 { "Lucy::Analysis::SnowballStemmer", "Lucy::Analysis::Analyzer", 5 },
36761 { "Lucy::Analysis::SnowballStopFilter", "Lucy::Analysis::Analyzer", 5 },
36762 { "Lucy::Analysis::StandardTokenizer", "Lucy::Analysis::Analyzer", 4 },
36763 { "Lucy::Analysis::Inversion", "Clownfish::Obj", 5 },
36764 { "Lucy::Analysis::Token", "Clownfish::Obj", 6 },
36765 { "Lucy::Document::Doc", "Clownfish::Obj", 10 },
36766 { "Lucy::Document::HitDoc", "Lucy::Document::Doc", 7 },
36767 { "Lucy::Highlight::HeatMap", "Clownfish::Obj", 5 },
36768 { "Lucy::Highlight::Highlighter", "Clownfish::Obj", 14 },
36769 { "Lucy::Index::BackgroundMerger", "Clownfish::Obj", 4 },
36770 { "Lucy::Index::Counter", "Clownfish::Obj", 4 },
36771 { "Lucy::Index::DataReader", "Clownfish::Obj", 9 },
36772 { "Lucy::Index::DeletionsReader", "Lucy::Index::DataReader", 4 },
36773 { "Lucy::Index::DefaultDeletionsReader", "Lucy::Index::DeletionsReader", 5 },
36774 { "Lucy::Index::PolyDeletionsReader", "Lucy::Index::DeletionsReader", 4 },
36775 { "Lucy::Index::DocReader", "Lucy::Index::DataReader", 3 },
36776 { "Lucy::Index::DefaultDocReader", "Lucy::Index::DocReader", 4 },
36777 { "Lucy::Index::PolyDocReader", "Lucy::Index::DocReader", 3 },
36778 { "Lucy::Index::HighlightReader", "Lucy::Index::DataReader", 3 },
36779 { "Lucy::Index::DefaultHighlightReader", "Lucy::Index::HighlightReader", 4 },
36780 { "Lucy::Index::PolyHighlightReader", "Lucy::Index::HighlightReader", 3 },
36781 { "Lucy::Index::IndexReader", "Lucy::Index::DataReader", 10 },
36782 { "Lucy::Index::PolyReader", "Lucy::Index::IndexReader", 9 },
36783 { "Lucy::Index::SegReader", "Lucy::Index::IndexReader", 9 },
36784 { "Lucy::Index::LexiconReader", "Lucy::Index::DataReader", 5 },
36785 { "Lucy::Index::DefaultLexiconReader", "Lucy::Index::LexiconReader", 5 },
36786 { "Lucy::Index::PolyLexiconReader", "Lucy::Index::LexiconReader", 4 },
36787 { "Lucy::Index::PostingListReader", "Lucy::Index::DataReader", 4 },
36788 { "Lucy::Index::DefaultPostingListReader", "Lucy::Index::PostingListReader", 4 },
36789 { "Lucy::Index::SortReader", "Lucy::Index::DataReader", 3 },
36790 { "Lucy::Index::DefaultSortReader", "Lucy::Index::SortReader", 3 },
36791 { "Lucy::Index::DataWriter", "Clownfish::Obj", 13 },
36792 { "Lucy::Index::DeletionsWriter", "Lucy::Index::DataWriter", 8 },
36793 { "Lucy::Index::DefaultDeletionsWriter", "Lucy::Index::DeletionsWriter", 12 },
36794 { "Lucy::Index::DocWriter", "Lucy::Index::DataWriter", 5 },
36795 { "Lucy::Index::HighlightWriter", "Lucy::Index::DataWriter", 6 },
36796 { "Lucy::Index::LexiconWriter", "Lucy::Index::DataWriter", 10 },
36797 { "Lucy::Index::Posting::PostingWriter", "Lucy::Index::DataWriter", 4 },
36798 { "Lucy::Index::Posting::MatchPostingWriter", "Lucy::Index::Posting::PostingWriter", 4 },
36799 { "Lucy::Index::Posting::RawPostingWriter", "Lucy::Index::Posting::PostingWriter", 4 },
36800 { "Lucy::Index::PostingListWriter", "Lucy::Index::DataWriter", 5 },
36801 { "Lucy::Index::SegWriter", "Lucy::Index::DataWriter", 13 },
36802 { "Lucy::Index::SortWriter", "Lucy::Index::DataWriter", 6 },
36803 { "Lucy::Index::DocVector", "Clownfish::Obj", 6 },
36804 { "Lucy::Index::FilePurger", "Clownfish::Obj", 3 },
36805 { "Lucy::Index::IndexManager", "Clownfish::Obj", 21 },
36806 { "Lucy::Index::Indexer", "Clownfish::Obj", 11 },
36807 { "Lucy::Index::Inverter", "Clownfish::Obj", 16 },
36808 { "Lucy::Index::Inverter::InverterEntry", "Clownfish::Obj", 3 },
36809 { "Lucy::Index::Lexicon", "Clownfish::Obj", 7 },
36810 { "Lucy::Index::LexIndex", "Lucy::Index::Lexicon", 5 },
36811 { "Lucy::Index::PolyLexicon", "Lucy::Index::Lexicon", 6 },
36812 { "Lucy::Index::RawLexicon", "Lucy::Index::Lexicon", 4 },
36813 { "Lucy::Index::SegLexicon", "Lucy::Index::Lexicon", 9 },
36814 { "Lucy::Index::Segment", "Clownfish::Obj", 15 },
36815 { "Lucy::Index::Similarity", "Clownfish::Obj", 15 },
36816 { "Lucy::Index::Snapshot", "Clownfish::Obj", 9 },
36817 { "Lucy::Index::SortCache", "Clownfish::Obj", 7 },
36818 { "Lucy::Index::SortCache::NumericSortCache", "Lucy::Index::SortCache", 1 },
36819 { "Lucy::Index::SortCache::Float32SortCache", "Lucy::Index::SortCache::NumericSortCache", 1 },
36820 { "Lucy::Index::SortCache::Float64SortCache", "Lucy::Index::SortCache::NumericSortCache", 1 },
36821 { "Lucy::Index::SortCache::Int32SortCache", "Lucy::Index::SortCache::NumericSortCache", 1 },
36822 { "Lucy::Index::SortCache::Int64SortCache", "Lucy::Index::SortCache::NumericSortCache", 1 },
36823 { "Lucy::Index::SortCache::TextSortCache", "Lucy::Index::SortCache", 1 },
36824 { "Lucy::Index::SortFieldWriter::SFWriterElem", "Clownfish::Obj", 0 },
36825 { "Lucy::Index::TermInfo", "Clownfish::Obj", 13 },
36826 { "Lucy::Index::TermVector", "Clownfish::Obj", 7 },
36827 { "Lucy::Object::BitVector", "Clownfish::Obj", 18 },
36828 { "Lucy::Index::BitVecDelDocs", "Lucy::Object::BitVector", 1 },
36829 { "Lucy::Object::I32Array", "Clownfish::Obj", 3 },
36830 { "Lucy::Plan::Architecture", "Clownfish::Obj", 19 },
36831 { "Lucy::Plan::FieldType", "Clownfish::Obj", 17 },
36832 { "Lucy::Plan::BlobType", "Lucy::Plan::FieldType", 8 },
36833 { "Lucy::Plan::NumericType", "Lucy::Plan::FieldType", 6 },
36834 { "Lucy::Plan::FloatType", "Lucy::Plan::NumericType", 0 },
36835 { "Lucy::Plan::Float32Type", "Lucy::Plan::FloatType", 4 },
36836 { "Lucy::Plan::Float64Type", "Lucy::Plan::FloatType", 4 },
36837 { "Lucy::Plan::IntType", "Lucy::Plan::NumericType", 0 },
36838 { "Lucy::Plan::Int32Type", "Lucy::Plan::IntType", 4 },
36839 { "Lucy::Plan::Int64Type", "Lucy::Plan::IntType", 4 },
36840 { "Lucy::Plan::TextType", "Lucy::Plan::FieldType", 2 },
36841 { "Lucy::Plan::FullTextType", "Lucy::Plan::TextType", 9 },
36842 { "Lucy::Plan::StringType", "Lucy::Plan::TextType", 6 },
36843 { "Lucy::Plan::Schema", "Clownfish::Obj", 14 },
36844 { "Lucy::Search::Collector", "Clownfish::Obj", 6 },
36845 { "Lucy::Search::Collector::BitCollector", "Lucy::Search::Collector", 3 },
36846 { "Lucy::Search::Collector::OffsetCollector", "Lucy::Search::Collector", 6 },
36847 { "Lucy::Search::Collector::SortCollector", "Lucy::Search::Collector", 6 },
36848 { "Lucy::Search::Hits", "Clownfish::Obj", 3 },
36849 { "Lucy::Search::MatchDoc", "Clownfish::Obj", 9 },
36850 { "Lucy::Search::Matcher", "Clownfish::Obj", 6 },
36851 { "Lucy::Index::PostingList", "Lucy::Search::Matcher", 7 },
36852 { "Lucy::Index::RawPostingList", "Lucy::Index::PostingList", 3 },
36853 { "Lucy::Index::SegPostingList", "Lucy::Index::PostingList", 12 },
36854 { "Lucy::Search::BitVecMatcher", "Lucy::Search::Matcher", 4 },
36855 { "Lucy::Search::MatchAllMatcher", "Lucy::Search::Matcher", 5 },
36856 { "Lucy::Search::NoMatchMatcher", "Lucy::Search::Matcher", 3 },
36857 { "Lucy::Search::PhraseMatcher", "Lucy::Search::Matcher", 6 },
36858 { "Lucy::Search::PolyMatcher", "Lucy::Search::Matcher", 1 },
36859 { "Lucy::Search::ANDMatcher", "Lucy::Search::PolyMatcher", 5 },
36860 { "Lucy::Search::NOTMatcher", "Lucy::Search::PolyMatcher", 5 },
36861 { "Lucy::Search::ORMatcher", "Lucy::Search::PolyMatcher", 4 },
36862 { "Lucy::Search::ORScorer", "Lucy::Search::ORMatcher", 5 },
36863 { "Lucy::Search::RequiredOptionalMatcher", "Lucy::Search::PolyMatcher", 5 },
36864 { "Lucy::Search::RangeMatcher", "Lucy::Search::Matcher", 5 },
36865 { "Lucy::Search::SeriesMatcher", "Lucy::Search::Matcher", 4 },
36866 { "Lucy::Search::TermMatcher", "Lucy::Search::Matcher", 4 },
36867 { "Lucy::Index::Posting::MatchPostingMatcher", "Lucy::Search::TermMatcher", 2 },
36868 { "Lucy::Index::Posting::ScorePostingMatcher", "Lucy::Search::TermMatcher", 2 },
36869 { "Lucy::Index::Posting::RichPostingMatcher", "Lucy::Index::Posting::ScorePostingMatcher", 1 },
36870 { "LucyX::Search::FilterMatcher", "Lucy::Search::Matcher", 5 },
36871 { "LucyX::Search::MockMatcher", "Lucy::Search::Matcher", 4 },
36872 { "LucyX::Search::ProximityMatcher", "Lucy::Search::Matcher", 6 },
36873 { "Lucy::Search::Query", "Clownfish::Obj", 8 },
36874 { "Lucy::Search::Compiler", "Lucy::Search::Query", 13 },
36875 { "Lucy::Search::MatchAllCompiler", "Lucy::Search::Compiler", 2 },
36876 { "Lucy::Search::NoMatchCompiler", "Lucy::Search::Compiler", 2 },
36877 { "Lucy::Search::PhraseCompiler", "Lucy::Search::Compiler", 9 },
36878 { "Lucy::Search::PolyCompiler", "Lucy::Search::Compiler", 6 },
36879 { "Lucy::Search::ANDCompiler", "Lucy::Search::PolyCompiler", 2 },
36880 { "Lucy::Search::NOTCompiler", "Lucy::Search::PolyCompiler", 4 },
36881 { "Lucy::Search::ORCompiler", "Lucy::Search::PolyCompiler", 2 },
36882 { "Lucy::Search::RequiredOptionalCompiler", "Lucy::Search::PolyCompiler", 2 },
36883 { "Lucy::Search::RangeCompiler", "Lucy::Search::Compiler", 2 },
36884 { "Lucy::Search::TermCompiler", "Lucy::Search::Compiler", 9 },
36885 { "LucyX::Search::ProximityCompiler", "Lucy::Search::Compiler", 9 },
36886 { "Lucy::Search::LeafQuery", "Lucy::Search::Query", 10 },
36887 { "Lucy::Search::MatchAllQuery", "Lucy::Search::Query", 4 },
36888 { "Lucy::Search::NoMatchQuery", "Lucy::Search::Query", 10 },
36889 { "Lucy::Search::PhraseQuery", "Lucy::Search::Query", 10 },
36890 { "Lucy::Search::PolyQuery", "Lucy::Search::Query", 9 },
36891 { "Lucy::Search::ANDQuery", "Lucy::Search::PolyQuery", 4 },
36892 { "Lucy::Search::NOTQuery", "Lucy::Search::PolyQuery", 6 },
36893 { "Lucy::Search::ORQuery", "Lucy::Search::PolyQuery", 4 },
36894 { "Lucy::Search::RequiredOptionalQuery", "Lucy::Search::PolyQuery", 8 },
36895 { "Lucy::Search::RangeQuery", "Lucy::Search::Query", 8 },
36896 { "Lucy::Search::TermQuery", "Lucy::Search::Query", 10 },
36897 { "LucyX::Search::ProximityQuery", "Lucy::Search::Query", 11 },
36898 { "Lucy::Search::QueryParser", "Clownfish::Obj", 18 },
36899 { "Lucy::Search::QueryParser::ParserElem", "Clownfish::Obj", 9 },
36900 { "Lucy::Search::QueryParser::QueryLexer", "Clownfish::Obj", 4 },
36901 { "Lucy::Search::Searcher", "Clownfish::Obj", 11 },
36902 { "Lucy::Search::IndexSearcher", "Lucy::Search::Searcher", 9 },
36903 { "Lucy::Search::PolySearcher", "Lucy::Search::Searcher", 8 },
36904 { "Lucy::Search::SortRule", "Clownfish::Obj", 6 },
36905 { "Lucy::Search::SortSpec", "Clownfish::Obj", 4 },
36906 { "Lucy::Search::Span", "Clownfish::Obj", 9 },
36907 { "Lucy::Search::TopDocs", "Clownfish::Obj", 7 },
36908 { "Lucy::Simple", "Clownfish::Obj", 6 },
36909 { "Lucy::Store::CompoundFileWriter", "Clownfish::Obj", 2 },
36910 { "Lucy::Store::DirHandle", "Clownfish::Obj", 7 },
36911 { "Lucy::Store::CFReaderDirHandle", "Lucy::Store::DirHandle", 4 },
36912 { "Lucy::Store::FSDirHandle", "Lucy::Store::DirHandle", 4 },
36913 { "Lucy::Store::RAMDirHandle", "Lucy::Store::DirHandle", 5 },
36914 { "Lucy::Store::FileHandle", "Clownfish::Obj", 8 },
36915 { "Lucy::Store::FSFileHandle", "Lucy::Store::FileHandle", 6 },
36916 { "Lucy::Store::RAMFileHandle", "Lucy::Store::FileHandle", 7 },
36917 { "Lucy::Store::FileWindow", "Clownfish::Obj", 4 },
36918 { "Lucy::Store::Folder", "Clownfish::Obj", 31 },
36919 { "Lucy::Store::CompoundFileReader", "Lucy::Store::Folder", 11 },
36920 { "Lucy::Store::FSFolder", "Lucy::Store::Folder", 13 },
36921 { "Lucy::Store::RAMFolder", "Lucy::Store::Folder", 13 },
36922 { "Lucy::Store::InStream", "Clownfish::Obj", 25 },
36923 { "Lucy::Store::Lock", "Clownfish::Obj", 6 },
36924 { "Lucy::Store::LockFileLock", "Lucy::Store::Lock", 4 },
36925 { "Lucy::Store::LockErr", "Clownfish::Err", 1 },
36926 { "Lucy::Store::OutStream", "Clownfish::Obj", 21 },
36927 { "Lucy::Store::RAMFile", "Clownfish::Obj", 4 },
36928 { "Lucy::Util::Json", "Clownfish::Obj", 0 },
36929 { "Lucy::Util::MemoryPool", "Clownfish::Obj", 3 },
36930 { "Lucy::Util::PriorityQueue", "Clownfish::Obj", 8 },
36931 { "Lucy::Index::SegLexQueue", "Lucy::Util::PriorityQueue", 1 },
36932 { "Lucy::Search::HitQueue", "Lucy::Util::PriorityQueue", 3 },
36933 { "Lucy::Util::SortExternal", "Clownfish::Obj", 14 },
36934 { "Lucy::Index::PostingPool", "Lucy::Util::SortExternal", 8 },
36935 { "Lucy::Index::SortFieldWriter", "Lucy::Util::SortExternal", 9 },
36936 { "Lucy::Util::BlobSortEx", "Lucy::Util::SortExternal", 9 },
36937 { "Lucy::Util::Stepper", "Clownfish::Obj", 7 },
36938 { "Lucy::Index::Posting", "Lucy::Util::Stepper", 6 },
36939 { "Lucy::Index::Posting::MatchPosting", "Lucy::Index::Posting", 7 },
36940 { "Lucy::Index::Posting::ScorePosting", "Lucy::Index::Posting::MatchPosting", 6 },
36941 { "Lucy::Index::Posting::RichPosting", "Lucy::Index::Posting::ScorePosting", 5 },
36942 { "Lucy::Index::RawPosting", "Lucy::Index::Posting", 1 },
36943 { "Lucy::Index::SkipStepper", "Lucy::Util::Stepper", 4 },
36944 { "Lucy::Index::TermStepper", "Lucy::Util::Stepper", 3 },
36945 { "Lucy::Index::Posting::MatchPosting::MatchTermInfoStepper", "Lucy::Index::TermStepper", 6 },
36946 { "Lucy::Index::TermStepper::TextTermStepper", "Lucy::Index::TermStepper", 8 }
36947 };
36948 static const cfish_XSBind_XSubSpec xsub_specs[] = {
36949 { "new", XS_Lucy_Analysis_Analyzer_new },
36950 { "transform", XS_Lucy_Analysis_Analyzer_transform },
36951 { "transform_text", XS_Lucy_Analysis_Analyzer_transform_text },
36952 { "split", XS_Lucy_Analysis_Analyzer_split },
36953 { "dump", XS_Lucy_Analysis_Analyzer_dump },
36954 { "load", XS_Lucy_Analysis_Analyzer_load },
36955 { "new", XS_Lucy_Analysis_CaseFolder_new },
36956 { "transform", XS_Lucy_Analysis_CaseFolder_transform },
36957 { "transform_text", XS_Lucy_Analysis_CaseFolder_transform_text },
36958 { "equals", XS_Lucy_Analysis_CaseFolder_equals },
36959 { "dump", XS_Lucy_Analysis_CaseFolder_dump },
36960 { "load", XS_Lucy_Analysis_CaseFolder_load },
36961 { "new", XS_Lucy_Analysis_EasyAnalyzer_new },
36962 { "transform", XS_Lucy_Analysis_EasyAnalyzer_transform },
36963 { "transform_text", XS_Lucy_Analysis_EasyAnalyzer_transform_text },
36964 { "dump", XS_Lucy_Analysis_EasyAnalyzer_dump },
36965 { "load", XS_Lucy_Analysis_EasyAnalyzer_load },
36966 { "equals", XS_Lucy_Analysis_EasyAnalyzer_equals },
36967 { "new", XS_Lucy_Analysis_Normalizer_new },
36968 { "transform", XS_Lucy_Analysis_Normalizer_transform },
36969 { "dump", XS_Lucy_Analysis_Normalizer_dump },
36970 { "load", XS_Lucy_Analysis_Normalizer_load },
36971 { "equals", XS_Lucy_Analysis_Normalizer_equals },
36972 { "new", XS_Lucy_Analysis_PolyAnalyzer_new },
36973 { "get_analyzers", XS_Lucy_Analysis_PolyAnalyzer_get_analyzers },
36974 { "transform", XS_Lucy_Analysis_PolyAnalyzer_transform },
36975 { "transform_text", XS_Lucy_Analysis_PolyAnalyzer_transform_text },
36976 { "equals", XS_Lucy_Analysis_PolyAnalyzer_equals },
36977 { "dump", XS_Lucy_Analysis_PolyAnalyzer_dump },
36978 { "load", XS_Lucy_Analysis_PolyAnalyzer_load },
36979 { "_new", XS_Lucy_Analysis_RegexTokenizer__new },
36980 { "transform", XS_Lucy_Analysis_RegexTokenizer_transform },
36981 { "transform_text", XS_Lucy_Analysis_RegexTokenizer_transform_text },
36982 { "dump", XS_Lucy_Analysis_RegexTokenizer_dump },
36983 { "load", XS_Lucy_Analysis_RegexTokenizer_load },
36984 { "equals", XS_Lucy_Analysis_RegexTokenizer_equals },
36985 { "new", XS_Lucy_Analysis_SnowballStemmer_new },
36986 { "transform", XS_Lucy_Analysis_SnowballStemmer_transform },
36987 { "dump", XS_Lucy_Analysis_SnowballStemmer_dump },
36988 { "load", XS_Lucy_Analysis_SnowballStemmer_load },
36989 { "equals", XS_Lucy_Analysis_SnowballStemmer_equals },
36990 { "new", XS_Lucy_Analysis_SnowballStopFilter_new },
36991 { "transform", XS_Lucy_Analysis_SnowballStopFilter_transform },
36992 { "equals", XS_Lucy_Analysis_SnowballStopFilter_equals },
36993 { "dump", XS_Lucy_Analysis_SnowballStopFilter_dump },
36994 { "load", XS_Lucy_Analysis_SnowballStopFilter_load },
36995 { "new", XS_Lucy_Analysis_StandardTokenizer_new },
36996 { "transform", XS_Lucy_Analysis_StandardTokenizer_transform },
36997 { "transform_text", XS_Lucy_Analysis_StandardTokenizer_transform_text },
36998 { "equals", XS_Lucy_Analysis_StandardTokenizer_equals },
36999 { "append", XS_Lucy_Analysis_Inversion_append },
37000 { "next", XS_Lucy_Analysis_Inversion_next },
37001 { "reset", XS_Lucy_Analysis_Inversion_reset },
37002 { "invert", XS_Lucy_Analysis_Inversion_invert },
37003 { "get_size", XS_Lucy_Analysis_Inversion_get_size },
37004 { "get_start_offset", XS_Lucy_Analysis_Token_get_start_offset },
37005 { "get_end_offset", XS_Lucy_Analysis_Token_get_end_offset },
37006 { "get_boost", XS_Lucy_Analysis_Token_get_boost },
37007 { "get_pos_inc", XS_Lucy_Analysis_Token_get_pos_inc },
37008 { "get_pos", XS_Lucy_Analysis_Token_get_pos },
37009 { "get_len", XS_Lucy_Analysis_Token_get_len },
37010 { "set_doc_id", XS_Lucy_Document_Doc_set_doc_id },
37011 { "get_doc_id", XS_Lucy_Document_Doc_get_doc_id },
37012 { "get_size", XS_Lucy_Document_Doc_get_size },
37013 { "extract", XS_Lucy_Document_Doc_extract },
37014 { "field_names", XS_Lucy_Document_Doc_field_names },
37015 { "equals", XS_Lucy_Document_Doc_equals },
37016 { "serialize", XS_Lucy_Document_Doc_serialize },
37017 { "deserialize", XS_Lucy_Document_Doc_deserialize },
37018 { "dump", XS_Lucy_Document_Doc_dump },
37019 { "load", XS_Lucy_Document_Doc_load },
37020 { "set_score", XS_Lucy_Document_HitDoc_set_score },
37021 { "get_score", XS_Lucy_Document_HitDoc_get_score },
37022 { "equals", XS_Lucy_Document_HitDoc_equals },
37023 { "dump", XS_Lucy_Document_HitDoc_dump },
37024 { "load", XS_Lucy_Document_HitDoc_load },
37025 { "serialize", XS_Lucy_Document_HitDoc_serialize },
37026 { "deserialize", XS_Lucy_Document_HitDoc_deserialize },
37027 { "new", XS_Lucy_Highlight_HeatMap_new },
37028 { "flatten_spans", XS_Lucy_Highlight_HeatMap_flatten_spans },
37029 { "calc_proximity_boost", XS_Lucy_Highlight_HeatMap_calc_proximity_boost },
37030 { "generate_proximity_boosts", XS_Lucy_Highlight_HeatMap_generate_proximity_boosts },
37031 { "get_spans", XS_Lucy_Highlight_HeatMap_get_spans },
37032 { "new", XS_Lucy_Highlight_Highlighter_new },
37033 { "create_excerpt", XS_Lucy_Highlight_Highlighter_create_excerpt },
37034 { "encode", XS_Lucy_Highlight_Highlighter_encode },
37035 { "highlight", XS_Lucy_Highlight_Highlighter_highlight },
37036 { "set_pre_tag", XS_Lucy_Highlight_Highlighter_set_pre_tag },
37037 { "set_post_tag", XS_Lucy_Highlight_Highlighter_set_post_tag },
37038 { "get_pre_tag", XS_Lucy_Highlight_Highlighter_get_pre_tag },
37039 { "get_post_tag", XS_Lucy_Highlight_Highlighter_get_post_tag },
37040 { "get_field", XS_Lucy_Highlight_Highlighter_get_field },
37041 { "get_excerpt_length", XS_Lucy_Highlight_Highlighter_get_excerpt_length },
37042 { "get_searcher", XS_Lucy_Highlight_Highlighter_get_searcher },
37043 { "get_query", XS_Lucy_Highlight_Highlighter_get_query },
37044 { "get_compiler", XS_Lucy_Highlight_Highlighter_get_compiler },
37045 { "_highlight_excerpt", XS_Lucy_Highlight_Highlighter__highlight_excerpt },
37046 { "new", XS_Lucy_Index_BackgroundMerger_new },
37047 { "optimize", XS_Lucy_Index_BackgroundMerger_optimize },
37048 { "commit", XS_Lucy_Index_BackgroundMerger_commit },
37049 { "prepare_commit", XS_Lucy_Index_BackgroundMerger_prepare_commit },
37050 { "new", XS_Lucy_Index_Counter_new },
37051 { "add", XS_Lucy_Index_Counter_add },
37052 { "get_value", XS_Lucy_Index_Counter_get_value },
37053 { "reset", XS_Lucy_Index_Counter_reset },
37054 { "new", XS_Lucy_Index_DataReader_new },
37055 { "aggregator", XS_Lucy_Index_DataReader_aggregator },
37056 { "get_schema", XS_Lucy_Index_DataReader_get_schema },
37057 { "get_folder", XS_Lucy_Index_DataReader_get_folder },
37058 { "get_snapshot", XS_Lucy_Index_DataReader_get_snapshot },
37059 { "get_segments", XS_Lucy_Index_DataReader_get_segments },
37060 { "get_segment", XS_Lucy_Index_DataReader_get_segment },
37061 { "get_seg_tick", XS_Lucy_Index_DataReader_get_seg_tick },
37062 { "close", XS_Lucy_Index_DataReader_close },
37063 { "new", XS_Lucy_Index_DeletionsReader_new },
37064 { "del_count", XS_Lucy_Index_DeletionsReader_del_count },
37065 { "iterator", XS_Lucy_Index_DeletionsReader_iterator },
37066 { "aggregator", XS_Lucy_Index_DeletionsReader_aggregator },
37067 { "new", XS_Lucy_Index_DefaultDeletionsReader_new },
37068 { "del_count", XS_Lucy_Index_DefaultDeletionsReader_del_count },
37069 { "iterator", XS_Lucy_Index_DefaultDeletionsReader_iterator },
37070 { "read_deletions", XS_Lucy_Index_DefaultDeletionsReader_read_deletions },
37071 { "close", XS_Lucy_Index_DefaultDeletionsReader_close },
37072 { "new", XS_Lucy_Index_PolyDeletionsReader_new },
37073 { "del_count", XS_Lucy_Index_PolyDeletionsReader_del_count },
37074 { "iterator", XS_Lucy_Index_PolyDeletionsReader_iterator },
37075 { "close", XS_Lucy_Index_PolyDeletionsReader_close },
37076 { "new", XS_Lucy_Index_DocReader_new },
37077 { "fetch_doc", XS_Lucy_Index_DocReader_fetch_doc },
37078 { "aggregator", XS_Lucy_Index_DocReader_aggregator },
37079 { "new", XS_Lucy_Index_DefaultDocReader_new },
37080 { "fetch_doc", XS_Lucy_Index_DefaultDocReader_fetch_doc },
37081 { "read_record", XS_Lucy_Index_DefaultDocReader_read_record },
37082 { "close", XS_Lucy_Index_DefaultDocReader_close },
37083 { "new", XS_Lucy_Index_PolyDocReader_new },
37084 { "fetch_doc", XS_Lucy_Index_PolyDocReader_fetch_doc },
37085 { "close", XS_Lucy_Index_PolyDocReader_close },
37086 { "new", XS_Lucy_Index_HighlightReader_new },
37087 { "fetch_doc_vec", XS_Lucy_Index_HighlightReader_fetch_doc_vec },
37088 { "aggregator", XS_Lucy_Index_HighlightReader_aggregator },
37089 { "new", XS_Lucy_Index_DefaultHighlightReader_new },
37090 { "fetch_doc_vec", XS_Lucy_Index_DefaultHighlightReader_fetch_doc_vec },
37091 { "read_record", XS_Lucy_Index_DefaultHighlightReader_read_record },
37092 { "close", XS_Lucy_Index_DefaultHighlightReader_close },
37093 { "new", XS_Lucy_Index_PolyHighlightReader_new },
37094 { "fetch_doc_vec", XS_Lucy_Index_PolyHighlightReader_fetch_doc_vec },
37095 { "close", XS_Lucy_Index_PolyHighlightReader_close },
37096 { "open", XS_Lucy_Index_IndexReader_open },
37097 { "doc_max", XS_Lucy_Index_IndexReader_doc_max },
37098 { "doc_count", XS_Lucy_Index_IndexReader_doc_count },
37099 { "del_count", XS_Lucy_Index_IndexReader_del_count },
37100 { "_offsets", XS_Lucy_Index_IndexReader__offsets },
37101 { "seg_readers", XS_Lucy_Index_IndexReader_seg_readers },
37102 { "obtain", XS_Lucy_Index_IndexReader_obtain },
37103 { "fetch", XS_Lucy_Index_IndexReader_fetch },
37104 { "close", XS_Lucy_Index_IndexReader_close },
37105 { "get_components", XS_Lucy_Index_IndexReader_get_components },
37106 { "open", XS_Lucy_Index_PolyReader_open },
37107 { "new", XS_Lucy_Index_PolyReader_new },
37108 { "doc_max", XS_Lucy_Index_PolyReader_doc_max },
37109 { "doc_count", XS_Lucy_Index_PolyReader_doc_count },
37110 { "del_count", XS_Lucy_Index_PolyReader_del_count },
37111 { "_offsets", XS_Lucy_Index_PolyReader__offsets },
37112 { "seg_readers", XS_Lucy_Index_PolyReader_seg_readers },
37113 { "get_seg_readers", XS_Lucy_Index_PolyReader_get_seg_readers },
37114 { "close", XS_Lucy_Index_PolyReader_close },
37115 { "new", XS_Lucy_Index_SegReader_new },
37116 { "register", XS_Lucy_Index_SegReader_register },
37117 { "get_seg_name", XS_Lucy_Index_SegReader_get_seg_name },
37118 { "get_seg_num", XS_Lucy_Index_SegReader_get_seg_num },
37119 { "del_count", XS_Lucy_Index_SegReader_del_count },
37120 { "doc_max", XS_Lucy_Index_SegReader_doc_max },
37121 { "doc_count", XS_Lucy_Index_SegReader_doc_count },
37122 { "_offsets", XS_Lucy_Index_SegReader__offsets },
37123 { "seg_readers", XS_Lucy_Index_SegReader_seg_readers },
37124 { "new", XS_Lucy_Index_LexiconReader_new },
37125 { "lexicon", XS_Lucy_Index_LexiconReader_lexicon },
37126 { "doc_freq", XS_Lucy_Index_LexiconReader_doc_freq },
37127 { "fetch_term_info", XS_Lucy_Index_LexiconReader_fetch_term_info },
37128 { "aggregator", XS_Lucy_Index_LexiconReader_aggregator },
37129 { "new", XS_Lucy_Index_DefaultLexiconReader_new },
37130 { "lexicon", XS_Lucy_Index_DefaultLexiconReader_lexicon },
37131 { "doc_freq", XS_Lucy_Index_DefaultLexiconReader_doc_freq },
37132 { "fetch_term_info", XS_Lucy_Index_DefaultLexiconReader_fetch_term_info },
37133 { "close", XS_Lucy_Index_DefaultLexiconReader_close },
37134 { "new", XS_Lucy_Index_PolyLexiconReader_new },
37135 { "lexicon", XS_Lucy_Index_PolyLexiconReader_lexicon },
37136 { "doc_freq", XS_Lucy_Index_PolyLexiconReader_doc_freq },
37137 { "close", XS_Lucy_Index_PolyLexiconReader_close },
37138 { "new", XS_Lucy_Index_PostingListReader_new },
37139 { "posting_list", XS_Lucy_Index_PostingListReader_posting_list },
37140 { "get_lex_reader", XS_Lucy_Index_PostingListReader_get_lex_reader },
37141 { "aggregator", XS_Lucy_Index_PostingListReader_aggregator },
37142 { "new", XS_Lucy_Index_DefaultPostingListReader_new },
37143 { "posting_list", XS_Lucy_Index_DefaultPostingListReader_posting_list },
37144 { "get_lex_reader", XS_Lucy_Index_DefaultPostingListReader_get_lex_reader },
37145 { "close", XS_Lucy_Index_DefaultPostingListReader_close },
37146 { "new", XS_Lucy_Index_SortReader_new },
37147 { "fetch_sort_cache", XS_Lucy_Index_SortReader_fetch_sort_cache },
37148 { "aggregator", XS_Lucy_Index_SortReader_aggregator },
37149 { "new", XS_Lucy_Index_DefaultSortReader_new },
37150 { "fetch_sort_cache", XS_Lucy_Index_DefaultSortReader_fetch_sort_cache },
37151 { "close", XS_Lucy_Index_DefaultSortReader_close },
37152 { "new", XS_Lucy_Index_DataWriter_new },
37153 { "add_inverted_doc", XS_Lucy_Index_DataWriter_add_inverted_doc },
37154 { "add_segment", XS_Lucy_Index_DataWriter_add_segment },
37155 { "delete_segment", XS_Lucy_Index_DataWriter_delete_segment },
37156 { "merge_segment", XS_Lucy_Index_DataWriter_merge_segment },
37157 { "finish", XS_Lucy_Index_DataWriter_finish },
37158 { "metadata", XS_Lucy_Index_DataWriter_metadata },
37159 { "format", XS_Lucy_Index_DataWriter_format },
37160 { "get_snapshot", XS_Lucy_Index_DataWriter_get_snapshot },
37161 { "get_segment", XS_Lucy_Index_DataWriter_get_segment },
37162 { "get_polyreader", XS_Lucy_Index_DataWriter_get_polyreader },
37163 { "get_schema", XS_Lucy_Index_DataWriter_get_schema },
37164 { "get_folder", XS_Lucy_Index_DataWriter_get_folder },
37165 { "new", XS_Lucy_Index_DeletionsWriter_new },
37166 { "delete_by_term", XS_Lucy_Index_DeletionsWriter_delete_by_term },
37167 { "delete_by_query", XS_Lucy_Index_DeletionsWriter_delete_by_query },
37168 { "delete_by_doc_id", XS_Lucy_Index_DeletionsWriter_delete_by_doc_id },
37169 { "updated", XS_Lucy_Index_DeletionsWriter_updated },
37170 { "generate_doc_map", XS_Lucy_Index_DeletionsWriter_generate_doc_map },
37171 { "seg_deletions", XS_Lucy_Index_DeletionsWriter_seg_deletions },
37172 { "seg_del_count", XS_Lucy_Index_DeletionsWriter_seg_del_count },
37173 { "new", XS_Lucy_Index_DefaultDeletionsWriter_new },
37174 { "delete_by_term", XS_Lucy_Index_DefaultDeletionsWriter_delete_by_term },
37175 { "delete_by_query", XS_Lucy_Index_DefaultDeletionsWriter_delete_by_query },
37176 { "delete_by_doc_id", XS_Lucy_Index_DefaultDeletionsWriter_delete_by_doc_id },
37177 { "updated", XS_Lucy_Index_DefaultDeletionsWriter_updated },
37178 { "seg_deletions", XS_Lucy_Index_DefaultDeletionsWriter_seg_deletions },
37179 { "seg_del_count", XS_Lucy_Index_DefaultDeletionsWriter_seg_del_count },
37180 { "add_segment", XS_Lucy_Index_DefaultDeletionsWriter_add_segment },
37181 { "merge_segment", XS_Lucy_Index_DefaultDeletionsWriter_merge_segment },
37182 { "finish", XS_Lucy_Index_DefaultDeletionsWriter_finish },
37183 { "format", XS_Lucy_Index_DefaultDeletionsWriter_format },
37184 { "metadata", XS_Lucy_Index_DefaultDeletionsWriter_metadata },
37185 { "new", XS_Lucy_Index_DocWriter_new },
37186 { "add_inverted_doc", XS_Lucy_Index_DocWriter_add_inverted_doc },
37187 { "add_segment", XS_Lucy_Index_DocWriter_add_segment },
37188 { "finish", XS_Lucy_Index_DocWriter_finish },
37189 { "format", XS_Lucy_Index_DocWriter_format },
37190 { "new", XS_Lucy_Index_HighlightWriter_new },
37191 { "tv_buf", XS_Lucy_Index_HighlightWriter_tv_buf },
37192 { "add_inverted_doc", XS_Lucy_Index_HighlightWriter_add_inverted_doc },
37193 { "add_segment", XS_Lucy_Index_HighlightWriter_add_segment },
37194 { "finish", XS_Lucy_Index_HighlightWriter_finish },
37195 { "format", XS_Lucy_Index_HighlightWriter_format },
37196 { "new", XS_Lucy_Index_LexiconWriter_new },
37197 { "start_field", XS_Lucy_Index_LexiconWriter_start_field },
37198 { "finish_field", XS_Lucy_Index_LexiconWriter_finish_field },
37199 { "enter_temp_mode", XS_Lucy_Index_LexiconWriter_enter_temp_mode },
37200 { "leave_temp_mode", XS_Lucy_Index_LexiconWriter_leave_temp_mode },
37201 { "add_term", XS_Lucy_Index_LexiconWriter_add_term },
37202 { "add_segment", XS_Lucy_Index_LexiconWriter_add_segment },
37203 { "metadata", XS_Lucy_Index_LexiconWriter_metadata },
37204 { "format", XS_Lucy_Index_LexiconWriter_format },
37205 { "finish", XS_Lucy_Index_LexiconWriter_finish },
37206 { "new", XS_Lucy_Index_Posting_PostingWriter_new },
37207 { "write_posting", XS_Lucy_Index_Posting_PostingWriter_write_posting },
37208 { "start_term", XS_Lucy_Index_Posting_PostingWriter_start_term },
37209 { "update_skip_info", XS_Lucy_Index_Posting_PostingWriter_update_skip_info },
37210 { "new", XS_Lucy_Index_Posting_MatchPostingWriter_new },
37211 { "write_posting", XS_Lucy_Index_Posting_MatchPostingWriter_write_posting },
37212 { "start_term", XS_Lucy_Index_Posting_MatchPostingWriter_start_term },
37213 { "update_skip_info", XS_Lucy_Index_Posting_MatchPostingWriter_update_skip_info },
37214 { "new", XS_Lucy_Index_Posting_RawPostingWriter_new },
37215 { "start_term", XS_Lucy_Index_Posting_RawPostingWriter_start_term },
37216 { "update_skip_info", XS_Lucy_Index_Posting_RawPostingWriter_update_skip_info },
37217 { "write_posting", XS_Lucy_Index_Posting_RawPostingWriter_write_posting },
37218 { "new", XS_Lucy_Index_PostingListWriter_new },
37219 { "add_inverted_doc", XS_Lucy_Index_PostingListWriter_add_inverted_doc },
37220 { "add_segment", XS_Lucy_Index_PostingListWriter_add_segment },
37221 { "finish", XS_Lucy_Index_PostingListWriter_finish },
37222 { "format", XS_Lucy_Index_PostingListWriter_format },
37223 { "new", XS_Lucy_Index_SegWriter_new },
37224 { "register", XS_Lucy_Index_SegWriter_register },
37225 { "fetch", XS_Lucy_Index_SegWriter_fetch },
37226 { "add_writer", XS_Lucy_Index_SegWriter_add_writer },
37227 { "prep_seg_dir", XS_Lucy_Index_SegWriter_prep_seg_dir },
37228 { "add_doc", XS_Lucy_Index_SegWriter_add_doc },
37229 { "set_del_writer", XS_Lucy_Index_SegWriter_set_del_writer },
37230 { "get_del_writer", XS_Lucy_Index_SegWriter_get_del_writer },
37231 { "add_inverted_doc", XS_Lucy_Index_SegWriter_add_inverted_doc },
37232 { "add_segment", XS_Lucy_Index_SegWriter_add_segment },
37233 { "merge_segment", XS_Lucy_Index_SegWriter_merge_segment },
37234 { "delete_segment", XS_Lucy_Index_SegWriter_delete_segment },
37235 { "finish", XS_Lucy_Index_SegWriter_finish },
37236 { "new", XS_Lucy_Index_SortWriter_new },
37237 { "add_inverted_doc", XS_Lucy_Index_SortWriter_add_inverted_doc },
37238 { "add_segment", XS_Lucy_Index_SortWriter_add_segment },
37239 { "metadata", XS_Lucy_Index_SortWriter_metadata },
37240 { "format", XS_Lucy_Index_SortWriter_format },
37241 { "finish", XS_Lucy_Index_SortWriter_finish },
37242 { "new", XS_Lucy_Index_DocVector_new },
37243 { "term_vector", XS_Lucy_Index_DocVector_term_vector },
37244 { "add_field_buf", XS_Lucy_Index_DocVector_add_field_buf },
37245 { "field_buf", XS_Lucy_Index_DocVector_field_buf },
37246 { "serialize", XS_Lucy_Index_DocVector_serialize },
37247 { "deserialize", XS_Lucy_Index_DocVector_deserialize },
37248 { "new", XS_Lucy_Index_FilePurger_new },
37249 { "purge_snapshots", XS_Lucy_Index_FilePurger_purge_snapshots },
37250 { "purge_aborted_merge", XS_Lucy_Index_FilePurger_purge_aborted_merge },
37251 { "new", XS_Lucy_Index_IndexManager_new },
37252 { "set_folder", XS_Lucy_Index_IndexManager_set_folder },
37253 { "get_folder", XS_Lucy_Index_IndexManager_get_folder },
37254 { "get_host", XS_Lucy_Index_IndexManager_get_host },
37255 { "recycle", XS_Lucy_Index_IndexManager_recycle },
37256 { "choose_sparse", XS_Lucy_Index_IndexManager_choose_sparse },
37257 { "make_write_lock", XS_Lucy_Index_IndexManager_make_write_lock },
37258 { "make_merge_lock", XS_Lucy_Index_IndexManager_make_merge_lock },
37259 { "write_merge_data", XS_Lucy_Index_IndexManager_write_merge_data },
37260 { "read_merge_data", XS_Lucy_Index_IndexManager_read_merge_data },
37261 { "remove_merge_data", XS_Lucy_Index_IndexManager_remove_merge_data },
37262 { "make_snapshot_lock", XS_Lucy_Index_IndexManager_make_snapshot_lock },
37263 { "highest_seg_num", XS_Lucy_Index_IndexManager_highest_seg_num },
37264 { "set_write_lock_timeout", XS_Lucy_Index_IndexManager_set_write_lock_timeout },
37265 { "get_write_lock_timeout", XS_Lucy_Index_IndexManager_get_write_lock_timeout },
37266 { "set_write_lock_interval", XS_Lucy_Index_IndexManager_set_write_lock_interval },
37267 { "get_write_lock_interval", XS_Lucy_Index_IndexManager_get_write_lock_interval },
37268 { "set_merge_lock_timeout", XS_Lucy_Index_IndexManager_set_merge_lock_timeout },
37269 { "get_merge_lock_timeout", XS_Lucy_Index_IndexManager_get_merge_lock_timeout },
37270 { "set_merge_lock_interval", XS_Lucy_Index_IndexManager_set_merge_lock_interval },
37271 { "get_merge_lock_interval", XS_Lucy_Index_IndexManager_get_merge_lock_interval },
37272 { "_new", XS_Lucy_Index_Indexer__new },
37273 { "add_index", XS_Lucy_Index_Indexer_add_index },
37274 { "delete_by_term", XS_Lucy_Index_Indexer_delete_by_term },
37275 { "delete_by_query", XS_Lucy_Index_Indexer_delete_by_query },
37276 { "delete_by_doc_id", XS_Lucy_Index_Indexer_delete_by_doc_id },
37277 { "optimize", XS_Lucy_Index_Indexer_optimize },
37278 { "commit", XS_Lucy_Index_Indexer_commit },
37279 { "prepare_commit", XS_Lucy_Index_Indexer_prepare_commit },
37280 { "get_schema", XS_Lucy_Index_Indexer_get_schema },
37281 { "get_seg_writer", XS_Lucy_Index_Indexer_get_seg_writer },
37282 { "get_stock_doc", XS_Lucy_Index_Indexer_get_stock_doc },
37283 { "new", XS_Lucy_Index_Inverter_new },
37284 { "invert_doc", XS_Lucy_Index_Inverter_invert_doc },
37285 { "set_doc", XS_Lucy_Index_Inverter_set_doc },
37286 { "set_boost", XS_Lucy_Index_Inverter_set_boost },
37287 { "add_field", XS_Lucy_Index_Inverter_add_field },
37288 { "clear", XS_Lucy_Index_Inverter_clear },
37289 { "iterate", XS_Lucy_Index_Inverter_iterate },
37290 { "next", XS_Lucy_Index_Inverter_next },
37291 { "get_doc", XS_Lucy_Index_Inverter_get_doc },
37292 { "get_boost", XS_Lucy_Index_Inverter_get_boost },
37293 { "get_field_name", XS_Lucy_Index_Inverter_get_field_name },
37294 { "get_value", XS_Lucy_Index_Inverter_get_value },
37295 { "get_type", XS_Lucy_Index_Inverter_get_type },
37296 { "get_analyzer", XS_Lucy_Index_Inverter_get_analyzer },
37297 { "get_similarity", XS_Lucy_Index_Inverter_get_similarity },
37298 { "get_inversion", XS_Lucy_Index_Inverter_get_inversion },
37299 { "new", XS_Lucy_Index_Inverter_InverterEntry_new },
37300 { "compare_to", XS_Lucy_Index_Inverter_InverterEntry_compare_to },
37301 { "clear", XS_Lucy_Index_Inverter_InverterEntry_clear },
37302 { "new", XS_Lucy_Index_Lexicon_new },
37303 { "seek", XS_Lucy_Index_Lexicon_seek },
37304 { "next", XS_Lucy_Index_Lexicon_next },
37305 { "reset", XS_Lucy_Index_Lexicon_reset },
37306 { "doc_freq", XS_Lucy_Index_Lexicon_doc_freq },
37307 { "get_term", XS_Lucy_Index_Lexicon_get_term },
37308 { "get_field", XS_Lucy_Index_Lexicon_get_field },
37309 { "new", XS_Lucy_Index_LexIndex_new },
37310 { "seek", XS_Lucy_Index_LexIndex_seek },
37311 { "get_term_num", XS_Lucy_Index_LexIndex_get_term_num },
37312 { "get_term_info", XS_Lucy_Index_LexIndex_get_term_info },
37313 { "get_term", XS_Lucy_Index_LexIndex_get_term },
37314 { "new", XS_Lucy_Index_PolyLexicon_new },
37315 { "seek", XS_Lucy_Index_PolyLexicon_seek },
37316 { "next", XS_Lucy_Index_PolyLexicon_next },
37317 { "reset", XS_Lucy_Index_PolyLexicon_reset },
37318 { "get_term", XS_Lucy_Index_PolyLexicon_get_term },
37319 { "get_num_seg_lexicons", XS_Lucy_Index_PolyLexicon_get_num_seg_lexicons },
37320 { "new", XS_Lucy_Index_RawLexicon_new },
37321 { "next", XS_Lucy_Index_RawLexicon_next },
37322 { "get_term", XS_Lucy_Index_RawLexicon_get_term },
37323 { "doc_freq", XS_Lucy_Index_RawLexicon_doc_freq },
37324 { "new", XS_Lucy_Index_SegLexicon_new },
37325 { "get_term_info", XS_Lucy_Index_SegLexicon_get_term_info },
37326 { "get_field_num", XS_Lucy_Index_SegLexicon_get_field_num },
37327 { "get_segment", XS_Lucy_Index_SegLexicon_get_segment },
37328 { "seek", XS_Lucy_Index_SegLexicon_seek },
37329 { "reset", XS_Lucy_Index_SegLexicon_reset },
37330 { "get_term", XS_Lucy_Index_SegLexicon_get_term },
37331 { "doc_freq", XS_Lucy_Index_SegLexicon_doc_freq },
37332 { "next", XS_Lucy_Index_SegLexicon_next },
37333 { "new", XS_Lucy_Index_Segment_new },
37334 { "add_field", XS_Lucy_Index_Segment_add_field },
37335 { "store_metadata", XS_Lucy_Index_Segment_store_metadata },
37336 { "fetch_metadata", XS_Lucy_Index_Segment_fetch_metadata },
37337 { "field_num", XS_Lucy_Index_Segment_field_num },
37338 { "field_name", XS_Lucy_Index_Segment_field_name },
37339 { "get_name", XS_Lucy_Index_Segment_get_name },
37340 { "get_number", XS_Lucy_Index_Segment_get_number },
37341 { "set_count", XS_Lucy_Index_Segment_set_count },
37342 { "get_count", XS_Lucy_Index_Segment_get_count },
37343 { "increment_count", XS_Lucy_Index_Segment_increment_count },
37344 { "get_metadata", XS_Lucy_Index_Segment_get_metadata },
37345 { "write_file", XS_Lucy_Index_Segment_write_file },
37346 { "read_file", XS_Lucy_Index_Segment_read_file },
37347 { "compare_to", XS_Lucy_Index_Segment_compare_to },
37348 { "new", XS_Lucy_Index_Similarity_new },
37349 { "make_posting", XS_Lucy_Index_Similarity_make_posting },
37350 { "make_posting_writer", XS_Lucy_Index_Similarity_make_posting_writer },
37351 { "tf", XS_Lucy_Index_Similarity_tf },
37352 { "idf", XS_Lucy_Index_Similarity_idf },
37353 { "coord", XS_Lucy_Index_Similarity_coord },
37354 { "length_norm", XS_Lucy_Index_Similarity_length_norm },
37355 { "query_norm", XS_Lucy_Index_Similarity_query_norm },
37356 { "encode_norm", XS_Lucy_Index_Similarity_encode_norm },
37357 { "decode_norm", XS_Lucy_Index_Similarity_decode_norm },
37358 { "dump", XS_Lucy_Index_Similarity_dump },
37359 { "load", XS_Lucy_Index_Similarity_load },
37360 { "equals", XS_Lucy_Index_Similarity_equals },
37361 { "serialize", XS_Lucy_Index_Similarity_serialize },
37362 { "deserialize", XS_Lucy_Index_Similarity_deserialize },
37363 { "new", XS_Lucy_Index_Snapshot_new },
37364 { "list", XS_Lucy_Index_Snapshot_list },
37365 { "num_entries", XS_Lucy_Index_Snapshot_num_entries },
37366 { "add_entry", XS_Lucy_Index_Snapshot_add_entry },
37367 { "delete_entry", XS_Lucy_Index_Snapshot_delete_entry },
37368 { "read_file", XS_Lucy_Index_Snapshot_read_file },
37369 { "write_file", XS_Lucy_Index_Snapshot_write_file },
37370 { "set_path", XS_Lucy_Index_Snapshot_set_path },
37371 { "get_path", XS_Lucy_Index_Snapshot_get_path },
37372 { "get_cardinality", XS_Lucy_Index_SortCache_get_cardinality },
37373 { "get_ord_width", XS_Lucy_Index_SortCache_get_ord_width },
37374 { "get_null_ord", XS_Lucy_Index_SortCache_get_null_ord },
37375 { "ordinal", XS_Lucy_Index_SortCache_ordinal },
37376 { "find", XS_Lucy_Index_SortCache_find },
37377 { "set_native_ords", XS_Lucy_Index_SortCache_set_native_ords },
37378 { "get_native_ords", XS_Lucy_Index_SortCache_get_native_ords },
37379 { "new", XS_Lucy_Index_SortCache_NumericSortCache_new },
37380 { "new", XS_Lucy_Index_SortCache_Float32SortCache_new },
37381 { "new", XS_Lucy_Index_SortCache_Float64SortCache_new },
37382 { "new", XS_Lucy_Index_SortCache_Int32SortCache_new },
37383 { "new", XS_Lucy_Index_SortCache_Int64SortCache_new },
37384 { "new", XS_Lucy_Index_SortCache_TextSortCache_new },
37385 { "new", XS_Lucy_Index_TermInfo_new },
37386 { "get_doc_freq", XS_Lucy_Index_TermInfo_get_doc_freq },
37387 { "get_lex_filepos", XS_Lucy_Index_TermInfo_get_lex_filepos },
37388 { "get_post_filepos", XS_Lucy_Index_TermInfo_get_post_filepos },
37389 { "get_skip_filepos", XS_Lucy_Index_TermInfo_get_skip_filepos },
37390 { "set_doc_freq", XS_Lucy_Index_TermInfo_set_doc_freq },
37391 { "set_lex_filepos", XS_Lucy_Index_TermInfo_set_lex_filepos },
37392 { "set_post_filepos", XS_Lucy_Index_TermInfo_set_post_filepos },
37393 { "set_skip_filepos", XS_Lucy_Index_TermInfo_set_skip_filepos },
37394 { "reset", XS_Lucy_Index_TermInfo_reset },
37395 { "mimic", XS_Lucy_Index_TermInfo_mimic },
37396 { "clone", XS_Lucy_Index_TermInfo_clone },
37397 { "to_string", XS_Lucy_Index_TermInfo_to_string },
37398 { "new", XS_Lucy_Index_TermVector_new },
37399 { "get_positions", XS_Lucy_Index_TermVector_get_positions },
37400 { "get_start_offsets", XS_Lucy_Index_TermVector_get_start_offsets },
37401 { "get_end_offsets", XS_Lucy_Index_TermVector_get_end_offsets },
37402 { "serialize", XS_Lucy_Index_TermVector_serialize },
37403 { "deserialize", XS_Lucy_Index_TermVector_deserialize },
37404 { "equals", XS_Lucy_Index_TermVector_equals },
37405 { "new", XS_Lucy_Object_BitVector_new },
37406 { "get", XS_Lucy_Object_BitVector_get },
37407 { "set", XS_Lucy_Object_BitVector_set },
37408 { "get_capacity", XS_Lucy_Object_BitVector_get_capacity },
37409 { "next_hit", XS_Lucy_Object_BitVector_next_hit },
37410 { "clear", XS_Lucy_Object_BitVector_clear },
37411 { "clear_all", XS_Lucy_Object_BitVector_clear_all },
37412 { "grow", XS_Lucy_Object_BitVector_grow },
37413 { "mimic", XS_Lucy_Object_BitVector_mimic },
37414 { "and", XS_Lucy_Object_BitVector_and },
37415 { "or", XS_Lucy_Object_BitVector_or },
37416 { "xor", XS_Lucy_Object_BitVector_xor },
37417 { "and_not", XS_Lucy_Object_BitVector_and_not },
37418 { "flip", XS_Lucy_Object_BitVector_flip },
37419 { "flip_block", XS_Lucy_Object_BitVector_flip_block },
37420 { "count", XS_Lucy_Object_BitVector_count },
37421 { "to_array", XS_Lucy_Object_BitVector_to_array },
37422 { "clone", XS_Lucy_Object_BitVector_clone },
37423 { "new", XS_Lucy_Index_BitVecDelDocs_new },
37424 { "set", XS_Lucy_Object_I32Array_set },
37425 { "get", XS_Lucy_Object_I32Array_get },
37426 { "get_size", XS_Lucy_Object_I32Array_get_size },
37427 { "new", XS_Lucy_Plan_Architecture_new },
37428 { "init_seg_writer", XS_Lucy_Plan_Architecture_init_seg_writer },
37429 { "register_lexicon_writer", XS_Lucy_Plan_Architecture_register_lexicon_writer },
37430 { "register_posting_list_writer", XS_Lucy_Plan_Architecture_register_posting_list_writer },
37431 { "register_doc_writer", XS_Lucy_Plan_Architecture_register_doc_writer },
37432 { "register_sort_writer", XS_Lucy_Plan_Architecture_register_sort_writer },
37433 { "register_highlight_writer", XS_Lucy_Plan_Architecture_register_highlight_writer },
37434 { "register_deletions_writer", XS_Lucy_Plan_Architecture_register_deletions_writer },
37435 { "init_seg_reader", XS_Lucy_Plan_Architecture_init_seg_reader },
37436 { "register_doc_reader", XS_Lucy_Plan_Architecture_register_doc_reader },
37437 { "register_posting_list_reader", XS_Lucy_Plan_Architecture_register_posting_list_reader },
37438 { "register_sort_reader", XS_Lucy_Plan_Architecture_register_sort_reader },
37439 { "register_highlight_reader", XS_Lucy_Plan_Architecture_register_highlight_reader },
37440 { "register_lexicon_reader", XS_Lucy_Plan_Architecture_register_lexicon_reader },
37441 { "register_deletions_reader", XS_Lucy_Plan_Architecture_register_deletions_reader },
37442 { "make_similarity", XS_Lucy_Plan_Architecture_make_similarity },
37443 { "index_interval", XS_Lucy_Plan_Architecture_index_interval },
37444 { "skip_interval", XS_Lucy_Plan_Architecture_skip_interval },
37445 { "equals", XS_Lucy_Plan_Architecture_equals },
37446 { "new", XS_Lucy_Plan_FieldType_new },
37447 { "set_boost", XS_Lucy_Plan_FieldType_set_boost },
37448 { "get_boost", XS_Lucy_Plan_FieldType_get_boost },
37449 { "set_indexed", XS_Lucy_Plan_FieldType_set_indexed },
37450 { "indexed", XS_Lucy_Plan_FieldType_indexed },
37451 { "set_stored", XS_Lucy_Plan_FieldType_set_stored },
37452 { "stored", XS_Lucy_Plan_FieldType_stored },
37453 { "set_sortable", XS_Lucy_Plan_FieldType_set_sortable },
37454 { "sortable", XS_Lucy_Plan_FieldType_sortable },
37455 { "binary", XS_Lucy_Plan_FieldType_binary },
37456 { "compare_values", XS_Lucy_Plan_FieldType_compare_values },
37457 { "make_term_stepper", XS_Lucy_Plan_FieldType_make_term_stepper },
37458 { "primitive_id", XS_Lucy_Plan_FieldType_primitive_id },
37459 { "dump_for_schema", XS_Lucy_Plan_FieldType_dump_for_schema },
37460 { "dump", XS_Lucy_Plan_FieldType_dump },
37461 { "load", XS_Lucy_Plan_FieldType_load },
37462 { "equals", XS_Lucy_Plan_FieldType_equals },
37463 { "new", XS_Lucy_Plan_BlobType_new },
37464 { "binary", XS_Lucy_Plan_BlobType_binary },
37465 { "set_sortable", XS_Lucy_Plan_BlobType_set_sortable },
37466 { "primitive_id", XS_Lucy_Plan_BlobType_primitive_id },
37467 { "dump_for_schema", XS_Lucy_Plan_BlobType_dump_for_schema },
37468 { "dump", XS_Lucy_Plan_BlobType_dump },
37469 { "load", XS_Lucy_Plan_BlobType_load },
37470 { "equals", XS_Lucy_Plan_BlobType_equals },
37471 { "new", XS_Lucy_Plan_NumericType_new },
37472 { "binary", XS_Lucy_Plan_NumericType_binary },
37473 { "specifier", XS_Lucy_Plan_NumericType_specifier },
37474 { "dump_for_schema", XS_Lucy_Plan_NumericType_dump_for_schema },
37475 { "dump", XS_Lucy_Plan_NumericType_dump },
37476 { "load", XS_Lucy_Plan_NumericType_load },
37477 { "new", XS_Lucy_Plan_Float32Type_new },
37478 { "primitive_id", XS_Lucy_Plan_Float32Type_primitive_id },
37479 { "specifier", XS_Lucy_Plan_Float32Type_specifier },
37480 { "equals", XS_Lucy_Plan_Float32Type_equals },
37481 { "new", XS_Lucy_Plan_Float64Type_new },
37482 { "primitive_id", XS_Lucy_Plan_Float64Type_primitive_id },
37483 { "specifier", XS_Lucy_Plan_Float64Type_specifier },
37484 { "equals", XS_Lucy_Plan_Float64Type_equals },
37485 { "new", XS_Lucy_Plan_Int32Type_new },
37486 { "primitive_id", XS_Lucy_Plan_Int32Type_primitive_id },
37487 { "specifier", XS_Lucy_Plan_Int32Type_specifier },
37488 { "equals", XS_Lucy_Plan_Int32Type_equals },
37489 { "new", XS_Lucy_Plan_Int64Type_new },
37490 { "primitive_id", XS_Lucy_Plan_Int64Type_primitive_id },
37491 { "specifier", XS_Lucy_Plan_Int64Type_specifier },
37492 { "equals", XS_Lucy_Plan_Int64Type_equals },
37493 { "make_term_stepper", XS_Lucy_Plan_TextType_make_term_stepper },
37494 { "primitive_id", XS_Lucy_Plan_TextType_primitive_id },
37495 { "new", XS_Lucy_Plan_FullTextType_new },
37496 { "set_highlightable", XS_Lucy_Plan_FullTextType_set_highlightable },
37497 { "highlightable", XS_Lucy_Plan_FullTextType_highlightable },
37498 { "get_analyzer", XS_Lucy_Plan_FullTextType_get_analyzer },
37499 { "make_similarity", XS_Lucy_Plan_FullTextType_make_similarity },
37500 { "dump_for_schema", XS_Lucy_Plan_FullTextType_dump_for_schema },
37501 { "dump", XS_Lucy_Plan_FullTextType_dump },
37502 { "load", XS_Lucy_Plan_FullTextType_load },
37503 { "equals", XS_Lucy_Plan_FullTextType_equals },
37504 { "new", XS_Lucy_Plan_StringType_new },
37505 { "make_similarity", XS_Lucy_Plan_StringType_make_similarity },
37506 { "dump_for_schema", XS_Lucy_Plan_StringType_dump_for_schema },
37507 { "dump", XS_Lucy_Plan_StringType_dump },
37508 { "load", XS_Lucy_Plan_StringType_load },
37509 { "equals", XS_Lucy_Plan_StringType_equals },
37510 { "new", XS_Lucy_Plan_Schema_new },
37511 { "architecture", XS_Lucy_Plan_Schema_architecture },
37512 { "spec_field", XS_Lucy_Plan_Schema_spec_field },
37513 { "fetch_type", XS_Lucy_Plan_Schema_fetch_type },
37514 { "fetch_analyzer", XS_Lucy_Plan_Schema_fetch_analyzer },
37515 { "fetch_sim", XS_Lucy_Plan_Schema_fetch_sim },
37516 { "num_fields", XS_Lucy_Plan_Schema_num_fields },
37517 { "all_fields", XS_Lucy_Plan_Schema_all_fields },
37518 { "get_architecture", XS_Lucy_Plan_Schema_get_architecture },
37519 { "get_similarity", XS_Lucy_Plan_Schema_get_similarity },
37520 { "dump", XS_Lucy_Plan_Schema_dump },
37521 { "load", XS_Lucy_Plan_Schema_load },
37522 { "eat", XS_Lucy_Plan_Schema_eat },
37523 { "write", XS_Lucy_Plan_Schema_write },
37524 { "new", XS_Lucy_Search_Collector_new },
37525 { "collect", XS_Lucy_Search_Collector_collect },
37526 { "set_reader", XS_Lucy_Search_Collector_set_reader },
37527 { "set_base", XS_Lucy_Search_Collector_set_base },
37528 { "need_score", XS_Lucy_Search_Collector_need_score },
37529 { "set_matcher", XS_Lucy_Search_Collector_set_matcher },
37530 { "new", XS_Lucy_Search_Collector_BitCollector_new },
37531 { "collect", XS_Lucy_Search_Collector_BitCollector_collect },
37532 { "need_score", XS_Lucy_Search_Collector_BitCollector_need_score },
37533 { "new", XS_Lucy_Search_Collector_OffsetCollector_new },
37534 { "collect", XS_Lucy_Search_Collector_OffsetCollector_collect },
37535 { "need_score", XS_Lucy_Search_Collector_OffsetCollector_need_score },
37536 { "set_reader", XS_Lucy_Search_Collector_OffsetCollector_set_reader },
37537 { "set_base", XS_Lucy_Search_Collector_OffsetCollector_set_base },
37538 { "set_matcher", XS_Lucy_Search_Collector_OffsetCollector_set_matcher },
37539 { "new", XS_Lucy_Search_Collector_SortCollector_new },
37540 { "collect", XS_Lucy_Search_Collector_SortCollector_collect },
37541 { "pop_match_docs", XS_Lucy_Search_Collector_SortCollector_pop_match_docs },
37542 { "get_total_hits", XS_Lucy_Search_Collector_SortCollector_get_total_hits },
37543 { "set_reader", XS_Lucy_Search_Collector_SortCollector_set_reader },
37544 { "need_score", XS_Lucy_Search_Collector_SortCollector_need_score },
37545 { "new", XS_Lucy_Search_Hits_new },
37546 { "next", XS_Lucy_Search_Hits_next },
37547 { "total_hits", XS_Lucy_Search_Hits_total_hits },
37548 { "new", XS_Lucy_Search_MatchDoc_new },
37549 { "serialize", XS_Lucy_Search_MatchDoc_serialize },
37550 { "deserialize", XS_Lucy_Search_MatchDoc_deserialize },
37551 { "get_doc_id", XS_Lucy_Search_MatchDoc_get_doc_id },
37552 { "set_doc_id", XS_Lucy_Search_MatchDoc_set_doc_id },
37553 { "get_score", XS_Lucy_Search_MatchDoc_get_score },
37554 { "set_score", XS_Lucy_Search_MatchDoc_set_score },
37555 { "get_values", XS_Lucy_Search_MatchDoc_get_values },
37556 { "set_values", XS_Lucy_Search_MatchDoc_set_values },
37557 { "new", XS_Lucy_Search_Matcher_new },
37558 { "next", XS_Lucy_Search_Matcher_next },
37559 { "advance", XS_Lucy_Search_Matcher_advance },
37560 { "get_doc_id", XS_Lucy_Search_Matcher_get_doc_id },
37561 { "score", XS_Lucy_Search_Matcher_score },
37562 { "collect", XS_Lucy_Search_Matcher_collect },
37563 { "new", XS_Lucy_Index_PostingList_new },
37564 { "get_posting", XS_Lucy_Index_PostingList_get_posting },
37565 { "get_doc_freq", XS_Lucy_Index_PostingList_get_doc_freq },
37566 { "seek", XS_Lucy_Index_PostingList_seek },
37567 { "seek_lex", XS_Lucy_Index_PostingList_seek_lex },
37568 { "make_matcher", XS_Lucy_Index_PostingList_make_matcher },
37569 { "read_raw", XS_Lucy_Index_PostingList_read_raw },
37570 { "new", XS_Lucy_Index_RawPostingList_new },
37571 { "read_raw", XS_Lucy_Index_RawPostingList_read_raw },
37572 { "get_posting", XS_Lucy_Index_RawPostingList_get_posting },
37573 { "new", XS_Lucy_Index_SegPostingList_new },
37574 { "get_post_stream", XS_Lucy_Index_SegPostingList_get_post_stream },
37575 { "get_count", XS_Lucy_Index_SegPostingList_get_count },
37576 { "get_doc_freq", XS_Lucy_Index_SegPostingList_get_doc_freq },
37577 { "get_doc_id", XS_Lucy_Index_SegPostingList_get_doc_id },
37578 { "get_posting", XS_Lucy_Index_SegPostingList_get_posting },
37579 { "next", XS_Lucy_Index_SegPostingList_next },
37580 { "advance", XS_Lucy_Index_SegPostingList_advance },
37581 { "seek", XS_Lucy_Index_SegPostingList_seek },
37582 { "seek_lex", XS_Lucy_Index_SegPostingList_seek_lex },
37583 { "make_matcher", XS_Lucy_Index_SegPostingList_make_matcher },
37584 { "read_raw", XS_Lucy_Index_SegPostingList_read_raw },
37585 { "new", XS_Lucy_Search_BitVecMatcher_new },
37586 { "next", XS_Lucy_Search_BitVecMatcher_next },
37587 { "advance", XS_Lucy_Search_BitVecMatcher_advance },
37588 { "get_doc_id", XS_Lucy_Search_BitVecMatcher_get_doc_id },
37589 { "new", XS_Lucy_Search_MatchAllMatcher_new },
37590 { "next", XS_Lucy_Search_MatchAllMatcher_next },
37591 { "advance", XS_Lucy_Search_MatchAllMatcher_advance },
37592 { "score", XS_Lucy_Search_MatchAllMatcher_score },
37593 { "get_doc_id", XS_Lucy_Search_MatchAllMatcher_get_doc_id },
37594 { "new", XS_Lucy_Search_NoMatchMatcher_new },
37595 { "next", XS_Lucy_Search_NoMatchMatcher_next },
37596 { "advance", XS_Lucy_Search_NoMatchMatcher_advance },
37597 { "new", XS_Lucy_Search_PhraseMatcher_new },
37598 { "next", XS_Lucy_Search_PhraseMatcher_next },
37599 { "advance", XS_Lucy_Search_PhraseMatcher_advance },
37600 { "get_doc_id", XS_Lucy_Search_PhraseMatcher_get_doc_id },
37601 { "score", XS_Lucy_Search_PhraseMatcher_score },
37602 { "calc_phrase_freq", XS_Lucy_Search_PhraseMatcher_calc_phrase_freq },
37603 { "new", XS_Lucy_Search_PolyMatcher_new },
37604 { "new", XS_Lucy_Search_ANDMatcher_new },
37605 { "next", XS_Lucy_Search_ANDMatcher_next },
37606 { "advance", XS_Lucy_Search_ANDMatcher_advance },
37607 { "score", XS_Lucy_Search_ANDMatcher_score },
37608 { "get_doc_id", XS_Lucy_Search_ANDMatcher_get_doc_id },
37609 { "new", XS_Lucy_Search_NOTMatcher_new },
37610 { "next", XS_Lucy_Search_NOTMatcher_next },
37611 { "advance", XS_Lucy_Search_NOTMatcher_advance },
37612 { "score", XS_Lucy_Search_NOTMatcher_score },
37613 { "get_doc_id", XS_Lucy_Search_NOTMatcher_get_doc_id },
37614 { "new", XS_Lucy_Search_ORMatcher_new },
37615 { "next", XS_Lucy_Search_ORMatcher_next },
37616 { "advance", XS_Lucy_Search_ORMatcher_advance },
37617 { "get_doc_id", XS_Lucy_Search_ORMatcher_get_doc_id },
37618 { "new", XS_Lucy_Search_ORScorer_new },
37619 { "next", XS_Lucy_Search_ORScorer_next },
37620 { "advance", XS_Lucy_Search_ORScorer_advance },
37621 { "score", XS_Lucy_Search_ORScorer_score },
37622 { "get_doc_id", XS_Lucy_Search_ORScorer_get_doc_id },
37623 { "new", XS_Lucy_Search_RequiredOptionalMatcher_new },
37624 { "next", XS_Lucy_Search_RequiredOptionalMatcher_next },
37625 { "advance", XS_Lucy_Search_RequiredOptionalMatcher_advance },
37626 { "score", XS_Lucy_Search_RequiredOptionalMatcher_score },
37627 { "get_doc_id", XS_Lucy_Search_RequiredOptionalMatcher_get_doc_id },
37628 { "new", XS_Lucy_Search_RangeMatcher_new },
37629 { "next", XS_Lucy_Search_RangeMatcher_next },
37630 { "advance", XS_Lucy_Search_RangeMatcher_advance },
37631 { "score", XS_Lucy_Search_RangeMatcher_score },
37632 { "get_doc_id", XS_Lucy_Search_RangeMatcher_get_doc_id },
37633 { "new", XS_Lucy_Search_SeriesMatcher_new },
37634 { "next", XS_Lucy_Search_SeriesMatcher_next },
37635 { "advance", XS_Lucy_Search_SeriesMatcher_advance },
37636 { "get_doc_id", XS_Lucy_Search_SeriesMatcher_get_doc_id },
37637 { "new", XS_Lucy_Search_TermMatcher_new },
37638 { "next", XS_Lucy_Search_TermMatcher_next },
37639 { "advance", XS_Lucy_Search_TermMatcher_advance },
37640 { "get_doc_id", XS_Lucy_Search_TermMatcher_get_doc_id },
37641 { "new", XS_Lucy_Index_Posting_MatchPostingMatcher_new },
37642 { "score", XS_Lucy_Index_Posting_MatchPostingMatcher_score },
37643 { "new", XS_Lucy_Index_Posting_ScorePostingMatcher_new },
37644 { "score", XS_Lucy_Index_Posting_ScorePostingMatcher_score },
37645 { "new", XS_Lucy_Index_Posting_RichPostingMatcher_new },
37646 { "new", XS_LucyX_Search_FilterMatcher_new },
37647 { "next", XS_LucyX_Search_FilterMatcher_next },
37648 { "skip_to", XS_LucyX_Search_FilterMatcher_skip_to },
37649 { "score", XS_LucyX_Search_FilterMatcher_score },
37650 { "get_doc_id", XS_LucyX_Search_FilterMatcher_get_doc_id },
37651 { "_new", XS_LucyX_Search_MockMatcher__new },
37652 { "next", XS_LucyX_Search_MockMatcher_next },
37653 { "score", XS_LucyX_Search_MockMatcher_score },
37654 { "get_doc_id", XS_LucyX_Search_MockMatcher_get_doc_id },
37655 { "new", XS_LucyX_Search_ProximityMatcher_new },
37656 { "next", XS_LucyX_Search_ProximityMatcher_next },
37657 { "advance", XS_LucyX_Search_ProximityMatcher_advance },
37658 { "get_doc_id", XS_LucyX_Search_ProximityMatcher_get_doc_id },
37659 { "score", XS_LucyX_Search_ProximityMatcher_score },
37660 { "calc_proximity_freq", XS_LucyX_Search_ProximityMatcher_calc_proximity_freq },
37661 { "new", XS_Lucy_Search_Query_new },
37662 { "make_compiler", XS_Lucy_Search_Query_make_compiler },
37663 { "set_boost", XS_Lucy_Search_Query_set_boost },
37664 { "get_boost", XS_Lucy_Search_Query_get_boost },
37665 { "serialize", XS_Lucy_Search_Query_serialize },
37666 { "deserialize", XS_Lucy_Search_Query_deserialize },
37667 { "dump", XS_Lucy_Search_Query_dump },
37668 { "load", XS_Lucy_Search_Query_load },
37669 { "do_new", XS_Lucy_Search_Compiler_do_new },
37670 { "make_matcher", XS_Lucy_Search_Compiler_make_matcher },
37671 { "get_weight", XS_Lucy_Search_Compiler_get_weight },
37672 { "get_similarity", XS_Lucy_Search_Compiler_get_similarity },
37673 { "get_parent", XS_Lucy_Search_Compiler_get_parent },
37674 { "sum_of_squared_weights", XS_Lucy_Search_Compiler_sum_of_squared_weights },
37675 { "apply_norm_factor", XS_Lucy_Search_Compiler_apply_norm_factor },
37676 { "normalize", XS_Lucy_Search_Compiler_normalize },
37677 { "highlight_spans", XS_Lucy_Search_Compiler_highlight_spans },
37678 { "serialize", XS_Lucy_Search_Compiler_serialize },
37679 { "deserialize", XS_Lucy_Search_Compiler_deserialize },
37680 { "equals", XS_Lucy_Search_Compiler_equals },
37681 { "to_string", XS_Lucy_Search_Compiler_to_string },
37682 { "new", XS_Lucy_Search_MatchAllCompiler_new },
37683 { "make_matcher", XS_Lucy_Search_MatchAllCompiler_make_matcher },
37684 { "new", XS_Lucy_Search_NoMatchCompiler_new },
37685 { "make_matcher", XS_Lucy_Search_NoMatchCompiler_make_matcher },
37686 { "do_new", XS_Lucy_Search_PhraseCompiler_do_new },
37687 { "make_matcher", XS_Lucy_Search_PhraseCompiler_make_matcher },
37688 { "get_weight", XS_Lucy_Search_PhraseCompiler_get_weight },
37689 { "sum_of_squared_weights", XS_Lucy_Search_PhraseCompiler_sum_of_squared_weights },
37690 { "apply_norm_factor", XS_Lucy_Search_PhraseCompiler_apply_norm_factor },
37691 { "highlight_spans", XS_Lucy_Search_PhraseCompiler_highlight_spans },
37692 { "equals", XS_Lucy_Search_PhraseCompiler_equals },
37693 { "serialize", XS_Lucy_Search_PhraseCompiler_serialize },
37694 { "deserialize", XS_Lucy_Search_PhraseCompiler_deserialize },
37695 { "new", XS_Lucy_Search_PolyCompiler_new },
37696 { "sum_of_squared_weights", XS_Lucy_Search_PolyCompiler_sum_of_squared_weights },
37697 { "apply_norm_factor", XS_Lucy_Search_PolyCompiler_apply_norm_factor },
37698 { "highlight_spans", XS_Lucy_Search_PolyCompiler_highlight_spans },
37699 { "serialize", XS_Lucy_Search_PolyCompiler_serialize },
37700 { "deserialize", XS_Lucy_Search_PolyCompiler_deserialize },
37701 { "new", XS_Lucy_Search_ANDCompiler_new },
37702 { "make_matcher", XS_Lucy_Search_ANDCompiler_make_matcher },
37703 { "new", XS_Lucy_Search_NOTCompiler_new },
37704 { "make_matcher", XS_Lucy_Search_NOTCompiler_make_matcher },
37705 { "sum_of_squared_weights", XS_Lucy_Search_NOTCompiler_sum_of_squared_weights },
37706 { "highlight_spans", XS_Lucy_Search_NOTCompiler_highlight_spans },
37707 { "new", XS_Lucy_Search_ORCompiler_new },
37708 { "make_matcher", XS_Lucy_Search_ORCompiler_make_matcher },
37709 { "new", XS_Lucy_Search_RequiredOptionalCompiler_new },
37710 { "make_matcher", XS_Lucy_Search_RequiredOptionalCompiler_make_matcher },
37711 { "new", XS_Lucy_Search_RangeCompiler_new },
37712 { "make_matcher", XS_Lucy_Search_RangeCompiler_make_matcher },
37713 { "do_new", XS_Lucy_Search_TermCompiler_do_new },
37714 { "make_matcher", XS_Lucy_Search_TermCompiler_make_matcher },
37715 { "get_weight", XS_Lucy_Search_TermCompiler_get_weight },
37716 { "sum_of_squared_weights", XS_Lucy_Search_TermCompiler_sum_of_squared_weights },
37717 { "apply_norm_factor", XS_Lucy_Search_TermCompiler_apply_norm_factor },
37718 { "highlight_spans", XS_Lucy_Search_TermCompiler_highlight_spans },
37719 { "equals", XS_Lucy_Search_TermCompiler_equals },
37720 { "serialize", XS_Lucy_Search_TermCompiler_serialize },
37721 { "deserialize", XS_Lucy_Search_TermCompiler_deserialize },
37722 { "do_new", XS_LucyX_Search_ProximityCompiler_do_new },
37723 { "make_matcher", XS_LucyX_Search_ProximityCompiler_make_matcher },
37724 { "get_weight", XS_LucyX_Search_ProximityCompiler_get_weight },
37725 { "sum_of_squared_weights", XS_LucyX_Search_ProximityCompiler_sum_of_squared_weights },
37726 { "apply_norm_factor", XS_LucyX_Search_ProximityCompiler_apply_norm_factor },
37727 { "highlight_spans", XS_LucyX_Search_ProximityCompiler_highlight_spans },
37728 { "equals", XS_LucyX_Search_ProximityCompiler_equals },
37729 { "serialize", XS_LucyX_Search_ProximityCompiler_serialize },
37730 { "deserialize", XS_LucyX_Search_ProximityCompiler_deserialize },
37731 { "new", XS_Lucy_Search_LeafQuery_new },
37732 { "get_field", XS_Lucy_Search_LeafQuery_get_field },
37733 { "get_text", XS_Lucy_Search_LeafQuery_get_text },
37734 { "equals", XS_Lucy_Search_LeafQuery_equals },
37735 { "to_string", XS_Lucy_Search_LeafQuery_to_string },
37736 { "serialize", XS_Lucy_Search_LeafQuery_serialize },
37737 { "deserialize", XS_Lucy_Search_LeafQuery_deserialize },
37738 { "dump", XS_Lucy_Search_LeafQuery_dump },
37739 { "load", XS_Lucy_Search_LeafQuery_load },
37740 { "make_compiler", XS_Lucy_Search_LeafQuery_make_compiler },
37741 { "new", XS_Lucy_Search_MatchAllQuery_new },
37742 { "equals", XS_Lucy_Search_MatchAllQuery_equals },
37743 { "to_string", XS_Lucy_Search_MatchAllQuery_to_string },
37744 { "make_compiler", XS_Lucy_Search_MatchAllQuery_make_compiler },
37745 { "new", XS_Lucy_Search_NoMatchQuery_new },
37746 { "set_fails_to_match", XS_Lucy_Search_NoMatchQuery_set_fails_to_match },
37747 { "get_fails_to_match", XS_Lucy_Search_NoMatchQuery_get_fails_to_match },
37748 { "dump", XS_Lucy_Search_NoMatchQuery_dump },
37749 { "load", XS_Lucy_Search_NoMatchQuery_load },
37750 { "serialize", XS_Lucy_Search_NoMatchQuery_serialize },
37751 { "deserialize", XS_Lucy_Search_NoMatchQuery_deserialize },
37752 { "equals", XS_Lucy_Search_NoMatchQuery_equals },
37753 { "to_string", XS_Lucy_Search_NoMatchQuery_to_string },
37754 { "make_compiler", XS_Lucy_Search_NoMatchQuery_make_compiler },
37755 { "new", XS_Lucy_Search_PhraseQuery_new },
37756 { "get_field", XS_Lucy_Search_PhraseQuery_get_field },
37757 { "get_terms", XS_Lucy_Search_PhraseQuery_get_terms },
37758 { "make_compiler", XS_Lucy_Search_PhraseQuery_make_compiler },
37759 { "equals", XS_Lucy_Search_PhraseQuery_equals },
37760 { "to_string", XS_Lucy_Search_PhraseQuery_to_string },
37761 { "serialize", XS_Lucy_Search_PhraseQuery_serialize },
37762 { "deserialize", XS_Lucy_Search_PhraseQuery_deserialize },
37763 { "dump", XS_Lucy_Search_PhraseQuery_dump },
37764 { "load", XS_Lucy_Search_PhraseQuery_load },
37765 { "new", XS_Lucy_Search_PolyQuery_new },
37766 { "add_child", XS_Lucy_Search_PolyQuery_add_child },
37767 { "set_children", XS_Lucy_Search_PolyQuery_set_children },
37768 { "get_children", XS_Lucy_Search_PolyQuery_get_children },
37769 { "serialize", XS_Lucy_Search_PolyQuery_serialize },
37770 { "deserialize", XS_Lucy_Search_PolyQuery_deserialize },
37771 { "dump", XS_Lucy_Search_PolyQuery_dump },
37772 { "load", XS_Lucy_Search_PolyQuery_load },
37773 { "equals", XS_Lucy_Search_PolyQuery_equals },
37774 { "new", XS_Lucy_Search_ANDQuery_new },
37775 { "make_compiler", XS_Lucy_Search_ANDQuery_make_compiler },
37776 { "to_string", XS_Lucy_Search_ANDQuery_to_string },
37777 { "equals", XS_Lucy_Search_ANDQuery_equals },
37778 { "new", XS_Lucy_Search_NOTQuery_new },
37779 { "get_negated_query", XS_Lucy_Search_NOTQuery_get_negated_query },
37780 { "set_negated_query", XS_Lucy_Search_NOTQuery_set_negated_query },
37781 { "make_compiler", XS_Lucy_Search_NOTQuery_make_compiler },
37782 { "to_string", XS_Lucy_Search_NOTQuery_to_string },
37783 { "equals", XS_Lucy_Search_NOTQuery_equals },
37784 { "new", XS_Lucy_Search_ORQuery_new },
37785 { "make_compiler", XS_Lucy_Search_ORQuery_make_compiler },
37786 { "to_string", XS_Lucy_Search_ORQuery_to_string },
37787 { "equals", XS_Lucy_Search_ORQuery_equals },
37788 { "new", XS_Lucy_Search_RequiredOptionalQuery_new },
37789 { "get_required_query", XS_Lucy_Search_RequiredOptionalQuery_get_required_query },
37790 { "set_required_query", XS_Lucy_Search_RequiredOptionalQuery_set_required_query },
37791 { "get_optional_query", XS_Lucy_Search_RequiredOptionalQuery_get_optional_query },
37792 { "set_optional_query", XS_Lucy_Search_RequiredOptionalQuery_set_optional_query },
37793 { "make_compiler", XS_Lucy_Search_RequiredOptionalQuery_make_compiler },
37794 { "to_string", XS_Lucy_Search_RequiredOptionalQuery_to_string },
37795 { "equals", XS_Lucy_Search_RequiredOptionalQuery_equals },
37796 { "new", XS_Lucy_Search_RangeQuery_new },
37797 { "equals", XS_Lucy_Search_RangeQuery_equals },
37798 { "to_string", XS_Lucy_Search_RangeQuery_to_string },
37799 { "make_compiler", XS_Lucy_Search_RangeQuery_make_compiler },
37800 { "serialize", XS_Lucy_Search_RangeQuery_serialize },
37801 { "deserialize", XS_Lucy_Search_RangeQuery_deserialize },
37802 { "dump", XS_Lucy_Search_RangeQuery_dump },
37803 { "load", XS_Lucy_Search_RangeQuery_load },
37804 { "new", XS_Lucy_Search_TermQuery_new },
37805 { "get_field", XS_Lucy_Search_TermQuery_get_field },
37806 { "get_term", XS_Lucy_Search_TermQuery_get_term },
37807 { "make_compiler", XS_Lucy_Search_TermQuery_make_compiler },
37808 { "to_string", XS_Lucy_Search_TermQuery_to_string },
37809 { "serialize", XS_Lucy_Search_TermQuery_serialize },
37810 { "deserialize", XS_Lucy_Search_TermQuery_deserialize },
37811 { "dump", XS_Lucy_Search_TermQuery_dump },
37812 { "load", XS_Lucy_Search_TermQuery_load },
37813 { "equals", XS_Lucy_Search_TermQuery_equals },
37814 { "new", XS_LucyX_Search_ProximityQuery_new },
37815 { "get_field", XS_LucyX_Search_ProximityQuery_get_field },
37816 { "get_terms", XS_LucyX_Search_ProximityQuery_get_terms },
37817 { "get_within", XS_LucyX_Search_ProximityQuery_get_within },
37818 { "make_compiler", XS_LucyX_Search_ProximityQuery_make_compiler },
37819 { "equals", XS_LucyX_Search_ProximityQuery_equals },
37820 { "to_string", XS_LucyX_Search_ProximityQuery_to_string },
37821 { "serialize", XS_LucyX_Search_ProximityQuery_serialize },
37822 { "deserialize", XS_LucyX_Search_ProximityQuery_deserialize },
37823 { "dump", XS_LucyX_Search_ProximityQuery_dump },
37824 { "load", XS_LucyX_Search_ProximityQuery_load },
37825 { "new", XS_Lucy_Search_QueryParser_new },
37826 { "parse", XS_Lucy_Search_QueryParser_parse },
37827 { "tree", XS_Lucy_Search_QueryParser_tree },
37828 { "expand", XS_Lucy_Search_QueryParser_expand },
37829 { "expand_leaf", XS_Lucy_Search_QueryParser_expand_leaf },
37830 { "prune", XS_Lucy_Search_QueryParser_prune },
37831 { "make_term_query", XS_Lucy_Search_QueryParser_make_term_query },
37832 { "make_phrase_query", XS_Lucy_Search_QueryParser_make_phrase_query },
37833 { "make_or_query", XS_Lucy_Search_QueryParser_make_or_query },
37834 { "make_and_query", XS_Lucy_Search_QueryParser_make_and_query },
37835 { "make_not_query", XS_Lucy_Search_QueryParser_make_not_query },
37836 { "make_req_opt_query", XS_Lucy_Search_QueryParser_make_req_opt_query },
37837 { "get_analyzer", XS_Lucy_Search_QueryParser_get_analyzer },
37838 { "get_schema", XS_Lucy_Search_QueryParser_get_schema },
37839 { "get_default_boolop", XS_Lucy_Search_QueryParser_get_default_boolop },
37840 { "get_fields", XS_Lucy_Search_QueryParser_get_fields },
37841 { "heed_colons", XS_Lucy_Search_QueryParser_heed_colons },
37842 { "set_heed_colons", XS_Lucy_Search_QueryParser_set_heed_colons },
37843 { "set_value", XS_Lucy_Search_QueryParser_ParserElem_set_value },
37844 { "as", XS_Lucy_Search_QueryParser_ParserElem_as },
37845 { "get_type", XS_Lucy_Search_QueryParser_ParserElem_get_type },
37846 { "negate", XS_Lucy_Search_QueryParser_ParserElem_negate },
37847 { "require", XS_Lucy_Search_QueryParser_ParserElem_require },
37848 { "unrequire", XS_Lucy_Search_QueryParser_ParserElem_unrequire },
37849 { "required", XS_Lucy_Search_QueryParser_ParserElem_required },
37850 { "optional", XS_Lucy_Search_QueryParser_ParserElem_optional },
37851 { "negated", XS_Lucy_Search_QueryParser_ParserElem_negated },
37852 { "new", XS_Lucy_Search_QueryParser_QueryLexer_new },
37853 { "tokenize", XS_Lucy_Search_QueryParser_QueryLexer_tokenize },
37854 { "heed_colons", XS_Lucy_Search_QueryParser_QueryLexer_heed_colons },
37855 { "set_heed_colons", XS_Lucy_Search_QueryParser_QueryLexer_set_heed_colons },
37856 { "new", XS_Lucy_Search_Searcher_new },
37857 { "doc_max", XS_Lucy_Search_Searcher_doc_max },
37858 { "doc_freq", XS_Lucy_Search_Searcher_doc_freq },
37859 { "glean_query", XS_Lucy_Search_Searcher_glean_query },
37860 { "hits", XS_Lucy_Search_Searcher_hits },
37861 { "collect", XS_Lucy_Search_Searcher_collect },
37862 { "top_docs", XS_Lucy_Search_Searcher_top_docs },
37863 { "fetch_doc", XS_Lucy_Search_Searcher_fetch_doc },
37864 { "fetch_doc_vec", XS_Lucy_Search_Searcher_fetch_doc_vec },
37865 { "get_schema", XS_Lucy_Search_Searcher_get_schema },
37866 { "close", XS_Lucy_Search_Searcher_close },
37867 { "new", XS_Lucy_Search_IndexSearcher_new },
37868 { "doc_max", XS_Lucy_Search_IndexSearcher_doc_max },
37869 { "doc_freq", XS_Lucy_Search_IndexSearcher_doc_freq },
37870 { "collect", XS_Lucy_Search_IndexSearcher_collect },
37871 { "top_docs", XS_Lucy_Search_IndexSearcher_top_docs },
37872 { "fetch_doc", XS_Lucy_Search_IndexSearcher_fetch_doc },
37873 { "fetch_doc_vec", XS_Lucy_Search_IndexSearcher_fetch_doc_vec },
37874 { "get_reader", XS_Lucy_Search_IndexSearcher_get_reader },
37875 { "close", XS_Lucy_Search_IndexSearcher_close },
37876 { "new", XS_Lucy_Search_PolySearcher_new },
37877 { "get_searchers", XS_Lucy_Search_PolySearcher_get_searchers },
37878 { "doc_max", XS_Lucy_Search_PolySearcher_doc_max },
37879 { "doc_freq", XS_Lucy_Search_PolySearcher_doc_freq },
37880 { "collect", XS_Lucy_Search_PolySearcher_collect },
37881 { "top_docs", XS_Lucy_Search_PolySearcher_top_docs },
37882 { "fetch_doc", XS_Lucy_Search_PolySearcher_fetch_doc },
37883 { "fetch_doc_vec", XS_Lucy_Search_PolySearcher_fetch_doc_vec },
37884 { "_new", XS_Lucy_Search_SortRule__new },
37885 { "get_field", XS_Lucy_Search_SortRule_get_field },
37886 { "get_type", XS_Lucy_Search_SortRule_get_type },
37887 { "get_reverse", XS_Lucy_Search_SortRule_get_reverse },
37888 { "serialize", XS_Lucy_Search_SortRule_serialize },
37889 { "deserialize", XS_Lucy_Search_SortRule_deserialize },
37890 { "new", XS_Lucy_Search_SortSpec_new },
37891 { "serialize", XS_Lucy_Search_SortSpec_serialize },
37892 { "deserialize", XS_Lucy_Search_SortSpec_deserialize },
37893 { "get_rules", XS_Lucy_Search_SortSpec_get_rules },
37894 { "new", XS_Lucy_Search_Span_new },
37895 { "get_offset", XS_Lucy_Search_Span_get_offset },
37896 { "set_offset", XS_Lucy_Search_Span_set_offset },
37897 { "get_length", XS_Lucy_Search_Span_get_length },
37898 { "set_length", XS_Lucy_Search_Span_set_length },
37899 { "get_weight", XS_Lucy_Search_Span_get_weight },
37900 { "set_weight", XS_Lucy_Search_Span_set_weight },
37901 { "equals", XS_Lucy_Search_Span_equals },
37902 { "compare_to", XS_Lucy_Search_Span_compare_to },
37903 { "new", XS_Lucy_Search_TopDocs_new },
37904 { "get_match_docs", XS_Lucy_Search_TopDocs_get_match_docs },
37905 { "set_match_docs", XS_Lucy_Search_TopDocs_set_match_docs },
37906 { "get_total_hits", XS_Lucy_Search_TopDocs_get_total_hits },
37907 { "set_total_hits", XS_Lucy_Search_TopDocs_set_total_hits },
37908 { "serialize", XS_Lucy_Search_TopDocs_serialize },
37909 { "deserialize", XS_Lucy_Search_TopDocs_deserialize },
37910 { "new", XS_Lucy_Simple_new },
37911 { "search", XS_Lucy_Simple_search },
37912 { "next", XS_Lucy_Simple_next },
37913 { "get_indexer", XS_Lucy_Simple_get_indexer },
37914 { "get_hits", XS_Lucy_Simple_get_hits },
37915 { "finish_indexing", XS_Lucy_Simple_finish_indexing },
37916 { "new", XS_Lucy_Store_CompoundFileWriter_new },
37917 { "consolidate", XS_Lucy_Store_CompoundFileWriter_consolidate },
37918 { "new", XS_Lucy_Store_DirHandle_new },
37919 { "next", XS_Lucy_Store_DirHandle_next },
37920 { "close", XS_Lucy_Store_DirHandle_close },
37921 { "get_dir", XS_Lucy_Store_DirHandle_get_dir },
37922 { "get_entry", XS_Lucy_Store_DirHandle_get_entry },
37923 { "entry_is_dir", XS_Lucy_Store_DirHandle_entry_is_dir },
37924 { "entry_is_symlink", XS_Lucy_Store_DirHandle_entry_is_symlink },
37925 { "new", XS_Lucy_Store_CFReaderDirHandle_new },
37926 { "next", XS_Lucy_Store_CFReaderDirHandle_next },
37927 { "entry_is_dir", XS_Lucy_Store_CFReaderDirHandle_entry_is_dir },
37928 { "close", XS_Lucy_Store_CFReaderDirHandle_close },
37929 { "next", XS_Lucy_Store_FSDirHandle_next },
37930 { "entry_is_dir", XS_Lucy_Store_FSDirHandle_entry_is_dir },
37931 { "entry_is_symlink", XS_Lucy_Store_FSDirHandle_entry_is_symlink },
37932 { "close", XS_Lucy_Store_FSDirHandle_close },
37933 { "new", XS_Lucy_Store_RAMDirHandle_new },
37934 { "next", XS_Lucy_Store_RAMDirHandle_next },
37935 { "entry_is_dir", XS_Lucy_Store_RAMDirHandle_entry_is_dir },
37936 { "entry_is_symlink", XS_Lucy_Store_RAMDirHandle_entry_is_symlink },
37937 { "close", XS_Lucy_Store_RAMDirHandle_close },
37938 { "_open", XS_Lucy_Store_FileHandle__open },
37939 { "window", XS_Lucy_Store_FileHandle_window },
37940 { "release_window", XS_Lucy_Store_FileHandle_release_window },
37941 { "length", XS_Lucy_Store_FileHandle_length },
37942 { "grow", XS_Lucy_Store_FileHandle_grow },
37943 { "close", XS_Lucy_Store_FileHandle_close },
37944 { "set_path", XS_Lucy_Store_FileHandle_set_path },
37945 { "get_path", XS_Lucy_Store_FileHandle_get_path },
37946 { "_open", XS_Lucy_Store_FSFileHandle__open },
37947 { "window", XS_Lucy_Store_FSFileHandle_window },
37948 { "release_window", XS_Lucy_Store_FSFileHandle_release_window },
37949 { "length", XS_Lucy_Store_FSFileHandle_length },
37950 { "close", XS_Lucy_Store_FSFileHandle_close },
37951 { "set_fd", XS_Lucy_Store_FSFileHandle_set_fd },
37952 { "_open", XS_Lucy_Store_RAMFileHandle__open },
37953 { "get_file", XS_Lucy_Store_RAMFileHandle_get_file },
37954 { "grow", XS_Lucy_Store_RAMFileHandle_grow },
37955 { "window", XS_Lucy_Store_RAMFileHandle_window },
37956 { "release_window", XS_Lucy_Store_RAMFileHandle_release_window },
37957 { "length", XS_Lucy_Store_RAMFileHandle_length },
37958 { "close", XS_Lucy_Store_RAMFileHandle_close },
37959 { "new", XS_Lucy_Store_FileWindow_new },
37960 { "set_offset", XS_Lucy_Store_FileWindow_set_offset },
37961 { "get_offset", XS_Lucy_Store_FileWindow_get_offset },
37962 { "get_len", XS_Lucy_Store_FileWindow_get_len },
37963 { "new", XS_Lucy_Store_Folder_new },
37964 { "get_path", XS_Lucy_Store_Folder_get_path },
37965 { "set_path", XS_Lucy_Store_Folder_set_path },
37966 { "open_out", XS_Lucy_Store_Folder_open_out },
37967 { "open_in", XS_Lucy_Store_Folder_open_in },
37968 { "open_filehandle", XS_Lucy_Store_Folder_open_filehandle },
37969 { "open_dir", XS_Lucy_Store_Folder_open_dir },
37970 { "mkdir", XS_Lucy_Store_Folder_mkdir },
37971 { "list", XS_Lucy_Store_Folder_list },
37972 { "list_r", XS_Lucy_Store_Folder_list_r },
37973 { "exists", XS_Lucy_Store_Folder_exists },
37974 { "is_directory", XS_Lucy_Store_Folder_is_directory },
37975 { "delete", XS_Lucy_Store_Folder_delete },
37976 { "delete_tree", XS_Lucy_Store_Folder_delete_tree },
37977 { "rename", XS_Lucy_Store_Folder_rename },
37978 { "hard_link", XS_Lucy_Store_Folder_hard_link },
37979 { "slurp_file", XS_Lucy_Store_Folder_slurp_file },
37980 { "consolidate", XS_Lucy_Store_Folder_consolidate },
37981 { "enclosing_folder", XS_Lucy_Store_Folder_enclosing_folder },
37982 { "find_folder", XS_Lucy_Store_Folder_find_folder },
37983 { "initialize", XS_Lucy_Store_Folder_initialize },
37984 { "check", XS_Lucy_Store_Folder_check },
37985 { "close", XS_Lucy_Store_Folder_close },
37986 { "local_open_filehandle", XS_Lucy_Store_Folder_local_open_filehandle },
37987 { "local_open_in", XS_Lucy_Store_Folder_local_open_in },
37988 { "local_open_dir", XS_Lucy_Store_Folder_local_open_dir },
37989 { "local_mkdir", XS_Lucy_Store_Folder_local_mkdir },
37990 { "local_exists", XS_Lucy_Store_Folder_local_exists },
37991 { "local_is_directory", XS_Lucy_Store_Folder_local_is_directory },
37992 { "local_find_folder", XS_Lucy_Store_Folder_local_find_folder },
37993 { "local_delete", XS_Lucy_Store_Folder_local_delete },
37994 { "get_real_folder", XS_Lucy_Store_CompoundFileReader_get_real_folder },
37995 { "set_path", XS_Lucy_Store_CompoundFileReader_set_path },
37996 { "close", XS_Lucy_Store_CompoundFileReader_close },
37997 { "local_delete", XS_Lucy_Store_CompoundFileReader_local_delete },
37998 { "local_exists", XS_Lucy_Store_CompoundFileReader_local_exists },
37999 { "local_is_directory", XS_Lucy_Store_CompoundFileReader_local_is_directory },
38000 { "local_open_filehandle", XS_Lucy_Store_CompoundFileReader_local_open_filehandle },
38001 { "local_open_in", XS_Lucy_Store_CompoundFileReader_local_open_in },
38002 { "local_mkdir", XS_Lucy_Store_CompoundFileReader_local_mkdir },
38003 { "local_find_folder", XS_Lucy_Store_CompoundFileReader_local_find_folder },
38004 { "local_open_dir", XS_Lucy_Store_CompoundFileReader_local_open_dir },
38005 { "new", XS_Lucy_Store_FSFolder_new },
38006 { "initialize", XS_Lucy_Store_FSFolder_initialize },
38007 { "check", XS_Lucy_Store_FSFolder_check },
38008 { "close", XS_Lucy_Store_FSFolder_close },
38009 { "local_open_filehandle", XS_Lucy_Store_FSFolder_local_open_filehandle },
38010 { "local_open_dir", XS_Lucy_Store_FSFolder_local_open_dir },
38011 { "local_mkdir", XS_Lucy_Store_FSFolder_local_mkdir },
38012 { "local_exists", XS_Lucy_Store_FSFolder_local_exists },
38013 { "local_is_directory", XS_Lucy_Store_FSFolder_local_is_directory },
38014 { "local_find_folder", XS_Lucy_Store_FSFolder_local_find_folder },
38015 { "local_delete", XS_Lucy_Store_FSFolder_local_delete },
38016 { "rename", XS_Lucy_Store_FSFolder_rename },
38017 { "hard_link", XS_Lucy_Store_FSFolder_hard_link },
38018 { "new", XS_Lucy_Store_RAMFolder_new },
38019 { "initialize", XS_Lucy_Store_RAMFolder_initialize },
38020 { "check", XS_Lucy_Store_RAMFolder_check },
38021 { "close", XS_Lucy_Store_RAMFolder_close },
38022 { "local_open_filehandle", XS_Lucy_Store_RAMFolder_local_open_filehandle },
38023 { "local_open_dir", XS_Lucy_Store_RAMFolder_local_open_dir },
38024 { "local_mkdir", XS_Lucy_Store_RAMFolder_local_mkdir },
38025 { "local_exists", XS_Lucy_Store_RAMFolder_local_exists },
38026 { "local_is_directory", XS_Lucy_Store_RAMFolder_local_is_directory },
38027 { "local_find_folder", XS_Lucy_Store_RAMFolder_local_find_folder },
38028 { "local_delete", XS_Lucy_Store_RAMFolder_local_delete },
38029 { "rename", XS_Lucy_Store_RAMFolder_rename },
38030 { "hard_link", XS_Lucy_Store_RAMFolder_hard_link },
38031 { "open", XS_Lucy_Store_InStream_open },
38032 { "reopen", XS_Lucy_Store_InStream_reopen },
38033 { "clone", XS_Lucy_Store_InStream_clone },
38034 { "close", XS_Lucy_Store_InStream_close },
38035 { "seek", XS_Lucy_Store_InStream_seek },
38036 { "tell", XS_Lucy_Store_InStream_tell },
38037 { "length", XS_Lucy_Store_InStream_length },
38038 { "refill", XS_Lucy_Store_InStream_refill },
38039 { "fill", XS_Lucy_Store_InStream_fill },
38040 { "read_i8", XS_Lucy_Store_InStream_read_i8 },
38041 { "read_u8", XS_Lucy_Store_InStream_read_u8 },
38042 { "read_i32", XS_Lucy_Store_InStream_read_i32 },
38043 { "read_u32", XS_Lucy_Store_InStream_read_u32 },
38044 { "read_i64", XS_Lucy_Store_InStream_read_i64 },
38045 { "read_u64", XS_Lucy_Store_InStream_read_u64 },
38046 { "read_f32", XS_Lucy_Store_InStream_read_f32 },
38047 { "read_f64", XS_Lucy_Store_InStream_read_f64 },
38048 { "read_ci32", XS_Lucy_Store_InStream_read_ci32 },
38049 { "read_cu32", XS_Lucy_Store_InStream_read_cu32 },
38050 { "read_ci64", XS_Lucy_Store_InStream_read_ci64 },
38051 { "read_cu64", XS_Lucy_Store_InStream_read_cu64 },
38052 { "get_filename", XS_Lucy_Store_InStream_get_filename },
38053 { "get_window", XS_Lucy_Store_InStream_get_window },
38054 { "get_handle", XS_Lucy_Store_InStream_get_handle },
38055 { "bytes_in_buf", XS_Lucy_Store_InStream_bytes_in_buf },
38056 { "new", XS_Lucy_Store_Lock_new },
38057 { "obtain_shared", XS_Lucy_Store_Lock_obtain_shared },
38058 { "obtain_exclusive", XS_Lucy_Store_Lock_obtain_exclusive },
38059 { "request_shared", XS_Lucy_Store_Lock_request_shared },
38060 { "request_exclusive", XS_Lucy_Store_Lock_request_exclusive },
38061 { "release", XS_Lucy_Store_Lock_release },
38062 { "new", XS_Lucy_Store_LockFileLock_new },
38063 { "request_shared", XS_Lucy_Store_LockFileLock_request_shared },
38064 { "request_exclusive", XS_Lucy_Store_LockFileLock_request_exclusive },
38065 { "release", XS_Lucy_Store_LockFileLock_release },
38066 { "new", XS_Lucy_Store_LockErr_new },
38067 { "open", XS_Lucy_Store_OutStream_open },
38068 { "get_path", XS_Lucy_Store_OutStream_get_path },
38069 { "tell", XS_Lucy_Store_OutStream_tell },
38070 { "align", XS_Lucy_Store_OutStream_align },
38071 { "flush", XS_Lucy_Store_OutStream_flush },
38072 { "length", XS_Lucy_Store_OutStream_length },
38073 { "grow", XS_Lucy_Store_OutStream_grow },
38074 { "write_i8", XS_Lucy_Store_OutStream_write_i8 },
38075 { "write_u8", XS_Lucy_Store_OutStream_write_u8 },
38076 { "write_i32", XS_Lucy_Store_OutStream_write_i32 },
38077 { "write_u32", XS_Lucy_Store_OutStream_write_u32 },
38078 { "write_i64", XS_Lucy_Store_OutStream_write_i64 },
38079 { "write_u64", XS_Lucy_Store_OutStream_write_u64 },
38080 { "write_ci32", XS_Lucy_Store_OutStream_write_ci32 },
38081 { "write_cu32", XS_Lucy_Store_OutStream_write_cu32 },
38082 { "write_ci64", XS_Lucy_Store_OutStream_write_ci64 },
38083 { "write_cu64", XS_Lucy_Store_OutStream_write_cu64 },
38084 { "write_f32", XS_Lucy_Store_OutStream_write_f32 },
38085 { "write_f64", XS_Lucy_Store_OutStream_write_f64 },
38086 { "absorb", XS_Lucy_Store_OutStream_absorb },
38087 { "close", XS_Lucy_Store_OutStream_close },
38088 { "new", XS_Lucy_Store_RAMFile_new },
38089 { "get_contents", XS_Lucy_Store_RAMFile_get_contents },
38090 { "read_only", XS_Lucy_Store_RAMFile_read_only },
38091 { "set_read_only", XS_Lucy_Store_RAMFile_set_read_only },
38092 { "new", XS_Lucy_Util_MemoryPool_new },
38093 { "release_all", XS_Lucy_Util_MemoryPool_release_all },
38094 { "get_consumed", XS_Lucy_Util_MemoryPool_get_consumed },
38095 { "new", XS_Lucy_Util_PriorityQueue_new },
38096 { "less_than", XS_Lucy_Util_PriorityQueue_less_than },
38097 { "insert", XS_Lucy_Util_PriorityQueue_insert },
38098 { "jostle", XS_Lucy_Util_PriorityQueue_jostle },
38099 { "pop", XS_Lucy_Util_PriorityQueue_pop },
38100 { "pop_all", XS_Lucy_Util_PriorityQueue_pop_all },
38101 { "peek", XS_Lucy_Util_PriorityQueue_peek },
38102 { "get_size", XS_Lucy_Util_PriorityQueue_get_size },
38103 { "less_than", XS_Lucy_Index_SegLexQueue_less_than },
38104 { "new", XS_Lucy_Search_HitQueue_new },
38105 { "jostle", XS_Lucy_Search_HitQueue_jostle },
38106 { "less_than", XS_Lucy_Search_HitQueue_less_than },
38107 { "new", XS_Lucy_Util_SortExternal_new },
38108 { "flush", XS_Lucy_Util_SortExternal_flush },
38109 { "feed", XS_Lucy_Util_SortExternal_feed },
38110 { "flip", XS_Lucy_Util_SortExternal_flip },
38111 { "fetch", XS_Lucy_Util_SortExternal_fetch },
38112 { "peek", XS_Lucy_Util_SortExternal_peek },
38113 { "add_run", XS_Lucy_Util_SortExternal_add_run },
38114 { "shrink", XS_Lucy_Util_SortExternal_shrink },
38115 { "refill", XS_Lucy_Util_SortExternal_refill },
38116 { "sort_buffer", XS_Lucy_Util_SortExternal_sort_buffer },
38117 { "clear_buffer", XS_Lucy_Util_SortExternal_clear_buffer },
38118 { "buffer_count", XS_Lucy_Util_SortExternal_buffer_count },
38119 { "grow_buffer", XS_Lucy_Util_SortExternal_grow_buffer },
38120 { "set_mem_thresh", XS_Lucy_Util_SortExternal_set_mem_thresh },
38121 { "new", XS_Lucy_Index_PostingPool_new },
38122 { "add_inversion", XS_Lucy_Index_PostingPool_add_inversion },
38123 { "get_mem_pool", XS_Lucy_Index_PostingPool_get_mem_pool },
38124 { "add_segment", XS_Lucy_Index_PostingPool_add_segment },
38125 { "flip", XS_Lucy_Index_PostingPool_flip },
38126 { "refill", XS_Lucy_Index_PostingPool_refill },
38127 { "finish", XS_Lucy_Index_PostingPool_finish },
38128 { "flush", XS_Lucy_Index_PostingPool_flush },
38129 { "new", XS_Lucy_Index_SortFieldWriter_new },
38130 { "add", XS_Lucy_Index_SortFieldWriter_add },
38131 { "add_segment", XS_Lucy_Index_SortFieldWriter_add_segment },
38132 { "flush", XS_Lucy_Index_SortFieldWriter_flush },
38133 { "flip", XS_Lucy_Index_SortFieldWriter_flip },
38134 { "refill", XS_Lucy_Index_SortFieldWriter_refill },
38135 { "finish", XS_Lucy_Index_SortFieldWriter_finish },
38136 { "get_null_ord", XS_Lucy_Index_SortFieldWriter_get_null_ord },
38137 { "get_ord_width", XS_Lucy_Index_SortFieldWriter_get_ord_width },
38138 { "new", XS_Lucy_Util_BlobSortEx_new },
38139 { "feed", XS_Lucy_Util_BlobSortEx_feed },
38140 { "flush", XS_Lucy_Util_BlobSortEx_flush },
38141 { "refill", XS_Lucy_Util_BlobSortEx_refill },
38142 { "clear_buffer", XS_Lucy_Util_BlobSortEx_clear_buffer },
38143 { "flip", XS_Lucy_Util_BlobSortEx_flip },
38144 { "peek_cache", XS_Lucy_Util_BlobSortEx_peek_cache },
38145 { "peek_last", XS_Lucy_Util_BlobSortEx_peek_last },
38146 { "get_num_runs", XS_Lucy_Util_BlobSortEx_get_num_runs },
38147 { "new", XS_Lucy_Util_Stepper_new },
38148 { "reset", XS_Lucy_Util_Stepper_reset },
38149 { "write_key_frame", XS_Lucy_Util_Stepper_write_key_frame },
38150 { "write_delta", XS_Lucy_Util_Stepper_write_delta },
38151 { "read_key_frame", XS_Lucy_Util_Stepper_read_key_frame },
38152 { "read_delta", XS_Lucy_Util_Stepper_read_delta },
38153 { "read_record", XS_Lucy_Util_Stepper_read_record },
38154 { "new", XS_Lucy_Index_Posting_new },
38155 { "read_raw", XS_Lucy_Index_Posting_read_raw },
38156 { "add_inversion_to_pool", XS_Lucy_Index_Posting_add_inversion_to_pool },
38157 { "set_doc_id", XS_Lucy_Index_Posting_set_doc_id },
38158 { "get_doc_id", XS_Lucy_Index_Posting_get_doc_id },
38159 { "make_matcher", XS_Lucy_Index_Posting_make_matcher },
38160 { "new", XS_Lucy_Index_Posting_MatchPosting_new },
38161 { "get_freq", XS_Lucy_Index_Posting_MatchPosting_get_freq },
38162 { "read_record", XS_Lucy_Index_Posting_MatchPosting_read_record },
38163 { "read_raw", XS_Lucy_Index_Posting_MatchPosting_read_raw },
38164 { "add_inversion_to_pool", XS_Lucy_Index_Posting_MatchPosting_add_inversion_to_pool },
38165 { "reset", XS_Lucy_Index_Posting_MatchPosting_reset },
38166 { "make_matcher", XS_Lucy_Index_Posting_MatchPosting_make_matcher },
38167 { "new", XS_Lucy_Index_Posting_ScorePosting_new },
38168 { "read_record", XS_Lucy_Index_Posting_ScorePosting_read_record },
38169 { "read_raw", XS_Lucy_Index_Posting_ScorePosting_read_raw },
38170 { "add_inversion_to_pool", XS_Lucy_Index_Posting_ScorePosting_add_inversion_to_pool },
38171 { "reset", XS_Lucy_Index_Posting_ScorePosting_reset },
38172 { "make_matcher", XS_Lucy_Index_Posting_ScorePosting_make_matcher },
38173 { "new", XS_Lucy_Index_Posting_RichPosting_new },
38174 { "read_record", XS_Lucy_Index_Posting_RichPosting_read_record },
38175 { "read_raw", XS_Lucy_Index_Posting_RichPosting_read_raw },
38176 { "add_inversion_to_pool", XS_Lucy_Index_Posting_RichPosting_add_inversion_to_pool },
38177 { "make_matcher", XS_Lucy_Index_Posting_RichPosting_make_matcher },
38178 { "compare_to", XS_Lucy_Index_RawPosting_compare_to },
38179 { "read_record", XS_Lucy_Index_SkipStepper_read_record },
38180 { "write_record", XS_Lucy_Index_SkipStepper_write_record },
38181 { "set_id_and_filepos", XS_Lucy_Index_SkipStepper_set_id_and_filepos },
38182 { "to_string", XS_Lucy_Index_SkipStepper_to_string },
38183 { "new", XS_Lucy_Index_TermStepper_new },
38184 { "set_value", XS_Lucy_Index_TermStepper_set_value },
38185 { "get_value", XS_Lucy_Index_TermStepper_get_value },
38186 { "new", XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_new },
38187 { "reset", XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_reset },
38188 { "write_key_frame", XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_write_key_frame },
38189 { "write_delta", XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_write_delta },
38190 { "read_key_frame", XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_read_key_frame },
38191 { "read_delta", XS_Lucy_Index_Posting_MatchPosting_MatchTermInfoStepper_read_delta },
38192 { "new", XS_Lucy_Index_TermStepper_TextTermStepper_new },
38193 { "reset", XS_Lucy_Index_TermStepper_TextTermStepper_reset },
38194 { "set_value", XS_Lucy_Index_TermStepper_TextTermStepper_set_value },
38195 { "get_value", XS_Lucy_Index_TermStepper_TextTermStepper_get_value },
38196 { "write_key_frame", XS_Lucy_Index_TermStepper_TextTermStepper_write_key_frame },
38197 { "write_delta", XS_Lucy_Index_TermStepper_TextTermStepper_write_delta },
38198 { "read_key_frame", XS_Lucy_Index_TermStepper_TextTermStepper_read_key_frame },
38199 { "read_delta", XS_Lucy_Index_TermStepper_TextTermStepper_read_delta }
38200 };
38201 150 size_t num_classes
38202 = sizeof(class_specs) / sizeof(class_specs[0]);
38203 150 const char* file = __FILE__;
38204  
38205 150 lucy_bootstrap_perl();
38206  
38207 150 cfish_XSBind_bootstrap(aTHX_ num_classes, class_specs,
38208 xsub_specs, file);
38209 }
38210  
38211 MODULE = Lucy PACKAGE = Lucy
38212  
38213 IV
38214 _dummy_function()
38215 CODE:
38216 0 ▶ RETVAL = 1;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = 1; 0 0 0
38217 OUTPUT:
38218 RETVAL
38219  
38220 void
38221 STORABLE_freeze(self, ...)
38222 cfish_Obj *self;
38223 PPCODE:
38224 {
38225 CFISH_UNUSED_VAR(self);
38226 69 ▶ if (items < 2 || !SvTRUE(ST(1))) {
Branch: 2 branches
BranchTrueFalseTotal
if (items < 2 || !SvTRUE(ST(1))) { 69 0 69
if (items < 2 || !SvTRUE(ST(1))) { 69 0 69
38227 SV *retval;
38228 cfish_ByteBuf *serialized_bb;
38229 lucy_RAMFileHandle *file_handle
38230 69 = lucy_RAMFH_open(NULL, LUCY_FH_WRITE_ONLY | LUCY_FH_CREATE, NULL);
38231 69 lucy_OutStream *target = lucy_OutStream_open((cfish_Obj*)file_handle);
38232  
38233 69 lucy_Freezer_serialize(self, target);
38234  
38235 69 LUCY_OutStream_Close(target);
38236 serialized_bb
38237 69 = LUCY_RAMFile_Get_Contents(LUCY_RAMFH_Get_File(file_handle));
38238 69 retval = (SV*)CFISH_BB_To_Host(serialized_bb, NULL);
38239 69 CFISH_DECREF(file_handle);
38240 69 CFISH_DECREF(target);
38241  
38242 69 ▶ if (SvCUR(retval) == 0) { // Thwart Storable bug
Branch: 1 branch
BranchTrueFalseTotal
if (SvCUR(retval) == 0) { // Thwart Storable bug 0 69 69
38243 0 THROW(CFISH_ERR, "Calling serialize produced an empty string");
38244 }
38245 69 ST(0) = sv_2mortal(retval);
38246 69 XSRETURN(1);
38247 }
38248 }
38249  
38250 =begin comment
38251  
38252 Calls deserialize(), and copies the object pointer. Since deserialize is an
38253 abstract method, it will confess() unless implemented.
38254  
38255 =end comment
38256  
38257 =cut
38258  
38259 void
38260 STORABLE_thaw(blank_obj, cloning, serialized_sv)
38261 SV *blank_obj;
38262 SV *cloning;
38263 SV *serialized_sv;
38264 PPCODE:
38265 {
38266 69 ▶ char *class_name = HvNAME(SvSTASH(SvRV(blank_obj)));
Branch: 6 branches
BranchTrueFalseTotal
char *class_name = HvNAME(SvSTASH(SvRV(blank_obj))); 69 0 69
char *class_name = HvNAME(SvSTASH(SvRV(blank_obj))); 69 0 69
char *class_name = HvNAME(SvSTASH(SvRV(blank_obj))); 0 69 69
char *class_name = HvNAME(SvSTASH(SvRV(blank_obj))); 0 0 0
char *class_name = HvNAME(SvSTASH(SvRV(blank_obj))); 69 0 69
char *class_name = HvNAME(SvSTASH(SvRV(blank_obj))); 0 69 69
38267 69 cfish_String *class_name_str = CFISH_SSTR_WRAP_C(class_name);
38268 69 cfish_Class *klass = cfish_Class_singleton(class_name_str, NULL);
38269 STRLEN len;
38270 69 char *ptr = SvPV(serialized_sv, len);
38271 69 cfish_ByteBuf *contents = cfish_BB_new_bytes(ptr, len);
38272 69 lucy_RAMFile *ram_file = lucy_RAMFile_new(contents, true);
38273 lucy_RAMFileHandle *file_handle
38274 69 = lucy_RAMFH_open(NULL, LUCY_FH_READ_ONLY, ram_file);
38275 69 lucy_InStream *instream = lucy_InStream_open((cfish_Obj*)file_handle);
38276 69 cfish_Obj *self = XSBind_foster_obj(aTHX_ blank_obj, klass);
38277 69 cfish_Obj *deserialized = lucy_Freezer_deserialize(self, instream);
38278  
38279 CFISH_UNUSED_VAR(cloning);
38280 69 CFISH_DECREF(contents);
38281 69 CFISH_DECREF(ram_file);
38282 69 CFISH_DECREF(file_handle);
38283 69 CFISH_DECREF(instream);
38284  
38285 // Catch bad deserialize() override.
38286 69 ▶ if (deserialized != self) {
Branch: 1 branch
BranchTrueFalseTotal
if (deserialized != self) { 1 68 69
38287 1 THROW(CFISH_ERR, "Error when deserializing obj of class %o", klass);
38288 }
38289 }
38290  
38291 MODULE = Lucy PACKAGE = Lucy::Analysis::Inversion
38292  
38293 SV*
38294 new(...)
38295 CODE:
38296 {
38297 static const XSBind_ParamSpec param_specs[1] = {
38298 XSBIND_PARAM("text", false)
38299 };
38300 int32_t locations[1];
38301 22 SV *text_sv = NULL;
38302 22 lucy_Token *starter_token = NULL;
38303  
38304 22 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs, locations, 1);
38305  
38306 22 ▶ text_sv = locations[0] < items ? ST(locations[0]) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
text_sv = locations[0] < items ? ST(locations[0]) : NULL; 16 6 22
38307 22 ▶ if (XSBind_sv_defined(aTHX_ text_sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (XSBind_sv_defined(aTHX_ text_sv)) { 16 6 22
38308 STRLEN len;
38309 16 char *text = SvPVutf8(text_sv, len);
38310 16 STRLEN length = utf8_length((U8*)text, (U8*)text + len);
38311 16 starter_token = lucy_Token_new(text, len, 0, length, 1.0, 1);
38312 }
38313  
38314 22 RETVAL = CFISH_OBJ_TO_SV_NOINC(lucy_Inversion_new(starter_token));
38315 22 CFISH_DECREF(starter_token);
38316 }
38317 OUTPUT: RETVAL
38318  
38319 MODULE = Lucy PACKAGE = Lucy::Analysis::Token
38320  
38321 SV*
38322 new(either_sv, ...)
38323 SV *either_sv;
38324 CODE:
38325 {
38326 static const XSBind_ParamSpec param_specs[5] = {
38327 XSBIND_PARAM("text", true),
38328 XSBIND_PARAM("start_offset", true),
38329 XSBIND_PARAM("end_offset", true),
38330 XSBIND_PARAM("pos_inc", false),
38331 XSBIND_PARAM("boost", false)
38332 };
38333 int32_t locations[5];
38334 57 uint32_t start_off = 0;
38335 57 uint32_t end_off = 0;
38336 57 int32_t pos_inc = 1;
38337 57 float boost = 1.0f;
38338 57 STRLEN len = 0;
38339 57 char *text = NULL;
38340 57 lucy_Token *self = NULL;
38341  
38342 57 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs, locations, 5);
38343  
38344 57 text = SvPVutf8(ST(locations[0]), len);
38345 57 start_off = (uint32_t)SvUV(ST(locations[1]));
38346 57 end_off = (uint32_t)SvUV(ST(locations[2]));
38347 57 ▶ pos_inc = locations[3] < items ? (int32_t)SvIV(ST(locations[3])) : 1;
Branch: 1 branch
BranchTrueFalseTotal
pos_inc = locations[3] < items ? (int32_t)SvIV(ST(locations[3])) : 1; 2 55 57
38348 57 ▶ boost = locations[4] < items ? (float)SvNV(ST(locations[4])) : 1.0f;
Branch: 1 branch
BranchTrueFalseTotal
boost = locations[4] < items ? (float)SvNV(ST(locations[4])) : 1.0f; 52 5 57
38349  
38350 57 self = (lucy_Token*)XSBind_new_blank_obj(aTHX_ either_sv);
38351 57 lucy_Token_init(self, text, len, start_off, end_off, boost,
38352 pos_inc);
38353 57 RETVAL = CFISH_OBJ_TO_SV_NOINC(self);
38354 }
38355 OUTPUT: RETVAL
38356  
38357 SV*
38358 get_text(self)
38359 lucy_Token *self;
38360 CODE:
38361 64 RETVAL = newSVpvn(LUCY_Token_Get_Text(self), LUCY_Token_Get_Len(self));
38362 64 SvUTF8_on(RETVAL);
38363 OUTPUT: RETVAL
38364  
38365 void
38366 set_text(self, sv)
38367 lucy_Token *self;
38368 SV *sv;
38369 PPCODE:
38370 {
38371 STRLEN len;
38372 0 char *ptr = SvPVutf8(sv, len);
38373 0 LUCY_Token_Set_Text(self, ptr, len);
38374 }
38375  
38376 MODULE = Lucy PACKAGE = Lucy::Document::Doc
38377  
38378 SV*
38379 new(either_sv, ...)
38380 SV *either_sv;
38381 CODE:
38382 {
38383 static const XSBind_ParamSpec param_specs[2] = {
38384 XSBIND_PARAM("fields", false),
38385 XSBIND_PARAM("doc_id", false)
38386 };
38387 int32_t locations[2];
38388 2 SV* fields_sv = NULL;
38389 2 HV *fields = NULL;
38390 2 int32_t doc_id = 0;
38391 2 lucy_Doc *self = NULL;
38392  
38393 2 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs, locations, 2);
38394  
38395 2 ▶ fields_sv = locations[0] < items ? ST(locations[0]) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
fields_sv = locations[0] < items ? ST(locations[0]) : NULL; 1 1 2
38396 2 ▶ doc_id = locations[1] < items ? (int32_t)SvIV(ST(locations[1])) : 0;
Branch: 1 branch
BranchTrueFalseTotal
doc_id = locations[1] < items ? (int32_t)SvIV(ST(locations[1])) : 0; 1 1 2
38397  
38398 2 ▶ if (fields_sv && XSBind_sv_defined(aTHX_ fields_sv)) {
Branch: 2 branches
BranchTrueFalseTotal
if (fields_sv && XSBind_sv_defined(aTHX_ fields_sv)) { 1 1 2
if (fields_sv && XSBind_sv_defined(aTHX_ fields_sv)) { 1 0 1
38399 1 ▶ if (SvROK(fields_sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvROK(fields_sv)) { 1 0 1
38400 1 fields = (HV*)SvRV(fields_sv);
38401 }
38402 1 ▶ if (!fields || SvTYPE((SV*)fields) != SVt_PVHV) {
Branch: 2 branches
BranchTrueFalseTotal
if (!fields || SvTYPE((SV*)fields) != SVt_PVHV) { 1 0 1
if (!fields || SvTYPE((SV*)fields) != SVt_PVHV) { 0 1 1
38403 0 CFISH_THROW(CFISH_ERR, "fields is not a hashref");
38404 }
38405 }
38406  
38407 2 self = (lucy_Doc*)XSBind_new_blank_obj(aTHX_ either_sv);
38408 2 lucy_Doc_init(self, fields, doc_id);
38409 2 RETVAL = CFISH_OBJ_TO_SV_NOINC(self);
38410 }
38411 OUTPUT: RETVAL
38412  
38413 void
38414 store(self, field, value_sv)
38415 lucy_Doc *self;
38416 cfish_String *field;
38417 SV *value_sv;
38418 PPCODE:
38419 {
38420 cfish_Obj *value
38421 1 = (cfish_Obj*)XSBind_perl_to_cfish(aTHX_ value_sv, CFISH_OBJ);
38422 1 LUCY_Doc_Store(self, field, value);
38423 1 CFISH_DECREF(value);
38424 }
38425  
38426 SV*
38427 get_fields(self, ...)
38428 lucy_Doc *self;
38429 CODE:
38430 CFISH_UNUSED_VAR(items);
38431 383 RETVAL = newRV_inc((SV*)LUCY_Doc_Get_Fields(self));
38432 OUTPUT: RETVAL
38433  
38434 void
38435 set_fields(self, fields)
38436 lucy_Doc *self;
38437 HV *fields;
38438 PPCODE:
38439 1 LUCY_Doc_Set_Fields_IMP(self, fields);
38440  
38441 MODULE = Lucy PACKAGE = Lucy::Document::HitDoc
38442  
38443 SV*
38444 new(either_sv, ...)
38445 SV *either_sv;
38446 CODE:
38447 {
38448 static const XSBind_ParamSpec param_specs[3] = {
38449 XSBIND_PARAM("fields", false),
38450 XSBIND_PARAM("doc_id", false),
38451 XSBIND_PARAM("score", false)
38452 };
38453 int32_t locations[3];
38454 7 SV *fields_sv = NULL;
38455 7 HV *fields = NULL;
38456 7 int32_t doc_id = 0;
38457 7 float score = 0.0f;
38458 7 lucy_HitDoc *self = NULL;
38459  
38460 7 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs, locations, 3);
38461  
38462 7 ▶ fields_sv = locations[0] < items ? ST(locations[0]) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
fields_sv = locations[0] < items ? ST(locations[0]) : NULL; 6 1 7
38463 7 ▶ doc_id = locations[1] < items ? (int32_t)SvIV(ST(locations[1])) : 0;
Branch: 1 branch
BranchTrueFalseTotal
doc_id = locations[1] < items ? (int32_t)SvIV(ST(locations[1])) : 0; 6 1 7
38464 7 ▶ score = locations[2] < items ? (float)SvNV(ST(locations[2])) : 0.0f;
Branch: 1 branch
BranchTrueFalseTotal
score = locations[2] < items ? (float)SvNV(ST(locations[2])) : 0.0f; 0 7 7
38465  
38466 7 ▶ if (fields_sv && XSBind_sv_defined(aTHX_ fields_sv)) {
Branch: 2 branches
BranchTrueFalseTotal
if (fields_sv && XSBind_sv_defined(aTHX_ fields_sv)) { 6 1 7
if (fields_sv && XSBind_sv_defined(aTHX_ fields_sv)) { 6 0 6
38467 6 ▶ if (SvROK(fields_sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvROK(fields_sv)) { 6 0 6
38468 6 fields = (HV*)SvRV(fields_sv);
38469 }
38470 6 ▶ if (!fields || SvTYPE((SV*)fields) != SVt_PVHV) {
Branch: 2 branches
BranchTrueFalseTotal
if (!fields || SvTYPE((SV*)fields) != SVt_PVHV) { 6 0 6
if (!fields || SvTYPE((SV*)fields) != SVt_PVHV) { 0 6 6
38471 0 CFISH_THROW(CFISH_ERR, "fields is not a hashref");
38472 }
38473 }
38474  
38475 7 self = (lucy_HitDoc*)XSBind_new_blank_obj(aTHX_ either_sv);
38476 7 lucy_HitDoc_init(self, fields, doc_id, score);
38477 7 RETVAL = CFISH_OBJ_TO_SV_NOINC(self);
38478 }
38479 OUTPUT: RETVAL
38480  
38481 MODULE = Lucy PACKAGE = Lucy::Index::IndexReader
38482  
38483 void
38484 set_race_condition_debug1(val_sv)
38485 SV *val_sv;
38486 PPCODE:
38487 2 CFISH_DECREF(lucy_PolyReader_race_condition_debug1);
38488 2 lucy_PolyReader_race_condition_debug1 = (cfish_String*)
38489 2 XSBind_perl_to_cfish_nullable(aTHX_ val_sv, CFISH_STRING);
38490  
38491 int32_t
38492 debug1_num_passes()
38493 CODE:
38494 1 ▶ RETVAL = lucy_PolyReader_debug1_num_passes;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_PolyReader_debug1_num_passes; 0 1 1
38495 OUTPUT: RETVAL
38496  
38497 MODULE = Lucy PACKAGE = Lucy::Index::Indexer
38498  
38499 int32_t
38500 CREATE(...)
38501 CODE:
38502 CFISH_UNUSED_VAR(items);
38503 7 ▶ RETVAL = lucy_Indexer_CREATE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_Indexer_CREATE; 2 5 7
38504 OUTPUT: RETVAL
38505  
38506 int32_t
38507 TRUNCATE(...)
38508 CODE:
38509 CFISH_UNUSED_VAR(items);
38510 4 ▶ RETVAL = lucy_Indexer_TRUNCATE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_Indexer_TRUNCATE; 1 3 4
38511 OUTPUT: RETVAL
38512  
38513 void
38514 add_doc(self, ...)
38515 lucy_Indexer *self;
38516 PPCODE:
38517 {
38518 16145 lucy_Doc *doc = NULL;
38519 16145 SV *doc_sv = NULL;
38520 16145 float boost = 1.0;
38521  
38522 16145 ▶ if (items == 2) {
Branch: 1 branch
BranchTrueFalseTotal
if (items == 2) { 16142 3 16145
38523 16142 doc_sv = ST(1);
38524 }
38525 else {
38526 static const XSBind_ParamSpec param_specs[2] = {
38527 XSBIND_PARAM("doc", true),
38528 XSBIND_PARAM("boost", false)
38529 };
38530 int32_t locations[2];
38531  
38532 3 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs, locations, 2);
38533  
38534 3 doc_sv = ST(locations[0]);
38535 3 ▶ if (locations[1] < items) { boost = (float)SvNV(ST(locations[1])); }
Branch: 1 branch
BranchTrueFalseTotal
if (locations[1] < items) { boost = (float)SvNV(ST(locations[1])); } 3 0 3
38536 }
38537  
38538 // Either get a Doc or use the stock doc.
38539 16145 ▶ if (sv_isobject(doc_sv)
Branch: 1 branch
BranchTrueFalseTotal
if (sv_isobject(doc_sv) 0 16145 16145
38540 0 ▶ && sv_derived_from(doc_sv, "Lucy::Document::Doc")
Branch: 1 branch
BranchTrueFalseTotal
&& sv_derived_from(doc_sv, "Lucy::Document::Doc") 0 0 0
38541 0 ) {
38542 0 IV tmp = SvIV(SvRV(doc_sv));
38543 0 doc = INT2PTR(lucy_Doc*, tmp);
38544 }
38545 16145 ▶ else if (XSBind_sv_defined(aTHX_ doc_sv) && SvROK(doc_sv)) {
Branch: 2 branches
BranchTrueFalseTotal
else if (XSBind_sv_defined(aTHX_ doc_sv) && SvROK(doc_sv)) { 16145 0 16145
else if (XSBind_sv_defined(aTHX_ doc_sv) && SvROK(doc_sv)) { 16145 0 16145
38546 16145 HV *maybe_fields = (HV*)SvRV(doc_sv);
38547 16145 ▶ if (SvTYPE((SV*)maybe_fields) == SVt_PVHV) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE((SV*)maybe_fields) == SVt_PVHV) { 16145 0 16145
38548 16145 doc = LUCY_Indexer_Get_Stock_Doc(self);
38549 16145 LUCY_Doc_Set_Fields(doc, maybe_fields);
38550 }
38551 }
38552 16145 ▶ if (!doc) {
Branch: 1 branch
BranchTrueFalseTotal
if (!doc) { 0 16145 16145
38553 0 THROW(CFISH_ERR, "Need either a hashref or a %o",
38554 CFISH_Class_Get_Name(LUCY_DOC));
38555 }
38556  
38557 16145 LUCY_Indexer_Add_Doc(self, doc, boost);
38558 }
38559  
38560 MODULE = Lucy PACKAGE = Lucy::Index::PolyReader
38561  
38562 uint32_t
38563 sub_tick(offsets, doc_id)
38564 lucy_I32Array *offsets;
38565 int32_t doc_id;
38566 CODE:
38567 0 RETVAL = lucy_PolyReader_sub_tick(offsets, doc_id);
38568 OUTPUT: RETVAL
38569  
38570  
38571 MODULE = Lucy PACKAGE = Lucy::Index::Posting::ScorePosting
38572  
38573 SV*
38574 get_prox(self)
38575 lucy_ScorePosting *self;
38576 CODE:
38577 {
38578 2 AV *out_av = newAV();
38579 2 uint32_t *positions = LUCY_ScorePost_Get_Prox(self);
38580 uint32_t i, max;
38581  
38582 5 ▶ for (i = 0, max = LUCY_ScorePost_Get_Freq(self); i < max; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0, max = LUCY_ScorePost_Get_Freq(self); i < max; i++) { 3 2 5
38583 3 SV *pos_sv = newSVuv(positions[i]);
38584 3 av_push(out_av, pos_sv);
38585 }
38586  
38587 2 RETVAL = newRV_noinc((SV*)out_av);
38588 }
38589 OUTPUT: RETVAL
38590  
38591 MODULE = Lucy PACKAGE = Lucy::Index::PostingListWriter
38592  
38593 void
38594 set_default_mem_thresh(mem_thresh)
38595 uint32_t mem_thresh;
38596 PPCODE:
38597 146 lucy_PListWriter_set_default_mem_thresh(mem_thresh);
38598  
38599 MODULE = Lucy PACKAGE = Lucy::Index::Similarity
38600  
38601 SV*
38602 get_norm_decoder(self)
38603 lucy_Similarity *self;
38604 CODE:
38605 1 RETVAL = newSVpvn((char*)LUCY_Sim_Get_Norm_Decoder(self),
38606 (256 * sizeof(float)));
38607 OUTPUT: RETVAL
38608  
38609 MODULE = Lucy PACKAGE = Lucy::Index::SortCache
38610  
38611 SV*
38612 value(self, ...)
38613 lucy_SortCache *self;
38614 CODE:
38615 {
38616 static const XSBind_ParamSpec param_specs[1] = {
38617 XSBIND_PARAM("ord", false)
38618 };
38619 int32_t locations[1];
38620 0 int32_t ord = 0;
38621  
38622 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs, locations, 1);
38623  
38624 0 ▶ ord = locations[0] < items ? (int32_t)SvIV(ST(locations[0])) : 0;
Branch: 1 branch
BranchTrueFalseTotal
ord = locations[0] < items ? (int32_t)SvIV(ST(locations[0])) : 0; 0 0 0
38625  
38626 {
38627 0 cfish_Obj *value = LUCY_SortCache_Value(self, ord);
38628 0 RETVAL = XSBind_cfish_to_perl(aTHX_ value);
38629 0 CFISH_DECREF(value);
38630 }
38631 }
38632 OUTPUT: RETVAL
38633  
38634 MODULE = Lucy PACKAGE = Lucy::Index::SortWriter
38635  
38636 void
38637 set_default_mem_thresh(mem_thresh)
38638 size_t mem_thresh;
38639 PPCODE:
38640 0 lucy_SortWriter_set_default_mem_thresh(mem_thresh);
38641  
38642 MODULE = Lucy PACKAGE = Lucy::Object::I32Array
38643  
38644 #include "Clownfish/Util/Memory.h"
38645  
38646 SV*
38647 new(either_sv, ...)
38648 SV *either_sv;
38649 CODE:
38650 {
38651 static const XSBind_ParamSpec param_specs[1] = {
38652 XSBIND_PARAM("ints", true)
38653 };
38654 int32_t locations[1];
38655 3763 SV *ints_sv = NULL;
38656 3763 AV *ints_av = NULL;
38657 3763 lucy_I32Array *self = NULL;
38658  
38659 3763 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs, locations, 1);
38660  
38661 3763 ints_sv = ST(locations[0]);
38662 3763 ▶ if (SvROK(ints_sv)) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvROK(ints_sv)) { 3763 0 3763
38663 3763 ints_av = (AV*)SvRV(ints_sv);
38664 }
38665 7526 ▶ if (ints_av && SvTYPE(ints_av) == SVt_PVAV) {
Branch: 2 branches
BranchTrueFalseTotal
if (ints_av && SvTYPE(ints_av) == SVt_PVAV) { 3763 0 3763
if (ints_av && SvTYPE(ints_av) == SVt_PVAV) { 3763 0 3763
38666 3763 int64_t size = av_len(ints_av) + 1;
38667 int32_t *ints;
38668 int64_t i;
38669 3763 ▶ if (size < 0 || size > INT32_MAX) {
Branch: 2 branches
BranchTrueFalseTotal
if (size < 0 || size > INT32_MAX) { 3763 0 3763
if (size < 0 || size > INT32_MAX) { 0 3763 3763
38670 0 THROW(CFISH_ERR, "Size out of range: %i64", size);
38671 }
38672 3763 ints = (int32_t*)CFISH_MALLOCATE(size * sizeof(int32_t));
38673  
38674 58584 ▶ for (i = 0; i < size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < size; i++) { 54821 3763 58584
38675 54821 SV **const sv_ptr = av_fetch(ints_av, (I32)i, 0);
38676 109642 ▶ ints[i] = (sv_ptr && XSBind_sv_defined(aTHX_ *sv_ptr))
Branch: 2 branches
BranchTrueFalseTotal
ints[i] = (sv_ptr && XSBind_sv_defined(aTHX_ *sv_ptr)) 54821 0 54821
ints[i] = (sv_ptr && XSBind_sv_defined(aTHX_ *sv_ptr)) 54821 0 54821
38677 54821 ? SvIV(*sv_ptr)
38678 : 0;
38679 }
38680 3763 self = (lucy_I32Array*)XSBind_new_blank_obj(aTHX_ either_sv);
38681 3763 lucy_I32Arr_init(self, ints, (size_t)size);
38682 }
38683 else {
38684 0 THROW(CFISH_ERR, "Required param 'ints' isn't an arrayref");
38685 }
38686  
38687 3763 RETVAL = CFISH_OBJ_TO_SV_NOINC(self);
38688 }
38689 OUTPUT: RETVAL
38690  
38691 SV*
38692 to_arrayref(self)
38693 lucy_I32Array *self;
38694 CODE:
38695 {
38696 40 AV *out_av = newAV();
38697 size_t i;
38698 40 size_t size = LUCY_I32Arr_Get_Size(self);
38699  
38700 40 av_extend(out_av, size);
38701 585 ▶ for (i = 0; i < size; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 0; i < size; i++) { 545 40 585
38702 545 int32_t result = LUCY_I32Arr_Get(self, i);
38703 545 ▶ SV* result_sv = result == -1 ? newSV(0) : newSViv(result);
Branch: 1 branch
BranchTrueFalseTotal
SV* result_sv = result == -1 ? newSV(0) : newSViv(result); 0 545 545
38704 545 av_push(out_av, result_sv);
38705 }
38706 40 RETVAL = newRV_noinc((SV*)out_av);
38707 }
38708 OUTPUT: RETVAL
38709  
38710 MODULE = Lucy PACKAGE = Lucy::Search::QueryParser::ParserElem
38711  
38712 SV*
38713 new(either_sv, ...)
38714 SV *either_sv;
38715 CODE:
38716 {
38717 static const XSBind_ParamSpec param_specs[2] = {
38718 XSBIND_PARAM("type", true),
38719 XSBIND_PARAM("value", false)
38720 };
38721 int32_t locations[2];
38722 0 SV *type_sv = NULL;
38723 0 SV *value_sv = NULL;
38724 0 const char *type_str = NULL;
38725 0 cfish_Obj *value = NULL;
38726 0 uint32_t type = 0;
38727 0 lucy_ParserElem *self = NULL;
38728  
38729 0 XSBind_locate_args(aTHX_ &ST(0), 1, items, param_specs, locations, 2);
38730  
38731 0 type_sv = ST(locations[0]);
38732 0 ▶ value_sv = locations[1] < items ? ST(locations[1]) : NULL;
Branch: 1 branch
BranchTrueFalseTotal
value_sv = locations[1] < items ? ST(locations[1]) : NULL; 0 0 0
38733  
38734 0 type_str = SvPVutf8_nolen(type_sv);
38735  
38736 0 ▶ if (strcmp(type_str, "OPEN_PAREN") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
if (strcmp(type_str, "OPEN_PAREN") == 0) { 0 0 0
38737 0 type = LUCY_QPARSER_TOKEN_OPEN_PAREN;
38738 }
38739 0 ▶ else if (strcmp(type_str, "CLOSE_PAREN") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "CLOSE_PAREN") == 0) { 0 0 0
38740 0 type = LUCY_QPARSER_TOKEN_CLOSE_PAREN;
38741 }
38742 0 ▶ else if (strcmp(type_str, "MINUS") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "MINUS") == 0) { 0 0 0
38743 0 type = LUCY_QPARSER_TOKEN_MINUS;
38744 }
38745 0 ▶ else if (strcmp(type_str, "PLUS") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "PLUS") == 0) { 0 0 0
38746 0 type = LUCY_QPARSER_TOKEN_PLUS;
38747 }
38748 0 ▶ else if (strcmp(type_str, "NOT") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "NOT") == 0) { 0 0 0
38749 0 type = LUCY_QPARSER_TOKEN_NOT;
38750 }
38751 0 ▶ else if (strcmp(type_str, "AND") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "AND") == 0) { 0 0 0
38752 0 type = LUCY_QPARSER_TOKEN_AND;
38753 }
38754 0 ▶ else if (strcmp(type_str, "OR") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "OR") == 0) { 0 0 0
38755 0 type = LUCY_QPARSER_TOKEN_OR;
38756 }
38757 0 ▶ else if (strcmp(type_str, "FIELD") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "FIELD") == 0) { 0 0 0
38758 0 type = LUCY_QPARSER_TOKEN_FIELD;
38759 0 value = XSBind_perl_to_cfish(aTHX_ value_sv, CFISH_STRING);
38760 }
38761 0 ▶ else if (strcmp(type_str, "STRING") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "STRING") == 0) { 0 0 0
38762 0 type = LUCY_QPARSER_TOKEN_STRING;
38763 0 value = XSBind_perl_to_cfish(aTHX_ value_sv, CFISH_STRING);
38764 }
38765 0 ▶ else if (strcmp(type_str, "QUERY") == 0) {
Branch: 1 branch
BranchTrueFalseTotal
else if (strcmp(type_str, "QUERY") == 0) { 0 0 0
38766 0 type = LUCY_QPARSER_TOKEN_QUERY;
38767 0 value = XSBind_perl_to_cfish(aTHX_ value_sv, LUCY_QUERY);
38768 }
38769 else {
38770 0 CFISH_THROW(CFISH_ERR, "Bad type: '%s'", type_str);
38771 }
38772  
38773 0 self = (lucy_ParserElem*)XSBind_new_blank_obj(aTHX_ either_sv);
38774 0 self = lucy_ParserElem_init(self, type, value);
38775 0 RETVAL = XSBind_cfish_to_perl(aTHX_ (cfish_Obj*)self);
38776 0 CFISH_DECREF(self);
38777 }
38778 OUTPUT: RETVAL
38779  
38780  
38781 MODULE = Lucy PACKAGE = Lucy::Search::SortRule
38782  
38783 int32_t
38784 FIELD()
38785 CODE:
38786 150 ▶ RETVAL = lucy_SortRule_FIELD;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_SortRule_FIELD; 0 150 150
38787 OUTPUT: RETVAL
38788  
38789 int32_t
38790 SCORE()
38791 CODE:
38792 150 ▶ RETVAL = lucy_SortRule_SCORE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_SortRule_SCORE; 0 150 150
38793 OUTPUT: RETVAL
38794  
38795 int32_t
38796 DOC_ID()
38797 CODE:
38798 150 ▶ RETVAL = lucy_SortRule_DOC_ID;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_SortRule_DOC_ID; 0 150 150
38799 OUTPUT: RETVAL
38800  
38801 MODULE = Lucy PACKAGE = Lucy::Simple
38802  
38803 void
38804 add_doc(self, doc_sv)
38805 lucy_Simple *self;
38806 SV *doc_sv;
38807 PPCODE:
38808 {
38809 9 lucy_Doc *doc = NULL;
38810  
38811 // Either get a Doc or use the stock doc.
38812 9 ▶ if (sv_isobject(doc_sv)
Branch: 1 branch
BranchTrueFalseTotal
if (sv_isobject(doc_sv) 0 9 9
38813 0 ▶ && sv_derived_from(doc_sv, "Lucy::Document::Doc")
Branch: 1 branch
BranchTrueFalseTotal
&& sv_derived_from(doc_sv, "Lucy::Document::Doc") 0 0 0
38814 0 ) {
38815 0 IV tmp = SvIV(SvRV(doc_sv));
38816 0 doc = INT2PTR(lucy_Doc*, tmp);
38817 }
38818 9 ▶ else if (XSBind_sv_defined(aTHX_ doc_sv) && SvROK(doc_sv)) {
Branch: 2 branches
BranchTrueFalseTotal
else if (XSBind_sv_defined(aTHX_ doc_sv) && SvROK(doc_sv)) { 9 0 9
else if (XSBind_sv_defined(aTHX_ doc_sv) && SvROK(doc_sv)) { 9 0 9
38819 9 HV *maybe_fields = (HV*)SvRV(doc_sv);
38820 9 ▶ if (SvTYPE((SV*)maybe_fields) == SVt_PVHV) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvTYPE((SV*)maybe_fields) == SVt_PVHV) { 9 0 9
38821 9 lucy_Indexer *indexer = LUCY_Simple_Get_Indexer(self);
38822 9 doc = LUCY_Indexer_Get_Stock_Doc(indexer);
38823 9 LUCY_Doc_Set_Fields(doc, maybe_fields);
38824 }
38825 }
38826 9 ▶ if (!doc) {
Branch: 1 branch
BranchTrueFalseTotal
if (!doc) { 0 9 9
38827 0 THROW(CFISH_ERR, "Need either a hashref or a %o",
38828 CFISH_Class_Get_Name(LUCY_DOC));
38829 }
38830  
38831 9 LUCY_Simple_Add_Doc(self, doc);
38832 }
38833  
38834 MODULE = Lucy PACKAGE = Lucy::Store::FileHandle
38835  
38836 =for comment
38837  
38838 For testing purposes only. Track number of FileHandle objects in existence.
38839  
38840 =cut
38841  
38842 uint32_t
38843 FH_READ_ONLY()
38844 CODE:
38845 0 ▶ RETVAL = LUCY_FH_READ_ONLY;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LUCY_FH_READ_ONLY; 0 0 0
38846 OUTPUT: RETVAL
38847  
38848 uint32_t
38849 FH_WRITE_ONLY()
38850 CODE:
38851 3 ▶ RETVAL = LUCY_FH_WRITE_ONLY;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LUCY_FH_WRITE_ONLY; 2 1 3
38852 OUTPUT: RETVAL
38853  
38854 uint32_t
38855 FH_CREATE()
38856 CODE:
38857 3 ▶ RETVAL = LUCY_FH_CREATE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LUCY_FH_CREATE; 2 1 3
38858 OUTPUT: RETVAL
38859  
38860 uint32_t
38861 FH_EXCLUSIVE()
38862 CODE:
38863 3 ▶ RETVAL = LUCY_FH_EXCLUSIVE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LUCY_FH_EXCLUSIVE; 2 1 3
38864 OUTPUT: RETVAL
38865  
38866  
38867 int32_t
38868 object_count()
38869 CODE:
38870 1 ▶ RETVAL = lucy_FH_object_count;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_FH_object_count; 0 1 1
38871 OUTPUT: RETVAL
38872  
38873 =for comment
38874  
38875 For testing purposes only. Used to help produce buffer alignment tests.
38876  
38877 =cut
38878  
38879 IV
38880 _BUF_SIZE()
38881 CODE:
38882 1 ▶ RETVAL = LUCY_IO_STREAM_BUF_SIZE;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LUCY_IO_STREAM_BUF_SIZE; 0 1 1
38883 OUTPUT: RETVAL
38884  
38885 MODULE = Lucy PACKAGE = Lucy::Store::InStream
38886  
38887 void
38888 read(self, buffer_sv, len, ...)
38889 lucy_InStream *self;
38890 SV *buffer_sv;
38891 size_t len;
38892 PPCODE:
38893 {
38894 116 ▶ UV offset = items == 4 ? SvUV(ST(3)) : 0;
Branch: 1 branch
BranchTrueFalseTotal
UV offset = items == 4 ? SvUV(ST(3)) : 0; 1 115 116
38895 char *ptr;
38896 116 size_t total_len = offset + len;
38897 116 ▶ (void)SvUPGRADE(buffer_sv, SVt_PV);
Branch: 1 branch
BranchTrueFalseTotal
(void)SvUPGRADE(buffer_sv, SVt_PV); 10 106 116
38898 116 ▶ if (!SvPOK(buffer_sv)) { SvCUR_set(buffer_sv, 0); }
Branch: 1 branch
BranchTrueFalseTotal
if (!SvPOK(buffer_sv)) { SvCUR_set(buffer_sv, 0); } 110 6 116
38899 116 ▶ ptr = SvGROW(buffer_sv, total_len + 1);
Branch: 2 branches
BranchTrueFalseTotal
ptr = SvGROW(buffer_sv, total_len + 1); 112 4 116
ptr = SvGROW(buffer_sv, total_len + 1); 21 91 112
38900 116 LUCY_InStream_Read_Bytes(self, ptr + offset, len);
38901 114 SvPOK_on(buffer_sv);
38902 114 ▶ if (SvCUR(buffer_sv) < total_len) {
Branch: 1 branch
BranchTrueFalseTotal
if (SvCUR(buffer_sv) < total_len) { 100 14 114
38903 100 SvCUR_set(buffer_sv, total_len);
38904 100 *(SvEND(buffer_sv)) = '\0';
38905 }
38906 }
38907  
38908 SV*
38909 read_string(self)
38910 lucy_InStream *self;
38911 CODE:
38912 {
38913 char *ptr;
38914 8 size_t len = LUCY_InStream_Read_CU32(self);
38915 8 RETVAL = newSV(len + 1);
38916 8 SvCUR_set(RETVAL, len);
38917 8 SvPOK_on(RETVAL);
38918 8 SvUTF8_on(RETVAL); // Trust source. Reconsider if API goes public.
38919 8 *SvEND(RETVAL) = '\0';
38920 8 ptr = SvPVX(RETVAL);
38921 8 LUCY_InStream_Read_Bytes(self, ptr, len);
38922 }
38923 OUTPUT: RETVAL
38924  
38925 int
38926 read_raw_c64(self, buffer_sv)
38927 lucy_InStream *self;
38928 SV *buffer_sv;
38929 CODE:
38930 {
38931 char *ptr;
38932 1 ▶ (void)SvUPGRADE(buffer_sv, SVt_PV);
Branch: 1 branch
BranchTrueFalseTotal
(void)SvUPGRADE(buffer_sv, SVt_PV); 1 0 1
38933 1 ▶ ptr = SvGROW(buffer_sv, 10 + 1);
Branch: 2 branches
BranchTrueFalseTotal
ptr = SvGROW(buffer_sv, 10 + 1); 1 0 1
ptr = SvGROW(buffer_sv, 10 + 1); 1 0 1
38934 1 RETVAL = LUCY_InStream_Read_Raw_C64(self, ptr);
38935 1 SvPOK_on(buffer_sv);
38936 1 ▶ SvCUR_set(buffer_sv, RETVAL);
Branch: 1 branch
BranchTrueFalseTotal
SvCUR_set(buffer_sv, RETVAL); 0 1 1
38937 }
38938 OUTPUT: RETVAL
38939  
38940 MODULE = Lucy PACKAGE = Lucy::Store::OutStream
38941  
38942 void
38943 print(self, ...)
38944 lucy_OutStream *self;
38945 PPCODE:
38946 {
38947 int i;
38948 285 ▶ for (i = 1; i < items; i++) {
Branch: 1 branch
BranchTrueFalseTotal
for (i = 1; i < items; i++) { 143 142 285
38949 STRLEN len;
38950 143 char *ptr = SvPV(ST(i), len);
38951 143 LUCY_OutStream_Write_Bytes(self, ptr, len);
38952 }
38953 }
38954  
38955 void
38956 write_string(self, aSV)
38957 lucy_OutStream *self;
38958 SV *aSV;
38959 PPCODE:
38960 {
38961 9 STRLEN len = 0;
38962 9 char *ptr = SvPVutf8(aSV, len);
38963 9 ▶ if (len > INT32_MAX) {
Branch: 1 branch
BranchTrueFalseTotal
if (len > INT32_MAX) { 0 9 9
38964 0 CFISH_THROW(CFISH_ERR, "String too long: %u64", (uint64_t)len);
38965 }
38966 9 LUCY_OutStream_Write_CU32(self, len);
38967 9 LUCY_OutStream_Write_Bytes(self, ptr, len);
38968 }
38969  
38970 MODULE = Lucy PACKAGE = Lucy::Util::Debug
38971  
38972 #include "Lucy/Util/Debug.h"
38973  
38974 void
38975 DEBUG_PRINT(message)
38976 char *message;
38977 PPCODE:
38978 CFISH_UNUSED_VAR(message);
38979 LUCY_DEBUG_PRINT("%s", message);
38980  
38981 void
38982 DEBUG(message)
38983 char *message;
38984 PPCODE:
38985 CFISH_UNUSED_VAR(message);
38986 LUCY_DEBUG("%s", message);
38987  
38988 bool
38989 DEBUG_ENABLED()
38990 CODE:
38991 1 ▶ RETVAL = LUCY_DEBUG_ENABLED;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = LUCY_DEBUG_ENABLED; 0 1 1
38992 OUTPUT: RETVAL
38993  
38994 =for comment
38995  
38996 Keep track of any Lucy objects that have been assigned to global Perl
38997 variables. This is useful when accounting how many objects should have been
38998 destroyed and diagnosing memory leaks.
38999  
39000 =cut
39001  
39002 void
39003 track_globals(...)
39004 PPCODE:
39005 {
39006 CFISH_UNUSED_VAR(items);
39007 LUCY_IFDEF_DEBUG(lucy_Debug_num_globals++;);
39008 }
39009  
39010 void
39011 set_env_cache(str)
39012 char *str;
39013 PPCODE:
39014 0 lucy_Debug_set_env_cache(str);
39015  
39016 void
39017 ASSERT(maybe)
39018 int maybe;
39019 PPCODE:
39020 CFISH_UNUSED_VAR(maybe);
39021 LUCY_ASSERT(maybe, "XS ASSERT binding test");
39022  
39023 IV
39024 num_allocated()
39025 CODE:
39026 0 ▶ RETVAL = lucy_Debug_num_allocated;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_Debug_num_allocated; 0 0 0
39027 OUTPUT: RETVAL
39028  
39029 IV
39030 num_freed()
39031 CODE:
39032 0 ▶ RETVAL = lucy_Debug_num_freed;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_Debug_num_freed; 0 0 0
39033 OUTPUT: RETVAL
39034  
39035 IV
39036 num_globals()
39037 CODE:
39038 0 ▶ RETVAL = lucy_Debug_num_globals;
Branch: 1 branch
BranchTrueFalseTotal
RETVAL = lucy_Debug_num_globals; 0 0 0
39039 OUTPUT: RETVAL
39040  
39041 MODULE = Lucy PACKAGE = Lucy::Util::Freezer
39042  
39043 void
39044 freeze(obj, outstream)
39045 cfish_Obj *obj;
39046 lucy_OutStream *outstream;
39047 PPCODE:
39048 0 lucy_Freezer_serialize(obj, outstream);
39049  
39050 SV*
39051 thaw(instream)
39052 lucy_InStream *instream;
39053 CODE:
39054 0 cfish_Obj *obj = lucy_Freezer_thaw(instream);
39055 0 RETVAL = CFISH_OBJ_TO_SV_NOINC(obj);
39056 OUTPUT: RETVAL
39057  
39058  
39059 MODULE = Lucy PACKAGE = Lucy::Util::IndexFileNames
39060  
39061 uint64_t
39062 extract_gen(name)
39063 cfish_String *name;
39064 CODE:
39065 0 RETVAL = lucy_IxFileNames_extract_gen(name);
39066 OUTPUT: RETVAL
39067  
39068 SV*
39069 latest_snapshot(folder)
39070 lucy_Folder *folder;
39071 CODE:
39072 {
39073 1 cfish_String *latest = lucy_IxFileNames_latest_snapshot(folder);
39074 1 RETVAL = (SV*)CFISH_Str_To_Host(latest, NULL);
39075 1 CFISH_DECREF(latest);
39076 }
39077 OUTPUT: RETVAL
39078  
39079 MODULE = Lucy PACKAGE = Lucy::Util::StringHelper
39080  
39081 =for comment
39082  
39083 Turn an SV's UTF8 flag on. Equivalent to Encode::_utf8_on, but we don't have
39084 to load Encode.
39085  
39086 =cut
39087  
39088 void
39089 utf8_flag_on(sv)
39090 SV *sv;
39091 PPCODE:
39092 6 SvUTF8_on(sv);
39093  
39094 =for comment
39095  
39096 Turn an SV's UTF8 flag off.
39097  
39098 =cut
39099  
39100 void
39101 utf8_flag_off(sv)
39102 SV *sv;
39103 PPCODE:
39104 1 SvUTF8_off(sv);
39105  
39106 SV*
39107 to_base36(num)
39108 uint64_t num;
39109 CODE:
39110 {
39111 char base36[lucy_StrHelp_MAX_BASE36_BYTES];
39112 101 size_t size = lucy_StrHelp_to_base36(num, &base36);
39113 101 RETVAL = newSVpvn(base36, size);
39114 }
39115 OUTPUT: RETVAL
39116  
39117 =for comment
39118  
39119 Upgrade a SV to UTF8, converting Latin1 if necessary. Equivalent to
39120 utf::upgrade().
39121  
39122 =cut
39123  
39124 void
39125 utf8ify(sv)
39126 SV *sv;
39127 PPCODE:
39128 2 sv_utf8_upgrade(sv);
39129  
39130 bool
39131 utf8_valid(sv)
39132 SV *sv;
39133 CODE:
39134 {
39135 STRLEN len;
39136 6 char *ptr = SvPV(sv, len);
39137 6 RETVAL = cfish_Str_utf8_valid(ptr, len);
39138 }
39139 OUTPUT: RETVAL
39140  
39141 =for comment
39142  
39143 Concatenate one scalar onto the end of the other, ignoring UTF-8 status of the
39144 second scalar. This is necessary because $not_utf8 . $utf8 results in a
39145 scalar which has been infected by the UTF-8 flag of the second argument.
39146  
39147 =cut
39148  
39149 void
39150 cat_bytes(sv, catted)
39151 SV *sv;
39152 SV *catted;
39153 PPCODE:
39154 {
39155 STRLEN len;
39156 156 char *ptr = SvPV(catted, len);
39157 156 ▶ if (SvUTF8(sv)) { CFISH_THROW(CFISH_ERR, "Can't cat_bytes onto a UTF-8 SV"); }
Branch: 1 branch
BranchTrueFalseTotal
if (SvUTF8(sv)) { CFISH_THROW(CFISH_ERR, "Can't cat_bytes onto a UTF-8 SV"); } 0 156 156
39158 156 sv_catpvn(sv, ptr, len);
39159 }
39160  
39161  
« lib/Lucy/Test.xs ↑ Summary autogen/include/Lucy/Analysis/Token.h »