Qualifying and sorting file record data
First Claim
1. A method of presorting file records in a storage means for temporary retention in a sort buffer in an order based on selected ranking, comprising the steps of:
- (a) accessing each of said file records in said storage means;
(b) determining whether an accessed file record qualifies for transfer to the sort buffer;
(c) if said accessed file record qualifies, setting a record identifying bit from a first state to a second state;
(d) comparing the rank of the qualified file record data in the storage means with the rank of the lowest ranked file record in the sort buffer;
(e) if the rank of the qualified file record is higher than the rank of the lowest ranked file record, transferring the qualified file record in the storage means to unused space in the sort buffer;
(f) locating the qualified file record transferred to the sort buffer at a level based on said rank thereof; and
(g) resetting the record identifying bit to the first state for the qualified file record now located in the sort buffer.
1 Assignment
0 Petitions
Accused Products
Abstract
Record data on a disk file is sorted in a text/data processor by means of an algorithm that transfers such records on the basis of rank to a sort buffer on the basis of qualifying criteria. Each qualified file record is compared with the lowest ranked record previously transferred and located in the sort buffer. When a higher ranked record is identified it is transferred into the buffer at a location based on qualification. Lower ranked records are deleted from the sort buffer if space does not permit the storing of such records within the space available. When the sort buffer has been loaded with the highest ranked records remaining in the disk file without overflowing the buffer is unloaded to an output device. The sort program recycles through a subsequent pass again transferring the highest ranked remaining records into the sort buffer. To minimize recycle time, a presort algorithm is run to set record identifying bits in a bit map section of the sort buffer. Each time the contents of the sort buffer is output the record identifying bits for the records in the sort buffer are reset to a second state. The second state of a record identifying bit indicates that that record will not be considered for future passes through the sort routine.
494 Citations
9 Claims
-
1. A method of presorting file records in a storage means for temporary retention in a sort buffer in an order based on selected ranking, comprising the steps of:
-
(a) accessing each of said file records in said storage means; (b) determining whether an accessed file record qualifies for transfer to the sort buffer; (c) if said accessed file record qualifies, setting a record identifying bit from a first state to a second state; (d) comparing the rank of the qualified file record data in the storage means with the rank of the lowest ranked file record in the sort buffer; (e) if the rank of the qualified file record is higher than the rank of the lowest ranked file record, transferring the qualified file record in the storage means to unused space in the sort buffer; (f) locating the qualified file record transferred to the sort buffer at a level based on said rank thereof; and (g) resetting the record identifying bit to the first state for the qualified file record now located in the sort buffer. - View Dependent Claims (2, 3)
-
-
4. A method of presorting file records in a storage means for temporary retention in a sort buffer in an order based on a selected ranking, comprising the steps of:
-
(a) accessing each of said file records in said storage means; (b) determining whether an accessed file record qualifies for transfer to the sort buffer; (c) setting a preselected number of record identifying bits from a first state to a second state for each of a like number of qualified file records in the storage means; (d) setting an overflow record identifying bit from a first state to a second state for all remaining qualified file records in the storage means; (e) comparing the rank of a qualified file record in the storage means with the rank of the lowest ranked file record in the sort buffer; (f) if the rank of the qualified field record is higher than the rank of the lowest ranked file record, transferring the qualified file record in the storage means to unused space in the sort buffer; (g) locating the qualified file record transferred to the sort buffer at a level based on said rank thereof; (h) resetting the record identifying bit to the first state for said qualified file record now located in the sort buffer; and (i) sorting each file record associated with the overflow record identifying bit. - View Dependent Claims (5, 6, 7)
-
-
8. A method for presorting file records in a storage means for temporary retention in a sort buffer in an order based on a selected ranking, comprising the steps of:
-
(a) accessing each of said file records in said storage means; (b) determining whether an accessed file record qualifies for transfer to the sort buffer; (c) if said accessed file record qualifies, setting a record identifying bit from a first state to a second state; (d) comparing the rank of a qualified file record in the storage means with the rank of the lowest file record in the sort buffer; (e) if the rank of the qualified file record is higher than the rank of the lowest file record, determining whether there is enough space in said sort buffer for the qualified file record; (f) if there is enough space in said sort buffer for said qualified file record, locating the qualified file record transferred to the sort buffer at a level based on said rank; (g) resetting the record identifying bit to the first state for said qualified file record now located in the sort buffer; and (h) repeating steps (d)-(g) for each qualified file record with a record identifying bit in the second state. - View Dependent Claims (9)
-
Specification