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