ORG.oclc.zsorts
Class  DefaultSortKey
java.lang.Object
  |
  +--ORG.oclc.zsorts.DefaultSortKey
- public class DefaultSortKey- extends Object- implements IDbSortKey
DefaultSortKey is the default class for building a sortkey
 in ZBase when no class= is specified for the sort key
 in the database configuration file.
 It builds the key from the fields listed in the input sort
 parameters.
 
| Method Summary | 
|  String | getKey(DataDir record,
       String[] sortParms,
       int inputDataCharacterset,
       int keyDataLen)Builds a sortkey String from the input record, list of fields,
 input data characterset, and maximum datalength for the key.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
 
DefaultSortKey
public DefaultSortKey()
getKey
public String getKey(DataDir record,
                     String[] sortParms,
                     int inputDataCharacterset,
                     int keyDataLen)
- Builds a sortkey String from the input record, list of fields,
 input data characterset, and maximum datalength for the key.
 - 
- Specified by: 
- getKey in interface IDbSortKey
- Parameters:
- record- input record
- sortParms- String array defining the list of fields
 in the record to build the key from.
- inputDataCharacterset- the characterset of the input
 data (ASCII or EBCDIC)
- keyDataLen- the maximum length of the sort key
- Returns:
- String