Record Class StandardCollectionContext
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.storage.realtime.StandardCollectionContext
- All Implemented Interfaces:
CollectionContext
public record StandardCollectionContext(ImmutablePropertySet properties)
extends Record
implements CollectionContext
The standard
CollectionContext, usable for both streaming and batch collection.-
Nested Class Summary
Nested classes/interfaces inherited from interface CollectionContext
CollectionContext.Builder, CollectionContext.StandardProperties -
Constructor Summary
ConstructorsConstructorDescriptionStandardCollectionContext(ImmutablePropertySet properties) Creates an instance of aStandardCollectionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.<T> Optional<T> final inthashCode()Returns a hash code value for this object.booleanhasProperty(Property<?> key) booleanisEmpty()Returns whether this context has no properties, or only default ones.Returns the value of thepropertiesrecord component.@NonNull StringtoString()Returns a string representation of this record class.Methods inherited from interface CollectionContext
collectionId, collectionInterval, collectionSource, collectionTime, isHeartbeat, valueOrigin
-
Constructor Details
-
StandardCollectionContext
Creates an instance of aStandardCollectionContextrecord class.- Parameters:
properties- the value for thepropertiesrecord component
-
-
Method Details
-
hasProperty
- Specified by:
hasPropertyin interfaceCollectionContext
-
getValue
- Specified by:
getValuein interfaceCollectionContext
-
getProperties
- Specified by:
getPropertiesin interfaceCollectionContext
-
isEmpty
public boolean isEmpty()Description copied from interface:CollectionContextReturns whether this context has no properties, or only default ones.- Specified by:
isEmptyin interfaceCollectionContext- Returns:
truefor an empty context.
-
toString
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-