Package io.debezium.processors.reselect
Class ReselectColumnsPostProcessor
java.lang.Object
io.debezium.processors.reselect.ReselectColumnsPostProcessor
- All Implemented Interfaces:
BeanRegistryAware,PostProcessor,AutoCloseable
@Incubating
public class ReselectColumnsPostProcessor
extends Object
implements PostProcessor, BeanRegistryAware
An implementation of the Debezium
PostProcessor contract that allows for the re-selection of
columns that are populated with the unavailable value placeholder or that the user wishes to have
re-queried with the latest state if the column's value happens to be null.- Author:
- Chris Cranford
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JdbcConnectionprivate static final org.slf4j.Loggerprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate booleanprivate RelationalDatabaseSchemaprivate Stringprivate ByteBufferprivate Stringprivate ValueConverterProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidApply the post processor to the supplied key and value.voidclose()Close any resourcesvoidConfigure the post processor.private ObjectgetConvertedValue(Column column, org.apache.kafka.connect.data.Field field, Object value) getRequiredColumnSelections(TableId tableId, org.apache.kafka.connect.data.Struct after) private TableIdgetTableIdFromSource(org.apache.kafka.connect.data.Struct source) voidinjectBeanRegistry(BeanRegistry beanRegistry) Callback to inject the bean registry.private booleanisUnavailableValueHolder(org.apache.kafka.connect.data.Field field, Object value) private booleanisUnavailableValueHolder(org.apache.kafka.connect.data.Schema schema, Object value)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
RESELECT_COLUMNS_INCLUDE_LIST
- See Also:
-
RESELECT_COLUMNS_EXCLUDE_LIST
- See Also:
-
RESELECT_UNAVAILABLE_VALUES
- See Also:
-
RESELECT_NULL_VALUES
- See Also:
-
RESELECT_USE_EVENT_KEY
- See Also:
-
selector
-
reselectNullValues
private boolean reselectNullValues -
reselectUseEventKeyFields
private boolean reselectUseEventKeyFields -
jdbcConnection
-
valueConverterProvider
-
schema
-
connectorConfig
-
-
Constructor Details
-
ReselectColumnsPostProcessor
public ReselectColumnsPostProcessor()
-
-
Method Details
-
configure
Description copied from interface:PostProcessorConfigure the post processor.- Specified by:
configurein interfacePostProcessor- Parameters:
properties- map of configurable properties
-
close
public void close()Description copied from interface:PostProcessorClose any resources- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePostProcessor
-
apply
Description copied from interface:PostProcessorApply the post processor to the supplied key and value.- Specified by:
applyin interfacePostProcessor- Parameters:
messageKey- the event's key, may benullvalue- the event's value, may benull
-
injectBeanRegistry
Description copied from interface:BeanRegistryAwareCallback to inject the bean registry.- Specified by:
injectBeanRegistryin interfaceBeanRegistryAware- Parameters:
beanRegistry- the bean registry
-
getRequiredColumnSelections
-
getConvertedValue
-
getTableIdFromSource
-