Package io.debezium.converters
Class RecordParser.MongodbRecordParser
- java.lang.Object
-
- io.debezium.converters.RecordParser
-
- io.debezium.converters.RecordParser.MongodbRecordParser
-
- Enclosing class:
- RecordParser
public static final class RecordParser.MongodbRecordParser extends RecordParser
Parser for records produced by MongoDB connectors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.debezium.converters.RecordParser
RecordParser.MongodbRecordParser, RecordParser.MysqlRecordParser, RecordParser.PostgresRecordParser, RecordParser.SqlserverRecordParser
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static StringCOLLECTION(package private) static Set<String>MONGODB_SOURCE_FIELD(package private) static StringOPERATION_ID(package private) static StringORDER(package private) static StringREPLICA_SET_NAME-
Fields inherited from class io.debezium.converters.RecordParser
SOURCE_FIELDS
-
-
Constructor Summary
Constructors Constructor Description MongodbRecordParser(org.apache.kafka.connect.data.Schema schema, org.apache.kafka.connect.data.Struct record)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetMetadata(String name)Search for metadata of the record by name, which are defined in the source field; throw a DataException if not found.-
Methods inherited from class io.debezium.converters.RecordParser
connectorType, create, data, dataSchema, op, opSchema, source, transaction, ts_ms, ts_msSchema
-
-
-
-
Field Detail
-
REPLICA_SET_NAME
static final String REPLICA_SET_NAME
- See Also:
- Constant Field Values
-
ORDER
static final String ORDER
- See Also:
- Constant Field Values
-
OPERATION_ID
static final String OPERATION_ID
- See Also:
- Constant Field Values
-
COLLECTION
static final String COLLECTION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMetadata
public Object getMetadata(String name)
Description copied from class:RecordParserSearch for metadata of the record by name, which are defined in the source field; throw a DataException if not found.- Specified by:
getMetadatain classRecordParser- Returns:
- metadata of the record
-
-