Interface ICommandStore
- All Superinterfaces:
IDataStore<BigId,
,ICommandData, ICommandStore.CommandField, CommandFilter> Map<BigId,
ICommandData>
- All Known Implementing Classes:
EmptyCommandStore
public interface ICommandStore
extends IDataStore<BigId,ICommandData,ICommandStore.CommandField,CommandFilter>
Generic interface for data stores containing commands.
Commands are organized into command streams. Each command stream contains commands sharing the same schema (i.e. record structure).
Commands retrieved by select methods are sorted by issue time.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionadd
(ICommandData cmd) Add a command to the datastoredefault CommandFilter.Builder
getStatistics
(CommandStatsQuery query) Select statistics for commands matching the queryvoid
Link this store to a feature of interest store to enable JOIN queriesdefault CommandFilter
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
-
Method Details
-
getCommandStreams
ICommandStreamStore getCommandStreams()- Returns:
- Associated command streams store
-
getStatusReports
ICommandStatusStore getStatusReports()- Returns:
- Associated command status store
-
add
Add a command to the datastore- Parameters:
cmd
-- Returns:
- The auto-generated ID
-
getStatistics
Select statistics for commands matching the query- 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
-
filterBuilder
- Returns:
- A builder for a filter compatible with this datastore
-
selectAllFilter
- Specified by:
selectAllFilter
in interfaceIDataStore<BigId,
ICommandData, ICommandStore.CommandField, CommandFilter> - Returns:
- The filter to use to select all records
-
linkTo
Link this store to a feature of interest store to enable JOIN queries- Parameters:
foiStore
-
-