Record Class StandardHistorianPathAdapter
java.lang.Object
java.lang.Record
com.inductiveautomation.historian.gateway.api.paths.StandardHistorianPathAdapter
- All Implemented Interfaces:
QualifiedPathAdapter
public record StandardHistorianPathAdapter(Supplier<String> systemNameSupplier)
extends Record
implements QualifiedPathAdapter
A
QualifiedPathAdapter that normalizes paths from various forms, such as driver-based or
mixed-component paths, into the order sys (system), prov (provider), tag
(tag and any remaining components). The supplier provides the system name when the path itself
has none.-
Field Summary
Fields inherited from interface QualifiedPathAdapter
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionStandardHistorianPathAdapter(Supplier<String> systemNameSupplier) Creates an instance of aStandardHistorianPathAdapterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.normalize(QualifiedPath path) Normalizes the givenQualifiedPathand returns anAdaptedQualifiedPath.static StandardHistorianPathAdapterCreates an adapter.Returns the value of thesystemNameSupplierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StandardHistorianPathAdapter
-
-
Method Details
-
of
Creates an adapter.- Parameters:
systemNameSupplier- supplies the system name- Returns:
- the adapter
-
normalize
Description copied from interface:QualifiedPathAdapterNormalizes the givenQualifiedPathand returns anAdaptedQualifiedPath. The normalization process may involve validating or modifying the input path according to specific implementation rules.- Specified by:
normalizein interfaceQualifiedPathAdapter- Parameters:
path- theQualifiedPathto normalize- Returns:
- the resulting
AdaptedQualifiedPathafter normalization - Throws:
InvalidQualifiedPathException- if the providedQualifiedPathis invalid
-
toString
-
hashCode
-
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). -
systemNameSupplier
-