Package org.apache.druid.common.config
Interface ConfigSerde<T>
-
public interface ConfigSerde<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
deserialize(byte[] bytes)
byte[]
serialize(T obj)
String
serializeToString(T obj, boolean skipNull)
Serialize object to String
-
-
-
Method Detail
-
serialize
byte[] serialize(T obj)
-
serializeToString
String serializeToString(T obj, boolean skipNull)
Serialize object to String- Parameters:
obj
- to be serializeskipNull
- if true, then skip serialization of any field with null value. This can be used to reduce the size of the resulting String.- Returns:
- String serialization of the input
-
deserialize
T deserialize(byte[] bytes)
-
-