Merge branch '2.0' of https://github.com/taosdata/TDengine into 2.0
This commit is contained in:
commit
2f84afb6c7
|
@ -5,8 +5,9 @@ typedef void cache_pool_t;
|
||||||
|
|
||||||
typedef struct SCacheBlock
|
typedef struct SCacheBlock
|
||||||
{
|
{
|
||||||
|
|
||||||
SCacheBlock *next;
|
SCacheBlock *next;
|
||||||
|
SCacheBlock *prev;
|
||||||
|
char data[];
|
||||||
} SCacheBlock;
|
} SCacheBlock;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,9 @@
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
/* The row data should in the form of
|
||||||
|
*/
|
||||||
|
|
||||||
// ---- Row data interface
|
// ---- Row data interface
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_t numOfRows;
|
int32_t numOfRows;
|
||||||
|
@ -12,7 +15,12 @@ typedef struct {
|
||||||
// ---- Column data interface
|
// ---- Column data interface
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int32_t numOfPoints;
|
int32_t numOfPoints;
|
||||||
char *data;
|
char * data;
|
||||||
} SCData;
|
} SCData;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int32_t numOfCols;
|
||||||
|
SCData **pData;
|
||||||
|
} SCDataBlock;
|
||||||
|
|
||||||
#endif // _TD_DATA_H_
|
#endif // _TD_DATA_H_
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#if !defined(_TD_TSDBCACHE_H_)
|
||||||
|
#define _TD_TSDBCACHE_H_
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include "cache.h"
|
||||||
|
|
||||||
|
typedef struct STSDBCache {
|
||||||
|
int64_t blockId; // A block ID counter
|
||||||
|
SCacheBlock *blockList;
|
||||||
|
} STSDBCache;
|
||||||
|
|
||||||
|
|
||||||
|
#endif // _TD_TSDBCACHE_H_
|
Loading…
Reference in New Issue