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

Method keyPartToFieldName

src/QLContext.h:202–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201
202 std::string keyPartToFieldName(StringRef kp) {
203 DataValue dv = DataValue::decode_key_part(kp);
204 if (dv.getSortType() == DVTypeCode::NUMBER)
205 return std::to_string(dv.getInt());
206 else
207 return dv.getString();
208 }
209
210 void bson_getDescendants(StringRef prefix,
211 StringRef begin,

Callers

nothing calls this directly

Calls 3

getSortTypeMethod · 0.80
getIntMethod · 0.80
getStringMethod · 0.80

Tested by

no test coverage detected