hyle-source/store.h(3)libhyle-source

NAME

hyle-source/store.h - Pluggable storage driver interface for hyle-source.

SYNOPSIS

#include <stddef.h>
#include <stdint.h>

Data Structures

struct hyle_source_store_ops_t

Pluggable storage driver operations for hyle source persistence.

struct hyle_source_store_s

Storage instance bundling operations and driver-specific state.

Functions

const hyle_source_store_ops_t * hyle_source_store_fs_ops (void)

Filesystem storage driver ops (var/<dataset>/<id>/ layout).

hyle_source_store_t hyle_source_store_fs (const char *items_path)

Construct a filesystem store.

const hyle_source_store_ops_t * hyle_source_store_mem_ops (void)

In-memory storage driver ops (tests and ephemeral datasets).

hyle_source_store_t hyle_source_store_mem (void)

Construct an in-memory store.

const hyle_source_store_ops_t * hyle_source_store_tok_ops (void)

Tokenized binary storage driver ops (record.tok / .tok layout).

hyle_source_store_t hyle_source_store_tok (const char *items_path)

Construct a tokenized binary store.

Detailed Description

Pluggable storage driver interface for hyle-source.

Decouples persistence (filesystem, in-memory, or a database) from the hyle dataset query and indexing engine.

Function Documentation

hyle_source_store_t hyle_source_store_fs (const char * items_path)

Construct a filesystem store.

Parameters

items_path Base items directory.

Returns

A filesystem-backed store instance.

const hyle_source_store_ops_t * hyle_source_store_fs_ops (void )

Filesystem storage driver ops (var/<dataset>/<id>/ layout).

Returns

The filesystem driver ops table.

hyle_source_store_t hyle_source_store_mem (void )

Construct an in-memory store.

Returns

An in-memory store instance.

const hyle_source_store_ops_t * hyle_source_store_mem_ops (void )

In-memory storage driver ops (tests and ephemeral datasets).

Returns

The in-memory driver ops table.

hyle_source_store_t hyle_source_store_tok (const char * items_path)

Construct a tokenized binary store.

Parameters

items_path Base items directory.

Returns

A tokenized store instance.

const hyle_source_store_ops_t * hyle_source_store_tok_ops (void )

Tokenized binary storage driver ops (record.tok / .tok layout).

Returns

The tokenized driver ops table.

Author

Generated automatically by Doxygen for libhyle-source from the source code.