Class EmptyObsStore

java.lang.Object
org.sensorhub.impl.datastore.ReadOnlyDataStore<K,V,VF,Q>
org.sensorhub.impl.datastore.EmptyDataStore<BigId,IObsData,IObsStore.ObsField,ObsFilter>
org.sensorhub.api.datastore.obs.EmptyObsStore
All Implemented Interfaces:
Map<BigId,IObsData>, IDataStore<BigId,IObsData,IObsStore.ObsField,ObsFilter>, IObsStore

public class EmptyObsStore extends org.sensorhub.impl.datastore.EmptyDataStore<BigId,IObsData,IObsStore.ObsField,ObsFilter> implements IObsStore

Helper class to implement databases that don't support all datastores

Since:
Jun 22, 2023
  • Constructor Details

    • EmptyObsStore

      public EmptyObsStore()
  • Method Details

    • getDataStreams

      public IDataStreamStore getDataStreams()
      Specified by:
      getDataStreams in interface IObsStore
      Returns:
      Interface to manage data streams
    • add

      public BigId add(IObsData obs)
      Description copied from interface: IObsStore
      Add an observation to the datastore
      Specified by:
      add in interface IObsStore
      Returns:
      The auto-generated ID
    • getStatistics

      public Stream<ObsStats> getStatistics(ObsStatsQuery query)
      Description copied from interface: IObsStore
      Select statistics for systems and FOI matching the query
      Specified by:
      getStatistics in interface IObsStore
      Parameters:
      query - filter to select desired systems and FOIs
      Returns:
      stream of statistics buckets. Each item represents statistics for observations collected for a combination of system, feature of interest, and result time.
    • linkTo

      public void linkTo(IFoiStore foiStore)
      Description copied from interface: IObsStore
      Link this store to a feature of interest store to enable JOIN queries
      Specified by:
      linkTo in interface IObsStore