Class AggregatedQueryKeyAdapter
java.lang.Object
com.inductiveautomation.historian.common.rpc.adapters.query.AggregatedQueryKeyAdapter
- All Implemented Interfaces:
BinaryAdapter<AggregatedQueryKey>, BinaryDeserializer<AggregatedQueryKey>, BinarySerializer<AggregatedQueryKey>
Protobuf binary adapter for
AggregatedQueryKey.-
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] serialized, DeserializationContext context) DecodesAggregatedQueryKeyfrom its serialized form.byte[]encode(AggregatedQueryKey any, SerializationContext context) EncodesAggregatedQueryKeyto bytes.static AggregatedQueryKeyAdapterReturns the singleton instance.
-
Method Details
-
getInstance
Returns the singleton instance. -
decode
public AggregatedQueryKey decode(byte[] serialized, DeserializationContext context) throws ProtoSerializationException DecodesAggregatedQueryKeyfrom its serialized form.- Specified by:
decodein interfaceBinaryDeserializer<AggregatedQueryKey>- Parameters:
serialized- the serialized valuecontext- the deserialization context- Returns:
- the decoded value
- Throws:
ProtoSerializationException- if decoding fails
-
encode
public byte[] encode(AggregatedQueryKey any, SerializationContext context) throws ProtoSerializationException EncodesAggregatedQueryKeyto bytes.- Specified by:
encodein interfaceBinarySerializer<AggregatedQueryKey>- Parameters:
any- the value to encodecontext- the serialization context- Returns:
- the serialized value
- Throws:
ProtoSerializationException- if encoding fails
-