15 namespace Experimental {
46 void InferType(
const std::string &,
unsigned int);
47 std::vector<std::string>
ParseColumns(
const std::string &);
48 size_t ParseValue(
const std::string &, std::vector<std::string> &,
size_t);
std::vector< std::string > fHeaders
basic_string_view< char > string_view
Namespace for new ROOT classes and functions.
Regular expression class.
void SetNSlots(unsigned int nSlots)
Inform TDataSource of the number of processing slots (i.e.
std::vector< std::deque< bool > > fBoolEvtValues
void InferType(const std::string &, unsigned int)
void SetEntry(unsigned int slot, ULong64_t entry)
Advance the "cursors" returned by GetColumnReaders to the selected entry for a particular slot...
std::vector< std::vector< std::string > > fStringEvtValues
static TRegexp doubleRegex2
bool HasColumn(std::string_view colName) const
Checks if the dataset has a certain column.
void FillHeaders(const std::string &)
void FillRecord(const std::string &, Record &)
std::vector< std::vector< Long64_t > > fLong64EvtValues
void Initialise()
Convenience method called before starting an event-loop.
std::vector< void * > Record
std::vector< std::vector< void * > > fColAddresses
void InferColTypes(std::vector< std::string > &)
TDataFrame data source class for reading CSV files.
std::vector< std::vector< double > > fDoubleEvtValues
TDataSource defines an API that TDataFrame can use to read arbitrary data formats.
TDataFrame MakeCsvDataFrame(std::string_view fileName, bool readHeaders=true, char delimiter=',')
Factory method to create a CSV TDataFrame.
std::vector< Record > fRecords
std::vector< void * > GetColumnReadersImpl(std::string_view, const std::type_info &)
type-erased vector of pointers to pointers to column values - one per slot
std::vector< std::pair< ULong64_t, ULong64_t > > fEntryRanges
std::vector< std::string > ParseColumns(const std::string &)
size_t ParseValue(const std::string &, std::vector< std::string > &, size_t)
std::vector< std::pair< ULong64_t, ULong64_t > > GetEntryRanges()
Return ranges of entries to distribute to tasks.
TCsvDS(std::string_view fileName, bool readHeaders=true, char delimiter=',')
Constructor to create a CSV TDataSource for TDataFrame.
void GenerateHeaders(size_t)
unsigned long long ULong64_t
std::list< std::string > fColTypesList
static TRegexp doubleRegex1
ROOT's TDataFrame offers a high level interface for analyses of data stored in TTrees.
std::map< std::string, std::string > fColTypes
std::string GetTypeName(std::string_view colName) const
Type of a column as a string, e.g.
static TRegexp falseRegex
const std::vector< std::string > & GetColumnNames() const
Returns a reference to the collection of the dataset's column names.