#!/usr/bin/env bash # 查询多点历史数据功能 ROOT=$(cd `dirname $0`/../../; pwd) cd $ROOT source $ROOT/shell/tsdb/common.sh storagePath="root.test1.wf01.wt01" days=1 pointIndex=1 pointCount=10 echo "----test query range days:$days" beginDate="2017-06-01 00:00:00" echo beginDate:beginDate endDate="2017-06-01 00:00:01" echo endDate:$endDate for pointCount in 1 2 3 5 10 20 30 50 100 200 300 500 1000 2000 3000 do java -cp ./lib/iotdb.jar demo.query.histQuery.QueryMultiPointHistData \ --host $host --storagePath ${storagePath} --pointNamePrefix pointName1_ --pointCount $pointCount \ --pointIndex $pointIndex --beginDate "$beginDate" --endDate "$endDate" \ --showQueryResult 0 2>&1 | tee -a ./log/iotdb/out.log done