QueryMultiPointHistData.sh 766 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env bash
  2. ROOT=$(cd `dirname $0`/../../../; pwd)
  3. cd $ROOT
  4. source $ROOT/shell/iotdb/common.sh
  5. storagePath="root.test1.wf01.wt01"
  6. days=1
  7. pointIndex=1
  8. pointCount=10
  9. echo "----test query range days:$days"
  10. beginDate="2022-12-06 10:59:09"
  11. echo beginDate:beginDate
  12. #endDate=$(date -d "${beginDate} ${days} days" +"%Y-%m-%d %H:%M:%S")
  13. endDate="2022-12-06 10:59:10"
  14. echo endDate:$endDate
  15. for pointCount in 1 2 3 5 10 20 30 50 100 200 300 500 1000 2000
  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