gusucode.com > bigdata 工具箱 matlab源码程序 > bigdata/+matlab/+bigdata/+internal/+executor/NonSplittableDatastorePartition.m
%NonSplittableDatastorePartition % A partition that is based on a non-splittable datastore. % % This has the ability to construct a datastore for the current partition. % Copyright 2016 The MathWorks, Inc. classdef (Sealed) NonSplittableDatastorePartition < handle properties (SetAccess = immutable) % The original datastore used to create this partition. OriginalDatastore; % The index of this partition with the total number of partitions. PartitionIndex = 1; % The number of partitions in the strategy. NumPartitions = 1; end methods %CREATEDATASTORE Create a datastore containing all of the data %associated with this partition. function ds = createDatastore(obj) ds = copy(obj.OriginalDatastore); reset(ds); end end methods % The main constructor. function obj = NonSplittableDatastorePartition(originalDatastore) obj.OriginalDatastore = originalDatastore; end end end