MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / Graph_GetMatrixPolicy

Function Graph_GetMatrixPolicy

src/graph/graph.c:261–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259}
260
261MATRIX_POLICY Graph_GetMatrixPolicy
262(
263 const Graph *g
264) {
265 ASSERT(g != NULL);
266 MATRIX_POLICY policy = SYNC_POLICY_UNKNOWN;
267 SyncMatrixFunc f = g->SynchronizeMatrix;
268
269 if(f == _MatrixSynchronize) {
270 policy = SYNC_POLICY_FLUSH_RESIZE;
271 } else if(f == _MatrixResizeToCapacity) {
272 policy = SYNC_POLICY_RESIZE;
273 } else if(f == _MatrixNOP) {
274 policy = SYNC_POLICY_NOP;
275 } else {
276 ASSERT(false);
277 }
278
279 return policy;
280}
281
282// define the current behavior for matrix creations and retrievals on this graph
283MATRIX_POLICY Graph_SetMatrixPolicy

Callers 10

Constraint_EnforceEdgesFunction · 0.85
Graph_DeleteNodesFunction · 0.85
Graph_SetMatrixPolicyFunction · 0.85
CommitUpdatesFunction · 0.85
_CommitNodesBlueprintFunction · 0.85
_CommitNodesFunction · 0.85
_CommitEdgesBlueprintFunction · 0.85
_CommitEdgesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected