Vector Members and Rebuilds
Vector indexes made from the vector members of records: gxvRebuildFromMembers() (DataReel 7.4).
Overview
A data file whose records keep their vectors as vector members (MakeMember()) can have its .vix made again from the records alone, so a replicated copy never needs the .vix bytes: the copy rebuilds it from its own records (vix_rebuild).
Where the member is, as a config string (space separated): member=infohog:N (InfoHog member N) or member=offset:N (a fixed field at byte N of a POD record), and tags=A,B,C,D where each tag comes from infohog:N, offset:N (a 4-byte value) or - (0). The node id is the record's address. Rebuilt in ascending address order, the index is the same file, byte for byte, on every node. The example: vector_records.
Functions
int gxvRebuildFromMembers(const std::string &data_path, const std::string &index_path, const gxVectorIndex &like, const std::string &config, unsigned long long &records, std::string &why)Rebuilds index_path from every record of data_path (into index_path.rebuild, then renamed over it); the header comes from "like". records gets the number of records with a member. 0, or -1 with why.
struct gxvMemberSpec: int Parse(const std::string &config, std::string &why) / int Extract(const unsigned char *rec, unsigned len, const unsigned char *&member, unsigned &mlen, unsigned tags[gxvTagCount]) constParses the config; finds a record's member and tags (1 found, 0 none).