JULEA
|
#include <jbackend.h>
Data Fields | |
JBackendType | type |
JBackendComponent | component |
JBackendFlags | flags |
gpointer | data |
union { | |
struct { | |
gboolean(* backend_init )(gchar const *, gpointer *) | |
void(* backend_fini )(gpointer) | |
gboolean(* backend_create )(gpointer, gchar const *, gchar const *, gpointer *) | |
gboolean(* backend_open )(gpointer, gchar const *, gchar const *, gpointer *) | |
gboolean(* backend_delete )(gpointer, gpointer) | |
gboolean(* backend_close )(gpointer, gpointer) | |
gboolean(* backend_status )(gpointer, gpointer, gint64 *, guint64 *) | |
gboolean(* backend_sync )(gpointer, gpointer) | |
gboolean(* backend_read )(gpointer, gpointer, gpointer, guint64, guint64, guint64 *) | |
gboolean(* backend_write )(gpointer, gpointer, gconstpointer, guint64, guint64, guint64 *) | |
gboolean(* backend_get_all )(gpointer, gchar const *, gpointer *) | |
gboolean(* backend_get_by_prefix )(gpointer, gchar const *, gchar const *, gpointer *) | |
gboolean(* backend_iterate )(gpointer, gpointer, gchar const **) | |
} object | |
struct { | |
gboolean(* backend_init )(gchar const *, gpointer *) | |
void(* backend_fini )(gpointer) | |
gboolean(* backend_batch_start )(gpointer, gchar const *, JSemantics *, gpointer *) | |
gboolean(* backend_batch_execute )(gpointer, gpointer) | |
gboolean(* backend_put )(gpointer, gpointer, gchar const *, gconstpointer, guint32) | |
gboolean(* backend_delete )(gpointer, gpointer, gchar const *) | |
gboolean(* backend_get )(gpointer, gpointer, gchar const *, gpointer *, guint32 *) | |
gboolean(* backend_get_all )(gpointer, gchar const *, gpointer *) | |
gboolean(* backend_get_by_prefix )(gpointer, gchar const *, gchar const *, gpointer *) | |
gboolean(* backend_iterate )(gpointer, gpointer, gchar const **, gconstpointer *, guint32 *) | |
} kv | |
struct { | |
gboolean(* backend_init )(gchar const *, gpointer *) | |
void(* backend_fini )(gpointer) | |
gboolean(* backend_batch_start )(gpointer, gchar const *, JSemantics *, gpointer *, GError **) | |
gboolean(* backend_batch_execute )(gpointer, gpointer, GError **) | |
gboolean(* backend_schema_create )(gpointer, gpointer, gchar const *, bson_t const *, GError **) | |
gboolean(* backend_schema_get )(gpointer, gpointer, gchar const *, bson_t *, GError **) | |
gboolean(* backend_schema_delete )(gpointer, gpointer, gchar const *, GError **) | |
gboolean(* backend_insert )(gpointer, gpointer, gchar const *, bson_t const *, bson_t *, GError **) | |
gboolean(* backend_update )(gpointer, gpointer, gchar const *, bson_t const *, bson_t const *, GError **) | |
gboolean(* backend_delete )(gpointer, gpointer, gchar const *, bson_t const *, GError **) | |
gboolean(* backend_query )(gpointer, gpointer, gchar const *, bson_t const *, gpointer *, GError **) | |
gboolean(* backend_iterate )(gpointer, gpointer, bson_t *, GError **) | |
} db | |
}; | |
union { ... } |
gboolean(* JBackend::backend_batch_execute) (gpointer, gpointer, GError **) |
gboolean(* JBackend::backend_batch_start) (gpointer, gchar const *, JSemantics *, gpointer *, GError **) |
gboolean(* JBackend::backend_close) (gpointer, gpointer) |
gboolean(* JBackend::backend_create) (gpointer, gchar const *, gchar const *, gpointer *) |
gboolean(* JBackend::backend_delete) (gpointer, gpointer, gchar const *, bson_t const *, GError **) |
Deletes data
[in] | namespace | Different use cases (e.g., "adios", "hdf5") |
[in] | name | Schema name to delete (e.g., "files") |
[in] | selector | The selector to decide which data should be updated. Points to:
|
void(* JBackend::backend_fini) (gpointer) |
gboolean(* JBackend::backend_get) (gpointer, gpointer, gchar const *, gpointer *, guint32 *) |
gboolean(* JBackend::backend_get_all) (gpointer, gchar const *, gpointer *) |
gboolean(* JBackend::backend_get_by_prefix) (gpointer, gchar const *, gchar const *, gpointer *) |
gboolean(* JBackend::backend_init) (gchar const *, gpointer *) |
gboolean(* JBackend::backend_insert) (gpointer, gpointer, gchar const *, bson_t const *, bson_t *, GError **) |
Insert data into a schema
[in] | namespace | Different use cases (e.g., "adios", "hdf5") |
[in] | name | Schema name to delete (e.g., "files") |
[in] | metadata | The data to insert. Points to:
|
[out] | id | returns the id of the inserted entry |
gboolean(* JBackend::backend_iterate) (gpointer, gpointer, bson_t *, GError **) |
Obtains metadata
backend_iterate should be called until the returned value is NULL due to no more elements found. This allows the backend to free potentially allocated caches.
[in,out] | iterator | The iterator specifying the data to retrieve |
[out] | metadata | The requested metadata initially points to:
|
gboolean(* JBackend::backend_open) (gpointer, gchar const *, gchar const *, gpointer *) |
gboolean(* JBackend::backend_put) (gpointer, gpointer, gchar const *, gconstpointer, guint32) |
gboolean(* JBackend::backend_query) (gpointer, gpointer, gchar const *, bson_t const *, gpointer *, GError **) |
Creates an iterator
[in] | namespace | Different use cases (e.g., "adios", "hdf5") |
[in] | name | Schema name to delete (e.g., "files") |
[in] | selector | The selector to decide which data should be updated. Points to:
|
[out] | iterator | The iterator which can be used later for backend_iterate |
gboolean(* JBackend::backend_read) (gpointer, gpointer, gpointer, guint64, guint64, guint64 *) |
gboolean(* JBackend::backend_schema_create) (gpointer, gpointer, gchar const *, bson_t const *, GError **) |
Create a schema
[in] | namespace | Different use cases (e.g., "adios", "hdf5") |
[in] | name | Schema name to create (e.g., "files") |
[in] | schema | The schema structure to create. Points to:
|
gboolean(* JBackend::backend_schema_delete) (gpointer, gpointer, gchar const *, GError **) |
Delete a schema
[in] | namespace | Different use cases (e.g., "adios", "hdf5") |
[in] | name | Schema name to delete (e.g., "files") |
gboolean(* JBackend::backend_schema_get) (gpointer, gpointer, gchar const *, bson_t *, GError **) |
Obtains information about a schema
[in] | namespace | Different use cases (e.g., "adios", "hdf5") |
[in] | name | Schema name to open (e.g., "files") |
[out] | schema | The schema information initially points to:
|
gboolean(* JBackend::backend_status) (gpointer, gpointer, gint64 *, guint64 *) |
gboolean(* JBackend::backend_sync) (gpointer, gpointer) |
gboolean(* JBackend::backend_update) (gpointer, gpointer, gchar const *, bson_t const *, bson_t const *, GError **) |
Updates data
[in] | namespace | Different use cases (e.g., "adios", "hdf5") |
[in] | name | Schema name to delete (e.g., "files") |
[in] | selector | The selector to decide which data should be updated. Points to:
|
[in] | metadata | The data to write. {
"var_name1": value1,
"var_name2": value2,
"var_nameN": valueN
}
|
gboolean(* JBackend::backend_write) (gpointer, gpointer, gconstpointer, guint64, guint64, guint64 *) |
JBackendComponent JBackend::component |
gpointer JBackend::data |
struct { ... } JBackend::db |
JBackendFlags JBackend::flags |
struct { ... } JBackend::kv |
struct { ... } JBackend::object |
JBackendType JBackend::type |