Open SiteSearch 4.1.1
Final

ORG.oclc.db
Class Key

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

public class Key
extends Object

Key provides a means to sort a String key without losing an associated offset.


Constructor Summary
Key(String key, int offset)
           
Key(String key, int offset, boolean fillKey, int reclen, String dbname)
           
 
Method Summary
static void bubblesortEm(Key[] keys)
          Do a bubblesort on an array of Keys
static void sortEm(Key[] keys)
          Do a shellshort on an array of Keys
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key(String key,
           int offset)
Parameters:
key - sort key
offset - extra data stored with and sorted with key

Key

public Key(String key,
           int offset,
           boolean fillKey,
           int reclen,
           String dbname)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

sortEm

public static void sortEm(Key[] keys)
Do a shellshort on an array of Keys
Parameters:
keys - sort this

bubblesortEm

public static void bubblesortEm(Key[] keys)
Do a bubblesort on an array of Keys
Parameters:
keys - sort this

Open SiteSearch 4.1.1
Final