Uses of Class
org.bson.BsonDocument
-
Packages that use BsonDocument Package Description org.bson Contains the base BSON classes.org.bson.codecs This package contains all the default BSON codecs.org.bson.conversions This package contains the Bson interface -
-
Uses of BsonDocument in org.bson
Subclasses of BsonDocument in org.bson Modifier and Type Class Description class
BsonDocumentWrapper<T>
ABsonDocument
that begins its life as a document of any type and anEncoder
for that document, which lets an instance of any class with an Encoder be treated as a BsonDocument.class
RawBsonDocument
An immutable BSON document that is represented using only the raw bytes.Methods in org.bson that return BsonDocument Modifier and Type Method Description BsonDocument
BsonDocument. append(String key, BsonValue value)
Put the given key and value into this document, and return the document.BsonDocument
RawBsonDocument. append(String key, BsonValue value)
static BsonDocument
BsonDocumentWrapper. asBsonDocument(Object document, CodecRegistry codecRegistry)
A helper to convert an document of type Object to a BsonDocumentBsonDocument
BsonValue. asDocument()
Gets this value as a BsonDocument if it is one, otherwise throws exceptionBsonDocument
BsonDocument. clone()
BsonDocument
BsonDocumentWrapper. clone()
BsonDocument
RawBsonDocument. clone()
BsonDocument
BsonDocument. getDocument(Object key)
Gets the value of the key if it is a BsonDocument, or throws if not.BsonDocument
BsonDocument. getDocument(Object key, BsonDocument defaultValue)
If the document does not contain the given key, return the given default value.BsonDocument
BsonDocumentWriter. getDocument()
Gets the document that the writer is writing to.BsonDocument
BsonJavaScriptWithScope. getScope()
Get the scope.static BsonDocument
BsonDocument. parse(String json)
Parses a string in MongoDB Extended JSON format to aBsonDocument
<C> BsonDocument
BsonDocument. toBsonDocument(Class<C> documentClass, CodecRegistry codecRegistry)
<C> BsonDocument
Document. toBsonDocument(Class<C> documentClass, CodecRegistry codecRegistry)
Methods in org.bson with parameters of type BsonDocument Modifier and Type Method Description BsonDocument
BsonDocument. getDocument(Object key, BsonDocument defaultValue)
If the document does not contain the given key, return the given default value.Constructors in org.bson with parameters of type BsonDocument Constructor Description BsonDocumentReader(BsonDocument document)
Construct a new instance.BsonDocumentWriter(BsonDocument document)
Construct a new instance.BsonJavaScriptWithScope(String code, BsonDocument scope)
Construct a new instance with the given code and scope.Context(BsonDocumentReader.Context parentContext, BsonContextType contextType, BsonDocument document)
-
Uses of BsonDocument in org.bson.codecs
Methods in org.bson.codecs that return BsonDocument Modifier and Type Method Description BsonDocument
BsonDocumentCodec. decode(BsonReader reader, DecoderContext decoderContext)
BsonDocument
BsonDocumentCodec. generateIdIfAbsentFromDocument(BsonDocument document)
Methods in org.bson.codecs that return types with arguments of type BsonDocument Modifier and Type Method Description Class<BsonDocument>
BsonDocumentCodec. getEncoderClass()
Methods in org.bson.codecs with parameters of type BsonDocument Modifier and Type Method Description boolean
BsonDocumentCodec. documentHasId(BsonDocument document)
void
BsonDocumentCodec. encode(BsonWriter writer, BsonDocument value, EncoderContext encoderContext)
BsonDocument
BsonDocumentCodec. generateIdIfAbsentFromDocument(BsonDocument document)
BsonValue
BsonDocumentCodec. getDocumentId(BsonDocument document)
Constructor parameters in org.bson.codecs with type arguments of type BsonDocument Constructor Description BsonDocumentWrapperCodec(Codec<BsonDocument> bsonDocumentCodec)
Construct a new instance,BsonJavaScriptWithScopeCodec(Codec<BsonDocument> documentCodec)
Construct a new instance with the given codec to use for the nested document -
Uses of BsonDocument in org.bson.conversions
Methods in org.bson.conversions that return BsonDocument Modifier and Type Method Description <TDocument>
BsonDocumentBson. toBsonDocument(Class<TDocument> documentClass, CodecRegistry codecRegistry)
Render the filter into a BsonDocument.
-