Package io.debezium.transforms
Class ExtractNewRecordState.FieldReference
java.lang.Object
io.debezium.transforms.ExtractNewRecordState.FieldReference
- Enclosing class:
- ExtractNewRecordState<R extends org.apache.kafka.connect.connector.ConnectRecord<R>>
Represents a field that should be added to the outgoing record as a header
attribute or struct field.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static String
determineStruct
(String simpleFieldName) Determines the struct hosting the given unqualified field.(package private) static List<ExtractNewRecordState.FieldReference>
fromConfiguration
(String fieldPrefix, String addHeadersConfig) (package private) org.apache.kafka.connect.data.Schema
getSchema
(org.apache.kafka.connect.data.Schema originalRecordSchema) (package private) Object
getValue
(org.apache.kafka.connect.data.Struct originalRecordValue)
-
Field Details
-
struct
The struct ("source", "transaction") hosting the given field, ornull
for "op" and "ts_ms". -
field
The simple field name. -
newField
The name for the outgoing attribute/field, e.g. "__op" or "__source_ts_ms" when the prefix is "__"
-
-
Constructor Details
-
FieldReference
-
-
Method Details
-
determineStruct
Determines the struct hosting the given unqualified field. -
fromConfiguration
static List<ExtractNewRecordState.FieldReference> fromConfiguration(String fieldPrefix, String addHeadersConfig) -
getNewField
-
getValue
-
getSchema
org.apache.kafka.connect.data.Schema getSchema(org.apache.kafka.connect.data.Schema originalRecordSchema)
-