×

APPARATUS AND METHOD FOR SORTING DATA

  • US 20110320451A1
  • Filed: 05/17/2011
  • Published: 12/29/2011
  • Est. Priority Date: 06/23/2010
  • Status: Active Grant
First Claim
Patent Images

1. A method for sorting data of an input file stored on a first tangible storage device, said input file comprising multiple records associated with multiple tables of a database, each record of the multiple records comprising a plurality of key values, said method comprising:

  • segmenting the plurality of key values in the multiple records associated with each table into ranges of key values for each table, each range of key values for each table denoted as a segment having an associated segment value;

    selecting multiple key values for each record of the multiple records, said multiple key values being selected in association with the tables of the multiple tables;

    generating, for each record of the multiple records, a block number comprising a unique permutation of the segment values of the segments, said segment values respectively denoting the ranges of key values encompassing the multiple key values;

    ascertaining, for each record of the multiple records, a sort key value based on the generated block number for each record of the multiple records;

    adding, to each record of the multiple records, the sort key value ascertained for each record of the multiple records; and

    after said adding the sort key value to all records of the multiple records, sorting the multiple records according to the sort key values added to the multiple records; and

    storing the sorted multiple records in an output file on a second tangible storage device.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×