matlab.io.datastore.Partitionable Class
Namespace: matlab.io.datastore
Add parallelization support to datastore
Description
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
andpartition
.
For more details and steps to create your custom datastore with parallel processing support, see Develop Custom Datastore.
Methods
maxpartitions | Maximum number of partitions possible |
numpartitions | Default number of partitions |
partition | Partition a datastore |
Examples
Tips
For your custom datastore implementation, best practice is not to implement the
numpartitions
method.
Version History
Introduced in R2017b
See Also
mapreduce
| datastore
| matlab.io.datastore.HadoopLocationBased
| matlab.io.Datastore
Topics
- Develop Custom Datastore
- Tall Arrays for Out-of-Memory Data
- Partition a Datastore in Parallel (Parallel Computing Toolbox)