#include "iter.h"
#include "system.h"
#include "block.h"
#include "constants.h"
#include "reader.h"
#include "reftable-error.h"
int iterator_seek(struct reftable_iterator *it, struct reftable_record *want)
{ … }
int iterator_next(struct reftable_iterator *it, struct reftable_record *rec)
{ … }
static int empty_iterator_seek(void *arg UNUSED, struct reftable_record *want UNUSED)
{ … }
static int empty_iterator_next(void *arg UNUSED, struct reftable_record *rec UNUSED)
{ … }
static void empty_iterator_close(void *arg UNUSED)
{ … }
static struct reftable_iterator_vtable empty_vtable = …;
void iterator_set_empty(struct reftable_iterator *it)
{ … }
static void filtering_ref_iterator_close(void *iter_arg)
{ … }
static int filtering_ref_iterator_seek(void *iter_arg,
struct reftable_record *want)
{ … }
static int filtering_ref_iterator_next(void *iter_arg,
struct reftable_record *rec)
{ … }
static struct reftable_iterator_vtable filtering_ref_iterator_vtable = …;
void iterator_from_filtering_ref_iterator(struct reftable_iterator *it,
struct filtering_ref_iterator *fri)
{ … }
static void indexed_table_ref_iter_close(void *p)
{ … }
static int indexed_table_ref_iter_next_block(struct indexed_table_ref_iter *it)
{ … }
static int indexed_table_ref_iter_seek(void *p UNUSED,
struct reftable_record *want UNUSED)
{ … }
static int indexed_table_ref_iter_next(void *p, struct reftable_record *rec)
{ … }
int indexed_table_ref_iter_new(struct indexed_table_ref_iter **dest,
struct reftable_reader *r, uint8_t *oid,
int oid_len, uint64_t *offsets, int offset_len)
{ … }
static struct reftable_iterator_vtable indexed_table_ref_iter_vtable = …;
void iterator_from_indexed_table_ref_iter(struct reftable_iterator *it,
struct indexed_table_ref_iter *itr)
{ … }
void reftable_iterator_destroy(struct reftable_iterator *it)
{ … }
int reftable_iterator_seek_ref(struct reftable_iterator *it,
const char *name)
{ … }
int reftable_iterator_next_ref(struct reftable_iterator *it,
struct reftable_ref_record *ref)
{ … }
int reftable_iterator_seek_log_at(struct reftable_iterator *it,
const char *name, uint64_t update_index)
{ … }
int reftable_iterator_seek_log(struct reftable_iterator *it,
const char *name)
{ … }
int reftable_iterator_next_log(struct reftable_iterator *it,
struct reftable_log_record *log)
{ … }