Class FieldSelector

java.lang.Object
io.debezium.connector.mongodb.FieldSelector

@ThreadSafe public final class FieldSelector extends Object
This filter selector is designed to determine the filter to exclude or rename fields in a document.
  • Field Details

    • DOT

      private static final Pattern DOT
    • COLON

      private static final Pattern COLON
    • paths

      private final List<FieldSelector.Path> paths
      The configured exclusion/renaming patterns.
  • Constructor Details

  • Method Details

    • builder

      public static FieldSelector.FieldSelectorBuilder builder()
      Returns a new builder for a field selector.
      Returns:
      the builder; never null
    • fieldFilterFor

      public FieldSelector.FieldFilter fieldFilterFor(CollectionId id)
      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, never null
      Returns:
      the field filter, never null