Package | Description |
---|---|
org.bson |
Contains the base BSON classes.
|
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.codecs.pojo |
This package contains classes specific to mapping user POJOs.
|
org.bson.conversions |
This package contains the Bson interface
|
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> |
UuidCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
ValueCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
MapCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
BsonValueCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
IterableCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
<T> Codec<T> |
DocumentCodecProvider.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.
|
BsonTypeCodecMap(BsonTypeClassMap bsonTypeClassMap,
CodecRegistry codecRegistry)
Initializes the map by iterating the keys of the given BsonTypeClassMap and looking up the Codec for the Class mapped to each key.
|
BsonValueCodec(CodecRegistry codecRegistry)
Creates a new instance initialised with the given codec registry.
|
DocumentCodec(CodecRegistry registry)
Construct a new instance with the given 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.
|
IterableCodec(CodecRegistry registry,
BsonTypeClassMap bsonTypeClassMap)
Construct a new instance with the given
CodecRegistry and BsonTypeClassMap . |
IterableCodec(CodecRegistry registry,
BsonTypeClassMap bsonTypeClassMap,
Transformer valueTransformer)
Construct a new instance with the given
CodecRegistry and BsonTypeClassMap . |
MapCodec(CodecRegistry registry)
Construct a new instance with the given registry
|
MapCodec(CodecRegistry registry,
BsonTypeClassMap bsonTypeClassMap)
Construct a new instance with the given registry and BSON type class map.
|
MapCodec(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 |
---|---|
<T> Codec<T> |
PojoCodecProvider.get(Class<T> clazz,
CodecRegistry registry) |
Modifier and Type | Method and Description |
---|---|
<TDocument> |
Bson.toBsonDocument(Class<TDocument> documentClass,
CodecRegistry codecRegistry)
Render the filter into a BsonDocument.
|
Copyright © 2018. All rights reserved.