Class EmptyFeatureBaseStore<V extends IFeature,VF extends IFeatureStoreBase.FeatureField,F extends FeatureFilterBase<? super V>>
java.lang.Object
org.sensorhub.impl.datastore.ReadOnlyDataStore<K,V,VF,Q>
org.sensorhub.impl.datastore.EmptyDataStore<K,V,VF,F>
org.sensorhub.api.datastore.resource.EmptyResourceStore<FeatureKey,V,VF,F>
org.sensorhub.api.datastore.feature.EmptyFeatureBaseStore<V,VF,F>
- Type Parameters:
V
- Feature typeVF
- Feature field enum typeF
- Feature filter type
- All Implemented Interfaces:
Map<FeatureKey,
,V> IFeatureStoreBase<V,
,VF, F> IDataStore<FeatureKey,
,V, VF, F> IResourceStore<FeatureKey,
V, VF, F>
- Direct Known Subclasses:
EmptyDeploymentStore
,EmptyFoiStore
,EmptyProcedureStore
,EmptySystemStore
public abstract class EmptyFeatureBaseStore<V extends IFeature,VF extends IFeatureStoreBase.FeatureField,F extends FeatureFilterBase<? super V>>
extends EmptyResourceStore<FeatureKey,V,VF,F>
implements IFeatureStoreBase<V,VF,F>
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.feature.IFeatureStoreBase
IFeatureStoreBase.FeatureField
Nested classes/interfaces inherited from interface org.sensorhub.api.datastore.resource.IResourceStore
IResourceStore.ResourceField
-
Field Summary
Fields inherited from class org.sensorhub.impl.datastore.ReadOnlyDataStore
READ_ONLY_ERROR_MSG
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a new feature to the store, generating a new key for it, and also add it as a child of the specified parentGet a feature's parent IDMethods inherited from class org.sensorhub.api.datastore.resource.EmptyResourceStore
add
Methods 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.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 org.sensorhub.api.datastore.feature.IFeatureStoreBase
add, contains, contains, filterBuilder, getCurrentVersion, getCurrentVersion, getCurrentVersionEntry, getCurrentVersionEntry, getCurrentVersionKey, getCurrentVersionKey, getLatestEntry, getNumFeatures, remove
Methods inherited from interface org.sensorhub.api.datastore.resource.IResourceStore
selectAllFilter
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
-
EmptyFeatureBaseStore
public EmptyFeatureBaseStore()
-
-
Method Details
-
add
Description copied from interface:IFeatureStoreBase
Add a new feature to the store, generating a new key for it, and also add it as a child of the specified parent- Specified by:
add
in interfaceIFeatureStoreBase<V extends IFeature,
VF extends IFeatureStoreBase.FeatureField, F extends FeatureFilterBase<? super V>> - Parameters:
parentID
- Internal ID of parent featurevalue
- New feature object- Returns:
- The newly allocated key (internal ID)
- Throws:
DataStoreException
- if a feature with the same UID and valid time already exists, or if the parent ID is unknown
-
getParent
Description copied from interface:IFeatureStoreBase
Get a feature's parent ID- Specified by:
getParent
in interfaceIFeatureStoreBase<V extends IFeature,
VF extends IFeatureStoreBase.FeatureField, F extends FeatureFilterBase<? super V>> - Parameters:
internalID
- Internal ID of feature- Returns:
- Internal ID of parent feature or null if no feature with the given ID was found or the feature has no parent
-
getFeaturesBbox
- Specified by:
getFeaturesBbox
in interfaceIFeatureStoreBase<V extends IFeature,
VF extends IFeatureStoreBase.FeatureField, F extends FeatureFilterBase<? super V>> - Returns:
- Overall bounding rectangle of all features contained in this data store
-