data.h 417 字节
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
#include "schema.h"

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

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

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

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

#endif  // _TD_DATA_H_