queryMultiPointHistData.sh 730 B

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