Class ResultsAdapter
java.lang.Object
com.inductiveautomation.historian.common.rpc.adapters.query.ResultsAdapter
- All Implemented Interfaces:
BinaryAdapter<Results>
,BinaryDeserializer<Results>
,BinarySerializer<Results>
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(byte[] serialized, DeserializationContext context) Decodes a byte array into aResults
object.byte[]
encode
(Results any, SerializationContext context) Encodes aResults
object into a byte array.static ResultsAdapter
Retrieves the singleton instance of theResultsAdapter
.
-
Method Details
-
getInstance
Retrieves the singleton instance of theResultsAdapter
.- Returns:
- The singleton instance of
ResultsAdapter
.
-
decode
public Results decode(byte[] serialized, DeserializationContext context) throws ProtoSerializationException Decodes a byte array into aResults
object.- Specified by:
decode
in interfaceBinaryDeserializer<Results>
- Parameters:
serialized
- The byte array containing the serializedResults
.context
- TheDeserializationContext
for the operation.- Returns:
- The deserialized
Results
object. - Throws:
ProtoSerializationException
- If an error occurs during deserialization.
-
encode
Encodes aResults
object into a byte array.- Specified by:
encode
in interfaceBinarySerializer<Results>
- Parameters:
any
- TheResults
object to encode.context
- TheSerializationContext
for the operation.- Returns:
- A byte array representing the serialized
Results
. - Throws:
ProtoSerializationException
- If an error occurs during serialization.
-