Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
c000c15e
T
TDengine
项目概览
taosdata
/
TDengine
大约 2 年 前同步成功
通知
1192
Star
22018
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c000c15e
编写于
6月 13, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more work
上级
baea84c6
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
43 addition
and
19 deletion
+43
-19
include/common/tdataformat.h
include/common/tdataformat.h
+5
-0
source/dnode/vnode/src/inc/tsdb.h
source/dnode/vnode/src/inc/tsdb.h
+33
-16
source/dnode/vnode/src/tsdb/tsdbCommit.c
source/dnode/vnode/src/tsdb/tsdbCommit.c
+5
-3
未找到文件。
include/common/tdataformat.h
浏览文件 @
c000c15e
...
...
@@ -177,6 +177,11 @@ struct SColData {
uint8_t
*
pData
;
};
struct
SColDataBatch
{
uint8_t
flags
;
SColData
*
aColData
[];
};
#if 1 //================================================================================================================================================
// Imported since 3.0 and use bitmap to demonstrate None/Null/Norm, while use Null/Norm below 3.0 without of bitmap.
#define TD_SUPPORT_BITMAP
...
...
source/dnode/vnode/src/inc/tsdb.h
浏览文件 @
c000c15e
...
...
@@ -46,6 +46,7 @@ typedef struct SMergeInfo SMergeInfo;
typedef
struct
STable
STable
;
typedef
struct
SOffset
SOffset
;
typedef
struct
SMapData
SMapData
;
typedef
struct
SVDataCols
SVDataCols
;
// tsdbMemTable ==============================================================================================
...
...
@@ -127,18 +128,18 @@ typedef struct SDFileSetReader SDFileSetReader;
typedef
struct
SDFileSetWriter
SDFileSetWriter
;
// SDFileSetWriter
int32_t
tsdbDFileSetWriterOpen
(
SDFileSetWriter
*
pWriter
,
STsdb
*
pTsdb
,
SDFileSet
*
pSet
);
int32_t
tsdbDFileSetWriterClose
(
SDFileSetWriter
*
pWriter
,
int8_t
sync
);
int32_t
tsdbWriteBlockData
(
SDFileSetWriter
*
pWriter
,
SDataCols
*
pDataCols
,
SBlock
*
pBlock
);
int32_t
tsdbWriteSBlockInfo
(
SDFileSetWriter
*
pWriter
,
SBlockInfo
*
pBlockInfo
,
SBlockIdx
*
pBlockIdx
);
int32_t
tsdbWriteSBlockIdx
(
SDFileSetWriter
*
pWriter
,
SBlockIdx
*
pBlockIdx
);
//
int32_t tsdbDFileSetWriterOpen(SDFileSetWriter *pWriter, STsdb *pTsdb, SDFileSet *pSet);
//
int32_t tsdbDFileSetWriterClose(SDFileSetWriter *pWriter, int8_t sync);
//
int32_t tsdbWriteBlockData(SDFileSetWriter *pWriter, SDataCols *pDataCols, SBlock *pBlock);
//
int32_t tsdbWriteSBlockInfo(SDFileSetWriter *pWriter, SBlockInfo *pBlockInfo, SBlockIdx *pBlockIdx);
//
int32_t tsdbWriteSBlockIdx(SDFileSetWriter *pWriter, SBlockIdx *pBlockIdx);
// SDFileSetReader
int32_t
tsdbDFileSetReaderOpen
(
SDFileSetReader
*
pReader
,
STsdb
*
pTsdb
,
SDFileSet
*
pSet
);
int32_t
tsdbDFileSetReaderClose
(
SDFileSetReader
*
pReader
);
int32_t
tsdbLoadSBlockIdx
(
SDFileSetReader
*
pReader
,
SArray
*
pArray
);
int32_t
tsdbLoadSBlockInfo
(
SDFileSetReader
*
pReader
,
SBlockIdx
*
pBlockIdx
,
SBlockInfo
*
pBlockInfo
);
int32_t
tsdbLoadSBlockStatis
(
SDFileSetReader
*
pReader
,
SBlock
*
pBlock
,
SBlockStatis
*
pBlockStatis
);
//
int32_t tsdbDFileSetReaderOpen(SDFileSetReader *pReader, STsdb *pTsdb, SDFileSet *pSet);
//
int32_t tsdbDFileSetReaderClose(SDFileSetReader *pReader);
//
int32_t tsdbLoadSBlockIdx(SDFileSetReader *pReader, SArray *pArray);
//
int32_t tsdbLoadSBlockInfo(SDFileSetReader *pReader, SBlockIdx *pBlockIdx, SBlockInfo *pBlockInfo);
//
int32_t tsdbLoadSBlockStatis(SDFileSetReader *pReader, SBlock *pBlock, SBlockStatis *pBlockStatis);
// SDelFWriter
...
...
@@ -306,13 +307,24 @@ struct SBlockItem {
int64_t
maxVersion
;
};
struct
SBlockInfo
{
uint8_t
flags
;
int32_t
nCols
;
int64_t
offset
;
int64_t
size
;
int32_t
nSmaCols
;
int64_t
smaOffset
;
int64_t
smaSize
;
};
struct
SBlock
{
uint32_t
delimiter
;
int64_t
suid
;
int64_t
uid
;
SOffset
offset
;
uint32_t
nData
;
uint8_t
*
pData
;
TSDBKEY
minKey
;
TSDBKEY
maxKey
;
int64_t
minVersion
;
int64_t
maxVersion
;
int32_t
nRows
;
int8_t
nBlockInfo
;
SBlockInfo
blockInfos
[];
};
struct
SBlockCol
{
...
...
@@ -436,6 +448,11 @@ struct SMapData {
uint8_t
*
pData
;
};
struct
SVDataCols
{
int64_t
*
aVersion
;
SDataCols
dataCols
;
};
#ifdef __cplusplus
}
#endif
...
...
source/dnode/vnode/src/tsdb/tsdbCommit.c
浏览文件 @
c000c15e
...
...
@@ -37,9 +37,11 @@ struct SCommitter {
SMapData
oBlockIdx
;
SMapData
nBlockIdx
;
// commit table data
SBlockIdx
*
pBlockIdx
;
SMapData
oBlock
;
SMapData
nBlock
;
SBlockIdx
*
pBlockIdx
;
SMapData
oBlock
;
SMapData
nBlock
;
SColDataBatch
oBatch
;
SColDataBatch
nBatch
;
/* commit del */
SDelFReader
*
pDelFReader
;
SDelFWriter
*
pDelFWriter
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录