| 759 | } |
| 760 | |
| 761 | Future<Standalone<StringRef>> IReadWriteContext::getValueEncodedId() { |
| 762 | // FIXME: this is inefficient in about 12 different ways |
| 763 | return map(getMaybeRecursiveIfPresent( |
| 764 | getSubContext(DataValue(DocLayerConstants::ID_FIELD, DVTypeCode::STRING).encode_key_part())), |
| 765 | [](Optional<DataValue> odv) -> Standalone<StringRef> { |
| 766 | return odv.present() ? odv.get().encode_value() : StringRef(); |
| 767 | }); |
| 768 | } |
| 769 | |
| 770 | Future<Standalone<StringRef>> IReadWriteContext::getKeyEncodedId() { |
| 771 | // FIXME: this is inefficient in about 12 different ways |
nothing calls this directly
no test coverage detected