MCPcopy Create free account
hub / github.com/catboost/catboost / AddFirstLine

Method AddFirstLine

catboost/libs/data/async_row_processor.h:39–43  ·  view source on GitHub ↗

sometimes we need to separately process first data, but add it to usual processing as well

Source from the content-addressed store, hash-verified

37
38 // sometimes we need to separately process first data, but add it to usual processing as well
39 void AddFirstLine(TData&& firstLine) {
40 CB_ENSURE(!FirstLineInReadBuffer, "TAsyncRowProcessor: double call to AddFirstLine");
41 ReadBuffer[0] = std::move(firstLine);
42 FirstLineInReadBuffer = true;
43 }
44
45 /*
46 * readFunc should be of type 'bool(TData* data)',

Callers 2

TLibSvmDataLoaderMethod · 0.80
TCBDsvDataLoaderMethod · 0.80

Calls 1

moveFunction · 0.50

Tested by

no test coverage detected