1 | /* |
2 | * This Source Code Form is subject to the terms of the Mozilla Public |
3 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
5 | * |
6 | * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V. |
7 | */ |
8 | |
9 | #ifndef _ITERATOR_ |
10 | #define _ITERATOR_ |
11 | |
12 | #include "mal.h" |
13 | #include "mal_interpreter.h" |
14 | |
15 | mal_export str ITRnewChunk(lng *res, bat *vid, bat *bid, lng *granule); |
16 | mal_export str ITRnextChunk(lng *res, bat *vid, bat *bid, lng *granule); |
17 | mal_export str ITRbunIterator(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci); |
18 | mal_export str ITRbunNext(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci); |
19 | |
20 | mal_export str ITRnext_oid(oid *i, oid *step, oid *last); |
21 | mal_export str ITRnext_lng(lng *i, lng *step, lng *last); |
22 | #ifdef HAVE_HGE |
23 | mal_export str ITRnext_hge(hge *i, hge *step, hge *last); |
24 | #endif |
25 | mal_export str ITRnext_int(int *i, int *step, int *last); |
26 | mal_export str ITRnext_sht(sht *i, sht *step, sht *last); |
27 | mal_export str ITRnext_flt(flt *i, flt *step, flt *last); |
28 | mal_export str ITRnext_dbl(dbl *i, dbl *step, dbl *last); |
29 | #endif |
30 | |