@Test @Category(UnitTest.class) public void testGetMrsImageDataProviderForOverwriteWhenMissing() throws IOException { String missingResource = "DoesNotExist"; MrsImageDataProvider dp = DataProviderFactory.getMrsImageDataProvider(missingResource, AccessMode.OVERWRITE, providerProperties); Assert.assertNotNull(dp); Assert.assertFalse(HadoopFileUtils.exists(missingResource)); }
public static MrsImageDataProvider getMrsImageDataProvider(String name, AccessMode accessMode, ProviderProperties props) throws DataProviderNotFound { return getMrsImageDataProvider(name, accessMode, getBasicConfig(), props); }
DataProviderFactory { public static MrsImageDataProvider getMrsImageDataProvider(String name, AccessMode accessMode, ProviderProperties props) throws DataProviderNotFound { return getMrsImageDataProvider(name, accessMode, getBasicConfig(), props); } }
DataProviderFactory { public static MrsImageDataProvider getMrsImageDataProvider(String name, AccessMode accessMode, ProviderProperties props) throws DataProviderNotFound { return getMrsImageDataProvider(name, accessMode, getBasicConfig(), props); }  }
DataProviderFactory { public static MrsImageDataProvider getMrsImageDataProvider(String name, AccessMode accessMode, ProviderProperties props) throws DataProviderNotFound { return getMrsImageDataProvider(name, accessMode, getBasicConfig(), props); }  static void saveProviderPropertiesToConfig(ProviderProperties providerProperties,
    Configuration conf); static ProviderProperties loadProviderPropertiesFromConfig(Configuration conf); static Map<String, String> getConfigurationFromProviders(); static void setConfigurationForProviders(Map<String, String> properties); static AdHocDataProvider createAdHocDataProvider(ProviderProperties providerProperties); static AdHocDataProvider createAdHocDataProvider(Configuration conf); static AdHocDataProvider getAdHocDataProvider(String name,
    AccessMode mode,
    ProviderProperties providerProperties); static AdHocDataProvider getAdHocDataProvider(String name,
    AccessMode mode,
    Configuration conf); static String[] listImages(ProviderProperties providerProperties); static String[] listVectors(ProviderProperties providerProperties); static MrsImageDataProvider createTempMrsImageDataProvider(ProviderProperties props); static MrsImageDataProvider createTempMrsImageDataProvider(Configuration conf); static MrsImageDataProvider getMrsImageDataProvider(String name,
    AccessMode accessMode,
    ProviderProperties props); static MrsImageDataProvider getMrsImageDataProviderNoCache(String name,
    AccessMode accessMode,
    ProviderProperties props); static MrsImageDataProvider getMrsImageDataProvider(String name,
    AccessMode accessMode,
    Configuration conf); static VectorDataProvider getVectorDataProvider(String name,
    AccessMode accessMode,
    ProviderProperties providerProperties); static VectorDataProvider getVectorDataProvider(String name,
    AccessMode accessMode, Configuration conf); static void invalidateCache(); static void invalidateCache(String resource); static void delete(String resource,
    ProviderProperties providerProperties); static void addDependencies(Configuration conf); static Set<String> getDependencies(); }
DataProviderFactory { public static MrsImageDataProvider getMrsImageDataProvider(String name, AccessMode accessMode, ProviderProperties props) throws DataProviderNotFound { return getMrsImageDataProvider(name, accessMode, getBasicConfig(), props); }  static void saveProviderPropertiesToConfig(ProviderProperties providerProperties,
    Configuration conf); static ProviderProperties loadProviderPropertiesFromConfig(Configuration conf); static Map<String, String> getConfigurationFromProviders(); static void setConfigurationForProviders(Map<String, String> properties); static AdHocDataProvider createAdHocDataProvider(ProviderProperties providerProperties); static AdHocDataProvider createAdHocDataProvider(Configuration conf); static AdHocDataProvider getAdHocDataProvider(String name,
    AccessMode mode,
    ProviderProperties providerProperties); static AdHocDataProvider getAdHocDataProvider(String name,
    AccessMode mode,
    Configuration conf); static String[] listImages(ProviderProperties providerProperties); static String[] listVectors(ProviderProperties providerProperties); static MrsImageDataProvider createTempMrsImageDataProvider(ProviderProperties props); static MrsImageDataProvider createTempMrsImageDataProvider(Configuration conf); static MrsImageDataProvider getMrsImageDataProvider(String name,
    AccessMode accessMode,
    ProviderProperties props); static MrsImageDataProvider getMrsImageDataProviderNoCache(String name,
    AccessMode accessMode,
    ProviderProperties props); static MrsImageDataProvider getMrsImageDataProvider(String name,
    AccessMode accessMode,
    Configuration conf); static VectorDataProvider getVectorDataProvider(String name,
    AccessMode accessMode,
    ProviderProperties providerProperties); static VectorDataProvider getVectorDataProvider(String name,
    AccessMode accessMode, Configuration conf); static void invalidateCache(); static void invalidateCache(String resource); static void delete(String resource,
    ProviderProperties providerProperties); static void addDependencies(Configuration conf); static Set<String> getDependencies(); static final String PROVIDER_PROPERTY_USER_NAME; static final String PROVIDER_PROPERTY_USER_ROLES; }