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 queryvoidLink this store to a feature of interest store to enable JOIN queriesMethods inherited from class org.sensorhub.impl.datastore.EmptyDataStore
get, getDatastoreName, selectEntriesMethods inherited from class org.sensorhub.impl.datastore.ReadOnlyDataStore
backup, clear, commit, isReadOnly, isReadSupported, isWriteSupported, put, remove, restoreMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, valuesMethods inherited from interface org.sensorhub.api.datastore.obs.IObsStore
filterBuilder, selectAllFilter, selectObservedFois, selectResultsMethods 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:
getDataStreamsin interfaceIObsStore- Returns:
- Interface to manage data streams
-
add
Description copied from interface:IObsStoreAdd an observation to the datastore -
getStatistics
Description copied from interface:IObsStoreSelect statistics for systems and FOI matching the query- Specified by:
getStatisticsin 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:IObsStoreLink this store to a feature of interest store to enable JOIN queries
-