3.IOTDB基本操作

分类栏目:IOTDB

资讯

创建存储组:
set storage group to root.test
 
创建时间序列:
create timeseries root.turbine.dl.slwith datatype=FLOAT,encoding=RLE,compression=SNAPPY
编码:
RLE:游程编码(Int32,INT64)
Gorilla:编码(FLOAT,DOUBLE,INT32,INT64)
TS_2DIFF:二阶差分编码(FLOAT,DOUBLE,INT32,INT64)
REGULAR:定频数据编码(INT32,INT64)
PLAIN:所有数据类型,BOOLEAN,TEXT
压缩:
NOCOMPRESSION,SNAPPY,LZ4
 
查询存储组:
show storage group
 
查询某个前缀的存储组:
show storage group root.turbine
 
查询所有时间序列:
show timeseries
 
模糊查询时间序列:
show timeseries root.test.d*

 

查询所有时间序列的总数:
count timeseries
 
查看设备:
show devices
 
查看某前缀路径下的设备个数:
count devices root.turbine
count devices root.turbine.d*
 
删除时间序列:
delete timeseries root.turbine.dl.s*
 
删除存储组:
delete storage group root.turbine