| 768 | } |
| 769 | |
| 770 | Future<Standalone<StringRef>> IReadWriteContext::getKeyEncodedId() { |
| 771 | // FIXME: this is inefficient in about 12 different ways |
| 772 | return map(getMaybeRecursiveIfPresent( |
| 773 | getSubContext(DataValue(DocLayerConstants::ID_FIELD, DVTypeCode::STRING).encode_key_part())), |
| 774 | [](Optional<DataValue> odv) -> Standalone<StringRef> { |
| 775 | return odv.present() ? odv.get().encode_key_part() : StringRef(); |
| 776 | }); |
| 777 | } |
| 778 | |
| 779 | Future<Standalone<StringRef>> BsonContext::getValueEncodedId() { |
| 780 | bson::BSONElement e; |
no test coverage detected