Package org.sensorhub.api.datastore.obs
Class EmptyObsStore
java.lang.Object
org.sensorhub.impl.datastore.ReadOnlyDataStore<K,V,VF,Q>
org.sensorhub.impl.datastore.EmptyDataStore<BigId,IObsData,IObsStore.ObsField,ObsFilter>
org.sensorhub.api.datastore.obs.EmptyObsStore
- All Implemented Interfaces:
Map<BigId,
,IObsData> IDataStore<BigId,
,IObsData, IObsStore.ObsField, ObsFilter> IObsStore
public class EmptyObsStore
extends org.sensorhub.impl.datastore.EmptyDataStore<BigId,IObsData,IObsStore.ObsField,ObsFilter>
implements IObsStore
Helper class to implement databases that don't support all datastores
- Since:
- Jun 22, 2023
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.sensorhub.api.datastore.obs.IObsStore
IObsStore.ObsField
-
Field Summary
Fields inherited from class org.sensorhub.impl.datastore.ReadOnlyDataStore
READ_ONLY_ERROR_MSG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an observation to the datastoregetStatistics
(ObsStatsQuery query) Select statistics for systems and FOI matching the queryvoid
Link this store to a feature of interest store to enable JOIN queriesMethods inherited from class org.sensorhub.impl.datastore.EmptyDataStore
get, getDatastoreName, selectEntries
Methods inherited from class org.sensorhub.impl.datastore.ReadOnlyDataStore
backup, clear, commit, isReadOnly, isReadSupported, isWriteSupported, put, remove, restore
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.sensorhub.api.datastore.IDataStore
backup, commit, containsKey, containsValue, countMatchingEntries, entrySet, getDatastoreName, getNumRecords, isEmpty, isReadOnly, keySet, putAll, removeEntries, restore, select, select, select, selectEntries, selectEntries, selectEntries, selectKeys, size, values
Methods inherited from interface org.sensorhub.api.datastore.obs.IObsStore
filterBuilder, selectAllFilter, selectObservedFois, selectResults
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, equals, forEach, get, getOrDefault, hashCode, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAll
-
Constructor Details
-
EmptyObsStore
public EmptyObsStore()
-
-
Method Details
-
getDataStreams
- Specified by:
getDataStreams
in interfaceIObsStore
- Returns:
- Interface to manage data streams
-
add
Description copied from interface:IObsStore
Add an observation to the datastore -
getStatistics
Description copied from interface:IObsStore
Select statistics for systems and FOI matching the query- Specified by:
getStatistics
in interfaceIObsStore
- Parameters:
query
- filter to select desired systems and FOIs- Returns:
- stream of statistics buckets. Each item represents statistics for observations collected for a combination of system, feature of interest, and result time.
-
linkTo
Description copied from interface:IObsStore
Link this store to a feature of interest store to enable JOIN queries
-