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

Function _RdbSaveIndexData

src/serializers/encoder/v13/encode_schema.c:93–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static inline void _RdbSaveIndexData
94(
95 RedisModuleIO *rdb,
96 SchemaType type,
97 Index idx
98) {
99 /* Format:
100 * type
101 * index data */
102
103 if(!idx) return;
104
105 // index type
106 IndexType t = Index_Type(idx);
107 ASSERT(t == IDX_EXACT_MATCH || t == IDX_FULLTEXT);
108
109 RedisModule_SaveUnsigned(rdb, t);
110
111 if(t == IDX_FULLTEXT) {
112 _RdbSaveFullTextIndexData(rdb, idx);
113 } else {
114 _RdbSaveExactMatchIndex(rdb, type, idx);
115 }
116}
117
118static void _RdbSaveConstraint
119(

Callers 1

_RdbSaveSchemaFunction · 0.85

Calls 3

Index_TypeFunction · 0.85
_RdbSaveExactMatchIndexFunction · 0.85

Tested by

no test coverage detected