public abstract class OSHDBDatabase extends OSHDB implements AutoCloseable
GEOM_PRECISION, GEOM_PRECISION_TO_LONG, MAXZOOM| Constructor and Description |
|---|
OSHDBDatabase() |
| Modifier and Type | Method and Description |
|---|---|
OSHDBDatabase |
clearTimeout()
Clears a previously set timeout for queries on this ignite oshdb backend.
|
abstract <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.
|
abstract String |
metadata(String property)
Returns metadata about the given OSHDB.
|
String |
prefix()
Returns the currently set db "table/cache" name prefix.
|
OSHDBDatabase |
prefix(String prefix)
Sets the "table/cache" name prefix to be used with this oshdb.
|
OSHDBDatabase |
timeout(double seconds)
Set a timeout for queries on this ignite oshdb backend.
|
OptionalLong |
timeoutInMilliseconds()
Gets the timeout for queries on this ignite oshdb backend, if present.
|
OSHDBDatabase |
timeoutInMilliseconds(long milliSeconds)
Set a timeout for queries on this ignite oshdb backend.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic abstract <X extends OSHDBMapReducible> MapReducer<X> createMapReducer(Class<X> forClass)
forClass - the data type class to iterate over in the `mapping` function of the generated
MapReducerpublic abstract String metadata(String property)
For example copyright information, currentness of the data, spatial extent, etc.
public OSHDBDatabase prefix(String prefix)
public String prefix()
public OSHDBDatabase timeout(double seconds)
If a query takes longer than the given time limit, a OSHDBTimeoutException will be
thrown.
seconds - time (in seconds) a query is allowed to run for.public OSHDBDatabase clearTimeout()
public OSHDBDatabase timeoutInMilliseconds(long milliSeconds)
If a query takes longer than the given time limit, a OSHDBTimeoutException will be
thrown.
milliSeconds - time (in milliseconds) a query is allowed to run for.public OptionalLong timeoutInMilliseconds()
Copyright © 2016–2020 HeiGIT. All rights reserved.