Package io.debezium.connector.mongodb
Class FieldSelector
java.lang.Object
io.debezium.connector.mongodb.FieldSelector
This filter selector is designed to determine the filter to exclude or rename fields in a document.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThis filter is designed to exclude or rename fields in a document.private static final classstatic classA builder of a field selector.private static classRepresents a field that should be excluded from or renamed in MongoDB documents.private static final classprivate static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DOT
-
COLON
-
paths
The configured exclusion/renaming patterns.
-
-
Constructor Details
-
FieldSelector
-
-
Method Details
-
builder
Returns a newbuilderfor a field selector.- Returns:
- the builder; never
null
-
fieldFilterFor
Returns the field filter for the given collection identifier.Note that the field filter is completely independent of the collection selection predicate, so it is expected that this filter be used only after the collection selection predicate determined the collection containing documents with the field(s) is to be used.
- Parameters:
id- the collection identifier, nevernull- Returns:
- the field filter, never
null
-