Package dev.morphia.mapping.codec
Class MorphiaMapCodec
- java.lang.Object
-
- org.bson.codecs.MapCodec
-
- dev.morphia.mapping.codec.MorphiaMapCodec
-
- All Implemented Interfaces:
Codec<Map<String,Object>>
,Decoder<Map<String,Object>>
,Encoder<Map<String,Object>>
,OverridableUuidRepresentationCodec<Map<String,Object>>
@MorphiaInternal public class MorphiaMapCodec extends MapCodec
Maps Map subtypes to/from the database. This is mostly a pass-through to the driver codec except for the encoding, non-String types are converted to Strings if possible.- Since:
- 2.1.7
Developer note.This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encode(BsonWriter writer, Map map, EncoderContext encoderContext)
-
Methods inherited from class org.bson.codecs.MapCodec
decode, getEncoderClass, withUuidRepresentation
-
-
-
-
Method Detail
-
encode
public void encode(BsonWriter writer, Map map, EncoderContext encoderContext)
-
-