Class ExpressionCodec<T extends Expression>
- java.lang.Object
-
- dev.morphia.aggregation.experimental.codecs.ExpressionCodec<T>
-
- All Implemented Interfaces:
org.bson.codecs.Codec<T>
,org.bson.codecs.Decoder<T>
,org.bson.codecs.Encoder<T>
public class ExpressionCodec<T extends Expression> extends Object implements org.bson.codecs.Codec<T>
-
-
Constructor Summary
Constructors Constructor Description ExpressionCodec(Mapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
void
encode(org.bson.BsonWriter writer, T expression, org.bson.codecs.EncoderContext encoderContext)
protected org.bson.codecs.configuration.CodecRegistry
getCodecRegistry()
Class<T>
getEncoderClass()
protected Mapper
getMapper()
-
-
-
Constructor Detail
-
ExpressionCodec
public ExpressionCodec(Mapper mapper)
-
-
Method Detail
-
decode
public final T decode(org.bson.BsonReader reader, org.bson.codecs.DecoderContext decoderContext)
- Specified by:
decode
in interfaceorg.bson.codecs.Decoder<T extends Expression>
-
encode
public void encode(org.bson.BsonWriter writer, T expression, org.bson.codecs.EncoderContext encoderContext)
- Specified by:
encode
in interfaceorg.bson.codecs.Encoder<T extends Expression>
-
getEncoderClass
public final Class<T> getEncoderClass()
- Specified by:
getEncoderClass
in interfaceorg.bson.codecs.Encoder<T extends Expression>
-
getCodecRegistry
protected org.bson.codecs.configuration.CodecRegistry getCodecRegistry()
-
getMapper
protected Mapper getMapper()
-
-