public class OSHDBJdbc extends OSHDBDatabase implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection |
GEOM_PRECISION, GEOM_PRECISION_TO_LONG, MAXZOOM| Constructor and Description |
|---|
OSHDBJdbc(Connection conn) |
OSHDBJdbc(String classToLoad,
String jdbcString) |
OSHDBJdbc(String classToLoad,
String jdbcString,
String user,
String pw) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<X extends OSHDBMapReducible> |
createMapReducer(Class<X> forClass)
Factory function that creates a mapReducer object of the appropriate data type class for this
oshdb backend implemenation.
|
Connection |
getConnection() |
String |
metadata(String property)
Returns metadata about the given OSHDB.
|
boolean |
multithreading() |
OSHDBJdbc |
multithreading(boolean useMultithreading) |
OSHDBJdbc |
prefix(String prefix)
Sets the "table/cache" name prefix to be used with this oshdb.
|
clearTimeout, prefix, timeout, timeoutInMilliseconds, timeoutInMillisecondsprotected Connection connection
public OSHDBJdbc(String classToLoad, String jdbcString) throws SQLException, ClassNotFoundException
SQLExceptionClassNotFoundExceptionpublic OSHDBJdbc(String classToLoad, String jdbcString, String user, String pw) throws SQLException, ClassNotFoundException
SQLExceptionClassNotFoundExceptionpublic OSHDBJdbc(Connection conn)
public OSHDBJdbc prefix(String prefix)
OSHDBDatabaseprefix in class OSHDBDatabasepublic <X extends OSHDBMapReducible> MapReducer<X> createMapReducer(Class<X> forClass)
OSHDBDatabasecreateMapReducer in class OSHDBDatabaseforClass - the data type class to iterate over in the `mapping` function of the generated
MapReducerpublic String metadata(String property)
OSHDBDatabaseFor example copyright information, currentness of the data, spatial extent, etc.
metadata in class OSHDBDatabasepublic Connection getConnection()
public OSHDBJdbc multithreading(boolean useMultithreading)
public boolean multithreading()
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2016–2020 HeiGIT. All rights reserved.