发明名称 POLYMORPH TABLE WITH SHARED COLUMNS
摘要 For managing a database in a data-processing system, a polymorph table and a mapping structure are provided. The polymorph table includes a discrimination column and a total number of columns of each type equal to a maximum of the virtual columns of the type. The mapping structure stores information mapping each virtual column to a polymorph column of the same type. A virtual access request is received based on one of the virtual columns of one of the virtual tables. Selected mapping information is retrieved that maps each selected virtual column to one of the polymorph columns. The virtual access request is converted into a polymorph access request according to an identifier of the selected virtual table and the selected mapping information. The polymorph table is accessed according to the polymorph access request.
申请公布号 US2014208063(A1) 申请公布日期 2014.07.24
申请号 US201414160228 申请日期 2014.01.21
申请人 International Business Machines Corporation 发明人 Ruggiero Gaetano
分类号 G06F12/10 主分类号 G06F12/10
代理机构 代理人
主权项 1. A method for managing a database in a data-processing system, the method comprising: providing, for a set of virtual tables each one comprising a set of virtual columns each one of a data type, a polymorph table stored in the database and a mapping structure, the polymorph table comprising a discrimination column for storing an identifier of the virtual tables and a total number of polymorph columns of each data type equal to a maximum number of the virtual columns of the data type in the virtual tables, and the mapping structure storing mapping information mapping each virtual column to a corresponding one of the polymorph columns of the same data type, receiving a virtual access request for accessing at least part of the virtual tables, the virtual access request being based on at least a selected one of the virtual columns of at least a selected one of the virtual tables, retrieving selected mapping information mapping each selected virtual column to a selected one of the polymorph columns from the mapping structure, converting the virtual access request into a polymorph access request for the polymorph table according to the identifier of said at least one selected virtual table and the selected mapping information, and accessing the polymorph table according to the polymorph access request.
地址 Armonk NY US