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

Function EffectsBuffer_AddRemoveLabelsEffect

src/effects/effects.c:711–732  ·  view source on GitHub ↗

add a node remove labels effect to buffer

Source from the content-addressed store, hash-verified

709
710// add a node remove labels effect to buffer
711void EffectsBuffer_AddRemoveLabelsEffect
712(
713 EffectsBuffer *buff, // effect buffer
714 const Node *node, // updated node
715 const LabelID *lbl_ids, // removed labels
716 size_t lbl_count // number of removed labels
717) {
718 //--------------------------------------------------------------------------
719 // effect format:
720 // effect type
721 // node ID
722 // labels count
723 // label IDs
724 //--------------------------------------------------------------------------
725
726 QueryCtx_GetResultSetStatistics()->labels_removed += lbl_count;
727
728 EffectType t = EFFECT_REMOVE_LABELS;
729 EffectsBuffer_AddSetRemoveLabelsEffect(buff, node, lbl_ids, lbl_count, t);
730
731 EffectsBuffer_IncEffectCount(buff);
732}
733
734// add a schema addition effect to buffer
735void EffectsBuffer_AddNewSchemaEffect

Callers 1

UpdateNodeLabelsFunction · 0.85

Tested by

no test coverage detected