tname.h 1016 字节
Newer Older
H
hjxilinx 已提交
1 2 3
#ifndef TDENGINE_NAME_H
#define TDENGINE_NAME_H

4 5
#include "os.h"
#include "taosmsg.h"
H
Haojun Liao 已提交
6
#include "tstoken.h"
7
#include "tvariant.h"
8 9 10 11 12 13 14 15 16 17 18

typedef struct SDataStatis {
  int16_t colId;
  int64_t sum;
  int64_t max;
  int64_t min;
  int16_t maxIndex;
  int16_t minIndex;
  int16_t numOfNull;
} SDataStatis;

H
hjxilinx 已提交
19
typedef struct SColumnInfoData {
20 21
  SColumnInfo info;
  void* pData;    // the corresponding block data in memory
H
hjxilinx 已提交
22
} SColumnInfoData;
23

24
void extractTableName(const char *tableId, char *name);
H
hjxilinx 已提交
25 26 27

char* extractDBName(const char *tableId, char *name);

28
size_t tableIdPrefix(const char* name, char* prefix, int32_t len);
29

H
Haojun Liao 已提交
30
void extractTableNameFromToken(SStrToken *pToken, SStrToken* pTable);
H
Haojun Liao 已提交
31

H
Haojun Liao 已提交
32 33
SSchema tGetTableNameColumnSchema();

H
Haojun Liao 已提交
34
SSchema tGetUserSpecifiedColumnSchema(tVariant* pVal, SStrToken* exprStr, const char* name);
H
Haojun Liao 已提交
35

H
Haojun Liao 已提交
36
bool tscValidateTableNameLength(size_t len);
37

H
Haojun Liao 已提交
38 39
SColumnFilterInfo* tscFilterInfoClone(const SColumnFilterInfo* src, int32_t numOfFilters);

H
Haojun Liao 已提交
40
SSchema tscGetTbnameColumnSchema();
H
Haojun Liao 已提交
41

H
hjxilinx 已提交
42
#endif  // TDENGINE_NAME_H