47 std::unique_ptr<ROOT::Internal::RRawFile>
fCsvFile;
69 void InferType(
const std::string &,
unsigned int);
70 std::vector<std::string>
ParseColumns(
const std::string &);
71 size_t ParseValue(
const std::string &, std::vector<std::string> &,
size_t);
78 RCsvDS(std::string_view fileName,
bool readHeaders =
true,
char delimiter =
',',
Long64_t linesChunkSize = -1LL);
84 std::string
GetTypeName(std::string_view colName)
const;
85 bool HasColumn(std::string_view colName)
const;
unsigned long long ULong64_t
The RRawFile provides read-only access to local and remote files.
RDataFrame data source class for reading CSV files.
std::map< std::string, ColType_t > fColTypes
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)
static const TRegexp fgTrueRegex
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
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
static const TRegexp fgDoubleRegex2
std::vector< Record_t > fRecords
std::vector< std::pair< ULong64_t, ULong64_t > > GetEntryRanges()
Return ranges of entries to distribute to tasks.
static const TRegexp fgFalseRegex
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 const TRegexp fgDoubleRegex3
void SetNSlots(unsigned int nSlots)
Inform RDataSource of the number of processing slots (i.e.
static const TRegexp fgIntRegex
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 &)
std::unique_ptr< ROOT::Internal::RRawFile > fCsvFile
static const TRegexp fgDoubleRegex1
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.
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...