private static class Updates.WithEachUpdate<TItem> extends java.lang.Object implements Bson
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fieldName |
private java.lang.String |
operator |
private java.util.List<TItem> |
values |
Constructor and Description |
---|
WithEachUpdate(java.lang.String fieldName,
java.util.List<TItem> values,
java.lang.String operator) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
additionalFieldsToString() |
<TDocument> |
toBsonDocument(java.lang.Class<TDocument> tDocumentClass,
CodecRegistry codecRegistry)
Render the filter into a BsonDocument.
|
java.lang.String |
toString() |
protected <TDocument> |
writeAdditionalFields(BsonDocumentWriter writer,
java.lang.Class<TDocument> tDocumentClass,
CodecRegistry codecRegistry) |
private final java.lang.String fieldName
private final java.util.List<TItem> values
private final java.lang.String operator
public WithEachUpdate(java.lang.String fieldName, java.util.List<TItem> values, java.lang.String operator)
public <TDocument> BsonDocument toBsonDocument(java.lang.Class<TDocument> tDocumentClass, CodecRegistry codecRegistry)
Bson
toBsonDocument
in interface Bson
TDocument
- the type of the document classtDocumentClass
- the document class in scope for the collection. This parameter may be ignored, but it may be used to alter
the structure of the returned BsonDocument
based on some knowledge of the document class.codecRegistry
- the codec registry. This parameter may be ignored, but it may be used to look up Codec
instances for
the document class or any other related class.protected <TDocument> void writeAdditionalFields(BsonDocumentWriter writer, java.lang.Class<TDocument> tDocumentClass, CodecRegistry codecRegistry)
protected java.lang.String additionalFieldsToString()
public java.lang.String toString()
toString
in class java.lang.Object