data.h 396 字节
Newer Older
H
more  
Hongze Cheng 已提交
1 2 3 4 5
#if !defined(_TD_DATA_H_)
#define _TD_DATA_H_

#include <stdint.h>

H
more  
Hongze Cheng 已提交
6 7 8
/* The row data should in the form of
 */

H
more  
Hongze Cheng 已提交
9 10
// ---- Row data interface
typedef struct {
H
more  
Hongze Cheng 已提交
11 12
  int32_t numOfRows;
  char *  data;
H
more  
Hongze Cheng 已提交
13 14 15 16
} SRData;

// ---- Column data interface
typedef struct {
H
more  
Hongze Cheng 已提交
17 18
  int32_t numOfPoints;
  char *  data;
H
more  
Hongze Cheng 已提交
19 20
} SCData;

H
more  
Hongze Cheng 已提交
21 22 23 24 25 26
typedef struct {
  int32_t  numOfCols;
  SCData **pData;
} SCDataBlock;

#endif  // _TD_DATA_H_