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 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.command.ICommandStore
filterBuilder, selectAllFilter
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 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:ICommandStore
Add a command to the datastore- Specified by:
add
in interfaceICommandStore
- Returns:
- The auto-generated ID
-
getCommandStreams
- Specified by:
getCommandStreams
in interfaceICommandStore
- Returns:
- Associated command streams store
-
getStatusReports
- Specified by:
getStatusReports
in interfaceICommandStore
- Returns:
- Associated command status store
-
getStatistics
Description copied from interface:ICommandStore
Select statistics for commands matching the query- Specified by:
getStatistics
in 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:ICommandStore
Link this store to a feature of interest store to enable JOIN queries- Specified by:
linkTo
in interfaceICommandStore
-