|
楼主 |
发表于 2006-11-8 11:20:00
|
显示全部楼层
还是不甚明了。
B-树是用来对一个序列进行查找的,其关键字是一致的,那么怎么用它来存储多维数据呢?比方说这样的数据:
^ MyApp.PersonD (1) = $LB(530,"Abraham",$LB("UR","Mesopotamia"))
类定义如下:
Class MyApp.MyAddress Extends %SerialObject [ClassType = serial]
{
Property City As %String;
Property State As %String;
}
Class MyApp.Person Extends %Persistent [ClassType = persistent]
{
Property Name As %String;
Property Age As %Integer;
Property Home As MyAddress;
} |
|