Class BsonTypeCodecMap

java.lang.Object
org.bson.codecs.BsonTypeCodecMap

@Deprecated(since="2022-10-31") public class BsonTypeCodecMap extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An efficient map of BsonType to Codec
Since:
3.3
  • Constructor Details

    • BsonTypeCodecMap

      public BsonTypeCodecMap(BsonTypeClassMap bsonTypeClassMap, CodecRegistry codecRegistry)
      Deprecated.
      Initializes the map by iterating the keys of the given BsonTypeClassMap and looking up the Codec for the Class mapped to each key.
      Parameters:
      bsonTypeClassMap - the non-null BsonTypeClassMap
      codecRegistry - the non-null CodecRegistry
  • Method Details

    • get

      public Codec<?> get(BsonType bsonType)
      Deprecated.
      Gets the Codec mapped to the given bson type.
      Parameters:
      bsonType - the non-null BsonType
      Returns:
      the non-null Codec