| 243 | } |
| 244 | |
| 245 | void SetTimestamps( |
| 246 | const TPathWithScheme& timestampsPath, |
| 247 | ui32 objectCount, |
| 248 | TDatasetSubset loadSubset, |
| 249 | IDatasetVisitor* visitor |
| 250 | ) { |
| 251 | DumpMemUsage("After data read"); |
| 252 | if (timestampsPath.Inited()) { |
| 253 | auto maybeGroupIds = visitor->GetGroupIds(); |
| 254 | CB_ENSURE(maybeGroupIds, "Cannot load group timestamps for a dataset without groups"); |
| 255 | TVector<ui64> groupTimestamps = ReadGroupTimestamps( |
| 256 | timestampsPath, |
| 257 | *maybeGroupIds, |
| 258 | objectCount, |
| 259 | loadSubset |
| 260 | ); |
| 261 | visitor->SetTimestamps(std::move(groupTimestamps)); |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | TVector<TString> LoadFeatureNames(const TPathWithScheme& featureNamesPath) { |
| 266 | TVector<TString> featureNames; |
no test coverage detected