Package | Description |
---|---|
com.mongodb.connection |
Contains classes that manage connecting to MongoDB servers.
|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
org.bson |
Contains the base BSON classes.
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
Modifier and Type | Method and Description |
---|---|
(package private) static BsonString |
ClientMetadataHelper.listToBsonString(java.util.List<java.lang.String> listOfStrings) |
Modifier and Type | Method and Description |
---|---|
private static BsonString |
ExplainHelper.getVerbosityAsString(ExplainVerbosity explainVerbosity) |
Modifier and Type | Method and Description |
---|---|
BsonString |
BsonValue.asString()
Gets this value as a BsonString if it is one, otherwise throws exception
|
BsonString |
BsonDocument.getString(java.lang.Object key)
Gets the value of the key if it is a BsonString, or throws if not.
|
BsonString |
BsonDocument.getString(java.lang.Object key,
BsonString defaultValue)
If the document does not contain the given key, return the given default value.
|
Modifier and Type | Method and Description |
---|---|
int |
BsonString.compareTo(BsonString o) |
BsonString |
BsonDocument.getString(java.lang.Object key,
BsonString defaultValue)
If the document does not contain the given key, return the given default value.
|
Modifier and Type | Method and Description |
---|---|
BsonString |
BsonStringCodec.decode(BsonReader reader,
DecoderContext decoderContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<BsonString> |
BsonStringCodec.getEncoderClass() |
Modifier and Type | Method and Description |
---|---|
void |
BsonStringCodec.encode(BsonWriter writer,
BsonString value,
EncoderContext encoderContext) |