-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #470 from GIScience/rework_tag-translator
Rework tag translator
- Loading branch information
Showing
66 changed files
with
1,045 additions
and
955 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
8 changes: 4 additions & 4 deletions
8
...ts/TestMapReduceOSHDBIgniteLocalPeek.java → ...ts/MapReduceOSHDBIgniteLocalPeekTest.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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
package org.heigit.ohsome.oshdb.api.tests; | ||
|
||
import org.heigit.ohsome.oshdb.api.db.OSHDBIgnite; | ||
import static org.heigit.ohsome.oshdb.api.db.OSHDBIgnite.ComputeMode.LOCAL_PEEK; | ||
|
||
/** | ||
* {@inheritDoc} | ||
* | ||
* <p>Runs the tests using the "local peek" Ignite backend.</p> | ||
*/ | ||
class TestMapReduceOSHDBIgniteLocalPeek extends TestMapReduceOSHDBIgnite { | ||
class MapReduceOSHDBIgniteLocalPeekTest extends MapReduceOSHDBIgniteTest { | ||
/** | ||
* Creates the test runner using the ignite localpeak backend. | ||
* | ||
* @throws Exception if something goes wrong | ||
*/ | ||
TestMapReduceOSHDBIgniteLocalPeek() throws Exception { | ||
super(new OSHDBIgnite(ignite).computeMode(OSHDBIgnite.ComputeMode.LOCAL_PEEK)); | ||
MapReduceOSHDBIgniteLocalPeekTest() throws Exception { | ||
super(oshdb -> oshdb.computeMode(LOCAL_PEEK)); | ||
} | ||
} |
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
10 changes: 5 additions & 5 deletions
10
...ts/TestMapReduceOSHDBIgniteScanQuery.java → ...ts/MapReduceOSHDBIgniteScanQueryTest.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
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
oshdb-api/src/main/java/org/heigit/ohsome/oshdb/api/db/H2Support.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 org.heigit.ohsome.oshdb.api.db; | ||
|
||
import java.nio.file.Path; | ||
|
||
public class H2Support { | ||
|
||
private H2Support() { | ||
} | ||
|
||
public static String pathToUrl(Path path) { | ||
var absolutePath = path.toAbsolutePath().toString(); | ||
absolutePath = absolutePath.replaceAll("\\.mv\\.db$", ""); | ||
return String.format("jdbc:h2:%s;ACCESS_MODE_DATA=r", absolutePath); | ||
} | ||
} |
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
Oops, something went wrong.