tsdbCache.h 414 字节
Newer Older
H
more  
Hongze Cheng 已提交
1 2 3 4 5 6
#if !defined(_TD_TSDBCACHE_H_)
#define _TD_TSDBCACHE_H_

#include <stdint.h>

#include "cache.h"
H
more  
Hongze Cheng 已提交
7
#include "dlist.h"
H
more  
Hongze Cheng 已提交
8

H
more  
Hongze Cheng 已提交
9 10 11 12 13 14
typedef struct {
  int64_t      blockId;
  SCacheBlock *pBlock
} STSDBCacheBlock;

// Use a doublely linked list to implement this
H
more  
Hongze Cheng 已提交
15
typedef struct STSDBCache {
H
more  
Hongze Cheng 已提交
16 17
  int64_t blockId;  // A block ID counter
  SDList *cacheList;
H
more  
Hongze Cheng 已提交
18 19
} STSDBCache;

H
more  
Hongze Cheng 已提交
20
STSDBCache *tsdbCreateCache();
H
more  
Hongze Cheng 已提交
21

H
more  
Hongze Cheng 已提交
22
#endif  // _TD_TSDBCACHE_H_