Class StageCodec<T extends Stage>

  • java.lang.Object
    • dev.morphia.aggregation.experimental.codecs.stages.StageCodec<T>
    • Constructor Detail

      • StageCodec

        protected StageCodec​(Mapper mapper)
    • Method Detail

      • getCodecRegistry

        protected org.bson.codecs.configuration.CodecRegistry getCodecRegistry()
      • getMapper

        protected Mapper getMapper()
      • decode

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

        public final void encode​(org.bson.BsonWriter writer,
                                 T value,
                                 org.bson.codecs.EncoderContext encoderContext)
        Specified by:
        encode in interface org.bson.codecs.Encoder<T extends Stage>
      • encodeStage

        protected abstract void encodeStage​(org.bson.BsonWriter writer,
                                            T value,
                                            org.bson.codecs.EncoderContext encoderContext)
      • writeNamedValue

        protected void writeNamedValue​(org.bson.BsonWriter writer,
                                       String name,
                                       Object value,
                                       org.bson.codecs.EncoderContext encoderContext)