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
@ThreadSafe private static final class FieldSelector.RemovePath extends FieldSelector.Path
-
-
Field Summary
-
Fields inherited from class io.debezium.connector.mongodb.FieldSelector.Path
field, fieldNodes, namespacePattern
-
-
Constructor Summary
Constructors Modifier Constructor Description privateRemovePath(Pattern namespacePattern, String[] fieldNodes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) FieldSelector.FieldNameAndValuegenerateNewFieldName(String[] fieldNodes, Object value)Generates a new field name for the given value.(package private) voidmodifyField(org.bson.Document doc, String field)Modifies the field in the document used for read, insert and full update operations.(package private) voidmodifyFieldWithDotNotation(org.bson.Document 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, modify, toString
-
-
-
-
Method Detail
-
modifyField
void modifyField(org.bson.Document doc, String field)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
void modifyFieldWithDotNotation(org.bson.Document doc, String field)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
FieldSelector.FieldNameAndValue generateNewFieldName(String[] fieldNodes, Object value)
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
-
-