@ThreadSafe private static final class FieldSelector.RemovePath extends FieldSelector.Path
field, fieldNodes, namespacePattern| Modifier | Constructor and Description |
|---|---|
private |
RemovePath(Pattern namespacePattern,
String[] fieldNodes) |
| Modifier and Type | Method and Description |
|---|---|
(package private) FieldSelector.FieldNameAndValue |
generateNewFieldName(String[] fieldNodes,
Object value)
Generates a new field name for the given value.
|
(package private) void |
modifyField(org.bson.Document doc,
String field)
Modifies the field in the document used for read, insert and full update operations.
|
(package private) void |
modifyFieldWithDotNotation(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. |
checkFieldExists, matches, modify, toStringvoid modifyField(org.bson.Document doc,
String field)
FieldSelector.PathmodifyField in class FieldSelector.Pathdoc - the document to modify fieldfield - the modified fieldvoid modifyFieldWithDotNotation(org.bson.Document doc,
String field)
FieldSelector.Path'a.b' in the document used for set and
unset update operations.modifyFieldWithDotNotation in class FieldSelector.Pathdoc - the document to modify fieldfield - the modified fieldFieldSelector.FieldNameAndValue generateNewFieldName(String[] fieldNodes, Object value)
FieldSelector.PathgenerateNewFieldName in class FieldSelector.PathfieldNodes - the field nodesvalue - the field valueCopyright © 2020 JBoss by Red Hat. All rights reserved.