2023-02-04 14:09:24 +00:00
|
|
|
#ifndef _TD_MND_IDX_H_
|
|
|
|
|
#define _TD_MND_IDX_H_
|
|
|
|
|
|
|
|
|
|
#include "mndInt.h"
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
int32_t mndInitIdx(SMnode *pMnode);
|
|
|
|
|
void mndCleanupIdx(SMnode *pMnode);
|
|
|
|
|
SIdxObj *mndAcquireIdx(SMnode *pMnode, char *Name);
|
|
|
|
|
void mndReleaseIdx(SMnode *pMnode, SIdxObj *pSma);
|
|
|
|
|
int32_t mndDropIdxsByStb(SMnode *pMnode, STrans *pTrans, SDbObj *pDb, SStbObj *pStb);
|
|
|
|
|
int32_t mndDropIdxsByDb(SMnode *pMnode, STrans *pTrans, SDbObj *pDb);
|
2023-02-19 16:09:26 +00:00
|
|
|
int32_t mndGetIdxsByTagName(SMnode *pMnode, SStbObj *pStb, char *tagName, SIdxObj *pIdx);
|
|
|
|
|
int32_t mndGetTableIdx(SMnode *pMnode, char *tbFName, STableIndexRsp *rsp, bool *exist);
|
2023-02-04 14:09:24 +00:00
|
|
|
|
|
|
|
|
int32_t mndRetrieveTagIdx(SRpcMsg *pReq, SShowObj *pShow, SSDataBlock *pBlock, int32_t rows);
|
2023-02-05 02:49:49 +00:00
|
|
|
int32_t mndProcessDropTagIdxReq(SRpcMsg *pReq);
|
2023-02-19 16:09:26 +00:00
|
|
|
|
2024-02-21 12:07:45 +00:00
|
|
|
int32_t mndSetCreateIdxPrepareLogs(SMnode *pMnode, STrans *pTrans, SIdxObj *pIdx);
|
2023-02-19 16:09:26 +00:00
|
|
|
int32_t mndSetCreateIdxCommitLogs(SMnode *pMnode, STrans *pTrans, SIdxObj *pIdx);
|
2024-02-21 12:07:45 +00:00
|
|
|
int32_t mndSetDropIdxPrepareLogs(SMnode *pMnode, STrans *pTrans, SIdxObj *pIdx);
|
2023-02-19 16:09:26 +00:00
|
|
|
int32_t mndSetDropIdxCommitLogs(SMnode *pMnode, STrans *pTrans, SIdxObj *pIdx);
|
|
|
|
|
|
2024-02-21 12:07:45 +00:00
|
|
|
int32_t mndSetAlterIdxPrepareLogs(SMnode *pMnode, STrans *pTrans, SIdxObj *pIdx);
|
2023-02-19 16:09:26 +00:00
|
|
|
int32_t mndSetAlterIdxCommitLogs(SMnode *pMnode, STrans *pTrans, SIdxObj *pIdx);
|
|
|
|
|
|
2023-02-04 14:09:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2024-02-21 12:07:45 +00:00
|
|
|
#endif /*_TD_MND_IDX_H_*/
|