add compress dict
This commit is contained in:
parent
f7142f1b77
commit
3808abf492
|
@ -156,7 +156,6 @@ int32_t tCompressStart(SCompressor *pCmprsor, int8_t type, int8_t cmprAlg);
|
||||||
int32_t tCompressEnd(SCompressor *pCmprsor, const uint8_t **ppOut, int32_t *nOut, int32_t *nOrigin);
|
int32_t tCompressEnd(SCompressor *pCmprsor, const uint8_t **ppOut, int32_t *nOut, int32_t *nOrigin);
|
||||||
int32_t tCompress(SCompressor *pCmprsor, const void *pData, int64_t nData);
|
int32_t tCompress(SCompressor *pCmprsor, const void *pData, int64_t nData);
|
||||||
|
|
||||||
|
|
||||||
typedef int32_t (*__data_compress_init)(char *lossyColumns, float fPrecision, double dPrecision, uint32_t maxIntervals,
|
typedef int32_t (*__data_compress_init)(char *lossyColumns, float fPrecision, double dPrecision, uint32_t maxIntervals,
|
||||||
uint32_t intervals, int32_t ifAdtFse, const char *compressor);
|
uint32_t intervals, int32_t ifAdtFse, const char *compressor);
|
||||||
typedef int32_t (*__data_compress_l1_fn_t)(const char *const input, const int32_t nelements, char *const output,
|
typedef int32_t (*__data_compress_l1_fn_t)(const char *const input, const int32_t nelements, char *const output,
|
||||||
|
@ -169,6 +168,18 @@ typedef int32_t (*__data_compress_l2_fn_t)(const char *const input, const int32_
|
||||||
typedef int32_t (*__data_decompress_l2_fn_t)(const char *const input, const int32_t nelements, char *const output,
|
typedef int32_t (*__data_decompress_l2_fn_t)(const char *const input, const int32_t nelements, char *const output,
|
||||||
const char type);
|
const char type);
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
__data_compress_init initFn;
|
||||||
|
__data_compress_l1_fn_t l1CompFn;
|
||||||
|
__data_decompress_l1_fn_t l1DeCompFn;
|
||||||
|
} TCompressL1;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
__data_compress_init initFn;
|
||||||
|
__data_compress_l2_fn_t l2CompFn;
|
||||||
|
__data_decompress_l2_fn_t l2DeCompFn;
|
||||||
|
} TCompressL2;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int8_t type;
|
int8_t type;
|
||||||
int8_t level;
|
int8_t level;
|
||||||
|
|
|
@ -2392,3 +2392,8 @@ int32_t tsDecompressBigint(void *pIn, int32_t nIn, int32_t nEle, void *pOut, int
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TCompressL1 compressL1Dict[] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}};
|
||||||
|
TCompressL2 compressL2Dict[] = {{NULL, NULL, NULL}, {NULL, NULL, NULL}};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue