Class LogMinerEventSerializer
java.lang.Object
io.debezium.connector.oracle.logminer.processor.ehcache.serialization.AbstractEhcacheSerializer<LogMinerEvent>
io.debezium.connector.oracle.logminer.processor.ehcache.serialization.LogMinerEventSerializer
- All Implemented Interfaces:
org.ehcache.spi.serialization.Serializer<LogMinerEvent>
An Ehcache
Serializer implementation for handling LogMinerEvent and subtypes.- Author:
- Chris Cranford
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<Class<?>, Constructor<?>> private final Map<String, SerdesProvider<?>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate LogMinerEventconstructObject(Class<?> clazz, DeserializationContext context) protected LogMinerEventdeserialize(SerializerInputStream stream) Deserializes the data within the input stream.private Constructor<?> getMatchingConstructor(Class<?> clazz, Class<?>[] parameterTypes) private Class<?>[]getParameterTypes(List<Object> values) private SerdesProvider<?> getSerdesByClassName(String clazzName) private static booleanisWrapperPrimitiveMatch(Class<?> paramType, Class<?> argType) private <T> voidregisterSerdes(SerdesProvider<T> serdesProvider) private voidprotected voidserialize(LogMinerEvent object, SerializerOutputStream stream) Serialize the specified object to the output stream.Methods inherited from class io.debezium.connector.oracle.logminer.processor.ehcache.serialization.AbstractEhcacheSerializer
equals, read, serialize
-
Field Details
-
primitiveToWrapperMap
-
serdesProviders
-
constructorCache
-
-
Constructor Details
-
LogMinerEventSerializer
-
-
Method Details
-
serialize
Description copied from class:AbstractEhcacheSerializerSerialize the specified object to the output stream.- Specified by:
serializein classAbstractEhcacheSerializer<LogMinerEvent>- Parameters:
object- the object to be serialized, should not benullstream- the output stream to write to, should not benull- Throws:
IOException- when a write operation fails on the output stream
-
deserialize
Description copied from class:AbstractEhcacheSerializerDeserializes the data within the input stream.- Specified by:
deserializein classAbstractEhcacheSerializer<LogMinerEvent>- Parameters:
stream- the input stream to read, should not benull- Returns:
- the object deserialized from the input stream, should not be
null - Throws:
IOException- when a read operation fails on the input stream
-
registerSerdesProviders
private void registerSerdesProviders() -
registerSerdes
-
getSerdesByClassName
-
constructObject
-
getParameterTypes
-
getMatchingConstructor
-
isWrapperPrimitiveMatch
-