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

Function ReadCD

catboost/libs/column_description/cd_parser.cpp:208–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206ICdProvider::~ICdProvider() = default;
207
208TVector<TColumn> ReadCD(const TPathWithScheme& path, const TCdParserDefaults& defaults) {
209 CB_ENSURE(CheckExists(path), "column description at [" << path << "] is not found");
210 THolder<NCB::ILineDataReader> reader = NCB::GetLineDataReader(path);
211 return ReadCDImpl([&reader](TString* l) -> bool { return reader->ReadLine(l); }, defaults);
212}
213
214TVector<TColumn> ReadCD(IInputStream* in, const TCdParserDefaults& defaults) {
215 CB_ENSURE(in, "in pointer is `nullptr`");

Callers 4

GetColumnsDescriptionMethod · 0.85
ReadCDForSamplerMethod · 0.85

Calls 4

CheckExistsFunction · 0.85
GetLineDataReaderFunction · 0.85
ReadCDImplFunction · 0.85
ReadLineMethod · 0.45

Tested by

no test coverage detected