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