2013-04-16 23:58:59 -04:00
|
|
|
#ifndef TOKULOADER_H
|
|
|
|
#define TOKULOADER_H
|
|
|
|
|
|
|
|
/* Copyright (c) 2007, 2008, 2009 Tokutek Inc. All rights reserved.
|
|
|
|
*
|
|
|
|
* The technology is licensed by the Massachusetts Institute of Technology,
|
|
|
|
* Rutgers State University of New Jersey, and the Research Foundation of
|
|
|
|
* State University of New York at Stony Brook under United States of America
|
|
|
|
* Serial No. 11/760379 and to the patents and/or patent applications resulting from it.
|
|
|
|
*/
|
|
|
|
|
2013-04-16 23:59:01 -04:00
|
|
|
int toku_loader_create_loader(DB_ENV *env, DB_TXN *txn, DB_LOADER **blp, DB *src_db, int N, DB *dbs[N], uint32_t db_flags[N], uint32_t dbt_flags[N], uint32_t loader_flags, void *extra);
|
2013-04-16 23:59:03 -04:00
|
|
|
int toku_loader_set_error_callback(DB_LOADER *loader, void (*error_cb)(DB *db, int i, int err, DBT *key, DBT *val, void *extra), void *extra);
|
2013-04-16 23:58:59 -04:00
|
|
|
int toku_loader_set_poll_function(DB_LOADER *loader, int (*poll_func)(void *extra, float progress));
|
|
|
|
int toku_loader_put(DB_LOADER *loader, DBT *key, DBT *val);
|
|
|
|
int toku_loader_close(DB_LOADER *loader);
|
|
|
|
int toku_loader_abort(DB_LOADER *loader);
|
|
|
|
|
|
|
|
#endif
|