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
15mal_export str ITRnewChunk(lng *res, bat *vid, bat *bid, lng *granule);
16mal_export str ITRnextChunk(lng *res, bat *vid, bat *bid, lng *granule);
17mal_export str ITRbunIterator(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
18mal_export str ITRbunNext(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
19
20mal_export str ITRnext_oid(oid *i, oid *step, oid *last);
21mal_export str ITRnext_lng(lng *i, lng *step, lng *last);
22#ifdef HAVE_HGE
23mal_export str ITRnext_hge(hge *i, hge *step, hge *last);
24#endif
25mal_export str ITRnext_int(int *i, int *step, int *last);
26mal_export str ITRnext_sht(sht *i, sht *step, sht *last);
27mal_export str ITRnext_flt(flt *i, flt *step, flt *last);
28mal_export str ITRnext_dbl(dbl *i, dbl *step, dbl *last);
29#endif
30