partition
Class: matlab.io.datastore.Partitionable
Namespace: matlab.io.datastore
Partition a datastore
Description
Input Arguments
Examples
More About
Tips
In your implementation of the
partition
method, you must include these steps.Before creating a partitioned datastore
subds
, create a deep copy of the original datastoreds
.At the end of the
partition
method, reset the partitioned datastoresubds
.
For a sample implementation of the
partition
method, see Add Support for Parallel Processing.When a partition of a datastore contains no readable record, the
read
method must return empty data. The non-tall dimensions of this empty data must match the non-tall dimensions of theread
method output on a partition with readable records. This requirement ensures that the behavior of thereadall
method matches the behavior of thegather
function.
Version History
Introduced in R2017b