Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Internal::ML::RBatchSink Class Referenceabstract

Writes RFlat2DMatrix batches to disk letting RDataLoaderEngine::Save() stay agnostic to the output format.

Definition at line 50 of file RBatchSink.hxx.

Public Member Functions

 RBatchSink (const RBatchSink &)=delete
 
 RBatchSink (RBatchSink &&)=delete
 
virtual ~RBatchSink ()=default
 
virtual void Commit ()=0
 Flush everything to disk once after the last batch.
 
void FillBatch (const RFlat2DMatrix &batch)
 Write every row of batch.
 
RBatchSinkoperator= (const RBatchSink &)=delete
 
RBatchSinkoperator= (RBatchSink &&)=delete
 

Protected Member Functions

 RBatchSink (std::vector< RColumnLayout > layout)
 
virtual void FillRow (const float *row)=0
 Copy one row of fRowWidth floats into the writer's buffers and write the entry.
 

Protected Attributes

std::vector< RColumnLayoutfLayout
 
std::size_t fRowWidth {}
 

#include <ROOT/ML/RBatchSink.hxx>

Inheritance diagram for ROOT::Experimental::Internal::ML::RBatchSink:
[legend]

Constructor & Destructor Documentation

◆ RBatchSink() [1/3]

ROOT::Experimental::Internal::ML::RBatchSink::RBatchSink ( std::vector< RColumnLayout > layout)
inlineexplicitprotected

Definition at line 55 of file RBatchSink.hxx.

◆ RBatchSink() [2/3]

ROOT::Experimental::Internal::ML::RBatchSink::RBatchSink ( const RBatchSink & )
delete

◆ RBatchSink() [3/3]

ROOT::Experimental::Internal::ML::RBatchSink::RBatchSink ( RBatchSink && )
delete

◆ ~RBatchSink()

virtual ROOT::Experimental::Internal::ML::RBatchSink::~RBatchSink ( )
virtualdefault

Member Function Documentation

◆ Commit()

virtual void ROOT::Experimental::Internal::ML::RBatchSink::Commit ( )
pure virtual

Flush everything to disk once after the last batch.

Implemented in ROOT::Experimental::Internal::ML::RTTreeBatchSink, and ROOT::Experimental::Internal::ML::RNTupleBatchSink.

◆ FillBatch()

void ROOT::Experimental::Internal::ML::RBatchSink::FillBatch ( const RFlat2DMatrix & batch)

Write every row of batch.

Definition at line 25 of file RBatchSink.cxx.

◆ FillRow()

virtual void ROOT::Experimental::Internal::ML::RBatchSink::FillRow ( const float * row)
protectedpure virtual

Copy one row of fRowWidth floats into the writer's buffers and write the entry.

Implemented in ROOT::Experimental::Internal::ML::RTTreeBatchSink, and ROOT::Experimental::Internal::ML::RNTupleBatchSink.

◆ operator=() [1/2]

RBatchSink & ROOT::Experimental::Internal::ML::RBatchSink::operator= ( const RBatchSink & )
delete

◆ operator=() [2/2]

RBatchSink & ROOT::Experimental::Internal::ML::RBatchSink::operator= ( RBatchSink && )
delete

Member Data Documentation

◆ fLayout

std::vector<RColumnLayout> ROOT::Experimental::Internal::ML::RBatchSink::fLayout
protected

Definition at line 52 of file RBatchSink.hxx.

◆ fRowWidth

std::size_t ROOT::Experimental::Internal::ML::RBatchSink::fRowWidth {}
protected

Definition at line 53 of file RBatchSink.hxx.

Libraries for ROOT::Experimental::Internal::ML::RBatchSink:

The documentation for this class was generated from the following files: