tname.h 1018 字节
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 8 9 10 11 12 13 14 15 16 17

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 已提交
18
typedef struct SColumnInfoData {
19 20
  SColumnInfo info;
  void* pData;    // the corresponding block data in memory
H
hjxilinx 已提交
21
} SColumnInfoData;
22

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

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

H
Haojun Liao 已提交
27 28
void extractTableNameFromToken(SSQLToken *pToken, SSQLToken* pTable);

H
Haojun Liao 已提交
29 30
SSchema tGetTableNameColumnSchema();

H
Haojun Liao 已提交
31 32
SSchema tGetUserSpecifiedColumnSchema(const char* v, int16_t type, const char* name);

H
Haojun Liao 已提交
33
bool tscValidateTableNameLength(size_t len);
34

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

H
Haojun Liao 已提交
37 38
int64_t taosGetIntervalStartTimestamp(int64_t startTime, int64_t slidingTime, int64_t intervalTime, char timeUnit, int16_t precision);

H
hjxilinx 已提交
39
#endif  // TDENGINE_NAME_H