MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / getSchema

Function getSchema

src/graph/on_disk_graph.cpp:64–71  ·  view source on GitHub ↗

We generate an empty schema with one group even if exprs is empty because we always need to scan edgeID and nbrNodeID which will need the state of empty data chunk.

Source from the content-addressed store, hash-verified

62// We generate an empty schema with one group even if exprs is empty because we always need to
63// scan edgeID and nbrNodeID which will need the state of empty data chunk.
64static Schema getSchema(const expression_vector& exprs) {
65 auto schema = Schema();
66 schema.createGroup();
67 for (auto expr : exprs) {
68 schema.insertToGroupAndScope(expr, 0);
69 }
70 return schema;
71}
72
73static ResultSet getResultSet(Schema* schema, MemoryManager* mm) {
74 auto descriptor = ResultSetDescriptor(schema);

Callers 1

Calls 3

createGroupMethod · 0.80
insertToGroupAndScopeMethod · 0.80
SchemaClass · 0.50

Tested by

no test coverage detected