DelayedDatasetBase.Rd
Base R6 class to handle a dataset that can queue execute operations on it
This is an abstract class. See DelayedDatasetRAM and DelayedDatasetDisk for specific implementations.
This class is not exported, but if you want to use it reach us at https://github.com/sipss/GCIMS/issues/ and we will export it.
sampleNames
The character vector with unique sample names (virtual method)
realize()
Execute all the queued operations
new()
Create a new object, initialize the slots
DelayedDatasetBase$new(sample_class = NULL)
registerOptimization()
The list of queued operations are usually processed sequentially over each sample when the delayed dataset is realized.
In some cases we want to operate on the list of queued operations before processing them, for instance to remove redundant operations or change their order, to improve performance.
Write a function that takes and returns a list of queued operations when used as follows:
And call obj$registerOptimization(your_function)
to register it, so every time
obj$realize()
is called, the list of queued operations will be passed to your function
and optimized accordingly.
You can register as many optimizations as you like.
appendDelayedOp()
Queues an operation to the dataset so it will run afterwards
operation
A DelayedOperation object
getSample()
Get a sample from the dataset