ORG.oclc.zsorts
Class StandardNumberKey
java.lang.Object
|
+--ORG.oclc.zsorts.StandardNumberKey
- public class StandardNumberKey
- extends Object
- implements IDbSortKey
StandardNumberKey is a class for building a sortkey for the
standard number fields in a database record. It constructs a key from
the field identified by the sort parms. The key returned is trimmed
to the first set of characters before the first blank.
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 |
StandardNumberKey
public StandardNumberKey()
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 recordsortParms
- 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