11#ifndef ROOT_RTRIVIALTDS
12#define ROOT_RTRIVIALTDS
33 std::string
AsString() {
return "trivial data source"; };
unsigned long long ULong64_t
RDataSource defines an API that RDataFrame can use to read arbitrary data formats.
std::string GetLabel()
Return a string representation of the datasource type.
std::vector< std::pair< ULong64_t, ULong64_t > > GetEntryRanges()
Return ranges of entries to distribute to tasks.
void Initialise()
Convenience method called before starting an event-loop.
std::vector< void * > GetColumnReadersImpl(std::string_view name, const std::type_info &)
type-erased vector of pointers to pointers to column values - one per slot
bool SetEntry(unsigned int slot, ULong64_t entry)
Advance the "cursors" returned by GetColumnReaders to the selected entry for a particular slot.
std::vector< std::pair< ULong64_t, ULong64_t > > fEntryRanges
bool HasColumn(std::string_view colName) const
Checks if the dataset has a certain column.
std::vector< ULong64_t * > fCounterAddr
std::vector< ULong64_t > fCounter
std::vector< std::string > fColNames
RTrivialDS(ULong64_t size, bool skipEvenEntries=false)
const std::vector< std::string > & GetColumnNames() const
Returns a reference to the collection of the dataset's column names.
void SetNSlots(unsigned int nSlots)
Inform RDataSource of the number of processing slots (i.e.
std::string GetTypeName(std::string_view) const
Type of a column as a string, e.g.
basic_string_view< char > string_view
RInterface< RDFDetail::RLoopManager, RTrivialDS > MakeTrivialDataFrame(ULong64_t size, bool skipEvenEntries=false)