Class PersistentComplexPointSerializer
java.lang.Object
com.inductiveautomation.historian.gateway.api.storeforward.serialization.AbstractPointSerializer<PersistentComplexPoint, ComplexPointProto.ComplexPointPB>
com.inductiveautomation.historian.gateway.api.storeforward.serialization.PersistentComplexPointSerializer
- All Implemented Interfaces:
PersistentSerializer<PersistentComplexPoint, ComplexPointProto.ComplexPointPB>
public final class PersistentComplexPointSerializer
extends AbstractPointSerializer<PersistentComplexPoint, ComplexPointProto.ComplexPointPB>
Serializes
PersistentComplexPoint to/from the generic
common.protobuf.ComplexPointPB wire format. The metadata / annotation point is converted with
the shared HistorianProtoCodec primitives; proto and JSON forms are derived from the
binary form by AbstractPointSerializer.- Since:
- 2027.02
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the serializer bound to theComplexPointPBproto type. -
Method Summary
Modifier and TypeMethodDescriptionfromBytes(byte[] bytes, @Nullable DeserializationContext context) Deserializes the given byte array into a TPersistentDataobject.@NonNull Class<PersistentComplexPoint> The TPersistentDataclass that is compatible with this serializer.byte[]toBytes(PersistentComplexPoint data, @Nullable SerializationContext context) Serializes the given TPersistentDatainto a byte array.Methods inherited from class AbstractPointSerializer
fromJson, fromJsonElement, fromProtoMessage, toJson, toJsonElement, toProtoMessage
-
Constructor Details
-
PersistentComplexPointSerializer
public PersistentComplexPointSerializer()Creates the serializer bound to theComplexPointPBproto 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 PersistentComplexPoint 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.
-