Function trx::append_dpv_to_zip

Function Documentation

void trx::append_dpv_to_zip(const std::string &path, const std::map<std::string, TypedArray> &dpv, TrxCompression compression = TrxCompression::None, bool overwrite = true)

Append per-vertex data arrays to an existing TRX zip archive.

Opens the archive without truncating it, writes one “dpv/{name}.{dtype}” entry per array (or “dpv/{name}.{ncols}.{dtype}” for multi-column arrays), then commits. header.json is not modified; dpv entries are discovered at load time by directory scan.

Parameters:
  • path – Path to an existing TRX zip file (.trx).

  • dpv – Map from array name to TypedArray (e.g. AnyTrxFile::data_per_vertex).

  • compression – Compression method for new entries (default: TrxCompression::None).

  • overwrite – If false, existing entries with the same name are skipped (default: true).

Throws:

TrxIOError – on any zip failure.