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

Method getKeyEncodedId

src/QLContext.actor.cpp:770–777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

768}
769
770Future<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
779Future<Standalone<StringRef>> BsonContext::getValueEncodedId() {
780 bson::BSONElement e;

Callers 5

updateMethod · 0.45
replacementActorMethod · 0.45
upsertActorMethod · 0.45

Calls 3

DataValueClass · 0.85
encode_key_partMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected