vector index master occupy

This commit is contained in:
wu-xingying 2024-12-24 15:45:51 +00:00 committed by ob-robot
parent e1d7a90fb8
commit ed7e1c91de
5 changed files with 28 additions and 26 deletions

View File

@ -82,7 +82,8 @@ enum ObVectorIndexAlgorithmLib
VIAL_MAX
};
enum ObVectorIndexAlgorithmType
enum ObVectorIndexAlgorithmType : uint16_t
{
VIAT_HNSW = 0,
VIAT_HNSW_SQ,

View File

@ -25,7 +25,22 @@ namespace oceanbase
{
namespace share
{
enum ObVecAuxTableIdx {
INV_SCAN_IDX = 0,
DELTA_BUFFER_TBL_IDX = 1,
INDEX_ID_TBL_IDX = 2,
SNAPSHOT_TBL_IDX = 3,
COM_AUX_TBL_IDX = 4
};
// temporary solution, need to be refactored
enum ObVecIndexType : uint8_t
{
VEC_INDEX_INVALID = 0,
VEC_INDEX_POST = 1,
VEC_INDEX_PRE = 2
};
class ObVectorIndexUtil final
{
public:

View File

@ -37,6 +37,7 @@ enum ObDASIterType : uint32_t
DAS_ITER_FUNC_LOOKUP,
DAS_ITER_FUNC_DATA,
DAS_ITER_MVI_LOOKUP,
DAS_ITER_HNSW_SCAN,
// append DASIterType before me
DAS_ITER_MAX
};
@ -67,6 +68,7 @@ enum ObDASIterTreeType : uint32_t
ITER_TREE_INDEX_MERGE,
ITER_TREE_FUNC_LOOKUP,
ITER_TREE_MVI_LOOKUP,
ITER_TREE_VEC_LOOKUP,
// append iter tree type before me
ITER_TREE_MAX
};

View File

@ -439,7 +439,14 @@ enum ObTSCIRScanType : uint16_t
OB_VEC_DELTA_BUF_SCAN,
OB_VEC_IDX_ID_SCAN,
OB_VEC_SNAPSHOT_SCAN,
OB_VEC_COM_AUX_SCAN
OB_VEC_COM_AUX_SCAN,
OB_VEC_ROWKEY_VID_SCAN,
OB_VEC_VID_ROWKEY_SCAN,
OB_VEC_FILTER_SCAN,
OB_VEC_IVF_CENTROID_SCAN,
OB_VEC_IVF_CID_VEC_SCAN, // for pq is pq_id table
OB_VEC_IVF_ROWKEY_CID_SCAN, // for pq is pq ROWKEY_CID_TABLE
OB_VEC_IVF_SPECIAL_AUX_SCAN,// for pq is pq code, for sq is sq meta
};
} // namespace sql

View File

@ -14,36 +14,13 @@
#define OB_DAS_VEC_DEFINE_H_
#include "ob_das_attach_define.h"
#include "src/share/vector_index/ob_vector_index_util.h"
namespace oceanbase
{
namespace sql
{
enum ObVecAuxTableIdx {
INV_SCAN_IDX = 0,
DELTA_BUFFER_TBL_IDX = 1,
INDEX_ID_TBL_IDX = 2,
SNAPSHOT_TBL_IDX = 3,
COM_AUX_TBL_IDX = 4
};
// temporary solution
enum ObVecScanType : uint8_t
{
VEC_SCAN_INVALID = 0,
VEC_SCAN_POST = 1,
VEC_SCAN_PRE = 2
};
// temporary solution, need to be refactored
enum ObVecIndexType : uint8_t
{
VEC_INDEX_INVALID = 0,
VEC_INDEX_POST = 1,
VEC_INDEX_PRE = 2
};
struct ObDASVecAuxScanCtDef : ObDASAttachCtDef
{
OB_UNIS_VERSION(1);