vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 1 | drop dataverse test if exists; |
| 2 | create dataverse test; |
| 3 | use dataverse test; |
| 4 | |
| 5 | create type MyRecord as closed { |
| 6 | id: int32, |
| 7 | point: point, |
| 8 | kwds: string, |
| 9 | line1: line, |
| 10 | line2: line, |
| 11 | poly1: polygon, |
| 12 | poly2: polygon, |
salsubaiee@gmail.com | 4037dde | 2012-11-13 20:19:03 +0000 | [diff] [blame] | 13 | rec: rectangle, |
| 14 | circle: circle |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | create nodegroup group1 if not exists on nc1, nc2; |
| 18 | |
| 19 | create dataset MyData(MyRecord) |
ramangrover29 | 669d8f6 | 2013-02-11 06:03:32 +0000 | [diff] [blame] | 20 | primary key id on group1; |
vinayakb | 38b7ca4 | 2012-03-05 05:44:15 +0000 | [diff] [blame] | 21 | |
| 22 | load dataset MyData |
| 23 | using "edu.uci.ics.asterix.external.dataset.adapter.NCFileSystemAdapter" |
| 24 | (("path"="nc1://data/spatial/spatialData.json"),("format"="adm")) pre-sorted; |
| 25 | |
| 26 | create index rtree_index_point on MyData(point) type rtree; |
| 27 | |
| 28 | delete $m from dataset MyData where $m.id>5; |