1 | <?php
|
---|
2 |
|
---|
3 | if (count($argv) != 3)
|
---|
4 | {
|
---|
5 | echo "usage: $argv[0] <path to rasql> <path to 100MBfile>\n";
|
---|
6 | exit(0);
|
---|
7 | }
|
---|
8 |
|
---|
9 | $domainGrow = 10240;
|
---|
10 |
|
---|
11 | $dim1HiTmp = -1;
|
---|
12 | $dim2HiTmp = -1;
|
---|
13 |
|
---|
14 | for ($i = 0; $i < 10; $i++)
|
---|
15 | {
|
---|
16 | $dim1LoTmp = $dim1HiTmp + 1;
|
---|
17 | $dim1HiTmp = $dim1LoTmp + $domainGrow - 1;
|
---|
18 |
|
---|
19 | for ($j = 0; $j < 10; $j++)
|
---|
20 | {
|
---|
21 | $dim2LoTmp = $dim2HiTmp + 1;
|
---|
22 | $dim2HiTmp = $dim2LoTmp + $domainGrow - 1;
|
---|
23 |
|
---|
24 | $query = "{$argv[1]} -q 'update testBig as c set c assign $1' --file {$argv[2]} --mddtype GreyImage --mdddomain [{$dim1LoTmp}:{$dim1HiTmp},{$dim2LoTmp}:{$dim2HiTmp}] --user rasadmin --passwd rasadmin\n";
|
---|
25 | echo $query;
|
---|
26 | shell_exec($query);
|
---|
27 | }
|
---|
28 | }
|
---|
29 |
|
---|
30 |
|
---|
31 |
|
---|