Class AggregateDescriptorAdapter
java.lang.Object
com.inductiveautomation.historian.common.rpc.adapters.query.AggregateDescriptorAdapter
- All Implemented Interfaces:
BinaryAdapter<AggregateDescriptor>, BinaryDeserializer<AggregateDescriptor>, BinarySerializer<AggregateDescriptor>
public final class AggregateDescriptorAdapter
extends Object
implements BinaryAdapter<AggregateDescriptor>
Protobuf binary adapter for
AggregateDescriptor, using the AggregateDescriptorProto.AggregateDescriptorPB
schema. An AggregateId travels as its AggregateId.value(), a LocalizedString through LocalizedStringAdapter (keeping its bundle key), and a ParameterSchema through ParameterSchemaAdapter.-
Method Summary
Modifier and TypeMethodDescriptiondecode(byte[] serialized, DeserializationContext context) byte[]encode(AggregateDescriptor src, SerializationContext context) static AggregateDescriptorAdapter
-
Method Details
-
getInstance
-
encode
public byte[] encode(AggregateDescriptor src, SerializationContext context) throws ProtoSerializationException - Specified by:
encodein interfaceBinarySerializer<AggregateDescriptor>- Throws:
ProtoSerializationException
-
decode
public AggregateDescriptor decode(byte[] serialized, DeserializationContext context) throws ProtoSerializationException - Specified by:
decodein interfaceBinaryDeserializer<AggregateDescriptor>- Throws:
ProtoSerializationException
-