-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make DataSet and DataSetRepo database agnostic
- Loading branch information
Martijn Maas
committed
Feb 8, 2018
1 parent
d1420b2
commit 1f6901b
Showing
9 changed files
with
84 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...too-instancev4/src/main/java/nl/knaw/huygens/timbuctoo/v5/dataset/EnvironmentCreator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package nl.knaw.huygens.timbuctoo.v5.dataset; | ||
|
||
public interface EnvironmentCreator { | ||
StoreProvider createStoreProvider(String userId, | ||
String dataSetId); | ||
|
||
/** | ||
* Closes and remove all the databases for a data set | ||
*/ | ||
void closeEnvironment(String ownerId, String dataSetId); | ||
|
||
void start(); | ||
|
||
void stop(); | ||
} |
35 changes: 35 additions & 0 deletions
35
timbuctoo-instancev4/src/main/java/nl/knaw/huygens/timbuctoo/v5/dataset/StoreProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package nl.knaw.huygens.timbuctoo.v5.dataset; | ||
|
||
import nl.knaw.huygens.timbuctoo.v5.dataset.exceptions.DataStoreCreationException; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.implementations.bdb.BdbRmlDataSourceStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.implementations.bdb.BdbSchemaStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.implementations.bdb.BdbTripleStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.implementations.bdb.BdbTypeNameStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.prefixstore.TypeNameStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.quadstore.QuadStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.rmldatasource.RmlDataSourceStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.schemastore.SchemaStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.truepatch.TruePatchStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.updatedperpatchstore.UpdatedPerPatchStore; | ||
import nl.knaw.huygens.timbuctoo.v5.datastores.versionstore.VersionStore; | ||
|
||
public interface StoreProvider { | ||
QuadStore createTripleStore() | ||
throws DataStoreCreationException; | ||
|
||
TypeNameStore createTypeNameStore(String rdfPrefix) | ||
throws DataStoreCreationException; | ||
|
||
SchemaStore createSchemaStore(ImportStatus importStatus) | ||
throws DataStoreCreationException; | ||
|
||
TruePatchStore createTruePatchStore() throws DataStoreCreationException; | ||
|
||
UpdatedPerPatchStore createUpdatePerPatchStore() | ||
throws DataStoreCreationException; | ||
|
||
RmlDataSourceStore createRmlDataSourceStore(ImportStatus importStatus) | ||
throws DataStoreCreationException; | ||
|
||
VersionStore createVersionStore() throws DataStoreCreationException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters