SetArchiveInputFromFile
Function Usage
In Archive mode, read data from file systems and parse the data as the input data in the archiving mode based on the feature file and index file result path set in the config file.
FeatureSource in confMap must be set to FILE, indicating that data comes from the file system. ArchiveMode must be set to ARCHIVE, indicating the archiving mode.
Prototype
APP_ERROR SetArchiveInputFromFile(const std::string &featPath, const std::string &indicesPath = "");
Parameter Description
Parameter |
Description |
|---|---|
featPath |
Path of the binary file of the input feature vector |
indicesPath |
Path of the binary file of indices of the input feature vector uint64_t. When this parameter is an empty string, indices starting from 0 are generated by default using clustering. |
Response Parameters
Data Structure |
Description |
|---|---|
APP_ERROR |
|
Parent topic: Setting Input Data