class CommandResultDocumentCodec<T> extends BsonDocumentCodec
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
fieldContainingPayload |
private Decoder<T> |
payloadDecoder |
| Constructor and Description |
|---|
CommandResultDocumentCodec(CodecRegistry registry,
Decoder<T> payloadDecoder,
java.lang.String fieldContainingPayload) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static <P> Codec<BsonDocument> |
create(Decoder<P> decoder,
java.lang.String fieldContainingPayload) |
protected BsonValue |
readValue(BsonReader reader,
DecoderContext decoderContext)
This method may be overridden to change the behavior of reading the current value from the given
BsonReader. |
decode, documentHasId, encode, generateIdIfAbsentFromDocument, getCodecRegistry, getDocumentId, getEncoderClassCommandResultDocumentCodec(CodecRegistry registry, Decoder<T> payloadDecoder, java.lang.String fieldContainingPayload)
static <P> Codec<BsonDocument> create(Decoder<P> decoder, java.lang.String fieldContainingPayload)
protected BsonValue readValue(BsonReader reader, DecoderContext decoderContext)
BsonDocumentCodecBsonReader. It is required
that the value be fully consumed before returning.readValue in class BsonDocumentCodecreader - the read to read the value fromdecoderContext - the context