Class ExtractNewDocumentState.FieldReference
java.lang.Object
io.debezium.connector.mongodb.transforms.ExtractNewDocumentState.FieldReference
- Enclosing class:
- ExtractNewDocumentState<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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringdetermineStruct(String simpleFieldName) Determine the struct hosting the given unqualified field.(package private) static List<ExtractNewDocumentState.FieldReference>fromConfiguration(String fieldPrefix, String addHeadersConfig) (package private) String(package private) org.apache.kafka.connect.data.SchemagetSchema(org.apache.kafka.connect.data.Schema originalRecordSchema) (package private) ObjectgetValue(org.apache.kafka.connect.data.Struct originalRecordValue)
-
Field Details
-
struct
The struct ("source", "transaction") hosting the given field, ornullfor "op" and "ts_ms". -
field
The simple field name. -
newFieldName
The name for the outgoing attribute/field, e.g. "__op" or "__source_ts_ms".
-
-
Constructor Details
-
FieldReference
-
-
Method Details
-
determineStruct
Determine the struct hosting the given unqualified field. -
fromConfiguration
static List<ExtractNewDocumentState.FieldReference> fromConfiguration(String fieldPrefix, String addHeadersConfig) -
getNewFieldName
String getNewFieldName() -
getValue
-
getSchema
org.apache.kafka.connect.data.Schema getSchema(org.apache.kafka.connect.data.Schema originalRecordSchema)
-