62 void InferType(
const std::string &,
unsigned int);
63 std::vector<std::string>
ParseColumns(
const std::string &);
64 size_t ParseValue(
const std::string &, std::vector<std::string> &,
size_t);
unsigned long long ULong64_t
RDataFrame data source class for reading CSV files.
RCsvDS(std::string_view fileName, bool readHeaders=true, char delimiter=',', Long64_t linesChunkSize=-1LL)
Constructor to create a CSV RDataSource for RDataFrame.
std::map< std::string, ColType_t > fColTypes
static TRegexp falseRegex
void FillRecord(const std::string &, Record_t &)
ColType_t GetType(std::string_view colName) const
std::vector< std::vector< double > > fDoubleEvtValues
void InferType(const std::string &, unsigned int)
size_t ParseValue(const std::string &, std::vector< std::string > &, size_t)
void GenerateHeaders(size_t)
std::vector< std::vector< void * > > fColAddresses
std::string GetLabel()
Return a string representation of the datasource type.
const Long64_t fLinesChunkSize
std::vector< std::string > fHeaders
static TRegexp doubleRegex2
ULong64_t fEntryRangesRequested
const std::vector< std::string > & GetColumnNames() const
Returns a reference to the collection of the dataset's column names.
ULong64_t fProcessedLines
std::vector< void * > GetColumnReadersImpl(std::string_view, const std::type_info &)
type-erased vector of pointers to pointers to column values - one per slot
void InferColTypes(std::vector< std::string > &)
std::vector< std::vector< Long64_t > > fLong64EvtValues
static const std::map< ColType_t, std::string > fgColTypeMap
std::vector< Record_t > fRecords
static TRegexp doubleRegex3
std::vector< std::pair< ULong64_t, ULong64_t > > GetEntryRanges()
Return ranges of entries to distribute to tasks.
bool SetEntry(unsigned int slot, ULong64_t entry)
Advance the "cursors" returned by GetColumnReaders to the selected entry for a particular slot.
bool HasColumn(std::string_view colName) const
Checks if the dataset has a certain column.
static TRegexp doubleRegex1
void SetNSlots(unsigned int nSlots)
Inform RDataSource of the number of processing slots (i.e.
std::string GetTypeName(std::string_view colName) const
Type of a column as a string, e.g.
std::vector< std::string > ParseColumns(const std::string &)
void FillHeaders(const std::string &)
void Finalise()
Convenience method called after concluding an event-loop.
std::vector< std::vector< std::string > > fStringEvtValues
std::vector< std::deque< bool > > fBoolEvtValues
std::list< ColType_t > fColTypesList
RDataSource defines an API that RDataFrame can use to read arbitrary data formats.
std::vector< void * > Record_t
ROOT's RDataFrame offers a high level interface for analyses of data stored in TTrees,...
Regular expression class.
basic_string_view< char > string_view
RDataFrame MakeCsvDataFrame(std::string_view fileName, bool readHeaders=true, char delimiter=',', Long64_t linesChunkSize=-1LL)
Factory method to create a CSV RDataFrame.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...