Class tguf::TGUFBuilder
ClassList > tguf > TGUFBuilder
High-performance writer for creating TGUF datasets on disk. Uses an internal buffer strategy to minimize disk I/O.
#include <tguf.h>
Public Functions
| Type | Name |
|---|---|
| TGUFBuilder (const TGUFSchema & schema) |
|
| auto | append_edges (const Batch & batch) const Appends a batch of edges to the persistent store. |
| auto | append_labels (const torch::Tensor & n_id, const torch::Tensor & time, const torch::Tensor & target) const Appends a batch of label events to the persistent store. |
| auto | append_node_feats (const torch::Tensor & n_id, const torch::Tensor & node_feat) const Appends a batch of static node features to the persistent store. |
| auto | finalize () Finalizes the .tguf file, writing headers and flushing buffers. |
| ~TGUFBuilder () |
Public Functions Documentation
function TGUFBuilder
explicit tguf::TGUFBuilder::TGUFBuilder (
const TGUFSchema & schema
)
function append_edges
Appends a batch of edges to the persistent store.
auto tguf::TGUFBuilder::append_edges (
const Batch & batch
) const
function append_labels
Appends a batch of label events to the persistent store.
auto tguf::TGUFBuilder::append_labels (
const torch::Tensor & n_id,
const torch::Tensor & time,
const torch::Tensor & target
) const
function append_node_feats
Appends a batch of static node features to the persistent store.
auto tguf::TGUFBuilder::append_node_feats (
const torch::Tensor & n_id,
const torch::Tensor & node_feat
) const
function finalize
Finalizes the .tguf file, writing headers and flushing buffers.
auto tguf::TGUFBuilder::finalize ()
function ~TGUFBuilder
tguf::TGUFBuilder::~TGUFBuilder ()
The documentation for this class was generated from the following file include/tguf.h