Package: matlab.io.datastore
Add parallelization support to datastore
matlab.io.datastore.Partitionable
is an abstract mixin class that
adds parallelization support to your custom datastore for use with Parallel Computing Toolbox™ and MATLAB®
Parallel Server™.
To use this mixin class, you must inherit from
matlab.io.datastore.Partitionable
class, in addition to
inheriting from the matlab.io.Datastore
base class. Type the following syntax as the first line
of your class definition
file:
classdef MyDatastore < matlab.io.Datastore & ... matlab.io.datastore.Partitionable ... end
To add support for parallel processing to your custom datastore, you must:
Inherit from the additional class matlab.io.datastore.Partitionable
.
Define these additional methods: maxpartitions
and partition
.
For more details and steps to create your custom datastore with parallel processing support, see Develop Custom Datastore.
maxpartitions | Maximum number of partitions possible |
numpartitions | Default number of partitions |
partition | Partition a datastore |
For your custom datastore implementation, best practice is not to implement
the numpartitions
method.
datastore
| mapreduce
| matlab.io.Datastore
| matlab.io.datastore.HadoopLocationBased