public class OSHDBIgnite extends OSHDBDatabase implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
OSHDBIgnite.ComputeMode |
GEOM_PRECISION, GEOM_PRECISION_TO_LONG, MAXZOOM| Constructor and Description |
|---|
OSHDBIgnite() |
OSHDBIgnite(File igniteConfig)
Opens a connection to oshdb data stored on an Ignite cluster.
|
OSHDBIgnite(org.apache.ignite.Ignite ignite) |
OSHDBIgnite(String igniteConfigFilePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
OSHDBIgnite.ComputeMode |
computeMode()
Gets the set compute mode.
|
OSHDBIgnite |
computeMode(OSHDBIgnite.ComputeMode computeMode)
Sets the compute mode.
|
<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.
|
org.apache.ignite.Ignite |
getIgnite() |
String |
metadata(String property)
Returns metadata about the given OSHDB.
|
Optional<org.apache.ignite.lang.IgniteRunnable> |
onClose()
Gets the onClose callback.
|
OSHDBIgnite |
onClose(org.apache.ignite.lang.IgniteRunnable action)
Sets a callback to be executed on all ignite workers after the query has been finished.
|
OSHDBIgnite |
prefix(String prefix)
Sets the "table/cache" name prefix to be used with this oshdb.
|
clearTimeout, prefix, timeout, timeoutInMilliseconds, timeoutInMillisecondspublic OSHDBIgnite()
public OSHDBIgnite(org.apache.ignite.Ignite ignite)
public OSHDBIgnite(String igniteConfigFilePath)
public OSHDBIgnite(File igniteConfig)
igniteConfig - ignite configuration filepublic OSHDBIgnite 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 org.apache.ignite.Ignite getIgnite()
public void close()
close in interface AutoCloseablepublic OSHDBIgnite computeMode(OSHDBIgnite.ComputeMode computeMode)
computeMode - the compute mode to be used in calculations on this oshdb backendpublic OSHDBIgnite.ComputeMode computeMode()
public OSHDBIgnite onClose(org.apache.ignite.lang.IgniteRunnable action)
This can be used to close connections to (temporary) databases that were used to store or retrieve intermediate data.
action - the callback to execute after a query is donepublic Optional<org.apache.ignite.lang.IgniteRunnable> onClose()
Copyright © 2016–2020 HeiGIT. All rights reserved.