Class MorphiaQueryCodec

  • All Implemented Interfaces:
    org.bson.codecs.Codec<MorphiaQuery>, org.bson.codecs.Decoder<MorphiaQuery>, org.bson.codecs.Encoder<MorphiaQuery>

    public class MorphiaQueryCodec
    extends Object
    implements org.bson.codecs.Codec<MorphiaQuery>
    Defines a codec for Query instances
    • Constructor Detail

      • MorphiaQueryCodec

        public MorphiaQueryCodec​(Mapper mapper)
        Creates a codec
        Parameters:
        mapper - the mapper to use
    • Method Detail

      • decode

        public MorphiaQuery<?> decode​(org.bson.BsonReader reader,
                                      org.bson.codecs.DecoderContext decoderContext)
        Specified by:
        decode in interface org.bson.codecs.Decoder<MorphiaQuery>
      • encode

        public void encode​(org.bson.BsonWriter writer,
                           MorphiaQuery value,
                           org.bson.codecs.EncoderContext encoderContext)
        Specified by:
        encode in interface org.bson.codecs.Encoder<MorphiaQuery>
      • getEncoderClass

        public Class<MorphiaQuery> getEncoderClass()
        Specified by:
        getEncoderClass in interface org.bson.codecs.Encoder<MorphiaQuery>