function isit = isaDatastore(matFile)
% This function will dig into an input MAT file to see if it contains a datastore 
% object which subclasses matlab.io.datastore.mixin.HadoopFileBasedSupport 
%
% It is used by the Compiler UI to validate the datastore file
ld = load(matFile);
f = fieldnames(ld);
isit = false;
for idx = 1:length(f)
 if matlab.io.datastore.internal.shim.isHadoopFileBased(ld.(f{idx}))
     isit = true;
     return;
 end
end

