Open SiteSearch 4.1.1
Final

ORG.oclc.db
Class DedupedSort

java.lang.Object
  |
  +--ORG.oclc.db.DedupedSort

public class DedupedSort
extends Object

DedupedSort is the controlling class for building a sort key from a record. DedupedSort must be extended to actually get any data in a sort key.


Field Summary
 Vector duplicateRecords
          Vector object containing the list of SortResult objects containing the duplicates.
 SortResult sortResult
          integer data type containing the offset into the original result set for the record.
 
Constructor Summary
DedupedSort(int offset, int reclen)
           
DedupedSort(int offset, int reclen, String dbname)
           
 
Method Summary
 void addDuplicate(int offset)
          Add a duplicate record to the list containing the offset into the original result set for the record.
 void addDuplicate(int offset, int length, String dupDbname, DuplicateCriteria criteria)
          Add a duplicate record to the list containing the offset into the original result set for the record.
static void sortEm(DedupedSort[] keys)
          Sorts the dedupedSort results by the dbname.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

duplicateRecords

public Vector duplicateRecords
Vector object containing the list of SortResult objects containing the duplicates.

sortResult

public SortResult sortResult
integer data type containing the offset into the original result set for the record.
Constructor Detail

DedupedSort

public DedupedSort(int offset,
                   int reclen)

DedupedSort

public DedupedSort(int offset,
                   int reclen,
                   String dbname)
Method Detail

addDuplicate

public void addDuplicate(int offset)
Add a duplicate record to the list containing the offset into the original result set for the record.

addDuplicate

public void addDuplicate(int offset,
                         int length,
                         String dupDbname,
                         DuplicateCriteria criteria)
Add a duplicate record to the list containing the offset into the original result set for the record.

sortEm

public static void sortEm(DedupedSort[] keys)
Sorts the dedupedSort results by the dbname.

toString

public String toString()
Overrides:
toString in class Object

Open SiteSearch 4.1.1
Final