BasicDBObject
, BsonDocument
, BsonDocumentWrapper
, CommandResult
, Document
, RawBsonDocument
public interface Bson
BsonDocument
.Modifier and Type | Method | Description |
---|---|---|
<TDocument> |
toBsonDocument(Class<TDocument> documentClass,
CodecRegistry codecRegistry) |
Render the filter into a BsonDocument.
|
<TDocument> BsonDocument toBsonDocument(Class<TDocument> documentClass, CodecRegistry codecRegistry)
TDocument
- the type of the document classdocumentClass
- 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.