@Test public void testGetDataStore() throws GoraException { DataStore<?, ?> dataStore = DataStoreFactory.getDataStore( "org.apache.gora.mock.store.MockDataStore", String.class, MockPersistent.class, conf); assertNotNull(dataStore); }
public static <D extends DataStore<K,T>, K, T extends Persistent> D getDataStore( Class<D> dataStoreClass, Class<K> keyClass, Class<T> persistentClass, Configuration conf) throws GoraException { return createDataStore(dataStoreClass, keyClass, persistentClass, conf, createProps(), null); }
DataStoreFactory { public static <D extends DataStore<K,T>, K, T extends Persistent> D getDataStore( Class<D> dataStoreClass, Class<K> keyClass, Class<T> persistentClass, Configuration conf) throws GoraException { return createDataStore(dataStoreClass, keyClass, persistentClass, conf, createProps(), null); } }
DataStoreFactory { public static <D extends DataStore<K,T>, K, T extends Persistent> D getDataStore( Class<D> dataStoreClass, Class<K> keyClass, Class<T> persistentClass, Configuration conf) throws GoraException { return createDataStore(dataStoreClass, keyClass, persistentClass, conf, createProps(), null); } private  DataStoreFactory(); }
DataStoreFactory { public static <D extends DataStore<K,T>, K, T extends Persistent> D getDataStore( Class<D> dataStoreClass, Class<K> keyClass, Class<T> persistentClass, Configuration conf) throws GoraException { return createDataStore(dataStoreClass, keyClass, persistentClass, conf, createProps(), null); } private  DataStoreFactory(); static Properties createProps(); static D createDataStore(Class<D> dataStoreClass
      , Class<K> keyClass, Class<T> persistent, Configuration conf); static D createDataStore(Class<D> dataStoreClass , Class<K> keyClass, 
      Class<T> persistent, Configuration conf, String schemaName); static D createDataStore(Class<D> dataStoreClass, Class<K> keyClass
      , Class<T> persistent, Configuration conf, Properties properties, String schemaName); static D createDataStore(Class<D> dataStoreClass
      , Class<K> keyClass, Class<T> persistent, Configuration conf, Properties properties); static D getDataStore( Class<D> dataStoreClass, Class<K> keyClass,
      Class<T> persistentClass, Configuration conf); @SuppressWarnings("unchecked") static DataStore<K, T> getDataStore(
      String dataStoreClass, Class<K> keyClass, Class<T> persistentClass, Configuration conf); @SuppressWarnings({ "unchecked" }) static DataStore<K, T> getDataStore(
      String dataStoreClass, String keyClass, String persistentClass, Configuration conf); @SuppressWarnings({ "unchecked" }) static DataStore<K, T> getDataStore(
      String keyClass, String persistentClass, Properties props, Configuration conf); @SuppressWarnings({ "unchecked" }) static DataStore<K, T> getDataStore(
      String dataStoreClass, String keyClass, String persistentClass, Properties props, Configuration conf); @SuppressWarnings("unchecked") static DataStore<K, T> getDataStore(
      Class<K> keyClass, Class<T> persistent, Configuration conf); @SuppressWarnings("unchecked") static DataStore<K, T> getDataStore(
          Class<K> keyClass, Class<T> persistent, Configuration conf, boolean isCacheEnabled); static String findProperty(Properties properties
      , DataStore<?, ?> store, String baseKey, String defaultValue); static String findPropertyOrDie(Properties properties
      , DataStore<?, ?> store, String baseKey); static boolean findBooleanProperty(Properties properties
      , DataStore<?, ?> store, String baseKey, String defaultValue); static boolean getAutoCreateSchema(Properties properties
      , DataStore<?,?> store); static String getInputPath(Properties properties, DataStore<?,?> store); static String getOutputPath(Properties properties, DataStore<?,?> store); static String getMappingFile(Properties properties, DataStore<?,?> store
      , String defaultValue); static String getDefaultDataStore(Properties properties); static String getDefaultSchemaName(Properties properties, DataStore<?,?> store); static void setDefaultSchemaName(Properties properties, String schemaName); static void setDefaultSchemaName(Properties properties, Class<D> dataStoreClass, String schemaName); }
DataStoreFactory { public static <D extends DataStore<K,T>, K, T extends Persistent> D getDataStore( Class<D> dataStoreClass, Class<K> keyClass, Class<T> persistentClass, Configuration conf) throws GoraException { return createDataStore(dataStoreClass, keyClass, persistentClass, conf, createProps(), null); } private  DataStoreFactory(); static Properties createProps(); static D createDataStore(Class<D> dataStoreClass
      , Class<K> keyClass, Class<T> persistent, Configuration conf); static D createDataStore(Class<D> dataStoreClass , Class<K> keyClass, 
      Class<T> persistent, Configuration conf, String schemaName); static D createDataStore(Class<D> dataStoreClass, Class<K> keyClass
      , Class<T> persistent, Configuration conf, Properties properties, String schemaName); static D createDataStore(Class<D> dataStoreClass
      , Class<K> keyClass, Class<T> persistent, Configuration conf, Properties properties); static D getDataStore( Class<D> dataStoreClass, Class<K> keyClass,
      Class<T> persistentClass, Configuration conf); @SuppressWarnings("unchecked") static DataStore<K, T> getDataStore(
      String dataStoreClass, Class<K> keyClass, Class<T> persistentClass, Configuration conf); @SuppressWarnings({ "unchecked" }) static DataStore<K, T> getDataStore(
      String dataStoreClass, String keyClass, String persistentClass, Configuration conf); @SuppressWarnings({ "unchecked" }) static DataStore<K, T> getDataStore(
      String keyClass, String persistentClass, Properties props, Configuration conf); @SuppressWarnings({ "unchecked" }) static DataStore<K, T> getDataStore(
      String dataStoreClass, String keyClass, String persistentClass, Properties props, Configuration conf); @SuppressWarnings("unchecked") static DataStore<K, T> getDataStore(
      Class<K> keyClass, Class<T> persistent, Configuration conf); @SuppressWarnings("unchecked") static DataStore<K, T> getDataStore(
          Class<K> keyClass, Class<T> persistent, Configuration conf, boolean isCacheEnabled); static String findProperty(Properties properties
      , DataStore<?, ?> store, String baseKey, String defaultValue); static String findPropertyOrDie(Properties properties
      , DataStore<?, ?> store, String baseKey); static boolean findBooleanProperty(Properties properties
      , DataStore<?, ?> store, String baseKey, String defaultValue); static boolean getAutoCreateSchema(Properties properties
      , DataStore<?,?> store); static String getInputPath(Properties properties, DataStore<?,?> store); static String getOutputPath(Properties properties, DataStore<?,?> store); static String getMappingFile(Properties properties, DataStore<?,?> store
      , String defaultValue); static String getDefaultDataStore(Properties properties); static String getDefaultSchemaName(Properties properties, DataStore<?,?> store); static void setDefaultSchemaName(Properties properties, String schemaName); static void setDefaultSchemaName(Properties properties, Class<D> dataStoreClass, String schemaName); static final Logger log; static final String GORA_DEFAULT_PROPERTIES_FILE; static final String GORA_DEFAULT_DATASTORE_KEY; static final String GORA_DEFAULT_CACHE_DATASTORE_KEY; static final String GORA; static final String DATASTORE; static final String AUTO_CREATE_SCHEMA; static final String INPUT_PATH; static final String OUTPUT_PATH; static final String MAPPING_FILE; static final String SCHEMA_NAME; }