Class: matlab.io.datastore.Partitionable
Package: matlab.io.datastore
Partition a datastore
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 datastore
ds
.
At the end of the partition
method, reset the
partitioned datastore subds
.
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
the read
method output on a partition with readable records.
This requirement ensures that the behavior of the readall
method matches the
behavior of the gather
function.