Interface ICommandStatusStore
- All Superinterfaces:
IDataStore<BigId,
,ICommandStatus, ICommandStatusStore.CommandStatusField, CommandStatusFilter> Map<BigId,
ICommandStatus>
- All Known Implementing Classes:
EmptyCommandStatusStore
public interface ICommandStatusStore
extends IDataStore<BigId,ICommandStatus,ICommandStatusStore.CommandStatusField,CommandStatusFilter>
Generic interface for data stores containing commands status.
Status reports retrieved by select methods are sorted by report time.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionadd
(ICommandStatus rec) Add a status report to the datastore.default CommandStatusFilter.Builder
default CommandStatusFilter
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
-
add
Add a status report to the datastore.- Parameters:
rec
- Status report- Returns:
- The auto-generated ID
-
filterBuilder
- Returns:
- A builder for a filter compatible with this datastore
-
selectAllFilter
- Specified by:
selectAllFilter
in interfaceIDataStore<BigId,
ICommandStatus, ICommandStatusStore.CommandStatusField, CommandStatusFilter> - Returns:
- The filter to use to select all records
-