Package | Description |
---|---|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
org.bson.types |
Contains classes implementing various BSON types.
|
Modifier and Type | Method and Description |
---|---|
Document |
Document.append(String key,
Object value)
Put the given key/value pair into this Document and return this.
|
static Document |
Document.parse(String json)
Parses a string in MongoDB Extended JSON format to a
Document |
static Document |
Document.parse(String json,
Decoder<Document> decoder)
Parses a string in MongoDB Extended JSON format to a
Document |
Modifier and Type | Method and Description |
---|---|
static Document |
Document.parse(String json,
Decoder<Document> decoder)
Parses a string in MongoDB Extended JSON format to a
Document |
String |
Document.toJson(Encoder<Document> encoder)
Gets a JSON representation of this document
|
String |
Document.toJson(JsonWriterSettings writerSettings,
Encoder<Document> encoder)
Gets a JSON representation of this document
|
Modifier and Type | Method and Description |
---|---|
Document |
DocumentCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Document |
DocumentCodec.generateIdIfAbsentFromDocument(Document document) |
Modifier and Type | Method and Description |
---|---|
Class<Document> |
DocumentCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
boolean |
DocumentCodec.documentHasId(Document document) |
void |
DocumentCodec.encode(BsonWriter writer,
Document document,
EncoderContext encoderContext) |
Document |
DocumentCodec.generateIdIfAbsentFromDocument(Document document) |
BsonValue |
DocumentCodec.getDocumentId(Document document) |
Constructor and Description |
---|
CodeWithScopeCodec(Codec<Document> documentCodec)
Creates a new CodeWithScopeCodec.
|
Modifier and Type | Method and Description |
---|---|
Document |
CodeWithScope.getScope()
Gets the scope, which is is a mapping from identifiers to values, representing the scope in which the code should be evaluated.
|
Constructor and Description |
---|
CodeWithScope(String code,
Document scope)
Construct an instance.
|
Copyright © 2018. All rights reserved.