Data sort method, data sort apparatus, and data sort program
First Claim
Patent Images
1. A data sort method of rearranging records according to a specified sort key item in an ascending/descending order, comprising:
- an automaton generating step of generating, in a main memory, an automaton which receives a character string of a sort key item of each record read successively from outside, and which is a set of state transition tables with a hierarchical tree structure whose hierarchical depth is equal to a maximum number of characters of a character string of a sort key item of each record, and whose transition table corresponds to each character of a character string of the sort key item of each record, and also whose state transition table contains links to next stage state transition tables each of which corresponds to a next character of a character string of the sort key item of each record in an ascending/descending order according to each of the next characters, and which associates a record identifier of each record with a final state transition table corresponding to the final character of a character string of the sort key item of the record; and
an order value tuple generating step of generating an order value tuple which is a set of a record identifier of the record and an order value which is obtained by arranging the records in an ascending/descending order by scanning the automaton in order of contained links in the state transition tables giving priority to the depth direction of the hierarchy of the state transition tables.
1 Assignment
0 Petitions
Accused Products
Abstract
A data sort method, apparatus, and program to receive a character string of sort key items specified as keys of a data sort process, generate an automaton corresponding to a record whose final transition state corresponds to the character string, determine the order specified by the character string by scanning the automaton, and determine the order of the records corresponding to the character string.
-
Citations
13 Claims
-
1. A data sort method of rearranging records according to a specified sort key item in an ascending/descending order, comprising:
-
an automaton generating step of generating, in a main memory, an automaton which receives a character string of a sort key item of each record read successively from outside, and which is a set of state transition tables with a hierarchical tree structure whose hierarchical depth is equal to a maximum number of characters of a character string of a sort key item of each record, and whose transition table corresponds to each character of a character string of the sort key item of each record, and also whose state transition table contains links to next stage state transition tables each of which corresponds to a next character of a character string of the sort key item of each record in an ascending/descending order according to each of the next characters, and which associates a record identifier of each record with a final state transition table corresponding to the final character of a character string of the sort key item of the record; and an order value tuple generating step of generating an order value tuple which is a set of a record identifier of the record and an order value which is obtained by arranging the records in an ascending/descending order by scanning the automaton in order of contained links in the state transition tables giving priority to the depth direction of the hierarchy of the state transition tables. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A data sort apparatus which rearranges records according to a specified sort key item in an ascending/descending order, comprising:
-
an automaton generating unit generating, in a main memory, an automaton which receives a character string of a sort key item of each record read successively from outside, and which is a set of state transition tables with a hierarchical tree structure whose hierarchical depth is equal to a maximum number of characters of a character string of a sort key item of each record, and whose transition table corresponds to each character of a character string of the sort key item of each record, and also whose state transition table contains links to next stage state transition tables each of which corresponds to a next character of a character string of the sort key item of each record in an ascending/descending order according to each of the next characters, and which associates a record identifier of each record with a final state transition table corresponding to the final character of a character string of the sort key item of the record; and an order value tuple generating unit generating an order value tuple which is a set of a record identifier of the record and an order value which is obtained by arranging the records in an ascending/descending order by scanning the automaton in order of contained links in the state transition tables giving priority to the depth direction of the hierarchy of the state transition tables.
-
-
11. A data sort program for directing a computer to perform a data sorting process of rearranging records according to a specified sort key item in an ascending/descending order, comprising:
-
an automaton generating step of generating, in a main memory, an automaton which receives a character string of a sort key item of each record read successively from outside, and which is a set of state transition tables with a hierarchical tree structure whose hierarchical depth is equal to a maximum number of characters of a character string of a sort key item of each record, and whose transition table corresponds to each character of a character string of the sort key item of each record, and also whose state transition table contains links to next stage state transition tables each of which corresponds to a next character of a character string of the sort key item of each record in an ascending/descending order according to each of the next characters, and which associates, a record identifier of each record with a final state transition table corresponding to the final character of a character string of the sort key item of the record; and an order value tuple generating step of generating an order value tuple which is a set of a record identifier of the record and an order value which is obtained by arranging the records in an ascending/descending order by scanning the automaton in order of contained links in the state transition tables giving priority to the depth direction of the hierarchy of the state transition tables. - View Dependent Claims (12)
-
-
13. A data sort apparatus which rearranges records according to a specified sort key item in an ascending/descending order, comprising:
-
automaton generating means for generating, in a main memory, an automaton which receives a character string of a sort key item of each record read successively from outside, and which is a set of state transition tables with a hierarchical tree structure whose hierarchical depth is equal to a maximum number of characters of a character string of the sort key item of each record, and whose transition table corresponds to each character of a character string of the sort key item of each record, and also whose state transition table contains links to next stage state transition tables each of which corresponds to a next character of a character string of the sort key item of each record in an ascending/descending order according to each of the next characters, and which associates a record identifier of each record with a final state transition table corresponding to the final character of a character string of a sort key item of the record; and order value tuple generating means for generating an order value tuple which is a set of a record identifier of the record and an order value which is obtained by arranging the records in an ascending/descending order by scanning the automaton in order of contained links in the state transition tables giving priority to the depth direction of the hierarchy of the state transition tables.
-
Specification