Package | Description |
---|---|
com.mongodb |
This package is the main entry point to the MongoDB Java Driver, and it contains the classes for the existing API from 2.x versions.
|
com.mongodb.async.client |
This packages contains classes for the new async client
|
com.mongodb.client |
This package contains client interfaces
|
com.mongodb.client.model.geojson.codecs |
This package contains classes that encode and decode GeoJSON objects.
|
org.bson |
This package contains bson classes required for the driver
|
org.bson.codecs |
This package contains all the default BSON codecs.
|
org.bson.codecs.configuration |
This package contains codec configurations and the codec registry helper
|
org.bson.conversions |
This package contains the Bson interface
|
Modifier and Type | Method and Description |
---|---|
CodecRegistry |
MongoClientOptions.getCodecRegistry()
The codec registry to use.
|
static CodecRegistry |
MongoClient.getDefaultCodecRegistry()
Gets the default codec registry.
|
Modifier and Type | Method and Description |
---|---|
MongoClientOptions.Builder |
MongoClientOptions.Builder.codecRegistry(CodecRegistry codecRegistry)
Sets the codec registry
|
<T> Codec<T> |
DBRefCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
DBObjectCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<TDocument> |
BasicDBObject.toBsonDocument(Class<TDocument> documentClass,
CodecRegistry codecRegistry) |
Constructor and Description |
---|
DBObjectCodec(CodecRegistry codecRegistry)
Construct an instance with the given codec registry.
|
DBObjectCodec(CodecRegistry codecRegistry,
BsonTypeClassMap bsonTypeClassMap)
Construct an instance.
|
DBObjectCodec(CodecRegistry codecRegistry,
BsonTypeClassMap bsonTypeClassMap,
com.mongodb.DBObjectFactory objectFactory)
Construct an instance.
|
DBRefCodec(CodecRegistry registry)
Construct an instance with the given registry, which is used to encode the id of the referenced document.
|
Modifier and Type | Method and Description |
---|---|
CodecRegistry |
MongoCollection.getCodecRegistry()
Get the codec registry for the MongoCollection.
|
CodecRegistry |
MongoDatabase.getCodecRegistry()
Get the codec registry for the MongoDatabase.
|
CodecRegistry |
MongoClientSettings.getCodecRegistry()
The codec registry to use.
|
static CodecRegistry |
MongoClients.getDefaultCodecRegistry()
Gets the default codec registry.
|
Modifier and Type | Method and Description |
---|---|
MongoClientSettings.Builder |
MongoClientSettings.Builder.codecRegistry(CodecRegistry codecRegistry)
Sets the codec registry
|
MongoCollection<TDocument> |
MongoCollection.withCodecRegistry(CodecRegistry codecRegistry)
Create a new MongoCollection instance with a different codec registry.
|
MongoDatabase |
MongoDatabase.withCodecRegistry(CodecRegistry codecRegistry)
Create a new MongoDatabase instance with a different codec registry.
|
Modifier and Type | Method and Description |
---|---|
CodecRegistry |
MongoDatabase.getCodecRegistry()
Get the codec registry for the MongoDatabase.
|
CodecRegistry |
MongoCollection.getCodecRegistry()
Get the codec registry for the MongoCollection.
|
Modifier and Type | Method and Description |
---|---|
MongoDatabase |
MongoDatabase.withCodecRegistry(CodecRegistry codecRegistry)
Create a new MongoDatabase instance with a different codec registry.
|
MongoCollection<TDocument> |
MongoCollection.withCodecRegistry(CodecRegistry codecRegistry)
Create a new MongoCollection instance with a different codec registry.
|
Modifier and Type | Method and Description |
---|---|
<T> Codec<T> |
GeoJsonCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
Constructor and Description |
---|
GeometryCollectionCodec(CodecRegistry registry)
Constructs an instance.
|
LineStringCodec(CodecRegistry registry)
Constructs an instance.
|
MultiLineStringCodec(CodecRegistry registry)
Constructs an instance.
|
MultiPointCodec(CodecRegistry registry)
Constructs an instance.
|
MultiPolygonCodec(CodecRegistry registry)
Constructs an instance.
|
PointCodec(CodecRegistry registry)
Constructs a new instance.
|
PolygonCodec(CodecRegistry registry)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
static BsonDocument |
BsonDocumentWrapper.asBsonDocument(Object document,
CodecRegistry codecRegistry)
A helper to convert an document of type Object to a BsonDocument
|
<C> BsonDocument |
BsonDocument.toBsonDocument(Class<C> documentClass,
CodecRegistry codecRegistry) |
<C> BsonDocument |
Document.toBsonDocument(Class<C> documentClass,
CodecRegistry codecRegistry) |
Modifier and Type | Method and Description |
---|---|
CodecRegistry |
BsonDocumentCodec.getCodecRegistry()
Gets the
CodecRegistry for this Codec . |
Modifier and Type | Method and Description |
---|---|
<T> Codec<T> |
BsonValueCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
DocumentCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
ValueCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
UuidCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
Constructor and Description |
---|
BsonArrayCodec(CodecRegistry codecRegistry)
Construct an instance with the given registry
|
BsonDocumentCodec(CodecRegistry codecRegistry)
Creates a new instance initialised with the given codec registry.
|
BsonValueCodec(CodecRegistry codecRegistry)
Creates a new instance initialised with the given codec registry.
|
DocumentCodec(CodecRegistry registry,
BsonTypeClassMap bsonTypeClassMap)
Construct a new instance with the given registry and BSON type class map.
|
DocumentCodec(CodecRegistry registry,
BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given registry and BSON type class map.
|
Modifier and Type | Method and Description |
---|---|
static CodecRegistry |
CodecRegistries.fromCodecs(Codec<?>... codecs)
Creates a
CodecRegistry from the provided list of Codec instances. |
static CodecRegistry |
CodecRegistries.fromCodecs(List<? extends Codec<?>> codecs)
Creates a
CodecRegistry from the provided list of Codec instances. |
static CodecRegistry |
CodecRegistries.fromProviders(CodecProvider... providers)
Creates a
CodecRegistry from the provided list of CodecProvider instances. |
static CodecRegistry |
CodecRegistries.fromProviders(List<? extends CodecProvider> providers)
Creates a
CodecRegistry from the provided list of CodecProvider instances. |
static CodecRegistry |
CodecRegistries.fromRegistries(CodecRegistry... registries)
A
CodecRegistry that combines the given CodecRegistry instances into a single registry. |
static CodecRegistry |
CodecRegistries.fromRegistries(List<? extends CodecRegistry> registries)
A
CodecRegistry that combines the given CodecRegistry instances into a single registry. |
Modifier and Type | Method and Description |
---|---|
static CodecRegistry |
CodecRegistries.fromRegistries(CodecRegistry... registries)
A
CodecRegistry that combines the given CodecRegistry instances into a single registry. |
<T> Codec<T> |
CodecProvider.get(Class<T> clazz,
CodecRegistry registry)
Get a
Codec using the given context, which includes, most importantly, the Class for which a Codec is required. |
Modifier and Type | Method and Description |
---|---|
static CodecRegistry |
CodecRegistries.fromRegistries(List<? extends CodecRegistry> registries)
A
CodecRegistry that combines the given CodecRegistry instances into a single registry. |
Modifier and Type | Method and Description |
---|---|
<TDocument> |
Bson.toBsonDocument(Class<TDocument> documentClass,
CodecRegistry codecRegistry)
Render the filter into a BsonDocument.
|
Copyright © 2016. All Rights Reserved.