more tkv
This commit is contained in:
parent
b4dee0f51f
commit
0db6b12a47
|
@ -13,4 +13,21 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "vnodeDef.h"
|
||||
#ifndef _TD_TKV_BTREE_H_
|
||||
#define _TD_TKV_BTREE_H_
|
||||
|
||||
#include "tkvDef.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
pgid_t root; // root page number
|
||||
} STkvBtree;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*_TD_TKV_BTREE_H_*/
|
|
@ -16,12 +16,26 @@
|
|||
#ifndef _TD_TKV_DB_H_
|
||||
#define _TD_TKV_DB_H_
|
||||
|
||||
#include "tkvBtree.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
TDB_BTREE = 0,
|
||||
TDB_HASH,
|
||||
TDB_HEAP,
|
||||
} tdb_db_t;
|
||||
|
||||
struct TDB {
|
||||
// TODO
|
||||
pgsize_t pageSize;
|
||||
|
||||
tdb_db_t type; // DB type
|
||||
|
||||
union {
|
||||
STkvBtree btree;
|
||||
} dbimpl;
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
@ -13,18 +13,21 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef _TD_VNODE_READ_H_
|
||||
#define _TD_VNODE_READ_H_
|
||||
#ifndef _TD_TKV_HAHS_H_
|
||||
#define _TD_TKV_HAHS_H_
|
||||
|
||||
#include "tkvDef.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
#include "vnodeInt.h"
|
||||
|
||||
void vnodeProcessReadMsg(SVnode *pVnode, SVnodeMsg *pMsg);
|
||||
typedef struct STkvHash {
|
||||
// TODO
|
||||
} STkvHash;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*_TD_VNODE_READ_H_*/
|
||||
#endif /*_TD_TKV_HAHS_H_*/
|
Loading…
Reference in New Issue