Class FeatureKey
- All Implemented Interfaces:
Comparable<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 Summary
FieldsFields inherited from class org.sensorhub.api.resource.ResourceKey
internalID -
Constructor Summary
ConstructorsConstructorDescriptionFeatureKey(int scope, long internalID, Instant validStartTime) Creates a key for the version of a feature valid at a specific timeFeatureKey(BigId internalID) Creates a key for a timeless featureFeatureKey(BigId internalID, Instant validStartTime) Creates a key for the version of a feature valid at a specific time -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(FeatureKey other) booleaninthashCode()toString()Methods inherited from class org.sensorhub.api.resource.ResourceKey
getInternalID
-
Field Details
-
TIMELESS
-
validStartTime
-
-
Constructor Details
-
FeatureKey
Creates a key for a timeless feature- Parameters:
internalID- Internal ID of desired feature
-
FeatureKey
Creates a key for the version of a feature valid at a specific time- Parameters:
internalID- Internal ID of desired featurevalidStartTime- Start of feature version validity period
-
FeatureKey
Creates a key for the version of a feature valid at a specific time- Parameters:
scope- Internal ID scopeinternalID- Internal ID of desired featurevalidStartTime- Start of feature version validity period
-
-
Method Details
-
getValidStartTime
- Returns:
- The start of validity of the feature description.
If null or equal toTIMELESS, the feature will always be returned by queries containing a temporal filter
-
toString
- Overrides:
toStringin classResourceKey<FeatureKey>
-
hashCode
public int hashCode()- Overrides:
hashCodein classResourceKey<FeatureKey>
-
equals
- Overrides:
equalsin classResourceKey<FeatureKey>
-
compareTo
- Specified by:
compareToin interfaceComparable<FeatureKey>- Overrides:
compareToin classResourceKey<FeatureKey>
-