提交 50319f26 编写于 作者: H Hongze Cheng

more code

上级 651ca6ac
......@@ -23,10 +23,22 @@ extern "C" {
#endif
// SDataFileReader =============================================
typedef struct SDataFileReader SDataFileReader;
typedef struct SDataFileReader SDataFileReader;
typedef struct SDataFileReaderConfig SDataFileReaderConfig;
// SDataFileWriter =============================================
typedef struct SDataFileWriter SDataFileWriter;
typedef struct SDataFileWriter SDataFileWriter;
typedef struct SDataFileWriterConfig SDataFileWriterConfig;
struct SDataFileReaderConfig {
STsdb *pTsdb;
// TODO
};
struct SDataFileWriterConfig {
STsdb *pTsdb;
// TODO
};
#ifdef __cplusplus
}
......
......@@ -27,9 +27,9 @@ typedef struct SFileOp SFileOp;
typedef struct SSttLvl SSttLvl;
typedef enum {
TSDB_FOP_EXTEND = -2,
TSDB_FOP_NONE = 0,
TSDB_FOP_EXTEND,
TSDB_FOP_CREATE,
TSDB_FOP_NONE,
TSDB_FOP_DELETE,
TSDB_FOP_TRUNCATE,
} tsdb_fop_t;
......@@ -47,17 +47,17 @@ struct SFileOp {
};
struct SSttLvl {
int32_t level;
int32_t nStt;
struct STFile *fSttList;
int32_t level;
int32_t nStt;
STFile *fSttList;
LISTD(SSttLvl) listNode;
};
struct SFileSet {
int32_t fid;
int64_t nextid;
struct STFile *farr[TSDB_FTYPE_MAX]; // file array
SSttLvl lvl0; // level 0 of .stt
int32_t fid;
int64_t nextid;
STFile *farr[TSDB_FTYPE_MAX]; // file array
SSttLvl lvl0; // level 0 of .stt
};
#ifdef __cplusplus
......
......@@ -15,11 +15,12 @@
#include "dev.h"
// struct SDataFReader {
// STsdb *pTsdb;
// // TODO
// };
// SDataFileReader =============================================
struct SDataFileReader {
// TODO
};
// struct SDataFWriter {
// STsdb *pTsdb;
// };
\ No newline at end of file
// SDataFileWriter =============================================
struct SDataFileWriter {
// TODO
};
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册