Package org.apache.pinot.serde
Class SerDe
- java.lang.Object
-
- org.apache.pinot.serde.SerDe
-
@NotThreadSafe public class SerDe extends Object
Thrift based serialization-deserialization. Note: We did not make this a serialization protocol (thrift, kryo, protobuf...) agnostic interface as the underlying requests/response is itself specific to protocol (thrift vs protobuf). It does not make sense to encapsulate the serialization logic from it. In future if you want to move away from thrift, you would have to regenerate (or redefine) request/response classes anyways and implement the SerDe for it. Please note the implementation is not thread-safe as underlying thrift serialization is not threadsafe.
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.LoggerLOGGER
-
Constructor Summary
Constructors Constructor Description SerDe(org.apache.thrift.protocol.TProtocolFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandeserialize(org.apache.thrift.TBase obj, byte[] payload)byte[]serialize(org.apache.thrift.TBase obj)
-