Class LegacyQueryCodec

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

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

      • LegacyQueryCodec

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

      • decode

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

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

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