isSingleReadPerFile

Class: matlab.io.datastore.FileWritable
Package: matlab.io.datastore

Determine whether datastore reads whole files

Syntax

tf = isSingleReadPerFile(ds)

Description

tf = isSingleReadPerFile(ds) returns logical 1 (true) if the read operation read(ds) reads one entire file per execution. If read(ds) can read more than once from the same file, then the method returns logical 0 (false).

If your custom datastore subclasses from matlab.io.datastore.FileWritable, then it inherits a isSingleReadPerFile method that expects the custom datastore to have a property named ReadSize with the value file. If the datastore does not have this property, then you must implement your own isSingleReadPerFile method in the subclass to specialize the behavior.

Input Arguments

expand all

Input datastore, specified as a datastore object that inherits from matlab.io.datastore.FileWritable. To create a datastore object, see matlab.io.Datastore.

Attributes

Accessprotected

To learn about attributes of methods, see Method Attributes.

Introduced in R2020a