Package io.debezium.connector.mongodb
Class FieldSelector.RemovePath
java.lang.Object
io.debezium.connector.mongodb.FieldSelector.Path
io.debezium.connector.mongodb.FieldSelector.RemovePath
- Enclosing class:
- FieldSelector
-
Field Summary
Fields inherited from class io.debezium.connector.mongodb.FieldSelector.Path
field, fieldNodes, namespacePattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) StringgenerateNewFieldName(String fieldName) Generates a new field name.(package private) FieldSelector.FieldNameAndValuegenerateNewFieldName(String[] fieldNodes, Object value) Generates a new field name for the given value.(package private) voidmodifyField(Map<String, Object> doc, String field) Modifies the field in the document used for read, insert and full update operations.(package private) voidmodifyFieldWithDotNotation(Map<String, Object> doc, String field) Immediately modifies the field that uses the dot notation like'a.b'in the document used for set and unset update operations.Methods inherited from class io.debezium.connector.mongodb.FieldSelector.Path
checkFieldExists, matches, matchesPath, modify, toString
-
Constructor Details
-
RemovePath
-
-
Method Details
-
modifyField
Description copied from class:FieldSelector.PathModifies the field in the document used for read, insert and full update operations.- Specified by:
modifyFieldin classFieldSelector.Path- Parameters:
doc- the document to modify fieldfield- the modified field
-
modifyFieldWithDotNotation
Description copied from class:FieldSelector.PathImmediately modifies the field that uses the dot notation like'a.b'in the document used for set and unset update operations.- Specified by:
modifyFieldWithDotNotationin classFieldSelector.Path- Parameters:
doc- the document to modify fieldfield- the modified field
-
generateNewFieldName
Description copied from class:FieldSelector.PathGenerates a new field name for the given value.- Specified by:
generateNewFieldNamein classFieldSelector.Path- Parameters:
fieldNodes- the field nodesvalue- the field value- Returns:
- a new field name for the given value
-
generateNewFieldName
Description copied from class:FieldSelector.PathGenerates a new field name.- Specified by:
generateNewFieldNamein classFieldSelector.Path- Parameters:
fieldName- the original field name- Returns:
- a new field name
-