Opaque types
First Claim
1. A method for handling within a database system a data item that is associated with a data type whose native structure is not known to said database system, the method comprising the steps of:
- said database system receiving user input that specifies a set of attributes;
said database system receiving user input that specifies a data type that is supported by said database system for each attribute in said set of attributes;
said database system receiving user input that specifies an external routine for accessing a first attribute of said set of attributes, wherein said external routine expects said data item to have said native structure;
said database system invoking said external routine to access a first attribute; and
in response to invoking said external routine, said database system receiving from said external routine a value that is structured according to the data type associated with said first attribute.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus are provided for handling within a database system data items that are associated with data types whose native structure is not known to the database system. The data items are stored within the database system in their native structure, even though it is not understood by the database system. To store the data items, the database system calls a pickling routine that is provided by the user, or by the runtime subsystem of the programming environment that is native to the data item. To retrieve the routine from storage, the database system calls an unpickling routine, also provided by the user or the appropriate runtime subsystem. Because the database maintains the data items in their native format, no conversions are required as the data items are passed between the database system and external routines that manipulate the data items. Techniques are also provided for declaring attributes of the data item that can be accessed within the database system. The user provides routines for the database system to call in order to access the declared attributes, which may be different than the actual attributes that the data item has in its native environment.
-
Citations
15 Claims
-
1. A method for handling within a database system a data item that is associated with a data type whose native structure is not known to said database system, the method comprising the steps of:
-
said database system receiving user input that specifies a set of attributes;
said database system receiving user input that specifies a data type that is supported by said database system for each attribute in said set of attributes;
said database system receiving user input that specifies an external routine for accessing a first attribute of said set of attributes, wherein said external routine expects said data item to have said native structure;
said database system invoking said external routine to access a first attribute; and
in response to invoking said external routine, said database system receiving from said external routine a value that is structured according to the data type associated with said first attribute. - View Dependent Claims (2, 3, 4, 5)
said external routine is written in a computer language; and
said data type of said first attribute is not a primitive data type defined by the computer language.
-
-
6. A computer-readable medium carrying one or more sequences of instructions for handling within a database system a data item that is associated with a data type whose native structure is not known to said database system, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
said database system receiving user input that specifies a set of attributes;
said database system receiving user input that specifies a data type that is supported by said database system for each attribute in said set of attributes;
said database system receiving user input that specifies an external routine for accessing a first attribute of said set of attributes, wherein said external routine expects said data item to have said native structure;
said database system invoking said external routine to access said first attribute; and
in response to invoking said external routine, said database system receiving from said external routine a value that is structured according to the data type associated with said first attribute. - View Dependent Claims (7, 8, 9, 10)
said external routine is written in a computer language; and
said data type of said first attribute is not a primitive data type defined by the computer language.
-
-
11. A database system for processing a data item that is associated with a data type whose native structure is not known to said database system;
-
said database system configured to receive user input that specifies a set of attributes;
said database system configured to receive user input that specifies a data type that is supported by said database system for each attribute in said set of attributes;
said database system configured to receive user input that specifies an external routine for accessing a first attribute of said set of attributes, wherein said external routine expects said data item to have said native structure;
said database system configured to invoke said external routine to access said first attribute; and
in response to invoking said external routine, said database system configured to receive from said external routine a value that is structured according to the data type associated with said first attribute. - View Dependent Claims (12, 13, 14, 15)
said external routine is written in a computer language; and
said data type of said first attribute is not a primitive data type defined by the computer language.
-
Specification