MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / getValueEncodedId

Method getValueEncodedId

src/QLContext.actor.cpp:761–768  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761Future<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
770Future<Standalone<StringRef>> IReadWriteContext::getKeyEncodedId() {
771 // FIXME: this is inefficient in about 12 different ways

Callers

nothing calls this directly

Calls 4

DataValueClass · 0.85
encode_key_partMethod · 0.80
encode_valueMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected