Class PersistentChangePointSerializer
java.lang.Object
com.inductiveautomation.historian.gateway.api.storeforward.serialization.AbstractPointSerializer<PersistentChangePoint, ChangePointProto.ChangePointPB>
com.inductiveautomation.historian.gateway.api.storeforward.serialization.PersistentChangePointSerializer
- All Implemented Interfaces:
PersistentSerializer<PersistentChangePoint, ChangePointProto.ChangePointPB>
public final class PersistentChangePointSerializer
extends AbstractPointSerializer<PersistentChangePoint, ChangePointProto.ChangePointPB>
Serializes
PersistentChangePoint to/from the generic
common.protobuf.ChangePointPB wire format, handling both source-change and annotation-change
points with HistorianProtoCodec, the same encoder RPC and replication use. Proto and JSON
forms are derived from the binary form by AbstractPointSerializer.- Since:
- 2027.02
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the serializer bound to theChangePointPBproto type. -
Method Summary
Modifier and TypeMethodDescriptionfromBytes(byte[] bytes, @Nullable DeserializationContext context) Deserializes the given byte array into a TPersistentDataobject.@NonNull Class<PersistentChangePoint> The TPersistentDataclass that is compatible with this serializer.byte[]toBytes(PersistentChangePoint data, @Nullable SerializationContext context) Serializes the given TPersistentDatainto a byte array.Methods inherited from class AbstractPointSerializer
fromJson, fromJsonElement, fromProtoMessage, toJson, toJsonElement, toProtoMessage
-
Constructor Details
-
PersistentChangePointSerializer
public PersistentChangePointSerializer()Creates the serializer bound to theChangePointPBproto type.
-
-
Method Details
-
toBytes
Description copied from interface:PersistentSerializerSerializes the given TPersistentDatainto a byte array.- Parameters:
data- The TPersistentDatato serialize.context- The serialization context to use for serialization.- Returns:
- The serialized data as a byte array.
-
fromBytes
public PersistentChangePoint fromBytes(byte[] bytes, @Nullable DeserializationContext context) throws DeserializeException Description copied from interface:PersistentSerializerDeserializes the given byte array into a TPersistentDataobject.- Parameters:
bytes- The byte array to deserialize.context- The deserialization context to use for deserialization.- Returns:
- The deserialized persistent data object.
- Throws:
DeserializeException- If an error occurs during deserialization.
-
getCompatibleClass
Description copied from interface:PersistentSerializerThe TPersistentDataclass that is compatible with this serializer.- Returns:
- The T
PersistentDataclass.
-