Class EmptyCommandStore
java.lang.Object
org.sensorhub.impl.datastore.ReadOnlyDataStore<K,V,VF,Q>
org.sensorhub.impl.datastore.EmptyDataStore<BigId,ICommandData,ICommandStore.CommandField,CommandFilter>
org.sensorhub.api.datastore.command.EmptyCommandStore
- All Implemented Interfaces:
Map<BigId,,ICommandData> ICommandStore,IDataStore<BigId,ICommandData, ICommandStore.CommandField, CommandFilter>
public class EmptyCommandStore
extends org.sensorhub.impl.datastore.EmptyDataStore<BigId,ICommandData,ICommandStore.CommandField,CommandFilter>
implements ICommandStore
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.command.ICommandStore
ICommandStore.CommandField -
Field Summary
Fields inherited from class org.sensorhub.impl.datastore.ReadOnlyDataStore
READ_ONLY_ERROR_MSG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(ICommandData cmd) Add a command to the datastoregetStatistics(CommandStatsQuery query) Select statistics for commands 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.command.ICommandStore
filterBuilder, selectAllFilterMethods 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 java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, equals, forEach, get, getOrDefault, hashCode, merge, put, putIfAbsent, remove, remove, replace, replace, replaceAll
-
Constructor Details
-
EmptyCommandStore
public EmptyCommandStore()
-
-
Method Details
-
add
Description copied from interface:ICommandStoreAdd a command to the datastore- Specified by:
addin interfaceICommandStore- Returns:
- The auto-generated ID
-
getCommandStreams
- Specified by:
getCommandStreamsin interfaceICommandStore- Returns:
- Associated command streams store
-
getStatusReports
- Specified by:
getStatusReportsin interfaceICommandStore- Returns:
- Associated command status store
-
getStatistics
Description copied from interface:ICommandStoreSelect statistics for commands matching the query- Specified by:
getStatisticsin interfaceICommandStore- Parameters:
query- filter to select desired systems and time range- Returns:
- stream of statistics buckets. Each item represents statistics for commands recorded for a given system
-
linkTo
Description copied from interface:ICommandStoreLink this store to a feature of interest store to enable JOIN queries- Specified by:
linkToin interfaceICommandStore
-