Class JSONMetadataSerdeSimpleType<T>
java.lang.Object
org.apache.pulsar.metadata.cache.impl.JSONMetadataSerdeSimpleType<T>
- All Implemented Interfaces:
MetadataSerde<T>
-
Constructor Summary
ConstructorsConstructorDescriptionJSONMetadataSerdeSimpleType(com.fasterxml.jackson.databind.JavaType typeRef) -
Method Summary
-
Constructor Details
-
JSONMetadataSerdeSimpleType
public JSONMetadataSerdeSimpleType(com.fasterxml.jackson.databind.JavaType typeRef)
-
-
Method Details
-
serialize
Description copied from interface:MetadataSerdeSerialize the object into a byte array.- Specified by:
serializein interfaceMetadataSerde<T>- Parameters:
path- the path of the object on the metadata storevalue- the object instance- Returns:
- a byte array of the serialized version
- Throws:
IOException- if the serialization fails
-
deserialize
Description copied from interface:MetadataSerdeSerialize the object from a byte array.- Specified by:
deserializein interfaceMetadataSerde<T>- Parameters:
path- the path of the object on the metadata storecontent- the content as stored on metadata storestat- theStatmetadata for the object- Returns:
- the deserialized object
- Throws:
IOException- if the deserialization fails
-