QueryMultiPointHistData.sh 765 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../../; pwd)
  3. cd $ROOT
  4. #host=39.104.80.229
  5. host=127.0.0.1
  6. storagePath="root.test1.wf01.wt01"
  7. days=1
  8. pointIndex=1
  9. pointCount=10
  10. echo "----test query range days:$days"
  11. beginDate="2022-12-06 10:59:09"
  12. echo beginDate:beginDate
  13. #endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
  14. endDate="2022-12-06 10:59:10"
  15. echo endDate:$endDate
  16. for pointCount in 1 2 3 5 10 20 30 50 100 200 300 500 1000 2000
  17. do
  18. java -cp ./lib/iotdb.jar demo.query.histQuery.QueryMultiPointHistData \
  19. --host $host --storagePath ${storagePath} --pointNamePrefix pointName1_ --pointCount $pointCount \
  20. --pointIndex $pointIndex --beginDate "$beginDate" --endDate "$endDate" \
  21. --showQueryResult 0 2>&1 | tee -a ./log/iotdb/out.log
  22. done