Datebase Device, Database Management Method, Data Structure Of Database, Database Management Program, And Computer-Readable Storage Medium Storing Same Program
First Claim
1. A database device using a relational table, comprising:
- a database memory section for storing element location B+tree data registering, as key values, location information indicating locations of elements of an extendible array, which elements respectively correspond to records of the relational table, the location information being information including (i) section location information indicating locations of first elements of sections of the extendible array to which the elements belong, and (ii) in-section offsets indicating the locations of the elements in the sections.
1 Assignment
0 Petitions
Accused Products
Abstract
When a record inserting section inserts a record having a new column value, the record inserting section registers the column value in a CVT such that an extendible array is extended; registers, in a history table, a history value indicating a chronological sequence of array extension; registers, in a coefficient table, coefficients of a linear function for calculating an offset of an element in an subarray; registers an initial value in a record number table; and inserts as a key value a 2-tuple expression of the history value and the offset of the element of the extendible array into RDT. This makes it possible to dynamically add, upon operation, a record having a new column value and to register only an existing record, thereby realizing a relational database allowing for fast record retrieval.
76 Citations
28 Claims
-
1. A database device using a relational table, comprising:
-
a database memory section for storing element location B+tree data registering, as key values, location information indicating locations of elements of an extendible array, which elements respectively correspond to records of the relational table, the location information being information including (i) section location information indicating locations of first elements of sections of the extendible array to which the elements belong, and (ii) in-section offsets indicating the locations of the elements in the sections. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 16, 17, 18, 19, 20, 21, 22, 27, 28)
-
-
9. A database management method for a database device using a relational table,
the database device including a database memory section, the database memory section storing: -
first B+tree data, which are so provided as to respectively correspond to column values of the relational table, and which convert the column values into subscripts of an extendible array;
second B+tree data, which registers, as key values, 2-tuple expressions of history values and in-subarray offsets of elements, respectively corresponding to records of the relational table, of the extendible array;
a history table, which registers chronological sequence of array extension;
a coefficient table, which registers, for each subarray, a coefficient vector made up of a coefficient of a linear function for calculating an in-subarray offset of an element in the subarray; and
a record number table, which registers, for each of the subscripts of the extendible array, the number of all records that have a column value corresponding to the subscript, said method, comprising the step of retrieving, from the second B+tree data in response to a retrieval request, a 2-tuple of a history value and an in-subarray offset corresponding to the retrieval request.
-
-
10. A database management method for a database device using a relational table,
the database device including a database memory section, the database memory section storing: -
first B+tree data, which are so provided as to respectively correspond to column values of the relational table, and which convert the column values into subscripts of an extendible array;
second B+tree data, which registers, as key values, 2-tuple expressions of history values and in-subarray offsets of elements, respectively corresponding to records of the relational table, of the extendible array;
a history table, which registers chronological sequence of array extension;
a coefficient table, which registers, for each subarray, a coefficient vector made up of a coefficient of a linear function for calculating an in-subarray offset of an element in the subarray; and
a record number table, which registers, for each of the subscripts of the extendible array, the number of all records that have a column value corresponding to the subscript, said method, comprising the step of, upon inserting a record having a new column value, (i) registering the column value in the first B+tree data such that the extendible array is extended, (ii) registering a history value in the history table and registering a coefficient in the coefficient table, (iii) registering an initial value in the record number table, and (iv) inserting, into the second B+tree data as a key value, a 2-tuple expression of the history value and an in-subarray offset of an element of the extendible array.
-
-
11. A database management method for a database device using a relational table,
the database device including a database memory section, the database memory section storing: -
first B+tree data, which are so provided as to respectively correspond to column values of the relational table, and which convert the column values into subscripts of an extendible array;
second B+tree data, which registers, as key values, 2-tuple expressions of history values and in-subarray offsets of elements, respectively corresponding to records of the relational table, of the extendible array;
a history table, which registers chronological sequence of array extension;
a coefficient table, which registers, for each subarray, a coefficient vector made up of a coefficient of a linear function for calculating an in-subarray offset of an element in the subarray; and
a record number table, which registers, for each of the subscripts of the extendible array, the number of all records that have a column value corresponding to the subscripts, said method, comprising the step of, upon deleting one record, (i) deleting a 2-tuple of a corresponding history value and a corresponding in-subarray offset from the second B+tree data and (ii) decrementing the number of records in the record number table by one.
-
-
12. A data structure for a database using a relational table, comprising:
-
first B+tree data, which are so provided as to respectively correspond to column values of the relational table, and which convert the column values into subscripts of an extendible array;
second B+tree data, which registers, as key values, 2-tuple expressions of history values and in-subarray offsets of elements, respectively corresponding to records of the relational table, of the extendible array;
a history table, which registers chronological sequence of array extension;
a coefficient table, which registers, for each subarray, a coefficient vector made up of a coefficient of a linear function for calculating an in-subarray offset of an element in the subarray; and
a record number table, which registers, for each of the subscripts of the extendible array, the number of all records that have a column value corresponding to the subscript. - View Dependent Claims (13, 14, 15)
-
-
23. A database management method for a database device using a relational table,
the database device including a database memory section, the database memory section storing: -
first B+tree data, which are so provided as to respectively correspond to column values of the relational table, and which convert the column values into 2-tuple expressions of (i) subscripts indicating locations of chunk subarray information in the chunked extendible array and (ii) subscripts in the chunks;
second B+tree data, which registers, as key values, 2-tuple expressions of chunk numbers and in-chunk offsets of chunks to which elements, respectively corresponding to records of the relational table, of the chunked extendible array belong;
a history table, which registers chronological sequence of chunked array extension as chunk subarray information;
a coefficient table, which registers, for each chunked subarray, a coefficient vector made up of a coefficient of a linear function for calculating a chunk number of a chunk in the chunked subarray;
a column value table, which includes, as column value information, either a column value corresponding to each of the subscripts of the chunked extendible array or a pointer for a memory area in which the column value is stored; and
a record number table, which registers the number of all records that have the column value, said method, comprising the step of retrieving, from the second B+tree data in response to a retrieval request, a 2-tuple of a chunk number and an in-chunk offset corresponding to the retrieval request.
-
-
24. A database management method for a database device using a relational table,
the database device including a database memory section, the database memory section storing: -
first B+tree data, which are so provided as to respectively correspond to column values of the relational table, and which convert the column values into 2-tuple expressions of (i) subscripts indicating locations of chunk subarray information in the chunked extendible array and (ii) subscripts in the chunks;
second B+tree data, which registers, as key values, 2-tuple expressions of chunk numbers and in-chunk offsets of chunks to which elements, respectively corresponding to records of the relational table, of the chunked extendible array belong;
a history table, which registers chronological sequence of chunked array extension as chunk subarray information;
a coefficient table, which registers, for each chunked subarray, a coefficient vector made up of a coefficient of a linear function for calculating a chunk number of a chunk in the chunked subarray;
a column value table, which includes, as column value information, either a column value corresponding to each of the subscripts of the chunked extendible array or a pointer for a memory area in which the column value is stored; and
a record number table, which registers the number of all records that have the column value, said method, comprising the step of, upon inserting a record having a new column value, (i) registering the column value in the first B+tree data such that the chunked extendible array is extended, (ii) registering a history value in the history table and registering a coefficient in the coefficient table, (iii) registering an initial value in the record number table, and (iv) inserting, into the second B+tree data as a key value, a 2-tuple expression of the chunk number and an in-chunk offset of a chunk to which an element of the chunked extendible array belongs.
-
-
25. A database management method for a database device using a relational table,
the database device including a database memory section, the database memory section storing: -
first B+tree data, which are so provided as to respectively correspond to column values of the relational table, and which convert the column values into 2-tuple expressions of (i) subscripts indicating locations of chunk subarray information in the chunked extendible array and (ii) subscripts in the chunks;
second B+tree data, which registers, as key values, 2-tuple expressions of chunk numbers and in-chunk offsets of chunks to which elements, respectively corresponding to records of the relational table, of the chunked extendible array belong;
a history table, which registers chronological sequence of chunked array extension as chunk subarray information;
a coefficient table, which registers, for each chunked subarray, a coefficient vector made up of a coefficient of a linear function for calculating a chunk number of a chunk in the chunked subarray;
a column value table, which includes, as column value information, either a column value corresponding to each of the subscripts of the chunked extendible array or a pointer for a memory area in which the column value is stored; and
a record number table, which registers the number of all records that have the column value, said method, comprising the step of, upon deleting one record, (i) deleting a 2-tuple of a corresponding chunk number and a corresponding in-chunk offset from the second B+tree data and (ii) decrementing the number of records in the record number table by one.
-
-
26. A data structure for a database using a relational table, comprising:
-
first B+tree data, which are so provided as to respectively correspond to column values of the relational table, and which convert the column values into 2-tuple expressions of (i) subscripts indicating locations of chunk subarray information in the chunked extendible array and (ii) subscripts in the chunks;
second B+tree data, which registers, as key values, 2-tuple expressions of chunk numbers and in-chunk offsets of chunks to which elements, respectively corresponding to records of the relational table, of the chunked extendible array belong;
a history table, which registers chronological sequence of chunked array extension as chunk subarray information;
a coefficient table, which registers, for each chunked subarray, a coefficient vector made up of a coefficient of a linear function for calculating a chunk number of a chunk in the chunked subarray;
a column value table, which includes, as column value information, either a column value corresponding to each of the subscripts of the chunked extendible array or a pointer for a memory area in which the column value is stored; and
a record number table, which registers the number of all records that have the column value.
-
Specification