Class FeatureKey

java.lang.Object
org.sensorhub.api.resource.ResourceKey<FeatureKey>
org.sensorhub.api.datastore.feature.FeatureKey
All Implemented Interfaces:
Comparable<FeatureKey>

public class FeatureKey extends ResourceKey<FeatureKey>

Immutable key object used to index features in data stores.
The key includes the feature internal ID and its validity time stamp.

Since:
Mar 19, 2018
  • Field Details

    • TIMELESS

      public static final Instant TIMELESS
    • validStartTime

      protected Instant validStartTime
  • Constructor Details

    • FeatureKey

      public FeatureKey(BigId internalID)
      Creates a key for a timeless feature
      Parameters:
      internalID - Internal ID of desired feature
    • FeatureKey

      public FeatureKey(BigId internalID, Instant validStartTime)
      Creates a key for the version of a feature valid at a specific time
      Parameters:
      internalID - Internal ID of desired feature
      validStartTime - Start of feature version validity period
    • FeatureKey

      public FeatureKey(int scope, long internalID, Instant validStartTime)
      Creates a key for the version of a feature valid at a specific time
      Parameters:
      scope - Internal ID scope
      internalID - Internal ID of desired feature
      validStartTime - Start of feature version validity period
  • Method Details