Class FieldSelector.RemovePath

    • Constructor Detail

      • RemovePath

        private RemovePath​(Pattern namespacePattern,
                           String[] fieldNodes)
    • Method Detail

      • modifyField

        void modifyField​(org.bson.Document doc,
                         String field)
        Description copied from class: FieldSelector.Path
        Modifies the field in the document used for read, insert and full update operations.
        Specified by:
        modifyField in class FieldSelector.Path
        Parameters:
        doc - the document to modify field
        field - the modified field
      • modifyFieldWithDotNotation

        void modifyFieldWithDotNotation​(org.bson.Document doc,
                                        String field)
        Description copied from class: FieldSelector.Path
        Immediately modifies the field that uses the dot notation like 'a.b' in the document used for set and unset update operations.
        Specified by:
        modifyFieldWithDotNotation in class FieldSelector.Path
        Parameters:
        doc - the document to modify field
        field - the modified field