Search in sources :

Example 1 with GeoWaveGTDataStoreFactory

use of org.locationtech.geowave.adapter.vector.plugin.GeoWaveGTDataStoreFactory in project geowave by locationtech.

the class BaseDataStoreTest method createDataStore.

protected DataStore createDataStore() throws IOException, GeoWavePluginException {
    final Map<String, Serializable> params = new HashMap<>();
    params.put("gwNamespace", "test_" + getClass().getName() + "_" + name.getMethodName());
    final StoreFactoryFamilySpi storeFactoryFamily = new MemoryStoreFactoryFamily();
    // delete existing data
    new GeoWavePluginConfig(storeFactoryFamily, params).getDataStore().delete(QueryBuilder.newBuilder().build());
    return new GeoWaveGTDataStoreFactory(storeFactoryFamily).createNewDataStore(params);
}
Also used : GeoWavePluginConfig(org.locationtech.geowave.adapter.vector.plugin.GeoWavePluginConfig) Serializable(java.io.Serializable) StoreFactoryFamilySpi(org.locationtech.geowave.core.store.StoreFactoryFamilySpi) MemoryStoreFactoryFamily(org.locationtech.geowave.core.store.memory.MemoryStoreFactoryFamily) HashMap(java.util.HashMap) GeoWaveGTDataStoreFactory(org.locationtech.geowave.adapter.vector.plugin.GeoWaveGTDataStoreFactory)

Aggregations

Serializable (java.io.Serializable)1 HashMap (java.util.HashMap)1 GeoWaveGTDataStoreFactory (org.locationtech.geowave.adapter.vector.plugin.GeoWaveGTDataStoreFactory)1 GeoWavePluginConfig (org.locationtech.geowave.adapter.vector.plugin.GeoWavePluginConfig)1 StoreFactoryFamilySpi (org.locationtech.geowave.core.store.StoreFactoryFamilySpi)1 MemoryStoreFactoryFamily (org.locationtech.geowave.core.store.memory.MemoryStoreFactoryFamily)1