Skip to content

Commit dc58c8e

Browse files
committed
Merge branch 'master' of github.com:intersystems-ru/spatialindex
2 parents 31bdbb4 + c914403 commit dc58c8e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# spatialindex
22
spatialindex for Caché
33

4-
do $system.OBJ.LoadDir("c:\work\spatialindex","*.xml","ck")
4+
do $system.OBJ.LoadDir("c:\work\spatialindex","ck")
55

66
do $system.OBJ.ExportAllClassesIndividual("c:\work\spatialindex\","/diff",,,"SpatialIndex")
77

@@ -19,4 +19,4 @@ do $system.OBJ.ExportAllClassesIndividual("c:\work\spatialindex\","/diff",,,"Spa
1919
while (rset.Next()){
2020
w rset.Get("Id"),!
2121
}
22-
22+

SpatialIndex_Index.xml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
<Export generator="Cache" version="25">
33
<Class name="SpatialIndex.Index">
44
<Super>%Library.FunctionalIndex</Super>
5+
<System>3</System>
56
<TimeCreated>63812,71450.004249</TimeCreated>
67

78
<Method name="DeleteIndex">
8-
<Description>
9-
This method is invoked when an existing instance of a class is deleted.</Description>
109
<ClassMethod>1</ClassMethod>
1110
<CodeMode>generator</CodeMode>
1211
<FormalSpec>pID:%CacheString,pArg...:%Binary</FormalSpec>
@@ -16,6 +15,8 @@ This method is invoked when an existing instance of a class is deleted.</Descrip
1615
</Method>
1716

1817
<Method name="Find">
18+
<Description>
19+
This method is invoked when an existing instance of va class is deleted.</Description>
1920
<ClassMethod>1</ClassMethod>
2021
<CodeMode>generator</CodeMode>
2122
<FormalSpec>rect:%Binary</FormalSpec>
@@ -89,7 +90,9 @@ This method is invoked when an existing instance of a class is updated.</Descrip
8990
<ClassMethod>1</ClassMethod>
9091
<FormalSpec>className:%String,indexName:%String</FormalSpec>
9192
<ReturnType>%String</ReturnType>
92-
<Implementation><![CDATA[quit $Name(^TestGlobal(className, indexName))
93+
<Implementation><![CDATA[
94+
set storage = ##class(%Dictionary.ClassDefinition).%OpenId(className).Storages.GetAt(1).IndexLocation
95+
quit $Name(@storage@(indexName))
9396
]]></Implementation>
9497
</Method>
9598
</Class>

0 commit comments

Comments
 (0)